/* ════════════════════════════════
   TOPBAR LAYOUT
   Three fixed zones: left, center, right.
   Changing sizes inside a zone won't
   push elements in the other zones.
════════════════════════════════ */
.cw-topbar {
    /* ── Hero background: edit the gradient stops or grid colour below ── */
    background:
        linear-gradient(rgba(100, 0, 180, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 0, 180, 0.055) 1px, transparent 1px),
        linear-gradient(160deg, #f0e6ff 0%, #ffffff 50%, #fff5e6 100%);
    background-size: 28px 28px, 28px 28px, 100% 100%;
    border-bottom: 2px solid #ccc;
    display: flex;
    align-items: center;
    height: 150px;          /* fixed height — change this to make the bar taller/shorter */
    max-height: 160px;      /* hard cap so nothing can push it down */
    overflow: hidden;
    padding: 0 20px;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 500;
}

/* LEFT zone — fixed width, logo sits here */
.cw-topbar-left {
    width: 340px;           /* change this to resize the logo zone */
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* CENTER zone — stretches to fill remaining space */
.cw-topbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RIGHT zone — fixed width, user panel sits here */
.cw-topbar-right {
    width: 360px;           /* change this to resize the user panel zone */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* ════════════════════════════════
   LOGO
════════════════════════════════ */
.cw-logo {
    height: 100%;           /* fills the left zone height without overflowing */
    max-height: 257px;       /* change this to resize the logo — won't push bar down */
    width: auto;            /* always keeps correct aspect ratio */
    display: block;
    object-fit: contain;
}


/* ════════════════════════════════
   NAV
════════════════════════════════ */
.cw-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.nav-row {
    display: flex;
    align-items: center;
    gap: 32px;              /* change this to adjust spacing between nav items */
}

.cw-nav a {
    display: block;
    line-height: 0;
}

.nav-search-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cw-search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 4px 12px;
    background: #fff;
    width: 340px;
}

.search-icon {
    height: 16px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.search-input {
    border: none;
    outline: none;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    width: 100%;
    background: transparent;
}

.search-input::placeholder {
    color: #222;
    font-weight: 600;
}

.nav-btn {
    width: 105px;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.nav-btn:hover {
    opacity: 0.75;
}

.nav-btn-sm {
    width: 82px;
}

.cw-create-quick-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    background: #7700bb;
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    border: 2px solid #5500aa;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    line-height: 1;
    flex-shrink: 0;
}

.cw-create-quick-btn:hover {
    background: #5500aa;
    transform: translateY(-1px);
}


/* ════════════════════════════════
   CREATE PAGE
════════════════════════════════ */
.cw-create-page {
    max-width: 900px;
    margin: 36px auto 48px auto;
    padding: 0 24px;
    font-family: 'Lexend', sans-serif;
}

.create-page-header {
    text-align: center;
    margin-bottom: 36px;
}

.create-header-dash {
    border-top: 2px dashed #444;
    margin: 10px 0;
}

.create-header-inner {
    padding: 14px 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.create-header-title {
    font-size: 32px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.5px;
}

.create-header-sub {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.create-cards {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.create-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    background: #fff;
    transition: box-shadow 0.18s ease, transform 0.15s ease;
}

.create-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}

.create-card-icon {
    font-size: 56px;
    line-height: 1;
}

.create-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

.create-card-desc {
    font-size: 13px;
    color: #555;
    font-weight: 400;
    line-height: 1.6;
    flex: 1;
}

.create-card-btn {
    margin-top: 8px;
    padding: 10px 28px;
    border-radius: 6px;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.15s ease, transform 0.1s ease;
    width: 100%;
}

.create-card-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.create-btn-upload {
    background: #7700bb;
    color: #fff;
    border-color: #5500aa;
}

.create-btn-live {
    background: #d40000;
    color: #fff;
    border-color: #aa0000;
}

.create-btn-post {
    background: linear-gradient(135deg, #9333ea, #7700bb);
    color: #fff;
    border-color: #6d28d9;
}

.create-btn-clip {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: #fff;
    border-color: #0284c7;
}

/* Inline post card — thumbnail style, fits naturally in the rec grid */
.cwf-inline-post {
    border-radius: 10px;
    border: 1px solid #e8d5ff;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cwf-inline-post:hover {
    box-shadow: 0 6px 20px rgba(119,0,187,0.18);
    transform: translateY(-2px);
}
.cwf-inline-post-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 35% 35%, #9933cc, #4a0060);
    flex-shrink: 0;
}
.cwf-inline-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.cwf-inline-post:hover .cwf-inline-post-thumb img {
    transform: scale(1.06);
}
.cwf-inline-post-thumb-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.45;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    font-family: 'Lexend', sans-serif;
}
.cwf-inline-post-thumb.has-img .cwf-inline-post-thumb-text {
    display: none;
}
.cwf-inline-post-thumb::after {
    content: 'Click To Interact';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(70, 0, 120, 0.42);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}
.cwf-inline-post:hover .cwf-inline-post-thumb::after {
    opacity: 1;
    transform: translateY(0);
}
.cwf-inline-post-badge {
    position: absolute;
    top: 7px;
    left: 8px;
    background: rgba(100,0,180,0.82);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}
.cwf-inline-post-info {
    padding: 9px 11px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.cwf-inline-post-user {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #7700bb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
.cwf-inline-post-user:hover { text-decoration: underline; }
.cwf-inline-post-caption {
    font-size: 11.5px;
    color: #444;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cwf-inline-post-footer {
    font-size: 11px;
    color: #aaa;
    display: flex;
    gap: 10px;
    margin-top: 4px;
    align-items: center;
}
.cwf-inline-post-footer span { display: flex; align-items: center; gap: 3px; }
.cwf-inline-post-time {
    font-size: 10.5px;
    color: #bbb;
    margin-left: auto;
}

html[data-theme="dark"] .cwf-inline-post,
html[data-theme="aura"] .cwf-inline-post {
    background: #1a1025;
    border-color: rgba(168,85,247,0.3);
}
html[data-theme="dark"] .cwf-inline-post-caption,
html[data-theme="aura"] .cwf-inline-post-caption { color: #c4a8e8; }
html[data-theme="dark"] .cwf-inline-post-user,
html[data-theme="aura"] .cwf-inline-post-user { color: #c084fc; }
html[data-theme="dark"] .cwf-inline-post-time,
html[data-theme="aura"] .cwf-inline-post-time { color: #666; }

.create-hub-link-wrap {
    margin-top: 40px;
}

.create-hub-dash {
    border-top: 2px dashed #ccc;
    margin: 8px 0;
}

.create-hub-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.create-hub-link:hover {
    background: #f5eaff;
    color: #7700bb;
}

.create-hub-icon {
    font-size: 18px;
}

.create-hub-arrow {
    font-size: 16px;
    margin-left: 4px;
}


/* ════════════════════════════════
   ADMIN PANEL
════════════════════════════════ */
.admin-gate {
    position: fixed;
    inset: 0;
    background: #0a0010;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.admin-gate-box {
    border: 2px dashed #7700bb;
    border-radius: 12px;
    padding: 40px 48px;
    background: #110020;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 320px;
    text-align: center;
}

.admin-gate-title {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #7700bb;
}

.admin-gate-logo {
    font-size: 36px;
}

.admin-gate-label {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.admin-gate-input {
    width: 100%;
    padding: 10px 16px;
    background: #1a0030;
    border: 2px dashed #7700bb;
    border-radius: 6px;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    letter-spacing: 3px;
    outline: none;
    box-sizing: border-box;
}

.admin-gate-input::placeholder { color: #555; letter-spacing: 1px; }

.admin-gate-input.shake {
    animation: admin-shake 0.35s ease;
    border-color: #cc0000;
}

@keyframes admin-shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-8px); }
    40%      { transform: translateX(8px); }
    60%      { transform: translateX(-5px); }
    80%      { transform: translateX(5px); }
}

.admin-gate-btn {
    width: 100%;
    padding: 10px;
    background: #7700bb;
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #5500aa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.admin-gate-btn:hover { background: #5500aa; }

.admin-gate-error {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    color: #cc4444;
    min-height: 16px;
}

/* Admin page body */
body.admin-body {
    background: #0d001f;
    min-height: 100vh;
}

.admin-page {
    max-width: 1200px;
    margin: 28px auto 48px;
    padding: 0 20px;
    font-family: 'Lexend', sans-serif;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #110020;
    border: 2px dashed #7700bb;
    border-radius: 10px;
    margin-bottom: 24px;
}

.admin-topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: #aa44ff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.admin-topbar-meta {
    font-size: 12px;
    color: #666;
}

.admin-topbar-logout {
    font-size: 12px;
    font-weight: 600;
    color: #cc4444;
    background: none;
    border: 1px dashed #cc4444;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    transition: background 0.15s ease;
}

.admin-topbar-logout:hover { background: #cc444422; }

.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px dashed #7700bb;
    margin-bottom: 24px;
}

.admin-tab {
    padding: 10px 24px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.admin-tab:hover { color: #aa44ff; }
.admin-tab.active { color: #aa44ff; border-bottom-color: #aa44ff; }

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.admin-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #aa44ff;
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: #110020;
    border: 2px dashed #5500aa;
    border-radius: 6px;
    min-width: 240px;
}

.admin-search input {
    background: none;
    border: none;
    outline: none;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    color: #fff;
    width: 100%;
}

.admin-search input::placeholder { color: #555; }

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    text-align: left;
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 600;
    color: #7700bb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px dashed #5500aa;
}

.admin-table td {
    padding: 11px 12px;
    border-bottom: 1px dashed #2a0044;
    color: #ccc;
    vertical-align: middle;
}

.admin-table tr:hover td { background: #1a0030; }

.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-badge-active  { background: #0d3d1a; color: #44dd77; border: 1px dashed #44dd77; }
.admin-badge-banned  { background: #3d0d0d; color: #dd4444; border: 1px dashed #dd4444; }
.admin-badge-public  { background: #0d1a3d; color: #4488ff; border: 1px dashed #4488ff; }
.admin-badge-private { background: #1a1a1a; color: #888; border: 1px dashed #555; }
.admin-badge-removed { background: #3d0d0d; color: #ff4444; border: 1px dashed #ff4444; }
.admin-badge-event   { background: #3d1a00; color: #ff8800; border: 1px dashed #ff8800; }

.admin-action-btn {
    padding: 4px 10px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 1px dashed #5500aa;
    background: #110020;
    color: #aa44ff;
    transition: background 0.12s ease;
    margin-right: 4px;
}

.admin-action-btn:hover { background: #220044; }
.admin-action-btn.ban  { border-color: #cc4444; color: #cc4444; }
.admin-action-btn.ban:hover { background: #3d0d0d; }
.admin-action-btn.unban { border-color: #44dd77; color: #44dd77; }
.admin-action-btn.unban:hover { background: #0d3d1a; }
.admin-action-btn.remove { border-color: #ff4444; color: #ff4444; }
.admin-action-btn.remove:hover { background: #3d0d0d; }

.admin-vis-select {
    background: #110020;
    border: 1px dashed #5500aa;
    border-radius: 4px;
    color: #ccc;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    cursor: pointer;
    outline: none;
}

/* Events panel */
.admin-events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-event-slot {
    background: #110020;
    border: 2px dashed #5500aa;
    border-radius: 10px;
    padding: 18px;
}

.admin-event-slot-title {
    font-size: 13px;
    font-weight: 600;
    color: #aa44ff;
    margin-bottom: 12px;
    border-bottom: 1px dashed #3300aa;
    padding-bottom: 8px;
}

.admin-event-video-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #1a0030;
    border: 1px dashed #3300aa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.admin-event-thumb {
    width: 64px;
    height: 38px;
    border-radius: 4px;
    background: radial-gradient(circle at 35% 35%, #6600aa, #220033);
    flex-shrink: 0;
}

.admin-event-video-title {
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
    flex: 1;
}

.admin-event-assign {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 600;
    background: #110020;
    border: 1px dashed #7700bb;
    color: #aa44ff;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
}

.admin-event-assign:hover { background: #220044; }

/* ════════════════════════════════
   CHANNEL CONTENT HUB
════════════════════════════════ */
.cw-hub-page {
    max-width: 1100px;
    margin: 28px auto 48px auto;
    padding: 0 20px;
    font-family: 'Lexend', sans-serif;
}

.hub-channel-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border: 2px dashed #444;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 20px;
}

.hub-channel-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #cc66cc, #6600aa);
    border: 3px solid #444;
    flex-shrink: 0;
}

.hub-channel-info {
    flex: 1;
}

.hub-channel-name {
    font-size: 22px;
    font-weight: 600;
    color: #111;
}

.hub-channel-meta {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hub-channel-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hub-channel-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.hub-btn {
    padding: 8px 18px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hub-btn:hover { opacity: 0.8; }

.hub-btn-primary {
    background: #7700bb;
    color: #fff;
    border: 2px solid #5500aa;
}

.hub-btn-outline {
    background: #fff;
    color: #7700bb;
    border: 2px dashed #7700bb;
}

.hub-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.hub-stat-box {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 16px 18px;
    background: #fff;
}

.hub-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.hub-stat-value {
    font-size: 22px;
    font-weight: 600;
    color: #111;
}

.hub-stat-change {
    font-size: 11px;
    color: #22aa55;
    margin-top: 2px;
}

.hub-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px dashed #444;
    margin-bottom: 20px;
}

.hub-tab {
    padding: 10px 22px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.hub-tab:hover { color: #7700bb; }

.hub-tab.active {
    color: #7700bb;
    border-bottom-color: #7700bb;
}

.hub-panel {
    display: none;
}

.hub-panel.active {
    display: block;
}

.hub-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.hub-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* Video Table */
.hub-video-table {
    width: 100%;
    border-collapse: collapse;
}

.hub-video-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 8px 12px;
    border-bottom: 2px dashed #ddd;
}

.hub-video-table td {
    padding: 12px 12px;
    vertical-align: middle;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
    color: #222;
}

.hub-video-thumb {
    width: 88px;
    height: 52px;
    border-radius: 5px;
    background: radial-gradient(circle at 40% 40%, #9a009a, #2a0040);
    border: 1px solid #ddd;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.hub-vid-country {
    position: absolute;
    bottom: 3px; right: 3px;
    font-family: 'Lexend', sans-serif;
    font-size: 7.5px; font-weight: 800;
    letter-spacing: 0.04em;
    background: rgba(0,0,0,0.68);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.4;
    backdrop-filter: blur(2px);
}

.hub-video-thumb.thumb-v2 { background: radial-gradient(circle at 40% 40%, #0066cc, #001a44); }
.hub-video-thumb.thumb-v3 { background: radial-gradient(circle at 40% 40%, #cc6600, #442200); }
.hub-video-thumb.thumb-v4 { background: radial-gradient(circle at 40% 40%, #006633, #001a0d); }
.hub-video-thumb.thumb-v5 { background: radial-gradient(circle at 40% 40%, #990000, #220000); }
.hub-video-thumb.thumb-v6 { background: radial-gradient(circle at 40% 40%, #556600, #111a00); }

.hub-video-title-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-video-title-text {
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.hub-video-date {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.hub-visibility-select {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border: 2px dashed #999;
    border-radius: 5px;
    background: #fff;
    color: #222;
    cursor: pointer;
    outline: none;
}

.hub-visibility-select.vis-public { border-color: #22aa55; color: #22aa55; }
.hub-visibility-select.vis-unlisted { border-color: #cc8800; color: #cc8800; }
.hub-visibility-select.vis-private { border-color: #999; color: #666; }

/* Toggle switch */
.hub-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #555;
}

.hub-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.hub-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hub-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hub-toggle-slider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.hub-toggle input:checked + .hub-toggle-slider { background: #7700bb; }
.hub-toggle input:checked + .hub-toggle-slider::before { transform: translateX(16px); }

.hub-row-actions {
    display: flex;
    gap: 8px;
}

.hub-action-btn {
    padding: 4px 10px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 1px dashed #ccc;
    background: #fff;
    color: #444;
    transition: background 0.12s ease;
}

.hub-action-btn:hover { background: #f0e8ff; color: #7700bb; border-color: #7700bb; }

.hub-action-btn.edit-btn { background: #f5f0ff; color: #7700bb; border: 1.5px dashed #7700bb; }
.hub-action-btn.edit-btn:hover { background: #ebe0ff; border-style: solid; }

.hub-action-btn.del:hover { background: #ffe8e8; color: #cc0000; border-color: #cc0000; }

/* ── Video tag pills (in edit modal + watch page) ──────────────── */
.cch-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 2px dashed #7700bb;
    border-radius: 20px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #7700bb;
    background: #f5f0ff;
    user-select: none;
    white-space: nowrap;
}
.cch-tag-pill button {
    background: none;
    border: none;
    color: #7700bb;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    font-weight: 800;
    font-family: monospace;
}

/* Analytics */
.hub-analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hub-analytics-card {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 18px 20px;
    background: #fff;
}

.hub-analytics-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 16px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

.hub-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
}

.hub-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.hub-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: #7700bb;
    min-height: 4px;
    transition: opacity 0.15s ease;
}

.hub-bar:hover { opacity: 0.75; }

.hub-bar-label {
    font-size: 9px;
    color: #888;
    font-weight: 600;
    text-align: center;
}

.hub-top-video-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-top-video-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.hub-top-video-rank {
    font-size: 14px;
    font-weight: 700;
    color: #7700bb;
    width: 20px;
    flex-shrink: 0;
}

.hub-top-video-title {
    font-weight: 600;
    color: #222;
    flex: 1;
}

.hub-top-video-views {
    color: #888;
    font-weight: 400;
    white-space: nowrap;
}

/* Monetization panel */
.hub-monetize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hub-monetize-card {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 18px 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-monetize-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hub-monetize-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.hub-monetize-rate {
    font-size: 22px;
    font-weight: 600;
    color: #7700bb;
}


/* ════════════════════════════════
   USER PANEL
════════════════════════════════ */
.cw-user-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bell & Settings */
.cw-icon-group {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.cw-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    position: relative;
    display: block;
}

.cw-icon-btn img {
    height: 30px;           /* change this to resize bell/settings icons */
    width: auto;
    display: block;
    transition: opacity 0.15s ease;
}

.cw-icon-btn:hover img {
    opacity: 0.75;
}


/* ════════════════════════════════
   SEARCH DROPDOWN
════════════════════════════════ */
.cw-search-dropdown {
    position: fixed;
    z-index: 600;
    background: #fff;
    border: 2px dashed #333;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    font-family: 'Lexend', sans-serif;
    overflow: hidden;
    min-width: 340px;
}

.cw-search-dropdown.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.sd-section { padding: 10px 0; }

.sd-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 14px 6px 14px;
}

.sd-trend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: background 0.12s ease;
}

.sd-trend-item:hover { background: #f5f5f5; }

.sd-trend-rank {
    font-size: 11px;
    font-weight: 800;
    color: #7700bb;
    width: 22px;
    flex-shrink: 0;
}

.sd-divider {
    border-top: 1px dashed #ddd;
    margin: 0 14px;
}

.sd-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    text-decoration: none;
    transition: background 0.12s ease;
}

.sd-suggest-item:hover { background: #f5f5f5; }

.sd-suggest-thumb {
    width: 56px;
    height: 36px;
    border-radius: 5px;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    flex-shrink: 0;
}

.sd-suggest-info { display: flex; flex-direction: column; gap: 2px; }

.sd-suggest-title {
    font-size: 12px;
    font-weight: 700;
    color: #111;
}

.sd-suggest-meta {
    font-size: 10px;
    color: #777;
}

.bell-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #ff0000ff;
    color: white;
    font-size: 9px;
    font-weight: bold;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    box-sizing: border-box;
    border-radius: 3px;
    border: 2px dashed #8b0000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #7700bb;
    color: white;
    font-size: 9px;
    font-weight: bold;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    box-sizing: border-box;
    border-radius: 3px;
    border: 2px dashed #440077;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.friend-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #1a9a3a;
    color: white;
    font-size: 9px;
    font-weight: bold;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    box-sizing: border-box;
    border-radius: 3px;
    border: 2px dashed #0d6b28;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Welcome + Stats block — hidden until auth-guard populates it */
.cw-info-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 175px;
    max-width: 220px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.18s ease;
    flex-shrink: 0;
    align-self: center;
}
.cw-info-block.cw-loaded { opacity: 1; }

/* Two-layer dashed separators — both match in weight; bottom is narrower */
.cw-info-top-dashes,
.cw-info-mid-dashes,
.cw-info-bottom-dashes {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 0;
}
.cw-info-bottom-dashes { width: 72%; }

.cw-dash-line {
    border-top: 2px dashed #444;
    width: 100%;
}
/* sm now matches the main dash weight for visual consistency */
.cw-dash-sm {
    border-top-width: 2px;
    border-top-color: #444;
}

.cw-welcome-box {
    padding: 2px 4px 2px 4px;
    font-size: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: 'Lexend', sans-serif;
}

.cw-welcome-box .label {
    color: #8833bb;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cw-welcome-box .username {
    font-weight: 800;
    color: #1a001a;
    font-size: 12px;
}

.cw-stats {
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    padding: 0;
    font-family: 'Lexend', sans-serif;
}

.cw-stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
}

.cw-stat-action-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cw-stat-action-icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.cw-stat-coin-icon {
    width: 100px;
    height: 64px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-top: -12px;
    margin-bottom: -12px;
    margin-right: -20px;
}

.cw-stat-score-icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.cw-stat-orb-icon {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.cw-stat-val-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.15;
    min-width: 0;
    flex-shrink: 0;
}

.cw-stat-vsep {
    width: 1px;
    height: 16px;
    background: #ddd;
    flex-shrink: 0;
    margin: 0 3px;
}

.cw-stats .coins {
    color: #595959;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    line-height: 1.1;
}

.cw-stats .score {
    color: #c8a800;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cw-stats .orbs {
    color: #6600aa;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    line-height: 1.1;
}

.cw-orbs-sublabel {
    font-size: 8px;
    font-weight: 600;
    color: #9933cc;
    opacity: 0.8;
    letter-spacing: 0.1px;
    line-height: 1.2;
    font-family: 'Lexend', sans-serif;
}

.cw-add-more-link {
    font-size: 8px;
    font-weight: 700;
    color: #7700bb;
    text-decoration: none;
    letter-spacing: 0.2px;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.cw-add-more-link:hover {
    opacity: 1;
}

/* ── Dashed connector lines: info-block → avatar ─── */
.cw-info-connector {
    position: relative;
    width: 22px;
    align-self: stretch;
    flex-shrink: 0;
    pointer-events: none;
    overflow: visible;
}
.cw-ic-branch {
    position: absolute;
    left: 0;
    right: 4px;
    height: 0;
    border-top: 2px dashed #9933cc;
    opacity: 0.7;
}
/* b1 = coins row, b2 = score+orbs row */
.cw-ic-b1 { top: 44%; }
.cw-ic-b2 { top: 80%; }
.cw-ic-spine {
    position: absolute;
    right: 4px;
    top: 44%;
    bottom: 20%;
    border-right: 2px dashed #9933cc;
    opacity: 0.7;
}
/* Short horizontal line pointing right toward the avatar */
.cw-ic-tip {
    position: absolute;
    right: 0;
    top: 55%;
    transform: translateY(-50%);
    width: 7px;
    height: 2px;
    background: #9933cc;
    opacity: 0.85;
}

.cw-score-info-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    gap: 0;
}

.cw-score-tooltip {
    display: none;
    position: fixed;
    top: 152px;
    left: 0;
    background: #fff;
    border: 2px dashed #444;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: 'Lexend', sans-serif;
    color: #222;
    max-width: 240px;
    white-space: normal;
    line-height: 1.5;
    z-index: 9999;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.18);
}

.cw-score-info-wrap:hover .cw-score-tooltip {
    display: block;
}

/* ════════════════════════════════
   ANNOUNCEMENT BAR
════════════════════════════════ */
.cw-announcement-bar {
    background: #1a0030;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 28px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
}

.ann-label {
    background: #e07800;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.ann-text {
    color: #ddd;
    font-weight: 400;
    font-size: 12px;
}

.ann-stats {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
}

.ann-stat-num { font-weight: 700; color: #fff; }
.ann-stat-live { color: #ff6666; font-weight: 700; }
.ann-stat-sep  { color: #444; }

/* ════════════════════════════════
   CATEGORY TAG STRIP
════════════════════════════════ */
.cw-category-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 28px;
    background: rgba(245, 234, 255, 0.7);
    border-bottom: 1px solid #e4d4f4;
    overflow-x: auto;
    scrollbar-width: none;
    font-family: 'Lexend', sans-serif;
}

.cw-category-strip::-webkit-scrollbar { display: none; }

.cat-strip-label {
    font-size: 10px;
    font-weight: 800;
    color: #7700bb;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 12px;
    border-right: 2px dashed #c8a0e8;
    margin-right: 2px;
}

.cat-tag {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 3px 13px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.cat-tag:hover {
    border-color: #7700bb;
    color: #7700bb;
}

.cat-tag.cat-active {
    border-color: #7700bb;
    color: #7700bb;
    background: rgba(119, 0, 187, 0.1);
}

.cat-tag.cat-jump {
    border-color: #e07800;
    color: #e07800;
    text-decoration: none;
}

.cat-tag.cat-jump:hover {
    background: rgba(224, 120, 0, 0.1);
    border-color: #e07800;
    color: #e07800;
}

/* ════════════════════════════════
   LIVE NOW STRIP
════════════════════════════════ */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.85); }
}

.cw-live-strip {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 0 6px 0;
    display: flex;
    align-items: center;
    gap: 22px;
}

.live-strip-label {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.live-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #dd0000;
    animation: pulse-dot 1.3s ease infinite;
    flex-shrink: 0;
}

.live-strip-title {
    font-size: 15px;
    font-weight: 800;
    color: #dd0000;
    font-family: 'Lexend', sans-serif;
    white-space: nowrap;
}

.live-strip-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    flex: 1;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.live-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.live-card:hover { transform: translateY(-2px); }

.live-thumb {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    border: 3px solid #dd0000;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
}

.live-badge {
    position: absolute;
    bottom: -9px;
    background: #dd0000;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.8px;
}

.live-creator {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    font-family: 'Lexend', sans-serif;
    margin-top: 8px;
}

.live-viewers {
    font-size: 10px;
    color: #666;
    font-family: 'Lexend', sans-serif;
}

.live-view-all {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    text-decoration: none;
    color: #dd0000;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    border: 2px dashed #dd0000;
    border-radius: 8px;
    padding: 6px 12px;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.live-view-all:hover {
    background: rgba(221, 0, 0, 0.07);
}

.live-view-all-arrow {
    font-size: 18px;
    line-height: 1;
}

/* ═══════════════════════════════════════════
   CIRCLE FEED (posts + community)
═══════════════════════════════════════════ */
.cwf-section {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 0 16px;
    font-family: 'Lexend', sans-serif;
}
/* Header divider row */
.cwf-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.cwf-header-line { flex: 1; height: 1.5px; background: repeating-linear-gradient(90deg, rgba(119,0,187,0.25) 0, rgba(119,0,187,0.25) 6px, transparent 6px, transparent 12px); }
.cwf-header-center { flex-shrink: 0; text-align: center; }
.cwf-title { display: block; font-size: 16px; font-weight: 800; color: #1a1a1a; }
.cwf-sub   { display: block; font-size: 11px; color: #aaa; margin-top: 2px; }

/* Compose entry card */
.cwf-compose-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: #fff;
    border: 1.5px dashed rgba(119,0,187,0.3);
    border-radius: 16px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 10px rgba(119,0,187,0.06);
}
.cwf-compose-card:hover { border-color: rgba(119,0,187,0.6); box-shadow: 0 4px 18px rgba(119,0,187,0.12); }
.cwf-compose-prompt {
    flex: 1;
    font-size: 13px;
    color: #bbb;
    font-weight: 500;
}
.cwf-compose-pill {
    padding: 7px 16px;
    background: linear-gradient(135deg, #9900ee, #7700bb);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

/* Avatar (shared by compose + post cards + comments) */
.cwf-avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    text-transform: uppercase;
}
.cwf-avatar span { font-size: 14px; font-weight: 800; }

/* Feed container */
.cwf-feed { display: flex; flex-direction: column; gap: 16px; }
.cwf-loading { text-align: center; padding: 32px; color: #ccc; font-size: 13px; }

/* Feed gate — click to load, instead of auto-fetching */
.cwf-feed-gate {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 5px; padding: 44px 20px; border: 1.5px dashed rgba(119,0,187,0.25); border-radius: 14px;
}
.cwf-feed-gate-icon { font-size: 24px; color: #9900ee; margin-bottom: 3px; }
.cwf-feed-gate-title { font-size: 15px; font-weight: 800; color: #2a0044; }
.cwf-feed-gate-sub { font-size: 12.5px; color: #999; margin-bottom: 10px; max-width: 320px; line-height: 1.5; }
.cwf-feed-gate-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #9900ee, #7700bb);
    color: #fff; border: none; border-radius: 99px;
    font-family: 'Lexend', sans-serif; font-size: 13.5px; font-weight: 700;
    cursor: pointer; transition: transform 0.12s, opacity 0.12s;
    box-shadow: 0 4px 16px rgba(119,0,187,0.28);
}
.cwf-feed-gate-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.cwf-feed-gate-btn:active { transform: scale(0.97); }
html[data-theme="dark"] .cwf-feed-gate,
html[data-theme="aura"] .cwf-feed-gate { border-color: rgba(168,85,247,0.25); }
html[data-theme="dark"] .cwf-feed-gate-title,
html[data-theme="aura"] .cwf-feed-gate-title { color: #e8d8ff; }
html[data-theme="dark"] .cwf-feed-gate-sub,
html[data-theme="aura"] .cwf-feed-gate-sub { color: #8a7a9a; }

/* ── Post card ── */
.cwf-post {
    background: #fff;
    border: 1.5px dashed rgba(119,0,187,0.22);
    border-radius: 18px;
    padding: 16px 18px 14px;
    box-shadow: 0 2px 12px rgba(119,0,187,0.05);
    transition: box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}
.cwf-post:hover { box-shadow: 0 4px 22px rgba(119,0,187,0.1); }
/* subtle purple corner accent */
.cwf-post::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #9900ee 0%, transparent 100%);
    opacity: 0.4;
    border-radius: 18px 0 0 18px;
}

.cwf-post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cwf-post-info   { flex: 1; min-width: 0; }
.cwf-post-username { font-size: 13px; font-weight: 800; color: #1a1a1a; }
.cwf-post-meta    { font-size: 11px; color: #bbb; margin-top: 1px; }
.cwf-post-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 9px;
    background: rgba(119,0,187,0.08);
    border: 1px solid rgba(119,0,187,0.2);
    color: #7700bb;
    border-radius: 20px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.cwf-post-text {
    font-size: 14px;
    color: #333;
    line-height: 1.65;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Image grid */
.cwf-img-grid {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    gap: 3px;
    display: grid;
}
.cwf-img-grid-1 { grid-template-columns: 1fr; }
.cwf-img-grid-2 { grid-template-columns: 1fr 1fr; }
.cwf-img-grid-3 { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
.cwf-img-grid-3 .cwf-img-cell:first-child { grid-column: 1 / -1; }
.cwf-img-grid-4 { grid-template-columns: 1fr 1fr; }
.cwf-img-cell { overflow: hidden; max-height: 280px; background: #f0e6ff; }
.cwf-img-grid-1 .cwf-img-cell { max-height: 400px; }
.cwf-img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Actions bar */
.cwf-post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 10px;
    border-top: 1.5px dashed rgba(119,0,187,0.12);
}
.cwf-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: none;
    background: none;
    border-radius: 20px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.cwf-action-btn:hover { background: rgba(119,0,187,0.07); color: #7700bb; }
.cwf-action-btn.liked { color: #e11d48; }
.cwf-action-btn.liked:hover { background: rgba(225,29,72,0.08); }
.cwf-action-btn .cwf-act-icon { font-size: 15px; }

/* Comments section */
.cwf-comments {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1.5px dashed rgba(119,0,187,0.12);
    flex-direction: column;
    gap: 10px;
}
.cwf-comments.open { display: flex; }
.cwf-comment { display: flex; gap: 9px; align-items: flex-start; }
.cwf-comment-body { flex: 1; min-width: 0; }
.cwf-comment-username { font-size: 12px; font-weight: 800; color: #1a1a1a; }
.cwf-comment-text { font-size: 12.5px; color: #444; line-height: 1.5; margin-top: 1px; word-break: break-word; }
.cwf-comment-time { font-size: 10.5px; color: #ccc; margin-top: 2px; }
.cwf-comment-input-row {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 4px;
}
.cwf-comment-input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid rgba(119,0,187,0.2);
    border-radius: 20px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    color: #333;
    outline: none;
    transition: border-color 0.12s;
}
.cwf-comment-input:focus { border-color: rgba(119,0,187,0.5); }
.cwf-comment-input::placeholder { color: #ccc; }
.cwf-comment-send {
    padding: 7px 16px;
    background: #7700bb;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s;
}
.cwf-comment-send:hover { background: #5500aa; }
.cwf-comment-send:disabled { opacity: 0.5; cursor: default; }
.cwf-comments-empty { font-size: 12px; color: #ccc; text-align: center; padding: 8px 0; }
.cwf-comments-loading { font-size: 12px; color: #ccc; padding: 6px 0; }

/* Load more */
.cwf-load-more {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: none;
    border: 1.5px dashed rgba(119,0,187,0.3);
    border-radius: 12px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #7700bb;
    cursor: pointer;
    transition: background 0.12s;
}
.cwf-load-more:hover { background: rgba(119,0,187,0.06); }

/* ── Compose modal ── */
.cwf-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 98000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.cwf-modal-overlay.open { display: flex; }
.cwf-modal-box {
    background: #fff;
    border-radius: 22px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 16px 56px rgba(0,0,0,0.2);
    font-family: 'Lexend', sans-serif;
    overflow: hidden;
}
.cwf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0e6ff;
}
.cwf-modal-title  { font-size: 16px; font-weight: 800; color: #1a1a1a; }
.cwf-modal-close  { background: none; border: none; font-size: 16px; color: #bbb; cursor: pointer; padding: 4px 6px; border-radius: 6px; transition: color 0.1s, background 0.1s; }
.cwf-modal-close:hover { color: #555; background: #f5f5f5; }
.cwf-modal-body   { padding: 16px 20px; }
.cwf-modal-who    { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cwf-modal-uname  { font-size: 13px; font-weight: 800; color: #1a1a1a; }
.cwf-modal-textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1.5px solid rgba(119,0,187,0.2);
    border-radius: 12px;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    color: #333;
    resize: vertical;
    outline: none;
    transition: border-color 0.12s;
    box-sizing: border-box;
}
.cwf-modal-textarea:focus { border-color: rgba(119,0,187,0.55); }
.cwf-modal-textarea::placeholder { color: #ccc; }
.cwf-modal-img-previews {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.cwf-modal-img-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid rgba(119,0,187,0.2);
    position: relative;
}
.cwf-modal-img-del {
    position: absolute;
    top: -6px; right: -6px;
    width: 18px; height: 18px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-weight: 700;
}
.cwf-modal-img-slot {
    width: 80px; height: 80px;
    border-radius: 10px;
    position: relative;
    display: inline-block;
}
.cwf-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 18px;
    border-top: 1px solid #f5f0ff;
    gap: 12px;
}
.cwf-modal-img-lbl {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1.5px solid rgba(119,0,187,0.25);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #7700bb;
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
}
.cwf-modal-img-lbl:hover { background: rgba(119,0,187,0.07); }
.cwf-modal-char { font-size: 11px; color: #ccc; margin-right: auto; }
.cwf-modal-post-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #9900ee, #7700bb);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.12s;
    flex-shrink: 0;
    box-shadow: 0 3px 14px rgba(119,0,187,0.3);
}
.cwf-modal-post-btn:hover    { filter: brightness(1.1); }
.cwf-modal-post-btn:disabled { opacity: 0.5; cursor: default; filter: none; }

/* ── Poll post cards ─────────────────────────────────────────────────── */
.cwf-poll-question {
    font-size: 15px;
    font-weight: 700;
    color: #1a0030;
    margin: 6px 0 12px;
    line-height: 1.45;
}
html[data-theme="dark"] .cwf-poll-question,
html[data-theme="aura"] .cwf-poll-question { color: #e8d8ff; }

.cwf-poll-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

.cwf-poll-opt {
    position: relative;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid rgba(119,0,187,0.25);
    border-radius: 9px;
    background: rgba(147,51,234,0.04);
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a0030;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 0;
}
.cwf-poll-opt:hover:not(:disabled) { border-color: #9333ea; background: rgba(147,51,234,0.09); }
.cwf-poll-opt:disabled { cursor: default; }
.cwf-poll-opt.voted-for { border-color: #9333ea; background: rgba(147,51,234,0.1); }

/* Fill bar behind option text */
.cwf-poll-opt-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: rgba(147,51,234,0.12);
    border-radius: 7px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    z-index: -1;
}
.cwf-poll-opt-text { flex: 1; position: relative; z-index: 1; }
.cwf-poll-opt-pct  { font-size: 12px; font-weight: 700; color: #9333ea; position: relative; z-index: 1; min-width: 36px; text-align: right; }
.cwf-poll-checkmark { font-size: 14px; color: #9333ea; }

html[data-theme="dark"] .cwf-poll-opt,
html[data-theme="aura"] .cwf-poll-opt { color: #d8b8ff; border-color: rgba(168,85,247,0.25); background: rgba(147,51,234,0.07); }

.cwf-poll-meta {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.cwf-poll-meta .cwf-poll-ends { color: #f59e0b; font-weight: 600; }

/* ── Creator post cards ──────────────────────────────────────────────── */
.cwf-post.cwf-creator-post {
    border-color: rgba(119,0,187,0.35);
    background: linear-gradient(180deg, rgba(119,0,187,0.04) 0%, transparent 60%);
}
.cwf-creator-post-hdr {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(119,0,187,0.18);
}
.cwf-creator-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    background: linear-gradient(135deg, #9333ea, #7700bb);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.cwf-creator-exclusive-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(217,119,6,0.08));
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #d97706;
    margin-top: 8px;
}
html[data-theme="dark"] .cwf-creator-exclusive-banner,
html[data-theme="aura"] .cwf-creator-exclusive-banner { color: #fbbf24; }

/* ── Post chain bar ──────────────────────────────────────────────────── */
.cwf-chain-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(147,51,234,0.07);
    border: 1px solid rgba(147,51,234,0.22);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #7700bb;
    margin-bottom: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.cwf-chain-bar:hover { background: rgba(147,51,234,0.13); border-color: rgba(147,51,234,0.4); }
.cwf-chain-dot { font-size: 7px; color: #9333ea; }
.cwf-chain-label { flex: 1; }
.cwf-chain-arrow { font-size: 12px; opacity: 0.6; }
html[data-theme="dark"] .cwf-chain-bar,
html[data-theme="aura"] .cwf-chain-bar { color: #d8b4fe; background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.28); }
html[data-theme="dark"] .cwf-chain-bar:hover,
html[data-theme="aura"] .cwf-chain-bar:hover { background: rgba(168,85,247,0.18); }

/* ── Interactive posts ───────────────────────────────────────────────── */
.cwf-post.cwf-interactive-post {
    border-color: rgba(99,102,241,0.3);
    background: linear-gradient(to bottom, rgba(99,102,241,0.03), transparent);
}
html[data-theme="dark"] .cwf-post.cwf-interactive-post,
html[data-theme="aura"] .cwf-post.cwf-interactive-post { border-color: rgba(129,140,248,0.3); }

.cwf-interactive-badge {
    font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    color: #6366f1; border: 1px solid rgba(99,102,241,0.25); flex-shrink: 0;
}

/* Trivia */
.cwf-trivia-question { font-size: 15px; font-weight: 700; color: #1a0030; margin-bottom: 12px; line-height: 1.5; }
html[data-theme="dark"] .cwf-trivia-question,
html[data-theme="aura"] .cwf-trivia-question { color: #e8d8ff; }
.cwf-trivia-options  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cwf-trivia-opt {
    position: relative; width: 100%; padding: 11px 14px;
    border-radius: 10px; border: 1.5px solid rgba(99,102,241,0.25);
    background: rgba(99,102,241,0.04); text-align: left;
    font-family: 'Lexend', sans-serif; font-size: 13px; font-weight: 600; color: #333;
    cursor: pointer; transition: border-color 0.13s, background 0.13s;
    display: flex; align-items: center; gap: 10px;
}
.cwf-trivia-opt:hover:not(:disabled) { border-color: #6366f1; background: rgba(99,102,241,0.09); }
.cwf-trivia-opt:disabled { cursor: default; }
.cwf-trivia-opt.correct  { border-color: #16a34a; background: rgba(22,163,74,0.1); color: #15803d; }
.cwf-trivia-opt.wrong    { border-color: #dc2626; background: rgba(220,38,38,0.07); color: #b91c1c; }
.cwf-trivia-opt.revealed-correct { border-color: #16a34a; background: rgba(22,163,74,0.06); }
.cwf-trivia-opt-letter { width: 24px; height: 24px; border-radius: 6px; background: rgba(99,102,241,0.12);
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #6366f1; flex-shrink: 0; }
.cwf-trivia-opt.correct .cwf-trivia-opt-letter  { background: rgba(22,163,74,0.15); color: #15803d; }
.cwf-trivia-opt.wrong   .cwf-trivia-opt-letter  { background: rgba(220,38,38,0.1);  color: #b91c1c; }
.cwf-trivia-opt-img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.cwf-trivia-result { font-size: 12px; font-weight: 700; color: #888; margin-top: 2px; }

html[data-theme="dark"] .cwf-trivia-opt,
html[data-theme="aura"] .cwf-trivia-opt { color: #c8a8ff; border-color: rgba(129,140,248,0.2); background: rgba(99,102,241,0.06); }

/* Reaction Bar */
.cwf-reaction-prompt { font-size: 15px; font-weight: 700; color: #1a0030; margin-bottom: 12px; line-height: 1.5; }
html[data-theme="dark"] .cwf-reaction-prompt,
html[data-theme="aura"] .cwf-reaction-prompt { color: #e8d8ff; }
.cwf-reaction-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.cwf-reaction-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(99,102,241,0.2);
    background: rgba(99,102,241,0.04); cursor: pointer;
    font-family: 'Lexend', sans-serif; transition: border-color 0.13s, background 0.13s;
    min-width: 60px;
}
.cwf-reaction-btn:hover:not(:disabled) { border-color: #6366f1; background: rgba(99,102,241,0.1); }
.cwf-reaction-btn.reacted { border-color: #6366f1; background: rgba(99,102,241,0.12); }
.cwf-reaction-btn:disabled { cursor: default; opacity: 0.7; }
.cwf-reaction-emoji { font-size: 24px; }
.cwf-reaction-count { font-size: 11px; font-weight: 700; color: #6366f1; }
.cwf-reaction-bar-wrap { margin-top: 2px; }
.cwf-reaction-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-family: 'Lexend', sans-serif; font-size: 12px; }
.cwf-reaction-bar-emoji { font-size: 16px; width: 24px; flex-shrink: 0; }
.cwf-reaction-bar-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(99,102,241,0.12); overflow: hidden; }
.cwf-reaction-bar-fill  { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.cwf-reaction-bar-pct   { font-size: 11px; font-weight: 700; color: #6366f1; min-width: 32px; text-align: right; }

/* Score Challenge */
.cwf-score-prompt { font-size: 15px; font-weight: 700; color: #1a0030; margin-bottom: 12px; line-height: 1.5; }
html[data-theme="dark"] .cwf-score-prompt,
html[data-theme="aura"] .cwf-score-prompt { color: #e8d8ff; }
.cwf-score-labels { display: flex; justify-content: space-between; font-size: 11px; color: #888; margin-bottom: 10px; font-family: 'Lexend', sans-serif; }
.cwf-score-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cwf-score-btn {
    width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid rgba(99,102,241,0.25);
    background: rgba(99,102,241,0.04); font-family: 'Lexend', sans-serif; font-size: 13px;
    font-weight: 700; color: #6366f1; cursor: pointer; transition: background 0.12s, border-color 0.12s;
}
.cwf-score-btn:hover:not(:disabled) { background: rgba(99,102,241,0.12); border-color: #6366f1; }
.cwf-score-btn.scored { background: #6366f1; color: #fff; border-color: #6366f1; }
.cwf-score-btn:disabled { cursor: default; }
.cwf-score-avg { font-family: 'Lexend', sans-serif; font-size: 12px; color: #888; margin-top: 4px; }

/* Creator post — frame styles */
.cwf-creator-post.frame-gradient { border: 2px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 2px transparent; position: relative; }
.cwf-creator-post.frame-gradient::before { content:''; position:absolute; inset:-2px; border-radius:16px; background:linear-gradient(135deg,#f59e0b,#9333ea,#06b6d4); z-index:-1; }
.cwf-creator-post.frame-glow { box-shadow: 0 0 20px rgba(147,51,234,0.35), 0 0 40px rgba(99,102,241,0.15); border-color: rgba(147,51,234,0.5); }
.cwf-creator-post.frame-gold { border: 2.5px solid #d97706; box-shadow: 0 0 16px rgba(217,119,6,0.25); }

/* Creator post — font styles */
.cwf-creator-font-bold       .cwf-post-text { font-weight: 800; }
.cwf-creator-font-script     .cwf-post-text { font-style: italic; font-weight: 500; letter-spacing: 0.3px; }
.cwf-creator-font-typewriter .cwf-post-text { font-family: 'Courier New', Courier, monospace; }

/* ── Post chain connectors ───────────────────────────────────────────── */
.cwf-chain-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 10px;
    margin-bottom: -4px;
}
.cwf-chain-line-v {
    width: 2px;
    height: 22px;
    background: linear-gradient(to bottom, transparent, rgba(147,51,234,0.5));
    border-radius: 1px;
    margin-left: 19px;
    flex-shrink: 0;
}
.cwf-chain-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #9333ea;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(147,51,234,0.3);
    flex-shrink: 0;
    margin-left: 14px;
}
.cwf-chain-label {
    font-size: 11px;
    font-weight: 700;
    color: #9333ea;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cwf-chain-title { color: #6d28d9; }
.cwf-chain-part  { color: rgba(147,51,234,0.6); }
.cwf-chain-continue-btn {
    margin-top: 10px;
    padding: 7px 16px;
    background: transparent;
    border: 1.5px dashed rgba(119,0,187,0.35);
    border-radius: 8px;
    font-family: 'Lexend', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #9333ea;
    cursor: pointer;
    transition: background 0.13s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cwf-chain-continue-btn:hover { background: rgba(147,51,234,0.08); }

/* ── Createpost form: poll + creator + chain sections ────────────────── */
.cp-poll-opt-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}
.cp-poll-opt-input {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid rgba(119,0,187,0.2);
    border-radius: 9px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    color: #1a0030;
    background: transparent;
    transition: border-color 0.15s;
}
.cp-poll-opt-input:focus { outline: none; border-color: #9333ea; }
.cp-poll-opt-del {
    width: 28px; height: 28px;
    background: rgba(200,0,0,0.08);
    border: none;
    border-radius: 50%;
    color: #cc2222;
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.cp-poll-add-opt {
    background: transparent;
    border: 1.5px dashed rgba(119,0,187,0.3);
    border-radius: 9px;
    padding: 8px 16px;
    font-family: 'Lexend', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #9333ea;
    cursor: pointer;
    margin-top: 2px;
    transition: background 0.13s;
}
.cp-poll-add-opt:hover { background: rgba(119,0,187,0.07); }
.cp-poll-dur-row { display: flex; gap: 7px; flex-wrap: wrap; }
.cp-poll-dur-btn {
    flex: 1;
    min-width: 60px;
    padding: 8px 6px;
    border: 1.5px solid rgba(119,0,187,0.2);
    border-radius: 8px;
    background: transparent;
    font-family: 'Lexend', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    text-align: center;
    transition: all 0.13s;
}
.cp-poll-dur-btn.active { background: rgba(119,0,187,0.1); border-color: #9333ea; color: #7700bb; }

.cp-creator-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 4px;
}
.cp-creator-type-btn {
    padding: 9px 10px;
    border: 1.5px solid rgba(119,0,187,0.2);
    border-radius: 9px;
    background: transparent;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #777;
    cursor: pointer;
    text-align: center;
    transition: all 0.13s;
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 5px; line-height: 1.3;
}
.cp-creator-type-btn.active { background: rgba(119,0,187,0.1); border-color: #9333ea; color: #7700bb; }

.cp-chain-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(119,0,187,0.04);
    border: 1.5px dashed rgba(119,0,187,0.2);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}
html[data-theme="dark"] .cp-chain-toggle-row,
html[data-theme="aura"] .cp-chain-toggle-row { color: #c084fc; }
.cp-chain-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1.5px solid rgba(119,0,187,0.15);
    border-radius: 10px;
    background: rgba(119,0,187,0.03);
}
.cp-chain-type-row { display: flex; gap: 7px; }
.cp-chain-type-btn {
    flex: 1;
    padding: 7px 4px;
    border: 1.5px solid rgba(119,0,187,0.2);
    border-radius: 8px;
    background: transparent;
    font-family: 'Lexend', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    text-align: center;
    transition: all 0.13s;
}
.cp-chain-type-btn.active { background: rgba(119,0,187,0.1); border-color: #9333ea; color: #7700bb; }

html[data-theme="dark"] .cp-poll-opt-input,
html[data-theme="aura"] .cp-poll-opt-input { color: #d8b8ff; border-color: rgba(168,85,247,0.25); }
html[data-theme="dark"] .cp-creator-type-btn,
html[data-theme="aura"] .cp-creator-type-btn { color: #9977bb; }
html[data-theme="dark"] .cp-creator-type-btn.active,
html[data-theme="aura"] .cp-creator-type-btn.active { color: #c084fc; }

/* ═══════════════════════════════════════════
   CLIPS / SHORTS SECTION
═══════════════════════════════════════════ */
.cw-clips-section {
    max-width: 1100px;
    margin: 0 auto 4px;
    padding: 18px 20px 8px;
}
.cw-clips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cw-clips-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cw-clips-icon { font-size: 20px; line-height: 1; }
.cw-clips-title {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    font-family: 'Lexend', sans-serif;
}
.cw-clips-new-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    background: #7700bb;
    color: #fff;
    border-radius: 20px;
}
.cw-clips-view-all {
    font-size: 12px;
    font-weight: 700;
    color: #7700bb;
    text-decoration: none;
    font-family: 'Lexend', sans-serif;
    border: 1.5px solid rgba(119,0,187,0.35);
    border-radius: 8px;
    padding: 5px 13px;
    transition: background 0.12s;
}
.cw-clips-view-all:hover { background: rgba(119,0,187,0.07); }

/* ── Interactive feature banner ────────────────────────────────── */
.cw-clips-ive-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(125deg, #0d0520 0%, #1a0535 50%, #0a0218 100%);
    border-radius: 16px;
    border: 1.5px solid rgba(168,85,247,0.35);
    margin-bottom: 18px;
    box-shadow: 0 4px 24px rgba(119,0,187,0.18);
}
.cw-clips-ive-banner::before {
    content: '';
    position: absolute;
    top: -1px; left: -60%; right: -60%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(196,132,252,0.7), rgba(168,85,247,1), rgba(196,132,252,0.7), transparent);
    animation: ive-banner-scan 3s ease-in-out infinite;
}
@keyframes ive-banner-scan {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.cw-clips-ive-left { flex: 1; min-width: 0; }
.cw-clips-ive-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: rgba(168,85,247,0.2);
    border: 1px solid rgba(196,132,252,0.5);
    color: #c084fc;
    border-radius: 20px;
    margin-bottom: 8px;
    font-family: 'Lexend', sans-serif;
}
.cw-clips-ive-headline {
    font-size: 18px;
    font-weight: 800;
    color: #f0e6ff;
    font-family: 'Lexend', sans-serif;
    margin-bottom: 5px;
    line-height: 1.2;
}
.cw-clips-ive-sub {
    font-size: 12px;
    color: rgba(196,132,252,0.65);
    font-family: 'Lexend', sans-serif;
    line-height: 1.55;
    max-width: 380px;
}
.cw-clips-ive-gfx {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cw-clips-ive-choice {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cw-clips-ive-btn {
    padding: 7px 20px;
    border-radius: 20px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.cw-clips-ive-btn.opt-a { background: rgba(168,85,247,0.25); border: 1.5px solid rgba(168,85,247,0.6); color: #c084fc; }
.cw-clips-ive-btn.opt-b { background: rgba(37,99,235,0.2); border: 1.5px solid rgba(96,165,250,0.5); color: #93c5fd; }
.cw-clips-ive-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(168,85,247,0.4);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Lexend', sans-serif;
}

/* ── Clip card strip ───────────────────────────────────────────── */
.cw-clips-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.cw-clips-strip::-webkit-scrollbar { display: none; }
.cw-clip-card {
    flex-shrink: 0;
    width: 130px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
    transition: transform 0.15s;
}
.cw-clip-card:hover { transform: translateY(-3px); }
.cw-clip-thumb {
    width: 130px;
    height: 218px;
    border-radius: 12px;
    background: linear-gradient(160deg, #1a1a2e 0%, #2d1b4e 100%);
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,0.08);
}
.cw-clip-card.interactive .cw-clip-thumb {
    border-color: rgba(168,85,247,0.55);
    box-shadow: 0 0 14px rgba(119,0,187,0.3);
}
.cw-clip-dur {
    position: absolute;
    bottom: 7px;
    right: 7px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0,0,0,0.72);
    color: #fff;
    padding: 2px 6px;
    border-radius: 5px;
    font-family: 'Lexend', sans-serif;
}
.cw-clip-ive-chip {
    position: absolute;
    top: 7px;
    left: 7px;
    font-size: 9px;
    font-weight: 800;
    background: rgba(119,0,187,0.85);
    color: #fff;
    padding: 2px 7px;
    border-radius: 20px;
    font-family: 'Lexend', sans-serif;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}
.cw-clip-creator {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Lexend', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cw-clip-views {
    font-size: 10.5px;
    color: #888;
    font-family: 'Lexend', sans-serif;
    margin-top: -4px;
}

/* ════════════════════════════════
   HERO AREA (topbar → Top Today wrapper)
   Edit grid colour: rgba(100, 0, 180, 0.04)
   Edit gradient stops: the three colour values below
════════════════════════════════ */
.cw-hero-area {
    background:
        linear-gradient(rgba(100, 0, 180, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 0, 180, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, #fff5e6 0%, #f5eaff 40%, #ffffff 100%);
    background-size: 28px 28px, 28px 28px, 100% 100%;
    padding: 0 0 24px 0;
}

/* ════════════════════════════════
   TOP TODAY SECTION
════════════════════════════════ */
.cw-top-today {
    border: 3px dashed #e07800;
    border-radius: 10px;
    max-width: 1100px;
    margin: 12px auto;
    padding: 16px 40px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: 'Lexend', sans-serif;
}

.cw-top-today-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tt-title {
    font-size: 20px;
    font-weight: 600;
    color: #e07800;
}

.tt-date {
    font-size: 12px;
    color: #888;
}

.cw-top-today-cards {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.tt-card-number {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}

.tt-card {
    flex: 1;
    max-width: 480px;
    height: 160px;
    border-radius: 10px;
    border: 2px dashed #e07800;
    background: #6a006a;
}

.cw-top-today-vote {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.tt-vote-btn {
    color: #e07800;
    font-weight: 700;
    text-decoration: underline;
}

.tt-vote-score {
    color: #e07800;
    font-weight: 600;
}

/* ════════════════════════════════
   YOUR FEED SECTION
════════════════════════════════ */
.cw-feed-section {
    max-width: 1100px;
    margin: 16px auto;
    font-family: 'Lexend', sans-serif;
}

.cw-feed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.feed-header-line {
    flex: 1;
    border-top: 2px dashed #aaa;
}

.feed-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.feed-title {
    font-size: 18px;
    font-weight: 700;
    color: #2aa84a;
}

.feed-subtitle {
    font-size: 11px;
    color: #666;
    text-align: center;
}

.cw-feed-container {
    border: 2px dashed #333;
    border-radius: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
}

.feed-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}
.feed-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

.feed-card-thumb {
    width: 130px;
    height: 90px;
    border-radius: 8px;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: width 0.32s ease, height 0.32s ease;
}
.feed-card:hover .feed-card-thumb {
    width: 175px;
    height: 118px;
}

.feed-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.feed-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.feed-card-date {
    font-size: 11px;
    color: #777;
}

.feed-card-uploader {
    font-size: 12px;
    color: #333;
    border-bottom: 1px dashed #bbb;
    padding-bottom: 3px;
}

.feed-card-uploader span {
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.feed-card-views {
    font-size: 15px;
    font-weight: 800;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    overflow: visible;
}
.feed-card-views.views-great { color: #1a9a3a; }
.feed-card-views.views-bad   { color: #cc2200; }

/* Video performance tags (Promoted / Flagged) */
.feed-tag-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    margin-left: -3px;
}
.feed-tag-img {
    height: 49px;
    width: auto;
    object-fit: contain;
    display: block;
}
.feed-tag-tooltip {
    display: none;
    position: fixed;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
    padding: 9px 13px;
    border-radius: 9px;
    width: 230px;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}
.feed-tag-tooltip strong { font-weight: 700; }

.feed-card-likes {
    font-size: 11px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.vote-icon {
    height: 14px;
    width: auto;
    vertical-align: middle;
}

.feed-card-likes .like    { color: #2a8a2a; font-weight: 600; display: flex; align-items: center; gap: 3px; }
.feed-card-likes .dislike { color: #cc2200; font-weight: 600; display: flex; align-items: center; gap: 3px; }
.feed-card-likes .country { margin-left: auto; color: #555; }

.cw-feed-extend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 10px;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
}

.extend-label {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.extend-sub {
    font-size: 11px;
    color: #666;
}

.extend-dash {
    width: 180px;
    border-top: 2px dashed #999;
    margin: 4px 0;
}

.extend-arrow {
    font-size: 22px;
    color: #444;
    line-height: 1;
}

/* ════════════════════════════════
   RECOMMENDED SECTION
════════════════════════════════ */
.cw-rec-section {
    max-width: 1100px;
    margin: 16px auto 32px auto;
    font-family: 'Lexend', sans-serif;
}

.rec-title {
    font-size: 18px;
    font-weight: 700;
    color: #7700bb;
}

.cw-rec-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.feed-rec-card {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feed-rec-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.feed-rec-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease;
}
.feed-rec-card:hover .feed-rec-thumb {
    transform: scale(1.05);
}

.feed-rec-preview {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feed-rec-card:hover .feed-rec-preview {
    opacity: 1;
}

.preview-play {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    letter-spacing: 0.5px;
}

/* Shared muted video preview element inside any thumb */
.cwv-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}
.cwv-preview.is-playing {
    opacity: 1;
}

.feed-rec-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feed-rec-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.feed-rec-uploader {
    font-size: 11px;
    color: #333;
}

.feed-rec-uploader span {
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ── Uploader row: avatar + name link + featured badge ── */
.feed-uploader-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 1px 0;
}

.feed-uploader-avatar-sm {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: radial-gradient(circle at 35% 35%, #cc66cc, #6600aa);
}

.feed-uploader-link {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-uploader-link:hover { text-decoration: underline; color: #7700bb; }

.feed-uploader-badge-sm {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

html[data-theme="dark"] .feed-uploader-link,
html[data-theme="aura"] .feed-uploader-link { color: #c0a0e0; }
html[data-theme="dark"] .feed-uploader-link:hover,
html[data-theme="aura"] .feed-uploader-link:hover { color: #e0c0ff; }

.feed-rec-views {
    font-size: 13px;
    font-weight: 800;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 20px;
    overflow: visible;
}
.feed-rec-views.views-great { color: #1a9a3a; }
.feed-rec-views.views-bad   { color: #cc2200; }

.trend-icon {
    height: 22px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Avatar */
.cw-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.cw-avatar {
    width: 68px;            /* change this to resize the avatar */
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #cc66cc, #6600aa);
    border: 3px solid #444;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

.cw-avatar:hover {
    box-shadow: 0 0 0 3px rgba(119, 0, 187, 0.35);
}

/* ── Live Status avatar rings ─────────────────────────────────────────────── */
.cw-avatar-online {
    box-shadow: 0 0 0 2.5px #22c55e, 0 0 10px 3px rgba(34,197,94,.50) !important;
    border-color: transparent !important;
    animation: cw-online-pulse 2.5s ease-in-out infinite;
}
.cw-avatar-offline {
    box-shadow: 0 0 0 2px rgba(200,200,220,.45) !important;
    border-color: transparent !important;
}
@keyframes cw-online-pulse {
    0%, 100% { box-shadow: 0 0 0 2.5px #22c55e, 0 0 10px 3px rgba(34,197,94,.50); }
    50%       { box-shadow: 0 0 0 2.5px #22c55e, 0 0 16px 6px rgba(34,197,94,.28); }
}

/* Profile live status bar */
.profile-live-status-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
}
.profile-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.profile-live-dot.online {
    background: #22c55e;
    box-shadow: 0 0 6px 2px rgba(34,197,94,.60);
    animation: live-pulse 1.8s ease-in-out infinite;
}
.profile-live-dot.offline {
    background: rgba(200,200,220,.5);
    box-shadow: none;
}
.profile-live-label {
    font-weight: 700;
    color: #555;
}
.profile-live-label.online { color: #16a34a; }
.profile-live-time { color: #aaa; font-weight: 500; }

@media (prefers-color-scheme: dark) {
    .profile-live-label { color: #ccc; }
    .profile-live-label.online { color: #4ade80; }
    .profile-live-time { color: #666; }
}

/* Avatar dropdown menu */
.cw-avatar-menu {
    position: fixed;
    z-index: 1000;
    background: #fff;
    border: 2px dashed #7700bb;
    border-radius: 10px;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.cw-avatar-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.avatar-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    border-bottom: 1px dashed #e0d0f0;
    transition: background 0.12s ease, color 0.12s ease;
}

.avatar-menu-item:last-child {
    border-bottom: none;
}

.avatar-menu-item:hover {
    background: #f5eaff;
    color: #7700bb;
}


/* ════════════════════════════════
   TRENDING PAGE
════════════════════════════════ */
.cw-trending-page {
    max-width: 1100px;
    margin: 16px auto 32px auto;
    font-family: 'Lexend', sans-serif;
}

.cw-trending-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.trending-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #e07800;
}

.cw-trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trend-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    transition: box-shadow 0.2s ease;
}

.trend-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.trend-rank {
    font-size: 26px;
    font-weight: 800;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}

.trend-rank-1  { color: #d4a800; }
.trend-rank-2  { color: #888; }
.trend-rank-3  { color: #b05a2a; }
.trend-rank-other { color: #444; font-size: 20px; }

/* ── Period tabs ── */
.trending-period-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 18px;
    font-family: 'Lexend', sans-serif;
}
.trend-period-tab {
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: 'Lexend', sans-serif;
    transition: color 0.15s, border-color 0.15s;
}
.trend-period-tab:hover { color: #e07800; }
.trend-period-tab.active { color: #e07800; border-bottom-color: #e07800; }

.trending-period-panel { display: none; }
.trending-period-panel.active { display: flex; flex-direction: column; gap: 12px; }

/* ── Leaderboard promo banner ── */
.trending-lb-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(120deg, #1a0030 0%, #3d006b 60%, #6600aa 100%);
    border-radius: 12px;
    padding: 18px 28px;
    margin-bottom: 20px;
}
.tlb-info { display: flex; flex-direction: column; gap: 5px; }
.tlb-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #cc99ff; text-transform: uppercase; font-family: 'Lexend', sans-serif; }
.tlb-title { font-size: 19px; font-weight: 800; color: #fff; font-family: 'Lexend', sans-serif; }
.tlb-sub { font-size: 12px; color: #ccaaff; font-family: 'Lexend', sans-serif; }
.tlb-btn {
    padding: 11px 22px;
    background: #e07800;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Lexend', sans-serif;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
}
.tlb-btn:hover { background: #c06000; transform: translateY(-1px); }

/* link reset for trend-card */
a.trend-card { text-decoration: none; color: inherit; display: flex; }

.trend-thumb {
    width: 200px;
    height: 112px;
    border-radius: 8px;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    flex-shrink: 0;
    cursor: pointer;
}

.trend-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.trend-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.trend-views {
    font-size: 15px;
    font-weight: 800;
    color: #1a9a3a;
}

.perf-line {
    width: 100%;
    border: none;
    border-top: 2px dashed #aaa;
    margin: 3px 0;
}

.perf-good    { border-color: #1a9a3a; }
.perf-bad     { border-color: #cc2200; }
.perf-neutral { border-color: #bbb; }

/* Ratio bar — profile video cards */
.perf-ratio-wrap { margin-top: 5px; }
.perf-bar-track  { height: 5px; background: #f0e6ff; border-radius: 3px; overflow: hidden; margin-bottom: 3px; }
.perf-bar-fill   { height: 100%; background: linear-gradient(90deg, #1a9a3a, #5ac85a); border-radius: 3px; }
.perf-bar-labels { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; }
.perf-bar-up     { color: #1a9a3a; }
.perf-bar-down   { color: #cc2200; }

/* Ratio bar — ChannelContentHub table */
.hub-views-cell    { font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.hub-ratio-bar-wrap { min-width: 90px; }
.hub-ratio-bar     { height: 5px; background: #eee; border-radius: 3px; overflow: hidden; margin-bottom: 3px; }
.hub-ratio-fill    { height: 100%; background: linear-gradient(90deg, #1a9a3a, #5ac85a); border-radius: 3px; }
.hub-ratio-labels  { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; }
.hub-ratio-up      { color: #1a9a3a; }
.hub-ratio-down    { color: #cc2200; }

/* Performance view count coloring — green for good, red for bad */
.views-good { color: #1a9a3a !important; font-weight: 800; }
.views-bad  { color: #cc2200 !important; }

/* Profile Shows tab — grayed out when no shows exist */
.profile-tab-dim { color: #ccc !important; cursor: default; border-bottom-color: transparent !important; }
.profile-tab-dim:hover { color: #ccc !important; }


/* ════════════════════════════════
   LEADERBOARD PAGE
════════════════════════════════ */
.cw-leaderboard-page {
    max-width: 900px;
    margin: 0 auto 48px auto;
    font-family: 'Lexend', sans-serif;
}

.lb-hero {
    background: linear-gradient(135deg, #0e001f 0%, #2d0055 50%, #6600aa 100%);
    border-radius: 0 0 16px 16px;
    padding: 36px 40px 30px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.lb-hero-crown { font-size: 44px; line-height: 1; }
.lb-hero-title { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.5px; font-family: 'Lexend', sans-serif; }
.lb-hero-sub   { font-size: 13px; color: #cc99ff; font-weight: 500; font-family: 'Lexend', sans-serif; }
.lb-hero-stats { display: flex; gap: 40px; margin-top: 14px; }
.lb-hero-stat  { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lb-hero-stat-val { font-size: 22px; font-weight: 800; color: #fff; font-family: 'Lexend', sans-serif; }
.lb-hero-stat-lbl { font-size: 10px; color: #bb88ff; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-family: 'Lexend', sans-serif; }
.lb-hero-stat-sub { font-size: 9px; color: rgba(255,255,255,0.45); font-style: italic; margin-top: 1px; text-align: center; max-width: 140px; line-height: 1.3; }

/* Leaderboard overlay (unavailable / event) */
.lb-overlay-wrap {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
}
.lb-overlay-box {
    background: #fff;
    border-radius: 20px;
    padding: 48px 44px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(119,0,187,0.12);
    border: 2px dashed #ccaaee;
    font-family: 'Lexend', sans-serif;
}
.lb-overlay-icon { font-size: 52px; margin-bottom: 14px; }
.lb-overlay-title { font-size: 22px; font-weight: 800; color: #1a0030; margin-bottom: 8px; }
.lb-overlay-msg { font-size: 14px; color: #666; line-height: 1.6; }
.lb-countdown {
    display: none;
    margin-top: 22px;
    font-size: 26px;
    font-weight: 800;
    color: #7700bb;
    letter-spacing: 3px;
}
.lb-loading {
    text-align: center;
    padding: 52px 20px;
    color: #9933cc;
    font-size: 14px;
    font-family: 'Lexend', sans-serif;
    opacity: 0.7;
}
.lb-empty {
    text-align: center;
    padding: 52px 20px;
    color: #888;
    font-size: 14px;
    font-family: 'Lexend', sans-serif;
}

.lb-cat-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}
.lb-cat-tab {
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: 'Lexend', sans-serif;
    transition: color 0.15s, border-color 0.15s;
}
.lb-cat-tab:hover  { color: #7700bb; }
.lb-cat-tab.active { color: #7700bb; border-bottom-color: #7700bb; }
.lb-cat-panel        { display: none; flex-direction: column; gap: 8px; }
.lb-cat-panel.active { display: flex; }

.lb-entry {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.lb-entry:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); border-color: #c0a0e0; }
.lb-entry-gold   { border-color: #d4a800; background: linear-gradient(90deg, #fffbe8, #fff); }
.lb-entry-silver { border-color: #aaa; background: linear-gradient(90deg, #f5f5f5, #fff); }
.lb-entry-bronze { border-color: #b05a2a; background: linear-gradient(90deg, #fff5ee, #fff); }
.lb-entry-gold:hover   { box-shadow: 0 4px 18px rgba(212,168,0,0.25); border-color: #d4a800; }
.lb-entry-silver:hover { box-shadow: 0 4px 18px rgba(140,140,140,0.2); border-color: #aaa; }
.lb-entry-bronze:hover { box-shadow: 0 4px 18px rgba(176,90,42,0.2); border-color: #b05a2a; }

.lb-rank { font-size: 22px; font-weight: 800; width: 40px; text-align: center; flex-shrink: 0; color: #444; }
.lb-rank-1 { color: #d4a800; font-size: 26px; }
.lb-rank-2 { color: #888;    font-size: 24px; }
.lb-rank-3 { color: #b05a2a; font-size: 24px; }

.lb-medal { font-size: 22px; flex-shrink: 0; width: 26px; text-align: center; line-height: 1; }

.lb-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, #7700bb, #3d006b);
    color: #fff; font-size: 18px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.lb-avatar-orange { background: linear-gradient(135deg, #e07800, #a04000); }
.lb-avatar-teal   { background: linear-gradient(135deg, #009999, #006060); }
.lb-avatar-blue   { background: linear-gradient(135deg, #0066dd, #003380); }
.lb-avatar-pink   { background: linear-gradient(135deg, #cc0066, #800040); }
.lb-avatar-green  { background: linear-gradient(135deg, #1a9a3a, #0a5020); }
.lb-avatar-red    { background: linear-gradient(135deg, #cc2200, #800000); }

.lb-details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-name    { font-size: 14px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-meta    { font-size: 12px; color: #888; font-weight: 500; }

.lb-stat-block { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 1px; }
.lb-stat-value { font-size: 16px; font-weight: 800; color: #7700bb; }
.lb-stat-label { font-size: 10px; font-weight: 600; color: #aaa; text-transform: uppercase; letter-spacing: 0.6px; }

.lb-thumb {
    width: 120px; height: 68px; border-radius: 6px;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    flex-shrink: 0;
}
.lb-thumb-alt { background: radial-gradient(circle at 65% 35%, #1a6a3a, #0a3a2a); }
.lb-thumb-blue { background: radial-gradient(circle at 35% 65%, #1a3a9a, #0a1a5a); }
.lb-thumb-orange { background: radial-gradient(circle at 50% 40%, #c05800, #6a2800); }

.lb-you-badge {
    background: #7700bb; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 4px;
    margin-left: 8px; vertical-align: middle;
    font-family: 'Lexend', sans-serif;
}
.lb-updated {
    text-align: center; font-size: 11px; color: #bbb;
    margin-top: 24px; padding-bottom: 8px;
    font-family: 'Lexend', sans-serif;
}

/* ════════════════════════════════
   MARKET PAGE
════════════════════════════════ */
.cw-market-page {
    max-width: 1100px;
    margin: 20px auto 40px auto;
    font-family: 'Lexend', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Market search + filter button row */
.cw-market-search-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 6px 16px;
    background: #fff;
    flex: 1;
}

.market-filter-btn {
    background: #fff;
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 7px 18px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.market-filter-btn:hover {
    background: #f5f5f5;
}

/* Filter tag strip */
.market-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.market-filter-tag {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    border: 2px dashed #bbb;
    border-radius: 20px;
    padding: 4px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.market-filter-tag:hover {
    border-color: #7700bb;
    color: #7700bb;
}

.market-filter-tag.tag-active {
    border-color: #7700bb;
    color: #7700bb;
    background: #f3eaff;
}

/* Section header */
.cw-market-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Work-in-progress overlay for sections not ready yet */
.market-frozen-section { position: relative; }
.market-frozen-section .market-section-header,
.market-frozen-section .market-grid {
    filter: blur(3px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}
.market-wip-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.market-wip-overlay-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px dashed #7700bb;
    border-radius: 14px;
    padding: 24px 32px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.market-wip-overlay-title { font-size: 18px; font-weight: 800; color: #1a0030; font-family: 'Lexend', sans-serif; }
.market-wip-overlay-desc { font-size: 12.5px; color: #777; max-width: 280px; line-height: 1.6; font-family: 'Lexend', sans-serif; }

/* ── Generic "work in progress" treatment — a static banner (reuses the
   market-wip-overlay-box look) sitting above real, untouched markup that's
   just frozen (blurred/dimmed/non-interactive). Keeps the real card
   format in the DOM and ready to re-enable later: drop the wip-banner-row
   block and un-wrap wip-frozen-content to restore. ── */
.wip-banner-row { display: flex; justify-content: center; padding: 10px 0 18px; }
.wip-frozen-content {
    filter: blur(3px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.market-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #7700bb;
    white-space: nowrap;
}

/* Grids */
.market-grid {
    display: grid;
    gap: 14px;
}

.market-grid-frames  { grid-template-columns: repeat(6, 1fr); }
.market-grid-banners { grid-template-columns: repeat(4, 1fr); }

/* Item card */
.market-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.market-card:hover {
    box-shadow: 0 4px 16px rgba(119, 0, 187, 0.15);
    transform: translateY(-2px);
}

/* Thumbnails */
.market-thumb {
    width: 100%;
}

.market-thumb-frame {
    aspect-ratio: 1;
    background: radial-gradient(circle at 35% 35%, #cc66cc, #4a0060);
    border-radius: 50%;
    width: 70%;
    margin: 16px auto 10px auto;
    border: 4px solid #9900cc;
}

.market-thumb-banner {
    aspect-ratio: 4 / 1;
    background: linear-gradient(135deg, #2a006a, #9a009a, #2a006a);
}

/* Card info */
.market-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 12px 10px;
    width: 100%;
    box-sizing: border-box;
}

.market-card-name {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    text-align: center;
}

.market-card-price {
    font-size: 11px;
    font-weight: 600;
    color: #c8a800;
}

.market-card-btn {
    background: #7700bb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.market-card-btn:hover {
    background: #5500aa;
}


/* ════════════════════════════════
   LIVESTREAMS PAGE
════════════════════════════════ */
.cw-live-page {
    max-width: 1100px;
    margin: 20px auto 40px auto;
    font-family: 'Lexend', sans-serif;
}

.cw-live-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.live-stream-card {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.live-stream-card:hover {
    box-shadow: 0 6px 20px rgba(221, 0, 0, 0.14);
    transform: translateY(-2px);
}

.live-stream-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px;
    box-sizing: border-box;
}

.live-stream-badge {
    background: #dd0000;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.8px;
}

.live-stream-viewers-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Lexend', sans-serif;
    padding: 3px 8px;
    border-radius: 4px;
}

.live-stream-info {
    padding: 10px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.live-stream-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.live-stream-cat {
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}

/* ════════════════════════════════
   RETRO WEB 2.0 GRID (Groups WIP + Market WIP)
   Dark purple base, bright neon grid, glowing core
════════════════════════════════ */
@keyframes retro-grid-scroll {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 50px 50px, 50px 50px; }
}

.wip-retro {
    background-color: #07001c !important;
    background-image:
        linear-gradient(rgba(160, 0, 255, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 0, 255, 0.55) 1px, transparent 1px) !important;
    background-size: 50px 50px, 50px 50px !important;
    animation: retro-grid-scroll 1.8s linear infinite !important;
    position: relative;
}

.wip-retro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 42%, rgba(120, 0, 255, 0.38) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.wip-retro > * { position: relative; z-index: 1; }

/* Override box/disclaimer to be readable on dark background */
.wip-retro .cw-wip-box {
    background: rgba(10, 0, 35, 0.88);
    border: none;
}

.wip-retro .wip-top-dash,
.wip-retro .wip-bottom-dash {
    border-color: rgba(160, 0, 255, 0.8);
}

.wip-retro .wip-content {
    border-color: rgba(160, 0, 255, 0.8);
}

.wip-retro .wip-label { color: #cc88ff; }
.wip-retro .wip-desc  { color: #aaa; }

.wip-retro .wip-disclaimer {
    background: rgba(10, 0, 35, 0.82);
    border-color: rgba(160, 0, 255, 0.5);
    color: #aaa;
}

.wip-retro .wip-disclaimer strong { color: #cc88ff; }

/* ────── Market WIP grid — light purple, fits market style ────── */
.wip-market {
    background-color: #faf5ff !important;
    background-image:
        linear-gradient(rgba(119, 0, 187, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(119, 0, 187, 0.11) 1px, transparent 1px) !important;
    background-size: 44px 44px, 44px 44px !important;
    animation: grid-drift 2.6s linear infinite !important;
    position: relative;
}

.wip-market::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(119, 0, 187, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.wip-market > * { position: relative; z-index: 1; }

.wip-market .cw-wip-box        { background: rgba(255, 255, 255, 0.93); border: none; }
.wip-market .wip-top-dash,
.wip-market .wip-bottom-dash   { border-color: #7700bb; }
.wip-market .wip-content       { border-color: #7700bb; }
.wip-market .wip-label         { color: #7700bb; }
.wip-market .wip-tag           { border-color: #7700bb; color: #7700bb; background: rgba(119,0,187,0.07); }
.wip-market .wip-desc          { color: #555; }
.wip-market .wip-disclaimer    { background: rgba(255,255,255,0.9); border-color: #9933cc; color: #555; }
.wip-market .wip-disclaimer strong { color: #7700bb; }

.market-wip-outer {
    margin-top: 40px;
    width: 100%;
}

/* ════════════════════════════════
   WORK IN PROGRESS PAGE
════════════════════════════════ */
@keyframes grid-drift {
    0%   { background-position: 0 0; }
    100% { background-position: 48px 48px; }
}

.cw-wip-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    font-family: 'Lexend', sans-serif;
    background-image:
        linear-gradient(rgba(180, 0, 0, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 0, 0, 0.18) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: grid-drift 2.4s linear infinite;
    gap: 24px;
    padding: 40px 20px;
}

.cw-wip-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 420px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    overflow: hidden;
}

.wip-top-dash,
.wip-bottom-dash {
    width: 100%;
    border-top: 3px dashed #aaa;
}

.wip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 36px 40px;
    border-left: 3px dashed #aaa;
    border-right: 3px dashed #aaa;
    width: 100%;
    box-sizing: border-box;
}

.wip-label {
    font-size: 32px;
    font-weight: 800;
    color: #000000;
}

.wip-tag {
    font-size: 14px;
    font-weight: 700;
    color: #e07800;
    border: 2px dashed #e07800;
    border-radius: 6px;
    padding: 4px 14px;
    letter-spacing: 0.5px;
}

.wip-desc {
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.7;
    margin: 0;
}

.wip-disclaimer {
    width: 420px;
    background: rgba(255, 255, 255, 0.88);
    border: 2px dashed #999;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 11px;
    color: #555;
    text-align: center;
    line-height: 1.7;
    font-family: 'Lexend', sans-serif;
}

.wip-disclaimer strong {
    color: #333;
    font-weight: 700;
}


/* ════════════════════════════════
   PROFILE PAGE
════════════════════════════════ */
.cw-profile-page {
    max-width: 1100px;
    margin: 0 auto 48px auto;
    font-family: 'Lexend', sans-serif;
}

/* Banner */
.profile-banner {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2a006a 0%, #9a009a 50%, #4a0060 100%);
    border-bottom: 3px dashed #7700bb;
}

/* Profile header — two-row layout so bio never pushes into the banner */
.profile-header {
    padding: 0 24px 20px 24px;
    border-bottom: 2px dashed #ddd;
}

/* Row: avatar | identity beside it | stats/actions — all below the banner */
.profile-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0 16px;
}

.profile-avatar-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #cc66cc, #6600aa);
    border: 4px solid #fff;
    outline: 3px solid #7700bb;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Identity — beside the avatar, grows downward */
.profile-identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.profile-username-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-username {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
}

.profile-handle {
    font-size: 12px;
    color: #777;
    font-weight: 400;
}

.profile-tags {
    display: flex;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: wrap;
    min-height: 24px;
}

.profile-tag {
    font-size: 10px;
    font-weight: 700;
    color: #7700bb;
    border: 2px dashed #7700bb;
    border-radius: 20px;
    padding: 2px 10px;
    background: rgba(119, 0, 187, 0.06);
}

.profile-bio {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
    max-width: 380px;
    line-height: 1.5;
}

/* Stats + actions (right side) */
.profile-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.profile-stat-row {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px dashed #ccc;
    border-radius: 10px;
    overflow: hidden;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 8px 18px;
}

.profile-stat-sep {
    width: 1px;
    height: 40px;
    background: #ddd;
    flex-shrink: 0;
}

.profile-stat-num {
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

.profile-stat-score {
    color: #c8a800;
}

.profile-stat-label {
    font-size: 10px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Members stat — emphasized */
.profile-stat-members {
    background: linear-gradient(160deg, #fff5ee 0%, #fffcfa 100%);
    border-radius: 8px;
    border: 1px solid rgba(224,120,0,0.2);
    padding: 10px 24px;
}

.profile-stat-members .profile-stat-num {
    font-size: 22px;
    color: #e07800;
    text-shadow: 0 0 14px rgba(224,120,0,0.22);
}

.profile-stat-members .profile-stat-label {
    color: #e07800;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.6px;
}

/* ── Info bars — flex slot container below profile header ─────── */
.profile-info-bars {
    display: flex;
    align-items: stretch;
    border-bottom: 1px dashed #e0d0f5;
}

.profile-info-slot {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: 'Lexend', sans-serif;
}

/* Divider between slots when both are visible */
.profile-info-bars-split .profile-info-slot + .profile-info-slot {
    border-left: 1px dashed #e0d0f5;
}

/* Popcoins slot specific styles */
.profile-pc-bar-icon {
    width: 40px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(202,138,4,0.35));
}
.profile-pc-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    white-space: nowrap;
}
.profile-pc-bar-count {
    font-size: 14px;
    font-weight: 800;
    color: #b45309;
    white-space: nowrap;
}

/* Dark/Aura overrides for info bars */
html[data-theme="dark"] .profile-info-bars,
html[data-theme="aura"] .profile-info-bars { border-bottom-color: #3a1060 !important; }
html[data-theme="dark"] .profile-info-bars-split .profile-info-slot + .profile-info-slot,
html[data-theme="aura"] .profile-info-bars-split .profile-info-slot + .profile-info-slot {
    border-left-color: #3a1060 !important;
}
html[data-theme="dark"] .profile-orbs-label,
html[data-theme="aura"] .profile-orbs-label { color: #9977bb !important; }
html[data-theme="dark"] .profile-orbs-count,
html[data-theme="aura"] .profile-orbs-count { color: #c088ee !important; }
html[data-theme="dark"] .profile-orbs-breakdown,
html[data-theme="aura"] .profile-orbs-breakdown { color: #7755aa !important; }
html[data-theme="dark"] .profile-pc-bar-label,
html[data-theme="aura"] .profile-pc-bar-label { color: #d97706 !important; }
html[data-theme="dark"] .profile-pc-bar-count,
html[data-theme="aura"] .profile-pc-bar-count { color: #fbbf24 !important; }

/* Action buttons */
.profile-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Orbs row (now a slot inside .profile-info-bars) */
.profile-orbs-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: linear-gradient(90deg, #f5f0ff, #fdf8ff);
    border: 1px solid #d4b0ff;
    border-radius: 8px;
    font-family: 'Lexend', sans-serif;
}
.profile-orbs-img-icon  { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.profile-orbs-icon      { font-size: 17px; color: #7700bb; line-height: 1; }
.profile-orbs-label     { font-size: 12px; font-weight: 600; color: #555; white-space: nowrap; }
.profile-orbs-count     { font-size: 14px; font-weight: 800; color: #7700bb; white-space: nowrap; }
.profile-orbs-breakdown { font-size: 11px; color: #999; white-space: nowrap; }

.profile-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    border-radius: 7px;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.profile-btn-memberized {
    background: linear-gradient(135deg, #e07800 0%, #cc5500 100%);
    color: #fff;
    border: 2px solid #e07800;
    font-size: 14px;
    padding: 10px 22px;
    box-shadow: 0 3px 12px rgba(224, 120, 0, 0.4);
    letter-spacing: 0.3px;
}

.profile-btn-memberized:hover {
    background: linear-gradient(135deg, #cc6600 0%, #aa4400 100%);
    box-shadow: 0 5px 18px rgba(224, 120, 0, 0.55);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   MEMBERIZE MODAL
══════════════════════════════════════════ */
.mz-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.58);
    z-index: 99000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
    backdrop-filter: blur(4px);
}
.mz-overlay.open { opacity: 1; }
.mz-modal {
    background: #fff;
    border-radius: 22px;
    padding: 28px 26px 24px;
    max-width: 430px;
    width: 100%;
    position: relative;
    font-family: 'Lexend', sans-serif;
    box-shadow: 0 16px 56px rgba(0,0,0,0.22);
    transform: translateY(18px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.34,1.4,0.64,1);
}
.mz-overlay.open .mz-modal { transform: none; }

.mz-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 15px;
    color: #bbb;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.1s, background 0.1s;
}
.mz-close:hover { color: #666; background: #f0f0f0; }

.mz-header { text-align: center; margin-bottom: 18px; }
.mz-star-anim {
    font-size: 42px;
    display: block;
    margin-bottom: 8px;
    animation: mz-pop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes mz-pop {
    from { transform: scale(0) rotate(-25deg); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.mz-title { font-size: 19px; font-weight: 800; color: #1a1a1a; }
.mz-creator-name { color: #7700bb; }

.mz-free-banner {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(119,0,187,0.07) 0%, rgba(80,0,140,0.04) 100%);
    border: 1.5px solid rgba(119,0,187,0.2);
    border-radius: 13px;
    padding: 13px 15px;
    margin-bottom: 20px;
}
.mz-free-icon { font-size: 24px; flex-shrink: 0; margin-top: 1px; }
.mz-free-title { font-size: 13px; font-weight: 800; color: #7700bb; margin-bottom: 3px; }
.mz-free-desc  { font-size: 12px; color: #555; line-height: 1.55; }
.mz-free-desc strong { color: #7700bb; }

.mz-section { margin-bottom: 18px; }
.mz-section-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #bbb;
    margin-bottom: 11px;
}
.mz-perks-list { display: flex; flex-direction: column; gap: 10px; }
.mz-perk       { display: flex; align-items: center; gap: 11px; }
.mz-perk-icon  { font-size: 19px; flex-shrink: 0; }
.mz-perk-text  { font-size: 13px; color: #333; font-weight: 500; }
.mz-loading    { font-size: 12px; color: #ccc; }

.mz-tiers-list { display: flex; flex-direction: column; gap: 10px; }
.mz-tier-card {
    border-left: 4px solid #7700bb;
    padding: 10px 14px;
    background: rgba(119,0,187,0.04);
    border-radius: 0 10px 10px 0;
}
.mz-tier-name  { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.mz-tier-perks {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mz-actions { display: flex; gap: 10px; }
.mz-confirm-btn {
    flex: 1;
    padding: 13px;
    background: linear-gradient(135deg, #9900ee, #7700bb);
    color: #fff;
    border: none;
    border-radius: 13px;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.12s;
    box-shadow: 0 4px 16px rgba(119,0,187,0.35);
}
.mz-confirm-btn:hover    { filter: brightness(1.12); }
.mz-confirm-btn:disabled { opacity: 0.6; cursor: default; filter: none; }
.mz-cancel-btn {
    padding: 13px 18px;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 13px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    transition: border-color 0.12s, color 0.12s;
}
.mz-cancel-btn:hover { border-color: #bbb; color: #666; }

/* Un-memberize confirm variant */
.mz-um-modal { text-align: center; padding: 32px 28px 26px; }
.mz-um-icon  { font-size: 38px; margin-bottom: 12px; }
.mz-um-title { font-size: 17px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; font-family: 'Lexend', sans-serif; }
.mz-um-desc  { font-size: 13px; color: #777; line-height: 1.6; font-family: 'Lexend', sans-serif; }
.mz-um-confirm-btn {
    padding: 13px 20px;
    background: none;
    border: 1.5px solid rgba(239,68,68,0.4);
    color: #ef4444;
    border-radius: 13px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    white-space: nowrap;
}
.mz-um-confirm-btn:hover    { background: rgba(239,68,68,0.08); border-color: #ef4444; }
.mz-um-confirm-btn:disabled { opacity: 0.5; cursor: default; }

.profile-btn-follow {
    background: #7700bb;
    color: #fff;
    border: 2px solid #7700bb;
}

.profile-btn-follow:hover {
    background: #5500aa;
    border-color: #5500aa;
}

.profile-btn-manage {
    background: linear-gradient(135deg, #7700bb 0%, #5500aa 100%);
    color: #fff;
    border: 2px solid #7700bb;
    font-size: 14px;
    padding: 10px 22px;
    box-shadow: 0 3px 12px rgba(119, 0, 187, 0.35);
}

.profile-btn-manage:hover {
    background: linear-gradient(135deg, #5500aa 0%, #440088 100%);
    box-shadow: 0 5px 18px rgba(119, 0, 187, 0.5);
    transform: translateY(-1px);
}

.profile-btn-message {
    background: #fff;
    color: #333;
    border: 2px dashed #888;
}

.profile-btn-message:hover {
    border-color: #7700bb;
    color: #7700bb;
}

.profile-btn-more {
    background: #fff;
    color: #555;
    border: 2px dashed #bbb;
    padding: 7px 12px;
    font-size: 14px;
    letter-spacing: 2px;
}

.profile-btn-more:hover {
    border-color: #888;
    color: #222;
}

/* ── Three-dots dropdown ─────────────────────────────────────── */
.profile-more-wrap { position: relative; }
.profile-more-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 12px;
    min-width: 200px;
    z-index: 300;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.profile-more-dropdown.open { display: block; }
.profile-more-item {
    display: block;
    width: 100%;
    padding: 12px 18px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px dashed #eee;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}
.profile-more-item:last-child { border-bottom: none; }
.profile-more-item:hover { background: #f5f0ff; color: #7700bb; }

/* ── Trophy row (inline beside display name) ─────────────────── */
.profile-trophy-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}
.profile-trophy-slot {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.15s;
    cursor: pointer;
}
.profile-trophy-slot.filled { display: inline-flex; }
.profile-trophy-slot.filled:hover { transform: translateY(-3px); }
.profile-trophy-slot-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Creator — glow on image only, no background */
.profile-trophy-slot.trophy-creator .profile-trophy-slot-img {
    filter: drop-shadow(0 0 8px rgba(255,60,0,0.9)) drop-shadow(0 0 3px rgba(255,120,40,0.6));
}

/* Hover tooltip */
.trophy-slot-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #100010;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    min-width: 170px;
    max-width: 230px;
    z-index: 600;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
    pointer-events: none;
    font-family: 'Lexend', sans-serif;
    white-space: normal;
}
.profile-trophy-slot:hover .trophy-slot-tooltip { display: block; }
.trophy-slot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #100010;
}
.trophy-tooltip-name {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}
.trophy-tooltip-rarity {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.trophy-tooltip-desc {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    line-height: 1.55;
}

/* ── Trophy manager modal ────────────────────────────────────── */
.trophy-manager-modal {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    max-height: 82vh;
    overflow-y: auto;
    font-family: 'Lexend', sans-serif;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.trophy-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.trophy-manager-title { font-size: 20px; font-weight: 800; color: #111; }
.trophy-manager-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Lexend', sans-serif;
}
.trophy-manager-close:hover { background: #f0f0f0; color: #333; }
.trophy-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 12px;
}
.trophy-slot-row { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.trophy-modal-slot {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: #fafafa;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}
.trophy-modal-slot.filled { border-style: solid; border-color: #7700bb; }
.trophy-modal-slot.drag-over { border-color: #7700bb; background: #f5f0ff; }
.trophy-modal-slot-emoji { pointer-events: none; }
.trophy-slot-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #cc2200;
    color: #fff;
    border: none;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: monospace;
}
.trophy-inventory { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; min-height: 70px; }
.trophy-inv-item {
    width: 80px;
    border-radius: 14px;
    padding: 10px 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: grab;
    transition: transform 0.1s;
    border: 2px solid rgba(0,0,0,0.1);
}
.trophy-inv-item:active { cursor: grabbing; transform: scale(0.95); }
.trophy-inv-emoji { font-size: 28px; pointer-events: none; }
.trophy-inv-name { font-size: 9px; font-weight: 700; color: #fff; text-align: center; pointer-events: none; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.trophy-manager-actions { display: flex; gap: 10px; justify-content: flex-end; }
.trophy-save-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg, #7700bb, #5500aa);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.trophy-save-btn:hover { background: linear-gradient(135deg, #5500aa, #440088); }
.trophy-cancel-btn {
    padding: 11px 20px;
    background: #f0f0f0;
    color: #555;
    border: none;
    border-radius: 9px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ── Channel Awards page ─────────────────────────────────────── */
.awards-page { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.awards-hero { text-align: center; padding: 36px 0 30px; }
.awards-hero-title { font-size: 32px; font-weight: 800; color: #111; margin-bottom: 8px; font-family: 'Lexend', sans-serif; }
.awards-hero-sub { font-size: 14px; color: #666; font-family: 'Lexend', sans-serif; }
.awards-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #eee;
    font-family: 'Lexend', sans-serif;
}
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 48px; }
.badge-card {
    border: 2px dashed #ddd;
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    background: #fff;
    position: relative;
    transition: box-shadow 0.2s;
    font-family: 'Lexend', sans-serif;
}
.badge-card.owned { border-style: solid; border-color: #e07800; box-shadow: 0 4px 20px rgba(224,120,0,0.15); }
.badge-owned-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #e07800;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.badge-icon-wrap { margin-bottom: 14px; }
.badge-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.badge-edition { font-size: 10px; font-weight: 800; color: #e07800; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 4px; }
.badge-name { font-size: 17px; font-weight: 800; color: #111; margin-bottom: 4px; }
.badge-rarity { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.badge-desc { font-size: 12px; color: #666; line-height: 1.55; margin-bottom: 12px; }
.badge-value {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    background: #fff8ee;
    border: 1px dashed #e07800;
    border-radius: 8px;
    padding: 5px 12px;
    display: inline-block;
}

/* ── Creator Badge — red crystal gem theme ───────────────────── */
.badge-card.badge-creator {
    background: linear-gradient(155deg, #0a0000 0%, #1a0000 45%, #2a0000 100%);
    border: 2px solid #770000;
    box-shadow: 0 0 40px rgba(180,0,0,0.18), inset 0 0 50px rgba(80,0,0,0.12);
    position: relative;
    overflow: hidden;
}
.badge-card.badge-creator::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,40,0,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.badge-card.badge-creator .badge-owned-tag { background: #880000; color: #fff; }
.badge-card.badge-creator .badge-edition   { color: #ff5533; }
.badge-card.badge-creator .badge-name      { color: #fff; text-shadow: 0 0 12px rgba(255,60,0,0.4); }
.badge-card.badge-creator .badge-rarity    { color: #ff4422 !important; text-shadow: 0 0 8px rgba(255,40,0,0.35); }
.badge-card.badge-creator .badge-desc      { color: rgba(255,200,180,0.75); }
.badge-card.badge-creator .badge-value     { background: rgba(180,0,0,0.15); border-color: #770000; color: #ff8866; }

.badge-creator-icon-wrap { margin-bottom: 18px; }
.badge-creator-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 38% 32%, #ff3300, #990000 48%, #2d0000 78%, #0a0000);
    box-shadow:
        0 0 0 3px rgba(255,60,0,0.35),
        0 0 22px rgba(255,0,0,0.65),
        0 0 55px rgba(180,0,0,0.40),
        inset 0 2px 10px rgba(255,120,60,0.28);
    animation: gem-pulse 3s ease-in-out infinite;
    position: relative;
}
.badge-creator-icon::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 18%;
    width: 30%;
    height: 20%;
    background: rgba(255,180,150,0.22);
    border-radius: 50%;
    transform: rotate(-30deg);
    pointer-events: none;
}
@keyframes gem-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(255,60,0,0.35), 0 0 22px rgba(255,0,0,0.65), 0 0 55px rgba(180,0,0,0.40), inset 0 2px 10px rgba(255,120,60,0.28);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255,60,0,0.18), 0 0 38px rgba(255,0,0,0.85), 0 0 80px rgba(220,0,0,0.50), inset 0 2px 14px rgba(255,120,60,0.38);
    }
}
.badge-creator-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255,80,0,0.9)) drop-shadow(0 0 3px rgba(255,200,100,0.5));
}

/* Tabs */
.profile-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 2px dashed #ddd;
    padding: 0 24px;
    background: #fdfaff;
}

.profile-tab {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    padding: 14px 22px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.profile-tab:hover {
    color: #7700bb;
}

.profile-tab.profile-tab-active {
    color: #7700bb;
    border-bottom-color: #7700bb;
}

/* Section header */
.profile-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 12px 24px;
}

.profile-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #7700bb;
    white-space: nowrap;
}

/* ── Combined Video+Post grid ─────────────────────────────────────────────── */
.pf-combined-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 24px;
}
@media (max-width: 900px) { .pf-combined-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pf-combined-grid { grid-template-columns: 1fr; } }

/* Post card inside combined grid — thumbnail style matching video cards */
.pf-post-card {
    border-radius: 10px;
    border: 1px solid #e8d5ff;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: 'Lexend', sans-serif;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pf-post-card:hover {
    box-shadow: 0 6px 20px rgba(119,0,187,0.18);
    transform: translateY(-2px);
}
.pf-post-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 35% 35%, #9933cc, #4a0060);
    flex-shrink: 0;
}
.pf-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.pf-post-card:hover .pf-post-thumb img {
    transform: scale(1.05);
}
.pf-post-thumb-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.45;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.pf-post-thumb.has-img .pf-post-thumb-text {
    display: none;
}
.pf-post-thumb::after {
    content: 'Click To Interact';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(70, 0, 120, 0.42);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}
.pf-post-card:hover .pf-post-thumb::after {
    opacity: 1;
    transform: translateY(0);
}
.pf-post-type-badge {
    position: absolute;
    top: 7px;
    left: 8px;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(100,0,180,0.82);
    color: #fff;
    backdrop-filter: blur(4px);
}
.pf-post-type-badge.poll    { background: rgba(37,99,235,0.82); }
.pf-post-type-badge.creator { background: rgba(180,100,0,0.82); }
.pf-post-img-count {
    position: absolute;
    bottom: 7px;
    right: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
}
.pf-post-info {
    padding: 9px 11px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pf-post-name {
    font-size: 12px;
    font-weight: 700;
    color: #7700bb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pf-post-caption {
    font-size: 11.5px;
    color: #444;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pf-post-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}
.pf-post-footer span { display: flex; align-items: center; gap: 3px; }
.pf-post-time { font-size: 10.5px; color: #bbb; margin-left: auto; }

html[data-theme="dark"] .pf-post-card,
html[data-theme="aura"] .pf-post-card { background: #1a1025; border-color: rgba(168,85,247,0.3); }
html[data-theme="dark"] .pf-post-name,
html[data-theme="aura"] .pf-post-name { color: #c084fc; }
html[data-theme="dark"] .pf-post-caption,
html[data-theme="aura"] .pf-post-caption { color: #c4a8e8; }
html[data-theme="dark"] .pf-post-time,
html[data-theme="aura"] .pf-post-time { color: #666; }

/* ── Hotspot interactive card (Profile + shared) ────────────────────────── */
.pf-post-card.pf-hs-card { border-color: rgba(124,58,237,.3); }
.pf-post-card.pf-hs-card .pf-post-thumb { background: #0a0012; }
.pf-post-card.pf-hs-card .pf-post-thumb::after { display: none; }
.pf-hs-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 10px; gap: 2px;
}
.pf-hs-title {
    font-size: 12.5px; font-weight: 800; color: #fff; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-shadow: 0 1px 5px rgba(0,0,0,.55); margin-bottom: 1px;
}
.pf-hs-meta { font-size: 9.5px; color: rgba(255,255,255,.55); font-weight: 600; margin-bottom: 6px; }
.pf-hs-play {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(124,58,237,.88); border: 1.5px solid rgba(196,181,253,.38);
    border-radius: 7px; padding: 5px 12px; color: #fff;
    font-size: 10.5px; font-weight: 800; align-self: flex-start;
    font-family: 'Lexend', sans-serif; letter-spacing: -.01em;
    transition: background .14s, transform .12s;
}
.pf-post-card:hover .pf-hs-play { background: rgba(139,68,255,.98); transform: scale(1.04); }

/* ── Hotspot viewer inside post-modal ───────────────────────────────────── */
.pm-hs-wrap { display: flex; flex-direction: column; gap: 0; }
.pm-hs-scene-label {
    font-size: 9.5px; font-weight: 700; color: rgba(180,160,220,.4);
    text-transform: uppercase; letter-spacing: .12em;
    padding: 0 0 8px; text-align: right;
}
.pm-hs-img-wrap {
    position: relative; width: 100%; border-radius: 10px; overflow: hidden;
    background: #000; line-height: 0;
}
.pm-hs-img { width: 100%; display: block; max-height: 400px; object-fit: contain; }
.pm-hs-scene-text {
    position: absolute; bottom: 8px; left: 8px; right: 8px; pointer-events: none;
    background: rgba(0,0,0,.62); backdrop-filter: blur(4px);
    border-radius: 7px; padding: 6px 10px;
    font-size: 12px; font-weight: 500; color: #fff;
    line-height: 1.5; word-break: break-word;
    font-family: 'Lexend', sans-serif; display: none;
}
.pm-hs-scene-text.on { display: block; }
/* Auto-advance countdown bar */
.pm-hs-advance-bar-wrap {
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: rgba(255,255,255,.18); display: none; z-index: 6;
}
.pm-hs-advance-bar-wrap.on { display: block; }
.pm-hs-advance-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#fcd34d,#f59e0b); }
/* Hotspot buttons inside the modal viewer */
.pm-hs-btn {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden;
    font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 11px;
    transition: transform .12s;
}
.pm-hs-btn:hover { transform: scale(1.06); }
.pm-hs-btn.t-default {
    background: rgba(124,58,237,.9); border: 2px solid rgba(196,181,253,.65);
    color: #fff; padding: 5px 13px; box-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.pm-hs-btn.t-default::after {
    content: ''; position: absolute; inset: -4px; border-radius: inherit;
    border: 2px solid rgba(124,58,237,.45);
    animation: pmHsPulse 2s ease-in-out infinite;
}
@keyframes pmHsPulse {
    0%,100% { opacity: .6; transform: scale(1); }
    50%      { opacity: 0; transform: scale(1.18); }
}
.pm-hs-btn.t-invisible { background: transparent; border: none; }
.pm-hs-btn.t-image { background: none; border: 2px solid rgba(255,255,255,.15); padding: 0; }
.pm-hs-btn.t-image img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pm-hs-btn.s-rect   { border-radius: 9px; }
.pm-hs-btn.s-circle { border-radius: 50%; }
.pm-hs-btn.s-square { border-radius: 10px; }
/* Scene strip */
.pm-hs-strip {
    display: none; flex-shrink: 0; padding: 8px 0 2px;
    gap: 5px; overflow-x: auto; align-items: center; scrollbar-width: none;
}
.pm-hs-strip.show { display: flex; }
.pm-hs-strip::-webkit-scrollbar { display: none; }
.pm-hs-dot {
    width: 28px; height: 4px; border-radius: 2px;
    background: rgba(124,58,237,.22); cursor: pointer; flex-shrink: 0;
    transition: background .14s, width .14s;
}
.pm-hs-dot.active { width: 40px; background: #7c3aed; }
/* Outcome panel inside modal */
.pm-hs-outcome {
    display: none; flex-direction: column; gap: 8px;
    padding: 12px 0 2px; border-top: 1px solid rgba(124,58,237,.1);
    margin-top: 10px;
}
.pm-hs-outcome.show { display: flex; }
.pm-hs-oc-label { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(180,160,220,.38); }
.pm-hs-end-tag { align-self: flex-start; padding: 3px 10px; border-radius: 99px; font-size: 10px; font-weight: 800; display: none; }
.pm-hs-end-tag.on { display: inline-flex; }
.pm-hs-end-tag.good    { background: rgba(16,185,129,.14); color: #6ee7b7; border: 1px solid rgba(16,185,129,.28); }
.pm-hs-end-tag.bad     { background: rgba(239,68,68,.14);  color: #fca5a5; border: 1px solid rgba(239,68,68,.28); }
.pm-hs-end-tag.neutral { background: rgba(107,114,128,.14);color: #9ca3af; border: 1px solid rgba(107,114,128,.28); }
.pm-hs-oc-text { font-size: 13px; font-weight: 500; line-height: 1.65; }
.pm-hs-oc-img { width: 100%; border-radius: 9px; max-height: 160px; object-fit: cover; display: none; }
.pm-hs-oc-img.on { display: block; }
.pm-hs-back {
    align-self: flex-start; padding: 6px 13px; border-radius: 7px;
    background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.2);
    color: #9333ea; font-size: 11px; font-weight: 700;
    font-family: 'Lexend', sans-serif; cursor: pointer; transition: background .13s;
}
.pm-hs-back:hover { background: rgba(124,58,237,.18); }

/* Video grid */
.profile-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 24px;
}

.profile-video-card {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.profile-video-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.profile-video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease;
}
.profile-video-card:hover .profile-video-thumb {
    transform: scale(1.05);
}

.profile-video-preview {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-video-card:hover .profile-video-preview {
    opacity: 1;
}

.profile-video-duration {
    position: absolute;
    bottom: 7px;
    right: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    padding: 2px 7px;
    border-radius: 4px;
}

.profile-video-info {
    padding: 10px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-video-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

/* Load more button */
.profile-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 24px;
    cursor: pointer;
    padding-bottom: 16px;
}

/* ── Inline Badge Icons (next to username) ── */
.profile-badge-icons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pbi {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 2px solid;
    font-size: 13px;
    cursor: default;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    flex-shrink: 0;
}

.pbi:hover { transform: translateY(-2px); }

/* Tooltip text */
.pbi::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 300;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Tooltip arrow */
.pbi::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 300;
}

.pbi:hover::after,
.pbi:hover::before { opacity: 1; }

/* ── Rarity tiers ── */
.pbi-common {
    border-color: #999;
    background: #f4f4f4;
}
.pbi-common:hover { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }

.pbi-rare {
    border-color: #2277dd;
    background: #eef4ff;
}
.pbi-rare:hover { box-shadow: 0 4px 10px rgba(34, 119, 221, 0.35); }

.pbi-epic {
    border-color: #7700bb;
    background: #f5eaff;
}
.pbi-epic:hover { box-shadow: 0 4px 10px rgba(119, 0, 187, 0.35); }

.pbi-legendary {
    border-color: #d4a800;
    background: #fffdf0;
    box-shadow: 0 0 6px rgba(212, 168, 0, 0.3);
}
.pbi-legendary:hover { box-shadow: 0 4px 14px rgba(212, 168, 0, 0.55); }


/* ════════════════════════════════
   WATCH PAGE
════════════════════════════════ */
.cw-watch-page {
    max-width: 1280px;
    margin: 20px auto 48px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    font-family: 'Lexend', sans-serif;
    align-items: flex-start;
}

/* ── Player ── */
.watch-player-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid #222;
}

.watch-player-thumb {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
}

.watch-player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    transition: background 0.2s ease;
}

.watch-player-overlay:hover { background: rgba(0, 0, 0, 0.18); }

.watch-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    padding-left: 2px;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.watch-play-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.36);
}

/* ── Custom Player Controls ─────────────────────────────────────── */
.cw-player-ctrl {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-bottom: 4px;
    background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.48) 55%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.watch-player-wrap:hover .cw-player-ctrl,
.watch-player-wrap.cw-ctrl-visible .cw-player-ctrl {
    opacity: 1;
    pointer-events: all;
}

.cw-tl-wrap {
    position: relative;
    padding: 12px 14px 6px;
    cursor: pointer;
    user-select: none;
}

.cw-tl-hover-tip {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.88);
    color: #e8d8ff;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    border: 1px solid rgba(192,132,252,0.3);
    z-index: 3;
}

.cw-tl-wrap:hover .cw-tl-hover-tip { opacity: 1; }

.cw-tl-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 9px;
    transition: height 0.15s ease;
    cursor: pointer;
}

.cw-tl-wrap:hover .cw-tl-track { height: 7px; }

.cw-tl-buf {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    background: rgba(192,132,252,0.28);
    border-radius: 9px;
    pointer-events: none;
    width: 0%;
}

.cw-tl-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    background: linear-gradient(90deg, #9333ea, #06b6d4);
    border-radius: 9px;
    pointer-events: none;
    width: 0%;
}

.cw-tl-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 13px; height: 13px;
    background: #c084fc;
    border-radius: 50%;
    box-shadow: 0 0 8px #c084fc, 0 0 18px rgba(192,132,252,0.55);
    pointer-events: none;
    transition: transform 0.15s ease;
    left: 0%;
    z-index: 2;
}

.cw-tl-wrap:hover .cw-tl-thumb { transform: translate(-50%, -50%) scale(1); }

.cw-tl-thumb.cw-tl-dragging {
    transform: translate(-50%, -50%) scale(1.35) !important;
    box-shadow: 0 0 14px #c084fc, 0 0 30px rgba(192,132,252,0.7);
}

.cw-ctrl-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 2px;
}

.cw-ctrl-left,
.cw-ctrl-right {
    display: flex;
    align-items: center;
    gap: 1px;
}

.cw-cbtn {
    background: none;
    border: none;
    color: #f0e6ff;
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.cw-cbtn:hover { background: rgba(192,132,252,0.22); color: #fff; transform: scale(1.06); }
.cw-cbtn:active { transform: scale(0.94); }

.cw-vol-wrap {
    display: flex;
    align-items: center;
}

.cw-vol-bar {
    position: relative;
    width: 0;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 9px;
    cursor: pointer;
    overflow: visible;
    transition: width 0.2s ease, opacity 0.2s ease, margin-left 0.2s ease;
    opacity: 0;
    margin-left: 0;
    flex-shrink: 0;
}

.cw-vol-wrap:hover .cw-vol-bar {
    width: 58px;
    opacity: 1;
    margin-left: 4px;
}

.cw-vol-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    background: linear-gradient(90deg, #9333ea, #c084fc);
    border-radius: 9px;
    pointer-events: none;
    width: 100%;
}

.cw-vol-knob {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: #c084fc;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(192,132,252,0.9);
    pointer-events: none;
    left: 100%;
}

.cw-time-txt {
    font-family: 'Lexend', sans-serif;
    font-size: 11.5px;
    color: #e0d0f8;
    letter-spacing: 0.3px;
    padding: 0 4px 0 6px;
    white-space: nowrap;
    user-select: none;
}

.cw-cbtn-speed {
    font-family: 'Lexend', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #c084fc;
    padding: 4px 7px;
    letter-spacing: 0.3px;
}

.cw-cbtn-speed:hover { color: #fff; }

/* ── Ad status bar — non-blocking, anchored to the bottom edge ──────── */
.cw-ad-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding-top: 22px;
}

.cw-ad-overlay.cw-ad-active { display: flex; }

/* Distinct-colored progress track for the ad (vs. the purple/cyan content timeline) */
.cw-ad-tl-track {
    position: relative;
    width: 100%;
    height: 4px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.22);
}

.cw-ad-tl-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    transition: width 1s linear;
}

.cw-ad-bar {
    display: flex;
    align-items: center;
    padding: 0 12px 10px;
}

.cw-ad-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

/* Small countdown dial — sits where the normal time text usually is (bottom-left) */
.cw-ad-dial {
    position: relative;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cw-ad-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}

.cw-ring-track { stroke: rgba(255,255,255,0.28); stroke-width: 3; fill: none; }

.cw-ring-prog {
    stroke: url(#cwAdGrad);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 94.25;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.cw-ad-count {
    position: relative;
    z-index: 2;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    user-select: none;
}

.cw-ad-tag {
    font-family: 'Lexend', sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fbbf24;
    padding: 3px 8px;
    border: 1px solid rgba(251,191,36,0.5);
    border-radius: 4px;
    background: rgba(251,191,36,0.08);
    user-select: none;
}

/* Hide custom controls while an IMA ad is playing */
#cwPlayerRoot.cw-ad-playing .cw-player-ctrl { display: none !important; }

/* Trending strip chips */
.cw-trend-title { color: #7700bb !important; }

.cw-trend-flame { font-size: 15px; line-height: 1; }

.cw-trend-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    background: linear-gradient(135deg, rgba(119,0,187,0.08), rgba(147,51,234,0.13));
    border: 1.5px solid rgba(147,51,234,0.25);
    border-radius: 999px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #7700bb;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, transform 0.12s, color 0.12s;
}

.cw-trend-chip:hover {
    background: linear-gradient(135deg, rgba(119,0,187,0.18), rgba(147,51,234,0.24));
    border-color: rgba(147,51,234,0.6);
    color: #5500aa;
    transform: translateY(-1px);
}

.cw-trend-chip.cw-tc-2 { background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(6,182,212,0.14)); border-color: rgba(6,182,212,0.3); color: #0891b2; }
.cw-trend-chip.cw-tc-2:hover { background: linear-gradient(135deg, rgba(6,182,212,0.18), rgba(6,182,212,0.25)); border-color: rgba(6,182,212,0.6); color: #0e7490; transform: translateY(-1px); }

.cw-trend-chip.cw-tc-3 { background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.14)); border-color: rgba(245,158,11,0.3); color: #d97706; }
.cw-trend-chip.cw-tc-3:hover { background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(245,158,11,0.26)); border-color: rgba(245,158,11,0.6); color: #b45309; transform: translateY(-1px); }

.cw-trend-chip.cw-tc-4 { background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.14)); border-color: rgba(16,185,129,0.3); color: #059669; }
.cw-trend-chip.cw-tc-4:hover { background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(16,185,129,0.26)); border-color: rgba(16,185,129,0.6); color: #047857; transform: translateY(-1px); }

.cw-trend-chip.cw-tc-5 { background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.13)); border-color: rgba(239,68,68,0.25); color: #dc2626; }
.cw-trend-chip.cw-tc-5:hover { background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(239,68,68,0.24)); border-color: rgba(239,68,68,0.6); color: #b91c1c; transform: translateY(-1px); }

.cw-trend-all { color: #7700bb !important; border-color: #c4a0e8 !important; }
.cw-trend-all:hover { background: rgba(119,0,187,0.06) !important; }

html[data-theme="dark"] .cw-trend-chip,
html[data-theme="aura"] .cw-trend-chip { color: #d4a8ff; }
html[data-theme="dark"] .cw-trend-chip.cw-tc-2,
html[data-theme="aura"] .cw-trend-chip.cw-tc-2 { color: #67e8f9; }
html[data-theme="dark"] .cw-trend-chip.cw-tc-3,
html[data-theme="aura"] .cw-trend-chip.cw-tc-3 { color: #fcd34d; }
html[data-theme="dark"] .cw-trend-chip.cw-tc-4,
html[data-theme="aura"] .cw-trend-chip.cw-tc-4 { color: #6ee7b7; }
html[data-theme="dark"] .cw-trend-chip.cw-tc-5,
html[data-theme="aura"] .cw-trend-chip.cw-tc-5 { color: #fca5a5; }
html[data-theme="dark"] .cw-trend-title,
html[data-theme="aura"] .cw-trend-title { color: #d4a8ff !important; }
html[data-theme="dark"] .cw-trend-all,
html[data-theme="aura"] .cw-trend-all { color: #d4a8ff !important; border-color: #7c3aed !important; }

/* ── Info block ── */
.watch-info {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.watch-title {
    font-size: 21px;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
}

.watch-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.watch-meta-views    { font-weight: 800; color: #1a9a3a; font-size: 14px; }
.watch-meta-dot      { color: #ccc; }
.watch-meta-date     { font-size: 12px; color: #888; }
.watch-meta-location { font-size: 12px; color: #888; }

.watch-meta-cat {
    font-size: 11px;
    font-weight: 700;
    color: #7700bb;
    border: 2px dashed #7700bb;
    border-radius: 20px;
    padding: 2px 11px;
    background: rgba(119, 0, 187, 0.06);
}

/* ── Video File Date ── */
.watch-filedate-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.watch-filedate-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 99px;
    font-family: 'Lexend', sans-serif;
}
.watch-filedate-tag.verified     { background: rgba(22,163,74,0.1);  color: #1a9a3a; border: 1.5px solid rgba(22,163,74,0.3); }
.watch-filedate-tag.unverified   { background: rgba(217,164,6,0.1);  color: #b58a00; border: 1.5px solid rgba(217,164,6,0.35); }
.watch-filedate-tag.undetermined { background: rgba(136,136,136,0.1); color: #888;   border: 1.5px solid rgba(136,136,136,0.3); }
.watch-filedate-vote { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #999; }
.watch-filedate-vote-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'Lexend', sans-serif; font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 99px; border: 1.5px solid #e0d0f0;
    background: none; color: #7700bb; cursor: pointer; transition: background .13s, border-color .13s;
}
.watch-filedate-vote-btn:hover { background: rgba(119,0,187,0.06); border-color: #7700bb; }
.watch-filedate-vote-btn.voted { background: rgba(119,0,187,0.12); border-color: #7700bb; }
html[data-theme="dark"] .watch-filedate-vote-btn,
html[data-theme="aura"] .watch-filedate-vote-btn { border-color: rgba(168,85,247,0.3); color: #c084fc; }
html[data-theme="dark"] .watch-filedate-vote,
html[data-theme="aura"] .watch-filedate-vote { color: rgba(240,238,255,.45); }

/* ── Vote + Actions ── */
.watch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-top: 2px dashed #eee;
    border-bottom: 2px dashed #eee;
}

.watch-vote-group {
    display: flex;
    align-items: stretch;
    border: 2px dashed #ccc;
    border-radius: 10px;
    overflow: hidden;
}

.watch-vote-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: #fff;
    transition: background 0.15s ease, color 0.15s ease;
}

.watch-vote-btn-up  { border-right: 2px dashed #ccc; color: #2a8a2a; }
.watch-vote-btn-up:hover  { background: #f0fff4; }
.watch-vote-btn-up.voted  { background: #e0ffec; color: #1a7a1a; }

.watch-vote-btn-down { color: #cc2200; }
.watch-vote-btn-down:hover  { background: #fff5f5; }
.watch-vote-btn-down.voted  { background: #ffe8e8; }

.watch-vote-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
.watch-vote-btn:disabled .watch-vote-label {
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    display: inline-block;
    text-align: center;
}

.watch-vote-icon  { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.watch-vote-count { font-size: 11px; color: #777; }
.comment-vote-icon { width: 13px; height: 13px; object-fit: contain; vertical-align: middle; }
.trend-icon  { width: 30px; height: 70px; object-fit: contain; vertical-align: middle; margin-right: 3px; }
.ratio-icon  { width: 11px; height: 11px; object-fit: contain; vertical-align: middle; }

.watch-vote-bar-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 130px;
    max-width: 220px;
    flex: 1;
}

.watch-vote-bar-track {
    height: 6px;
    border-radius: 3px;
    background: #f0d0d0;
    overflow: hidden;
}

.watch-vote-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a9a3a, #5ac85a);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.watch-vote-pct {
    display: flex;
    justify-content: space-between;
}

.watch-vote-pct-up   { font-size: 10px; font-weight: 700; color: #2a8a2a; }
.watch-vote-pct-down { font-size: 10px; font-weight: 700; color: #cc2200; }

.watch-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.watch-action-btn:hover {
    border-color: #7700bb;
    color: #7700bb;
}

/* ── Orbs earned row ── */
.watch-orbs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: linear-gradient(90deg, #f5f0ff, #fdf8ff);
    border: 1px solid #d4b0ff;
    border-radius: 8px;
    font-family: 'Lexend', sans-serif;
}
.watch-orbs-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}
.watch-orbs-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}
.watch-orbs-count {
    font-size: 14px;
    font-weight: 800;
    color: #7700bb;
    white-space: nowrap;
}
.watch-orbs-breakdown {
    font-size: 11px;
    color: #999;
    margin-left: auto;
    white-space: nowrap;
}

/* ── Three-dots more menu ── */
.watch-more-wrap {
    position: relative;
    display: inline-flex;
}
.watch-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.14);
    min-width: 210px;
    z-index: 300;
    overflow: hidden;
}
.watch-more-menu.open { display: block; }
.watch-more-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.watch-more-menu-item:hover { background: #f5f0ff; color: #7700bb; }
.watch-more-menu-item.watch-more-disabled { color: #aaa; cursor: default; }
.watch-more-menu-item.watch-more-disabled:hover { background: #f9f4ff; color: #c090ee; }
.watch-more-menu-item.watch-more-active { color: #222; }
.watch-more-icon {
    font-size: 15px;
    flex-shrink: 0;
}
.watch-more-lock {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: #a06000;
    background: #fff5dd;
    border: 1px solid #e0b040;
    border-radius: 5px;
    padding: 2px 7px;
    white-space: nowrap;
}

/* ── Uploader bar ── */
.watch-uploader {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    background: #fdfaff;
}

.watch-uploader-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #cc66cc, #6600aa);
    border: 2px solid #7700bb;
    flex-shrink: 0;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

.watch-uploader-avatar:hover { box-shadow: 0 0 0 3px rgba(119, 0, 187, 0.3); }

.watch-uploader-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.watch-uploader-name {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    transition: color 0.12s ease;
}

.watch-uploader-name:hover { color: #7700bb; }

.watch-uploader-members {
    font-size: 11px;
    color: #888;
}

.watch-uploader-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Description ── */
.watch-description {
    background: #faf6ff;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
}

.watch-desc-title {
    font-size: 10px;
    font-weight: 800;
    color: #7700bb;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.watch-desc-text {
    font-size: 13px;
    color: #333;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.2s ease;
}

.watch-desc-text.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.watch-desc-toggle {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #7700bb;
    cursor: pointer;
    transition: opacity 0.12s ease;
}

.watch-desc-toggle:hover { opacity: 0.7; }

/* ── Tag strip ── */
.watch-tag-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 10px 14px 6px;
}
.watch-tag-strip:empty { display: none; }
.watch-tag-pill {
    display: inline-block;
    background: rgba(119, 0, 187, 0.07);
    color: #7700bb;
    border: 1px solid rgba(119, 0, 187, 0.2);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Lexend', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.watch-tag-pill:hover {
    background: rgba(119, 0, 187, 0.15);
    border-color: rgba(119, 0, 187, 0.45);
    color: #6600aa;
}

/* ── Comments ── */
.watch-comments { margin-top: 4px; }

.watch-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #eee;
}

.watch-comments-title {
    font-size: 16px;
    font-weight: 800;
    color: #111;
}
html[data-theme="dark"] .watch-comments-title,
html[data-theme="dark"] #commentCount,
html[data-theme="aura"] .watch-comments-title,
html[data-theme="aura"] #commentCount { color: #fff !important; }

.watch-comments-sort {
    font-size: 11px;
    font-weight: 700;
    color: #7700bb;
    border: 2px dashed #7700bb;
    border-radius: 6px;
    padding: 4px 12px;
    background: none;
    font-family: 'Lexend', sans-serif;
    cursor: pointer;
    transition: background 0.15s ease;
}

.watch-comments-sort:hover { background: #f5eaff; }

/* Comment input row */
.watch-comment-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.watch-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #cc66cc, #6600aa);
    border: 2px solid #7700bb;
    flex-shrink: 0;
}

.watch-comment-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.watch-comment-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    padding: 6px 2px;
    color: #222;
    background: transparent;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.watch-comment-input:focus { border-bottom-color: #7700bb; }
.watch-comment-input::placeholder { color: #bbb; }

.watch-comment-post-row {
    display: none;
    justify-content: flex-end;
    gap: 8px;
}

.watch-comment-post-row.visible { display: flex; }

.watch-comment-cancel {
    background: none;
    border: none;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.watch-comment-cancel:hover { background: #f5f5f5; }

.watch-comment-post {
    background: #7700bb;
    color: #fff;
    border: none;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.watch-comment-post:hover { background: #5500aa; }

/* Comment cards */
.comment-card {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    flex-shrink: 0;
}

.comment-avatar-user { background: radial-gradient(circle at 35% 35%, #cc66cc, #6600aa); }
.comment-avatar-sm   { width: 28px; height: 28px; }

.comment-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-username {
    font-size: 12px;
    font-weight: 800;
    color: #111;
}

.comment-date {
    font-size: 10px;
    color: #bbb;
}

.comment-pinned {
    font-size: 9px;
    font-weight: 700;
    color: #7700bb;
    border: 1px dashed #7700bb;
    border-radius: 4px;
    padding: 1px 7px;
    background: rgba(119, 0, 187, 0.06);
}

.comment-text {
    font-size: 13px;
    color: #333;
    line-height: 1.65;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}

.comment-vote {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.12s ease;
}

.comment-vote:hover { color: #7700bb; }
.comment-vote.voted-up   { color: #7700bb; font-weight: 700; }
.comment-vote.voted-down { color: #cc2200; font-weight: 700; }

.comment-empty {
    text-align: center;
    padding: 36px;
    color: #aaa;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
}

.watch-load-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 16px 0 8px;
    background: #f5f0ff;
    color: #7700bb;
    border: 2px dashed #7700bb;
    border-radius: 10px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.watch-load-more-btn:hover { background: #ebe0ff; }

/* Reply input row */
.comment-reply-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 8px;
}
.comment-reply-input {
    flex: 1;
    border: none;
    border-bottom: 2px solid #e0d0f0;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    color: #333;
    outline: none;
    padding: 4px 0;
    background: transparent;
}
.comment-reply-input:focus { border-bottom-color: #7700bb; }
.comment-reply-post-btn {
    padding: 5px 14px;
    background: linear-gradient(135deg, #7700bb, #5500aa);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.comment-reply-post-btn:disabled { opacity: 0.5; cursor: default; }

.comment-reply-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #7700bb;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.12s ease;
}

.comment-reply-btn:hover { opacity: 0.65; }

/* ── Comment deleted state ── */
.comment-deleted-overlay {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background:
        linear-gradient(rgba(150,150,150,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150,150,150,0.18) 1px, transparent 1px);
    background-size: 10px 10px;
    background-color: rgba(215,215,215,0.28);
    animation: cdelGrid 0.42s ease forwards;
    pointer-events: none;
}
@keyframes cdelGrid {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: scale(1); }
}
.comment-deleted-label {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    color: #aaa;
    font-style: italic;
    margin-left: 8px;
}
.comment-username-faded { color: #c0c0c0 !important; }
.comment-delete-btn {
    background: none;
    border: 1.5px dashed #ffaaaa;
    border-radius: 6px;
    cursor: pointer;
    color: #e53535;
    font-size: 11px;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    padding: 1px 8px;
    margin-left: 8px;
    vertical-align: middle;
    transition: background 0.14s, border-color 0.14s;
}
.comment-delete-btn:hover { background: #fff0f0; border-color: #e53535; }
.comment-pin-btn {
    background: none;
    border: 1.5px dashed #d0b8ff;
    border-radius: 6px;
    cursor: pointer;
    color: #7700bb;
    font-size: 11px;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    padding: 1px 8px;
    margin-left: 6px;
    vertical-align: middle;
    transition: background 0.14s, border-color 0.14s;
}
.comment-pin-btn:hover { background: #f5f0ff; border-color: #7700bb; }
.comment-undo-btn {
    background: none;
    border: 1.5px dashed #7700bb;
    border-radius: 6px;
    cursor: pointer;
    color: #7700bb;
    font-size: 11px;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    padding: 1px 8px;
    margin-left: 8px;
    vertical-align: middle;
    transition: background 0.14s;
}
.comment-undo-btn:hover { background: #f5f0ff; }

/* ── Deleted comment group (collapsed under toggle button) ── */
.comment-deleted-group {
    margin: 2px 0 6px 52px;
}
.comment-view-deleted-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 11px;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
    letter-spacing: 0.2px;
}
.comment-view-deleted-btn:hover { color: #7700bb; }
.comment-view-deleted-btn .cvd-arrow {
    font-size: 9px;
    display: inline-block;
    transition: transform 0.18s;
}
.comment-view-deleted-btn.open .cvd-arrow { transform: rotate(180deg); }
.comment-deleted-inner {
    margin-top: 6px;
    border-left: 2px dashed #e0d0f0;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
html[data-theme="dark"] .comment-view-deleted-btn { color: #7a6a8a; }
html[data-theme="dark"] .comment-view-deleted-btn:hover,
html[data-theme="aura"] .comment-view-deleted-btn:hover { color: #cc88ff; }
html[data-theme="dark"] .comment-deleted-inner,
html[data-theme="aura"] .comment-deleted-inner { border-color: #3a1a55; }

/* ── Delete confirm modal ── */
.cw-del-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.52);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.cw-del-overlay.open { display: flex; }
.cw-del-modal {
    background: #fff;
    border-radius: 16px;
    padding: 34px 38px 28px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    font-family: 'Lexend', sans-serif;
    box-shadow: 0 14px 44px rgba(0,0,0,0.24);
    animation: delModalIn 0.18s ease;
}
@keyframes delModalIn {
    from { transform: scale(0.94); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.cw-del-icon { font-size: 36px; margin-bottom: 10px; }
.cw-del-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 7px;
}
.cw-del-sub {
    font-size: 13px;
    color: #888;
    line-height: 1.55;
    margin-bottom: 26px;
}
.cw-del-btns { display: flex; gap: 10px; justify-content: center; }
.cw-del-cancel {
    padding: 10px 24px;
    background: #f0f0f0;
    color: #555;
    border: none;
    border-radius: 9px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.14s;
}
.cw-del-cancel:hover { background: #e2e2e2; }
.cw-del-confirm {
    padding: 10px 24px;
    background: #e53535;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.14s;
}
.cw-del-confirm:hover { background: #c92020; }

/* ── Comment orb send ── */
.comment-orb-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.comment-orb-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1.5px solid #e0d8f0;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    color: #7700bb;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.14s, border-color 0.14s;
}
.comment-orb-btn:hover { background: #f5f0ff; border-color: #7700bb; }
.orb-senders-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 160px;
    max-width: 240px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.14s, visibility 0.14s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    white-space: nowrap;
}
.comment-orb-wrap:hover .orb-senders-tip { opacity: 1; visibility: visible; }
.orb-senders-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a2e;
}
.orb-tip-title { font-size: 12px; font-weight: 700; color: #c084fc; margin-bottom: 6px; }
.orb-tip-row { padding: 2px 0; color: #ddd; }
.orb-send-pop {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    background: #fff;
    border: 1.5px solid #e0d8f0;
    border-radius: 14px;
    padding: 14px 16px;
    z-index: 300;
    box-shadow: 0 8px 30px rgba(0,0,0,0.16);
    display: none;
    min-width: 210px;
    font-family: 'Lexend', sans-serif;
}
.orb-send-pop.open { display: block; }
.orb-pop-title { font-size: 12px; font-weight: 700; color: #333; margin-bottom: 10px; }
.orb-pop-amounts { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.orb-pop-amount {
    border: 1.5px solid #c084fc;
    background: #f9f4ff;
    color: #7700bb;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 12px;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.14s, border-color 0.14s;
}
.orb-pop-amount:hover,
.orb-pop-amount.selected { background: #ede5ff; border-color: #7700bb; }
.orb-pop-confirm {
    width: 100%;
    background: linear-gradient(135deg, #7700bb, #5500aa);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 8px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.14s;
}
.orb-pop-confirm:not([disabled]):hover { opacity: 0.86; }
.orb-pop-confirm:disabled { opacity: 0.4; cursor: default; }
.orb-pop-balance { font-size: 11px; color: #999; margin-top: 8px; text-align: center; }

.comment-replies {
    margin-top: 12px;
    padding-left: 18px;
    border-left: 2px dashed #e0d0f0;
    display: flex;
    flex-direction: column;
}

/* ── Sidebar ── */
.watch-sidebar {
    position: sticky;
    top: 170px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.watch-sidebar-header {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    padding-bottom: 10px;
    border-bottom: 2px dashed #ddd;
    margin-bottom: 8px;
}

.sidebar-rec-card {
    display: flex;
    gap: 10px;
    cursor: pointer;
    border-radius: 8px;
    padding: 6px;
    transition: background 0.15s ease;
}

.sidebar-rec-card:hover { background: #f5f0ff; }

.sidebar-rec-thumb {
    width: 130px;
    min-width: 130px;
    height: 73px;
    border-radius: 6px;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 5px;
    box-sizing: border-box;
}

.sidebar-rec-duration {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    padding: 2px 6px;
    border-radius: 3px;
}

.sidebar-rec-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.sidebar-rec-title {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-rec-creator { font-size: 11px; color: #777; }
.sidebar-rec-views   { font-size: 11px; font-weight: 700; color: #1a9a3a; }


/* ════════════════════════════════
   RESULTS PAGE
════════════════════════════════ */
.cw-results-page {
    max-width: 1100px;
    margin: 24px auto 48px auto;
    padding: 0 4px;
    font-family: 'Lexend', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.results-header {
    padding-bottom: 14px;
    border-bottom: 2px dashed #eee;
    margin-bottom: 14px;
}

.results-query-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.results-for-label { font-size: 13px; color: #888; }
.results-query-text { font-size: 24px; font-weight: 800; color: #111; }
.results-count { font-size: 12px; color: #aaa; margin-top: 4px; }

/* Filter bar */
.results-filter-bar {
    display: flex;
    align-items: center;
    border-bottom: 2px dashed #e0d0f0;
    margin-bottom: 22px;
}

.results-tab {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    padding: 12px 18px;
    cursor: pointer;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: none;
    font-family: 'Lexend', sans-serif;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.results-tab:hover { color: #7700bb; }
.results-tab.tab-active { color: #7700bb; border-bottom-color: #7700bb; }

.results-sort-wrap {
    position: relative;
    margin-left: auto;
    margin-bottom: 2px;
}

.results-sort {
    font-size: 11px;
    font-weight: 700;
    color: #7700bb;
    border: 2px dashed #7700bb;
    border-radius: 6px;
    padding: 5px 13px;
    background: none;
    font-family: 'Lexend', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.results-sort:hover { background: #f5eaff; }

.results-sort-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 2px dashed #d0b8ff;
    border-radius: 12px;
    padding: 6px 0;
    min-width: 190px;
    box-shadow: 0 8px 28px rgba(119, 0, 187, 0.13);
    z-index: 200;
}

.results-sort-menu.open { display: block; }

.results-sort-item {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    transition: background 0.12s;
}

.results-sort-item:hover { background: #f5eeff; color: #7700bb; }
.results-sort-item.active { color: #7700bb; background: #f0e6ff; }

.results-sort-item.disabled {
    color: #bbb;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 8px;
}
.results-sort-item.disabled:hover { background: none; color: #bbb; }

.rs-coming-soon {
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: #c580ff;
    border-radius: 4px;
    padding: 2px 5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.results-sort-divider {
    height: 1px;
    background: #ede4ff;
    margin: 5px 10px;
}

.results-sort-group {
    padding: 6px 16px 4px;
    font-size: 10px;
    font-weight: 800;
    color: #9900cc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Lexend', sans-serif;
}

/* Section label */
.results-section-label {
    font-size: 10px;
    font-weight: 800;
    color: #7700bb;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e8e0f8;
}

/* Creator strip */
.results-creator-strip {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(119,0,187,0.35) transparent;
    cursor: grab;
}
.results-creator-strip:active { cursor: grabbing; }
.results-creator-strip::-webkit-scrollbar { height: 4px; }
.results-creator-strip::-webkit-scrollbar-thumb { background: rgba(119,0,187,0.3); border-radius: 2px; }
.results-creator-strip::-webkit-scrollbar-track { background: transparent; }

/* Creator card in full-width list mode (creators tab) */
.results-creator-card--list {
    min-width: unset;
    width: 100%;
    max-width: 720px;
    flex-shrink: 1;
    text-decoration: none;
}

.results-creator-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #fff;
    min-width: 310px;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.results-creator-card:hover {
    border-color: #7700bb;
    box-shadow: 0 4px 14px rgba(119, 0, 187, 0.1);
}

.results-creator-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #cc66cc, #6600aa);
    border: 3px solid #7700bb;
    flex-shrink: 0;
}

.results-creator-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.results-creator-name   { font-size: 15px; font-weight: 800; color: #111; }
.results-creator-handle { font-size: 11px; color: #888; }
.results-creator-stats  { font-size: 11px; color: #555; font-weight: 600; }

.results-creator-follow {
    background: #7700bb;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 16px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.results-creator-follow:hover { background: #5500aa; }

/* Video results list */
.results-video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.results-video-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.results-video-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
    border-color: #ddd;
}

.results-video-thumb {
    width: 200px;
    min-width: 200px;
    height: 112px;
    border-radius: 8px;
    background: radial-gradient(circle at 35% 35%, #9a009a, #4a0060);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
    transition: height 0.32s ease;
}
.results-video-item:hover .results-video-thumb {
    height: 148px;
}

.results-video-duration {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    padding: 2px 7px;
    border-radius: 4px;
}

.results-video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.results-video-title { font-size: 16px; font-weight: 700; color: #111; }

.results-video-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #999;
}

.results-video-views { font-weight: 800; color: #1a9a3a; font-size: 13px; }

.results-video-uploader { font-size: 12px; color: #555; font-weight: 600; }
.results-video-uploader span { color: #7700bb; text-decoration: underline; cursor: pointer; }

.results-video-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.results-matched-tag { margin-top: 6px; }
.results-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(119, 0, 187, 0.08);
    color: #7700bb;
    border: 1px solid rgba(119, 0, 187, 0.22);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
}
.results-tag-chip-label {
    opacity: 0.55;
    font-weight: 500;
    margin-left: 2px;
}

/* Live results — reuse .cw-live-grid + live-stream-card styles */
.results-live-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.results-no-results-msg {
    padding: 20px 16px;
    font-size: 13px;
    color: #bbb;
    font-family: 'Lexend', sans-serif;
    font-style: italic;
}

/* Shared empty state used across pages (Notifications, FriendHub, ChatHub, History, Saved) */
.page-empty-state {
    padding: 60px 20px;
    text-align: center;
    font-family: 'Lexend', sans-serif;
    color: #bbb;
}
.page-empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.page-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 6px;
}
.page-empty-sub {
    font-size: 13px;
    color: #bbb;
}

/* ── Series application status card (Profile → Shows tab) ──
   One card, three color themes via a modifier class — pending/approved/rejected. */
.pf-status-wrap { margin-bottom: 22px; }
.pf-status-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: #fff9f0; border: 2px dashed #e07800; border-radius: 16px;
    padding: 18px 22px; font-family: 'Lexend', sans-serif;
}
.pf-status-card.is-approved { background: #f0fffa; border-color: #00b894; }
.pf-status-card.is-rejected { background: #fff5f5; border-color: #e05050; }
.pf-status-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.pf-status-body { min-width: 0; }
.pf-status-badge {
    display: inline-block; font-size: 10px; font-weight: 800; color: #e07800;
    background: rgba(224,120,0,.12); border: 1px solid rgba(224,120,0,.3);
    border-radius: 20px; padding: 3px 10px; text-transform: uppercase;
    letter-spacing: .5px; margin-bottom: 7px;
}
.pf-status-card.is-approved .pf-status-badge { color: #00916f; background: rgba(0,184,148,.12); border-color: rgba(0,184,148,.3); }
.pf-status-card.is-rejected .pf-status-badge { color: #c03030; background: rgba(224,80,80,.12); border-color: rgba(224,80,80,.3); }
.pf-status-title { font-size: 15px; font-weight: 800; color: #2a0050; margin-bottom: 3px; }
.pf-status-meta { font-size: 11.5px; color: #a07840; margin-bottom: 6px; font-weight: 600; }
.pf-status-card.is-approved .pf-status-meta { color: #3a9880; }
.pf-status-card.is-rejected .pf-status-meta { color: #c07070; }
.pf-status-detail { font-size: 12.5px; color: #666; line-height: 1.55; margin-bottom: 8px; }
.pf-status-link { font-size: 12.5px; font-weight: 700; color: #7700bb; text-decoration: none; }
.pf-status-link:hover { text-decoration: underline; }
.pf-status-link:empty { display: none; }

/* ── Active show cards (Profile → Shows tab) ── */
.pf-show-card { display: block; background: #fff; border: 2px solid #ead5ff; border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.pf-show-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(119,0,187,.15); }
.pf-show-poster { width: 100%; aspect-ratio: 16/9; background: linear-gradient(145deg,#ead5ff,#f3e8ff) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #c0a0e8; }
.pf-show-info { padding: 12px 14px 14px; font-family: 'Lexend', sans-serif; }
.pf-show-name { font-size: 13.5px; font-weight: 800; color: #2a0050; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-show-meta { font-size: 11px; color: #9977bb; }

.results-end {
    text-align: center;
    padding: 22px 0 8px 0;
    font-size: 12px;
    color: #ccc;
    border-top: 2px dashed #eee;
    font-style: italic;
}


/* ════════════════════════════════
   SETTINGS PAGE
════════════════════════════════ */
.cw-settings-page {
    max-width: 1100px;
    margin: 24px auto 48px auto;
    font-family: 'Lexend', sans-serif;
    display: grid;
    grid-template-columns: 240px 1fr;
    border: 2px dashed #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* Nav sidebar */
.settings-nav {
    background: #faf5ff;
    border-right: 2px dashed #e0d0f0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-nav-title {
    font-size: 10px;
    font-weight: 800;
    color: #7700bb;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 0 18px 12px 18px;
    border-bottom: 1px dashed #e0d0f0;
    margin-bottom: 8px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    margin-right: 6px;
    transition: background 0.12s ease, color 0.12s ease;
}

.settings-nav-item:hover { background: rgba(119, 0, 187, 0.06); color: #7700bb; }

.settings-nav-item.settings-nav-active {
    background: rgba(119, 0, 187, 0.1);
    color: #7700bb;
    border-left-color: #7700bb;
    font-weight: 700;
}

.settings-nav-icon { font-size: 15px; }

.settings-nav-divider {
    border: none;
    border-top: 1px dashed #e0d0f0;
    margin: 8px 18px;
}

.settings-nav-item.nav-danger { color: #cc2200; }
.settings-nav-item.nav-danger:hover { background: #fff5f5; color: #aa1100; }

/* Content area */
.settings-content { padding: 28px 32px; min-height: 600px; }

.settings-section { display: none; }
.settings-section.active { display: block; }

.settings-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
}

.settings-section-sub {
    font-size: 12px;
    color: #999;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #f0e8f8;
}

.settings-group { margin-bottom: 28px; }

.settings-group-label {
    font-size: 10px;
    font-weight: 800;
    color: #7700bb;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed #f0e8f8;
}

.settings-row:last-child { border-bottom: none; }

.settings-row-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.settings-row-label { font-size: 13px; font-weight: 700; color: #222; }
.settings-row-desc  { font-size: 11px; color: #aaa; }

/* Inputs */
.settings-input-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.settings-input-label { font-size: 11px; font-weight: 700; color: #666; }

.settings-input {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    background: #faf5ff;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
    width: 100%;
}

.settings-input:focus { border-color: #7700bb; }
.settings-textarea { resize: vertical; min-height: 80px; }

.settings-select {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    background: #faf5ff;
    outline: none;
    cursor: pointer;
    min-width: 200px;
}

/* ── Profile tag picker (Settings) ── */
.settings-input-row-top { align-items: flex-start; }

.settings-tag-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-tag-info {
    font-size: 11px;
    color: #999;
    font-family: 'Lexend', sans-serif;
}

.settings-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-tag-opt {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 2px dashed #ccc;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Lexend', sans-serif;
    color: #555;
    background: #faf5ff;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.settings-tag-opt input[type="checkbox"] { display: none; }

.settings-tag-opt.selected {
    border-color: #7700bb;
    background: linear-gradient(90deg, #f0e0ff, #faf0ff);
    color: #7700bb;
}

.settings-tag-opt:hover {
    border-color: #9933cc;
    color: #7700bb;
}

.settings-tag-count {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    font-family: 'Lexend', sans-serif;
}

/* ── Settings: username change button + popcoin badge ─────── */
.settings-username-change-btn {
    background: transparent;
    border: 2px dashed #7700bb;
    color: #7700bb;
    border-radius: 8px;
    padding: 7px 14px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s, color 0.18s;
}
.settings-username-change-btn:hover {
    background: #7700bb;
    color: #fff;
}
.settings-username-change-btn:hover .cw-pc-badge { color: #ffe0a0; }
.cw-pc-badge {
    font-size: 11px;
    font-weight: 800;
    color: #e07800;
    transition: color 0.18s;
}

/* ── Settings: banner preview ────────────────────────────── */
.settings-banner-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.settings-banner-preview {
    width: 100%;
    max-width: 480px;
    height: 84px;
    border-radius: 10px;
    border: 2px dashed #e0d0f0;
    background: #f5f0ff center/cover no-repeat;
    display: none;
}
.settings-banner-preview.visible { display: block; }

/* ── Settings: banner swatch library ────────────────────── */
.settings-banner-library {
    padding: 12px 0 4px;
    border-top: 1.5px dashed #f0e8f8;
    margin-top: 8px;
}
.settings-banner-swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.settings-banner-swatch {
    width: 96px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s, box-shadow 0.18s;
    flex-shrink: 0;
}
.settings-banner-swatch:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.settings-banner-swatch.active {
    box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px #7700bb, 0 3px 12px rgba(119, 0, 187, 0.35);
}
.settings-banner-swatch.active::after {
    content: '✓';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 900;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.12);
}
.settings-banner-swatch[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* ── Settings: default avatar swatch library ────────────── */
.settings-avatar-library {
    padding: 14px 0 6px;
    border-top: 1.5px dashed #f0e8f8;
    margin-top: 6px;
}
.settings-avatar-library-label {
    font-size: 10px;
    font-weight: 800;
    color: #9933cc;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    margin-bottom: 10px;
    font-family: 'Lexend', sans-serif;
}
.settings-avatar-swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.settings-avatar-swatch {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s, box-shadow 0.18s;
    flex-shrink: 0;
}
.settings-avatar-swatch:hover {
    transform: scale(1.14);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.settings-avatar-swatch.active {
    box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px #7700bb, 0 4px 14px rgba(119, 0, 187, 0.35);
    transform: scale(1.1);
}
.settings-avatar-swatch.active::after {
    content: '✓';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
    background: rgba(0, 0, 0, 0.12);
}
.settings-avatar-swatch[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* ── Settings: avatar hover overlay ─────────────────────── */
.settings-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    pointer-events: none;
}
.settings-avatar-preview:hover .settings-avatar-overlay { opacity: 1; }

/* ── Settings: custom tags ───────────────────────────────── */
.settings-custom-tag-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.settings-custom-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(119, 0, 187, 0.08);
    border: 1.5px solid rgba(119, 0, 187, 0.28);
    border-radius: 20px;
    padding: 5px 12px 5px 14px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #7700bb;
}
.settings-tag-remove-btn {
    background: none;
    border: none;
    color: #cc3300;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    padding: 0;
    opacity: 0.55;
    transition: opacity 0.15s;
    font-family: monospace;
}
.settings-tag-remove-btn:hover { opacity: 1; }
.settings-buy-tag-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, #7700bb 0%, #4900aa 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.18s;
}
.settings-buy-tag-btn:hover { opacity: 0.88; }
.settings-buy-tag-btn:disabled { opacity: 0.45; cursor: default; }

/* Avatar area */
.settings-avatar-area {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 2px dashed #e0d0f0;
    border-radius: 10px;
    background: #faf5ff;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.settings-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #cc66cc, #6600aa) center/cover no-repeat;
    border: 3px solid #7700bb;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.settings-avatar-actions { display: flex; flex-direction: column; gap: 6px; }

.settings-avatar-btn {
    background: #7700bb;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 16px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.settings-avatar-btn:hover { background: #5500aa; }

.settings-avatar-btn.btn-outline {
    background: none;
    color: #cc2200;
    border: 2px dashed #cc2200;
}

.settings-avatar-btn.btn-outline:hover { background: #fff5f5; }

/* Toggle switch */
.settings-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 2px solid #ccc;
    flex-shrink: 0;
}

.settings-toggle.on { background: #7700bb; border-color: #5500aa; }

.settings-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.settings-toggle.on::after { transform: translateX(18px); }

/* Theme cards */
.settings-theme-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.settings-theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    min-width: 90px;
    transition: border-color 0.15s ease;
}

.settings-theme-card:hover { border-color: #7700bb; }
.settings-theme-card.selected { border-color: #7700bb; background: rgba(119, 0, 187, 0.06); }

.settings-theme-preview {
    width: 70px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.theme-preview-light { background: linear-gradient(135deg, #f0e6ff, #fff5e6); }
.theme-preview-dark  { background: linear-gradient(135deg, #1a0030, #0a0010); }
.theme-preview-aura  { background: linear-gradient(135deg, #2a006a, #9a009a); }

.settings-theme-name { font-size: 11px; font-weight: 700; color: #444; }

/* Save button */
.settings-save-btn {
    background: #7700bb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    margin-top: 4px;
}

.settings-save-btn:hover {
    background: #5500aa;
    box-shadow: 0 3px 12px rgba(119, 0, 187, 0.35);
}

/* Popcoins box */
.settings-coins-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 2px dashed #c8a800;
    border-radius: 10px;
    background: #fffdf0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-coins-balance { display: flex; flex-direction: column; gap: 2px; }
.settings-coins-label  { font-size: 11px; color: #aaa; }
.settings-coins-amount { font-size: 26px; font-weight: 800; color: #c8a800; }

.settings-coins-buy {
    background: #c8a800;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.settings-coins-buy:hover { background: #a88900; }

/* Membership card */
.settings-membership-card {
    padding: 20px;
    border: 2px dashed #e07800;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(224, 120, 0, 0.05) 0%, transparent 100%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.settings-membership-info  { display: flex; flex-direction: column; gap: 4px; }
.settings-membership-tier  { font-size: 18px; font-weight: 800; color: #e07800; }
.settings-membership-desc  { font-size: 12px; color: #aaa; }
.settings-membership-perks { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.settings-perk { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #555; }
.settings-perk::before { content: '✓'; color: #e07800; font-weight: 800; }

/* Danger box */
.settings-danger-box {
    border: 2px dashed #cc2200;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 16px;
    background: #fff8f8;
}

.settings-danger-title { font-size: 13px; font-weight: 800; color: #cc2200; margin-bottom: 6px; }
.settings-danger-desc  { font-size: 12px; color: #aaa; margin-bottom: 14px; }

.settings-danger-btn {
    background: #cc2200;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 8px 18px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.settings-danger-btn:hover { background: #aa1100; }

/* ════════════════════════════════
   HISTORY PAGE
════════════════════════════════ */
.cw-history-page {
    max-width: 900px;
    margin: 24px auto 64px auto;
    font-family: 'Lexend', sans-serif;
    padding: 0 16px;
}

.history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.history-title {
    font-size: 26px;
    font-weight: 800;
    color: #111;
}

.history-sub {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.history-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.history-pause-btn,
.history-clear-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.history-pause-btn {
    background: #fff;
    border: 2px dashed #bbb;
    color: #555;
}

.history-pause-btn:hover { border-color: #7700bb; color: #7700bb; }
.history-pause-btn.paused { border-color: #1a9a3a; color: #1a9a3a; }

.history-clear-btn {
    background: #fff;
    border: 2px dashed #e07800;
    color: #e07800;
}

.history-clear-btn:hover { background: #fff8f0; }

/* Controls bar */
.history-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #eee;
    flex-wrap: wrap;
}

.history-filter-tabs { display: flex; gap: 6px; }

.history-tab {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 20px;
    border: 2px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.history-tab:hover { border-color: #7700bb; color: #7700bb; }
.history-tab.active { border-color: #7700bb; background: #7700bb; color: #fff; }

.history-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 7px 12px;
    background: #fff;
    transition: border-color 0.15s;
}

.history-search-wrap:focus-within { border-color: #7700bb; }

.history-search-icon { font-size: 13px; color: #bbb; }

.history-search-input {
    border: none;
    outline: none;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    color: #333;
    width: 180px;
    background: transparent;
}

.history-search-input::placeholder { color: #bbb; }

/* Date groups */
.history-date-group { margin-bottom: 28px; }

.history-date-label {
    font-size: 11px;
    font-weight: 800;
    color: #7700bb;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e8d8f8;
}

/* History item row */
.history-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    transition: opacity 0.25s ease;
}

.history-item:last-child { border-bottom: none; }

/* Thumbnail */
.history-thumb {
    width: 180px;
    min-width: 180px;
    height: 102px;
    border-radius: 8px;
    border: 2px dashed #ccc;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: hidden;
}

/* Playlist stack effect */
.history-thumb-playlist::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 5px;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px dashed rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.07);
    z-index: 0;
    pointer-events: none;
}

.history-type-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 9px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 1;
}

.badge-video    { background: #7700bb; color: #fff; }
.badge-live     { background: #cc2200; color: #fff; }
.badge-playlist { background: #e07800; color: #fff; }

.history-duration {
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

/* Item info */
.history-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.history-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.4;
}

.history-item-channel {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
}

.history-item-channel a {
    color: #7700bb;
    text-decoration: none;
    font-weight: 600;
}

.history-item-channel a:hover { text-decoration: underline; }

.history-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #aaa;
}

.history-item-views  { font-weight: 700; color: #1a9a3a; }
.history-item-dot    { color: #ddd; }
.history-item-cat    { font-weight: 600; color: #555; }
.history-item-watched { font-style: italic; }

/* Remove button */
.history-remove-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px dashed #ddd;
    background: transparent;
    color: #bbb;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    transition: all 0.15s;
}

.history-remove-btn:hover { border-color: #cc2200; color: #cc2200; background: #fff5f5; }

/* Empty state */
.history-empty {
    text-align: center;
    padding: 64px 0;
    font-size: 14px;
    color: #bbb;
    font-style: italic;
}

/* End marker */
.history-end {
    text-align: center;
    padding: 22px 0 8px 0;
    font-size: 11px;
    color: #ccc;
    border-top: 2px dashed #eee;
    font-style: italic;
}

/* Sort dropdown */
.history-sort-wrap { position: relative; }
.history-sort-btn {
    font-family: 'Lexend', sans-serif; font-size: 12px; font-weight: 600;
    border: 2px dashed #ccc; border-radius: 8px; background: #fff;
    color: #555; padding: 6px 14px; cursor: pointer; display: flex;
    align-items: center; gap: 6px; transition: border-color .15s, color .15s;
}
.history-sort-btn:hover, .history-sort-btn.open { border-color: #7700bb; color: #7700bb; }
.history-sort-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border: 2px solid rgba(119,0,187,.2); border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12); min-width: 160px; z-index: 50;
    overflow: hidden;
}
.history-sort-dropdown.open { display: block; }
.history-sort-option {
    font-family: 'Lexend', sans-serif; font-size: 12px; font-weight: 600;
    padding: 10px 16px; cursor: pointer; color: #444; display: flex;
    align-items: center; gap: 8px; transition: background .12s;
}
.history-sort-option:hover { background: rgba(119,0,187,.07); color: #7700bb; }
.history-sort-option.active { color: #7700bb; background: rgba(119,0,187,.08); }
.history-sort-option .sort-opt-sub { font-size: 10px; font-weight: 400; color: #aaa; margin-left: auto; }

/* Date group separator */
.history-date-group { margin-top: 22px; }
.history-date-label {
    font-family: 'Lexend', sans-serif; font-size: 11px; font-weight: 700;
    color: #7700bb; text-transform: uppercase; letter-spacing: .08em;
    padding: 0 0 6px 0; border-bottom: 1px solid rgba(119,0,187,.15);
    margin-bottom: 2px;
}

/* Paused banner */
.history-paused-banner {
    display: none; align-items: center; gap: 10px; background: rgba(26,154,58,.08);
    border: 1.5px dashed #1a9a3a; border-radius: 10px; padding: 10px 18px;
    margin-bottom: 16px; font-size: 12px; font-weight: 600; color: #1a9a3a;
}
.history-paused-banner.visible { display: flex; }

/* Dark / aura mode overrides */
[data-theme="dark"] .history-sort-btn,
[data-theme="aura"] .history-sort-btn { background: rgba(255,255,255,.04); color: #ccc; border-color: rgba(255,255,255,.18); }
[data-theme="dark"] .history-sort-dropdown,
[data-theme="aura"] .history-sort-dropdown { background: #1a0930; border-color: rgba(168,85,247,.35); }
[data-theme="dark"] .history-sort-option,
[data-theme="aura"] .history-sort-option { color: #ccc; }
[data-theme="dark"] .history-date-label,
[data-theme="aura"] .history-date-label { color: #c084fc; border-color: rgba(168,85,247,.2); }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .history-sort-btn { background: rgba(255,255,255,.04); color: #ccc; border-color: rgba(255,255,255,.18); }
    :root:not([data-theme="light"]) .history-sort-dropdown { background: #1a0930; border-color: rgba(168,85,247,.35); }
    :root:not([data-theme="light"]) .history-sort-option { color: #ccc; }
    :root:not([data-theme="light"]) .history-date-label { color: #c084fc; border-color: rgba(168,85,247,.2); }
}


/* ════════════════════════════════
   MEMBERSHIP PAGE
════════════════════════════════ */
.cw-membership-page {
    max-width: 1100px;
    margin: 0 auto 72px auto;
    font-family: 'Lexend', sans-serif;
    padding: 0 16px;
}

/* Hero */
.mem-hero {
    text-align: center;
    padding: 52px 20px 40px 20px;
}

.mem-hero-eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: #7700bb;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}

.mem-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin: 0 0 14px 0;
    line-height: 1.2;
}

.mem-hero-sub {
    font-size: 15px;
    color: #666;
    max-width: 580px;
    margin: 0 auto 22px auto;
    line-height: 1.7;
    font-weight: 400;
}

.mem-current-plan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #faf5ff;
    border: 2px dashed #d0b0e8;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    margin-bottom: 28px;
}

.mem-current-label { color: #888; font-weight: 600; }

.mem-current-chip {
    background: #eee;
    color: #555;
    font-weight: 800;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Billing toggle */
.mem-billing-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mem-billing-opt {
    font-size: 13px;
    font-weight: 700;
    color: #bbb;
    transition: color 0.15s;
}

.mem-billing-active { color: #111; }

.mem-billing-toggle {
    width: 44px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.mem-billing-toggle.on { background: #7700bb; }

.mem-billing-knob {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.mem-billing-toggle.on .mem-billing-knob { transform: translateX(20px); }

.mem-save-badge {
    font-size: 10px;
    font-weight: 800;
    background: #1a9a3a;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Tier grid */
.mem-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    align-items: start;
}

/* Tier card base */
.mem-tier-card {
    border: 2px dashed #ddd;
    border-radius: 14px;
    padding: 28px 24px;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: box-shadow 0.2s;
}

.mem-tier-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }

/* Free tier */
.mem-tier-free { border-color: #e0e0e0; }

/* Orbiter – featured */
.mem-tier-orbiter {
    border-color: #2277dd;
    border-style: solid;
    border-width: 2px;
    box-shadow: 0 4px 24px rgba(34,119,221,0.12);
}

/* CirclePass */
.mem-tier-circlepass {
    border-color: #d4a800;
    border-style: solid;
    border-width: 2px;
    background: linear-gradient(160deg, #fffdf0 0%, #fff 60%);
    box-shadow: 0 4px 24px rgba(212,168,0,0.13);
}

.mem-featured-banner {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #2277dd;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 10px;
    white-space: nowrap;
    letter-spacing: 0.4px;
}

.mem-tier-name {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.mem-tier-orbiter .mem-tier-name { color: #2277dd; }
.mem-tier-circlepass .mem-tier-name { color: #b88b00; }

.mem-tier-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
}

.mem-tier-currency {
    font-size: 18px;
    font-weight: 700;
    color: #555;
}

.mem-tier-price {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.mem-tier-per {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    margin-left: 2px;
}

.mem-tier-yearly-note {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    min-height: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.mem-tier-tagline {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
    line-height: 1.5;
}

.mem-tier-divider {
    border: none;
    border-top: 2px dashed #eee;
    margin-bottom: 16px;
}

.mem-tier-orbiter .mem-tier-divider { border-color: #d0e4f8; }
.mem-tier-circlepass .mem-tier-divider { border-color: #f0e0a0; }

/* Feature list */
.mem-feature-list {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.mem-feature {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.mem-feat-no { color: #bbb; }

.mem-feat-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.mem-feat-yes  { background: #e8f8ee; color: #1a9a3a; font-size: 11px; font-weight: 800; }
.mem-feat-coin { background: #fff8e0; color: #c8a800; font-size: 11px; }
.mem-feat-no .mem-feat-icon { background: #f5f5f5; color: #bbb; font-size: 9px; }

/* CTA buttons */
.mem-tier-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
    letter-spacing: 0.2px;
}

.mem-btn-current {
    background: #f0f0f0;
    color: #aaa;
    cursor: default;
    border: 2px dashed #ddd;
}

.mem-btn-orbiter {
    background: #2277dd;
    color: #fff;
    box-shadow: 0 3px 12px rgba(34,119,221,0.3);
}

.mem-btn-orbiter:hover {
    background: #1a60bb;
    box-shadow: 0 4px 16px rgba(34,119,221,0.4);
    transform: translateY(-1px);
}

.mem-btn-circlepass {
    background: linear-gradient(135deg, #d4a800 0%, #b88b00 100%);
    color: #fff;
    box-shadow: 0 3px 14px rgba(212,168,0,0.35);
}

.mem-btn-circlepass:hover {
    background: linear-gradient(135deg, #e0b800 0%, #c8a000 100%);
    box-shadow: 0 5px 18px rgba(212,168,0,0.45);
    transform: translateY(-1px);
}

/* Perks spotlight */
.mem-perks-section {
    margin-bottom: 56px;
    padding: 36px 32px;
    background: #faf5ff;
    border: 2px dashed #e0c8f4;
    border-radius: 16px;
}

.mem-perks-title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 28px;
    text-align: center;
}

.mem-perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mem-perk {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mem-perk-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.mem-perk-name {
    font-size: 14px;
    font-weight: 800;
    color: #7700bb;
}

.mem-perk-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
}

/* FAQ */
.mem-faq-section {
    max-width: 720px;
    margin: 0 auto 24px auto;
}

.mem-faq-title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    text-align: center;
}

.mem-faq-item {
    border: 2px dashed #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.mem-faq-q {
    width: 100%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}

.mem-faq-q:hover { background: #faf5ff; }

.mem-faq-arrow {
    flex-shrink: 0;
    font-size: 11px;
    color: #7700bb;
    transition: transform 0.22s ease;
}

.mem-faq-a {
    max-height: 0;
    overflow: hidden;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    font-weight: 400;
    padding: 0 20px;
    transition: max-height 0.28s ease;
    box-sizing: border-box;
    border-top: 0px dashed #eee;
}

.mem-faq-item[data-open="true"] .mem-faq-a {
    padding: 14px 20px 18px 20px;
    border-top: 1px dashed #eee;
}


/* ════════════════════════════════════════════════════════════════
   EVENT SHOWCASE — CREATIVE VISION
   Remove this CSS block when the event ends (pairs with
   the marked HTML block in Home.html and Eventpage.html)
════════════════════════════════════════════════════════════════ */

@keyframes event-border-glow {
    0%, 100% {
        box-shadow:
            0 0 8px #dd1100,
            0 0 20px rgba(180,0,0,0.42),
            0 0 42px rgba(110,0,0,0.2),
            inset 0 0 14px rgba(200,0,0,0.025);
        border-color: #bb1100;
    }
    50% {
        box-shadow:
            0 0 16px #ff2200,
            0 0 36px rgba(255,34,0,0.52),
            0 0 72px rgba(180,0,0,0.28),
            0 0 110px rgba(110,0,0,0.12),
            inset 0 0 24px rgba(200,0,0,0.055);
        border-color: #ff2200;
    }
}

@keyframes event-scan {
    0%   { top: -60px; }
    100% { top: 100%; }
}

@keyframes event-badge-blink {
    0%, 84%, 100% { opacity: 1; }
    90%           { opacity: 0.15; }
}

/* Wrapper */
.cw-event-showcase-wrap {
    max-width: 1280px;
    margin: 28px auto;
    padding: 0 20px;
}

/* LED dot-matrix panel */
.cw-event-panel {
    background-color: #060000;
    background-image: radial-gradient(circle, rgba(100,0,0,0.62) 1px, transparent 1px);
    background-size: 8px 8px;
    border: 2px solid #bb1100;
    border-radius: 12px;
    padding: 26px 28px 24px 28px;
    position: relative;
    overflow: hidden;
    animation: event-border-glow 2.8s ease-in-out infinite;
}

/* Scan-line sweep */
.cw-event-panel::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: -60px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,18,0,0.042), transparent);
    animation: event-scan 7s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Header */
.event-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.event-header-left  { display: flex; flex-direction: column; gap: 6px; }
.event-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

.event-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #cc1100;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
    animation: event-badge-blink 3.2s ease-in-out infinite;
}

.event-live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff;
    flex-shrink: 0;
}

.event-showcase-title {
    font-family: 'Lexend', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ff2200;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow:
        0 0 6px #ff3300,
        0 0 14px rgba(220,30,0,0.62),
        0 0 28px rgba(140,0,0,0.32);
    line-height: 1;
    margin: 0;
}

.event-showcase-theme {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,95,60,0.68);
    font-family: 'Lexend', sans-serif;
}

.event-ends-chip {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,110,70,0.8);
    font-family: 'Lexend', sans-serif;
    background: rgba(140,0,0,0.2);
    border: 1px solid rgba(190,30,0,0.25);
    border-radius: 6px;
    padding: 4px 10px;
}

.event-view-all-btn {
    font-size: 11px;
    font-weight: 800;
    color: #ff3300;
    font-family: 'Lexend', sans-serif;
    text-decoration: none;
    border: 1px dashed rgba(200,30,0,0.42);
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.15s;
    text-shadow: 0 0 6px rgba(255,50,0,0.38);
}

.event-view-all-btn:hover {
    background: rgba(200,20,0,0.12);
    border-color: #ff2200;
    text-shadow: 0 0 10px rgba(255,50,0,0.65);
}

/* Strip */
.event-video-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: #550000 #0d0000;
}

.event-video-strip::-webkit-scrollbar        { height: 4px; }
.event-video-strip::-webkit-scrollbar-track  { background: #0d0000; border-radius: 2px; }
.event-video-strip::-webkit-scrollbar-thumb  { background: #550000; border-radius: 2px; }

/* Strip card */
.event-card {
    flex-shrink: 0;
    width: 208px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(140,0,0,0.28);
    border-radius: 8px;
    overflow: hidden;
    background: #0a0000;
    transition: border-color 0.18s, box-shadow 0.18s;
    text-decoration: none;
    cursor: pointer;
}

.event-card:hover {
    border-color: rgba(255,50,0,0.62);
    box-shadow: 0 0 10px rgba(200,0,0,0.2);
}

.event-card-thumb {
    width: 100%;
    height: 118px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 7px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.event-card-cat {
    position: absolute;
    top: 7px; left: 7px;
    font-size: 8px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    color: #ff2200;
    background: rgba(0,0,0,0.82);
    border: 1px solid rgba(190,0,0,0.42);
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-shadow: 0 0 5px rgba(255,34,0,0.48);
}

.event-card-rank {
    position: absolute;
    top: 7px; right: 7px;
    font-size: 10px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    color: rgba(255,135,95,0.88);
    text-shadow: 0 0 5px rgba(255,70,0,0.55);
}

.event-card-duration {
    font-size: 10px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    background: rgba(0,0,0,0.82);
    color: #ddd;
    padding: 2px 6px;
    border-radius: 3px;
}

.event-card-info {
    padding: 9px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-card-title {
    font-size: 12px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    color: #ffd0c4;
    line-height: 1.35;
}

.event-card-creator {
    font-size: 10px;
    font-weight: 600;
    font-family: 'Lexend', sans-serif;
    color: rgba(255,95,65,0.58);
}

.event-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.event-card-views {
    font-size: 10px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #22ff55;
    text-shadow: 0 0 4px rgba(0,200,60,0.48);
}

.event-card-score {
    font-size: 10px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: rgba(255,175,115,0.8);
    text-shadow: 0 0 4px rgba(255,100,0,0.32);
}

/* ── EVENT PAGE (Eventpage.html) ── */

.cw-ep-page {
    font-family: 'Lexend', sans-serif;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 64px 20px;
}

/* Hero */
.ep-hero {
    background-color: #060000;
    background-image: radial-gradient(circle, rgba(100,0,0,0.62) 1px, transparent 1px);
    background-size: 8px 8px;
    border: 2px solid #bb1100;
    border-radius: 14px;
    margin: 24px 0 22px 0;
    padding: 42px 40px 38px 40px;
    position: relative;
    overflow: hidden;
    animation: event-border-glow 2.8s ease-in-out infinite;
    text-align: center;
}

.ep-hero::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -60px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,18,0,0.04), transparent);
    animation: event-scan 7s linear infinite;
    pointer-events: none;
}

.ep-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #cc1100;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 18px;
    animation: event-badge-blink 3.2s ease-in-out infinite;
}

.ep-hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #ff2200;
    text-transform: uppercase;
    letter-spacing: 10px;
    text-shadow:
        0 0 8px #ff3300,
        0 0 18px rgba(220,30,0,0.65),
        0 0 40px rgba(140,0,0,0.35);
    line-height: 1;
    margin: 0 0 12px 0;
    position: relative;
    z-index: 1;
}

.ep-hero-sub {
    font-size: 14px;
    color: rgba(255,100,70,0.7);
    font-weight: 500;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.ep-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.ep-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ep-hero-stat-num {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #22ff55;
    text-shadow: 0 0 6px rgba(0,200,60,0.5);
}

.ep-hero-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,100,70,0.6);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ep-hero-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(200,30,0,0.3);
}

.ep-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.ep-submit-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 800;
    background: #cc1100;
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(200,0,0,0.4);
    transition: all 0.16s;
    letter-spacing: 0.3px;
}

.ep-submit-btn:hover {
    background: #ff1a00;
    box-shadow: 0 5px 20px rgba(220,0,0,0.55);
    transform: translateY(-1px);
}

.ep-rules-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    color: rgba(255,90,60,0.8);
    border: 1px dashed rgba(200,30,0,0.4);
    padding: 11px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.16s;
}

.ep-rules-btn:hover {
    background: rgba(200,20,0,0.1);
    border-color: #ff2200;
    color: #ff3300;
}

.ep-ends-note {
    margin-top: 16px;
    font-size: 11px;
    color: rgba(255,90,60,0.5);
    position: relative;
    z-index: 1;
}

/* Prizes */
.ep-prizes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 14px;
    margin-bottom: 30px;
    align-items: stretch;
}

.ep-prize-card {
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 2px solid transparent;
}

.ep-prize-gold     { background: linear-gradient(135deg, #201400, #0a0800); border-color: #c8a800; }
.ep-prize-silver   { background: linear-gradient(135deg, #141418, #080810); border-color: #8888aa; }
.ep-prize-bronze   { background: linear-gradient(135deg, #180d00, #080400); border-color: #aa6622; }
.ep-prize-participant { background: #0c0c0c; border: 2px dashed #333; }

.ep-prize-pos {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.ep-prize-gold .ep-prize-pos     { color: #d4a800; text-shadow: 0 0 8px rgba(212,168,0,0.5); }
.ep-prize-silver .ep-prize-pos   { color: #aaaacc; }
.ep-prize-bronze .ep-prize-pos   { color: #cc8844; }
.ep-prize-participant .ep-prize-pos { color: #777; font-size: 11px; }

.ep-prize-name {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.ep-prize-participant .ep-prize-name { color: #555; font-size: 11px; }

.ep-prize-rewards {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.ep-prize-rewards span {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ep-prize-rewards span::before {
    content: '◆';
    font-size: 7px;
    opacity: 0.5;
}

/* Content area */
.ep-content { display: block; }

.ep-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ep-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.ep-filter-tab {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 15px;
    border-radius: 20px;
    border: 2px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.ep-filter-tab:hover { border-color: #cc1100; color: #cc1100; }
.ep-filter-tab.active { border-color: #cc1100; background: #cc1100; color: #fff; border-style: solid; }

.ep-tab-count {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.7;
    margin-left: 3px;
}

.ep-sort-select {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fff;
    color: #555;
    cursor: pointer;
    outline: none;
}

/* Video grid */
.ep-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ep-grid-card {
    border: 2px dashed #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.ep-grid-card:hover {
    border-color: #cc1100;
    box-shadow: 0 4px 16px rgba(200,0,0,0.1);
    transform: translateY(-2px);
}

.ep-grid-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 8px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.ep-grid-cat {
    position: absolute;
    top: 8px; left: 8px;
    font-size: 8px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    color: #ff2200;
    background: rgba(0,0,0,0.82);
    border: 1px solid rgba(200,0,0,0.45);
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(255,34,0,0.45);
}

.ep-grid-rank {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 11px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    color: rgba(255,140,100,0.92);
    text-shadow: 0 0 5px rgba(255,70,0,0.55);
}

.ep-grid-duration {
    font-size: 10px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    background: rgba(0,0,0,0.78);
    color: #eee;
    padding: 2px 7px;
    border-radius: 3px;
}

/* Score bar along bottom of thumb */
.ep-grid-score-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #cc1100, #ff4400);
    box-shadow: 0 0 6px rgba(220,30,0,0.6);
}

.ep-grid-info {
    padding: 11px 12px 13px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ep-grid-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
}

.ep-grid-creator {
    font-size: 11px;
    color: #999;
    font-weight: 600;
}

.ep-grid-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.ep-stat-views {
    font-size: 11px;
    font-weight: 700;
    color: #1a9a3a;
}

.ep-stat-score {
    font-size: 11px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #cc1100;
}

/* ════════════════════════════════════════════════════════════════
   END EVENT SHOWCASE CSS
════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   CHATHUB PAGE
════════════════════════════════════════════════════════════════ */

.cw-chathub-page {
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7f4fc;
}

.chathub-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

/* ── Sidebar ── */
.chathub-sidebar {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1.5px solid #e8e0f0;
    overflow: hidden;
}

.chathub-sidebar-header {
    padding: 16px 14px 10px;
    border-bottom: 1px solid #f0eaf8;
    flex-shrink: 0;
}

.chathub-sidebar-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a0028;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.chathub-search {
    display: flex;
    align-items: center;
    background: #f5f0fa;
    border: 1.5px solid #e0d0f0;
    border-radius: 8px;
    padding: 6px 10px;
    gap: 6px;
}

.chathub-search-icon {
    font-size: 13px;
    color: #aaa;
    flex-shrink: 0;
}

.chathub-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    color: #333;
    width: 100%;
}

.chathub-search-input::placeholder { color: #bbb; }

/* ── Filter tabs ── */
.chathub-filter-tabs {
    display: flex;
    gap: 0;
    padding: 8px 14px 0;
    border-bottom: 1px solid #f0eaf8;
    flex-shrink: 0;
}

.chathub-filter-tab {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    padding: 6px 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    letter-spacing: 0.3px;
    user-select: none;
}

.chathub-filter-tab.active {
    color: #7700bb;
    border-bottom-color: #7700bb;
}

.chathub-filter-tab:hover { color: #7700bb; }

/* ── Conversation list ── */
.chathub-conv-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.chathub-section-label {
    font-size: 10px;
    font-weight: 800;
    color: #bbb;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 14px 4px;
}

.chathub-conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.12s;
    position: relative;
}

.chathub-conv-item:hover { background: #f5f0fa; }
.chathub-conv-item.active { background: #f0e6ff; }

.chathub-conv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px dashed #ccc;
    position: relative;
}

.chathub-conv-avatar-online::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1a9a3a;
    border: 2px solid #fff;
}

.chathub-conv-group-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    border: 2px dashed #bbb;
}

.chathub-conv-info {
    flex: 1;
    min-width: 0;
}

.chathub-conv-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a0028;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chathub-member-count {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #7700bb;
    border-radius: 10px;
    padding: 1px 6px;
}

.chathub-conv-preview {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.chathub-conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.chathub-conv-time {
    font-size: 10px;
    color: #bbb;
    font-weight: 600;
}

.chathub-unread {
    background: #7700bb;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ── Chat panel (right side) ── */
.chathub-chat-panel {
    display: flex;
    flex-direction: column;
    background: #faf8ff;
    overflow: hidden;
    height: 100%;
}

.chathub-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1.5px solid #e8e0f0;
    flex-shrink: 0;
}

.chathub-chat-header-name {
    font-size: 15px;
    font-weight: 800;
    color: #1a0028;
}

.chathub-chat-header-status {
    font-size: 11px;
    color: #1a9a3a;
    font-weight: 600;
    margin-top: 1px;
}

.chathub-chat-header-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.chathub-header-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #7700bb;
    background: #f5f0fa;
    border: 1.5px solid #e0d0f0;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s;
}

.chathub-header-btn:hover { background: #ede0ff; }

/* ── Messages area ── */
.chathub-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chathub-date-sep {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin: 6px 0;
}

.chathub-msg-group {
    display: flex;
    flex-direction: column;
    max-width: 60%;
}

.chathub-msg-group.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.chathub-msg-group.recv {
    align-self: flex-start;
    align-items: flex-start;
}

.chathub-msg-sender {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.chathub-msg-bubble {
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #111;
    word-break: break-word;
}

.chathub-msg-group.sent .chathub-msg-bubble {
    background: #7700bb;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chathub-msg-group.recv .chathub-msg-bubble {
    background: #fff;
    border: 1.5px solid #e8e0f0;
    border-bottom-left-radius: 4px;
}

.chathub-msg-time {
    font-size: 10px;
    color: #bbb;
    font-weight: 600;
    margin-top: 4px;
}

/* ── Input bar ── */
.chathub-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1.5px solid #e8e0f0;
    flex-shrink: 0;
}

.chathub-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f0fa;
    border: 1.5px solid #e0d0f0;
    border-radius: 10px;
    padding: 8px 12px;
    gap: 8px;
}

.chathub-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    color: #333;
}

.chathub-input::placeholder { color: #bbb; }

.chathub-input-emoji {
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.1s;
}

.chathub-input-emoji:hover { opacity: 1; }

.chathub-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #7700bb;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.12s;
}

.chathub-send-btn:hover { background: #5a0090; }

.chathub-send-btn-off { opacity: 0.4; cursor: default; }
.chathub-send-btn-off:hover { background: #7700bb; }

.chathub-section-empty { padding: 18px 14px 10px; }
.chathub-section-empty-icon { font-size: 24px; margin-bottom: 6px; }
.chathub-section-label-spaced { margin-top: 8px; }

.chathub-go-friends-link {
    color: #7700bb;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

/* ── Placeholder panels ── */
.chathub-panel-placeholder {
    align-items: center;
    justify-content: space-between;
}

.chathub-placeholder-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #bbb;
}

.chathub-placeholder-content span {
    font-size: 48px;
    opacity: 0.4;
}

.chathub-placeholder-content p {
    font-size: 15px;
    font-weight: 700;
    color: #ccc;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   FRIENDHUB PAGE
════════════════════════════════════════════════════════════════ */

.cw-friendhub-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

/* ── Page header ── */
.fh-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.fh-page-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a0028;
    letter-spacing: 0.3px;
}

.fh-page-sub {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-top: 4px;
}

.fh-add-friend-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #7700bb;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.12s;
}

.fh-add-friend-btn:hover { background: #5a0090; }

/* ── Sections ── */
.fh-section {
    margin-bottom: 36px;
}

.fh-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1.5px solid #ede6f8;
    padding-bottom: 10px;
}

.fh-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a0028;
}

.fh-section-count {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #7700bb;
    border-radius: 10px;
    padding: 2px 8px;
}

/* ── Friend Requests grid ── */
.fh-requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.fh-request-card {
    background: #fff;
    border: 1.5px solid #e8e0f0;
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    transition: opacity 0.25s, transform 0.25s;
}

.fh-req-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px dashed #ccc;
    margin-bottom: 6px;
}

.fh-req-name {
    font-size: 14px;
    font-weight: 800;
    color: #1a0028;
}

.fh-req-handle {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
}

.fh-req-mutual {
    font-size: 11px;
    color: #7700bb;
    font-weight: 600;
    margin-top: 4px;
}

.fh-req-mutual span { font-weight: 800; }

.fh-req-score {
    font-size: 11px;
    color: #999;
    font-weight: 600;
}

.fh-req-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.fh-accept-btn,
.fh-decline-btn {
    flex: 1;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    padding: 7px 4px;
    cursor: pointer;
    border: none;
    transition: background 0.12s;
    letter-spacing: 0.3px;
}

.fh-accept-btn {
    background: #1a9a3a;
    color: #fff;
}

.fh-accept-btn:hover { background: #15822f; }

.fh-decline-btn {
    background: #f0eafa;
    color: #7700bb;
    border: 1.5px solid #e0d0f0;
}

.fh-decline-btn:hover { background: #ede0ff; }

/* ── Friends controls (tabs + search) ── */
.fh-friends-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 14px;
    flex-wrap: wrap;
}

.fh-friends-tabs {
    display: flex;
    gap: 0;
    background: #f5f0fa;
    border-radius: 8px;
    padding: 3px;
}

.fh-friend-tab {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.fh-friend-tab.active {
    background: #fff;
    color: #7700bb;
    box-shadow: 0 1px 4px rgba(119,0,187,0.1);
}

.fh-friends-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0d0f0;
    border-radius: 8px;
    padding: 7px 12px;
    gap: 8px;
    min-width: 200px;
}

.fh-friends-search-input {
    border: none;
    outline: none;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    color: #333;
    background: transparent;
    width: 100%;
}

.fh-friends-search-input::placeholder { color: #bbb; }

/* ── Friends grid ── */
.fh-friends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.fh-friend-card {
    background: #fff;
    border: 1.5px solid #e8e0f0;
    border-radius: 12px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    transition: box-shadow 0.15s;
}

.fh-friend-card:hover {
    box-shadow: 0 4px 16px rgba(119,0,187,0.09);
}

.fh-friend-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px dashed #ccc;
    margin-bottom: 6px;
    position: relative;
}

.fh-friend-online::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a9a3a;
    border: 2px solid #fff;
}

.fh-friend-name {
    font-size: 13px;
    font-weight: 800;
    color: #1a0028;
}

.fh-friend-handle {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
}

.fh-friend-score {
    font-size: 11px;
    font-weight: 700;
    color: #7700bb;
    margin-top: 3px;
}

.fh-friend-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    width: 100%;
    align-items: center;
}

.fh-msg-btn {
    flex: 1;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    background: #7700bb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 8px;
    cursor: pointer;
    transition: background 0.12s;
    letter-spacing: 0.2px;
}

.fh-msg-btn:hover { background: #5a0090; }

.fh-view-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #f5f0fa;
    border: 1.5px solid #e0d0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    color: #7700bb;
    transition: background 0.12s;
    flex-shrink: 0;
}

.fh-view-btn:hover { background: #ede0ff; }

/* ── FriendHub dark / aura mode overrides ── */
html[data-theme="dark"] .fh-page-title,
html[data-theme="aura"] .fh-page-title  { color: #e0c8ff; }
html[data-theme="dark"] .fh-section-title,
html[data-theme="aura"] .fh-section-title { color: #e0c8ff; }
html[data-theme="dark"] .fh-section-header,
html[data-theme="aura"] .fh-section-header { border-bottom-color: rgba(147,51,234,0.25); }
html[data-theme="dark"] .fh-req-name,
html[data-theme="aura"] .fh-req-name  { color: #e0c8ff; }
html[data-theme="dark"] .fh-friend-name,
html[data-theme="aura"] .fh-friend-name { color: #e0c8ff; }
html[data-theme="dark"] .fh-request-card,
html[data-theme="aura"] .fh-request-card { background: #1a0d28; border-color: rgba(147,51,234,0.25); }
html[data-theme="dark"] .fh-friend-card,
html[data-theme="aura"] .fh-friend-card  { background: #1a0d28; border-color: rgba(147,51,234,0.25); }
html[data-theme="dark"] .fh-friends-tabs,
html[data-theme="aura"] .fh-friends-tabs { background: rgba(124,58,237,0.12); }
html[data-theme="dark"] .fh-friend-tab.active,
html[data-theme="aura"] .fh-friend-tab.active { background: rgba(124,58,237,0.3); color: #cc88ff; }
html[data-theme="dark"] .fh-friend-tab,
html[data-theme="aura"] .fh-friend-tab { color: rgba(224,200,255,0.5); }
html[data-theme="dark"] .fh-page-sub,
html[data-theme="aura"] .fh-page-sub { color: rgba(224,200,255,0.6); }

/* ── Add Friend modal ── */
.fh-add-modal-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
}
.fh-add-modal {
    background: #fff; border-radius: 16px;
    width: 400px; max-width: 94vw;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    font-family: 'Lexend', sans-serif; overflow: hidden;
}
html[data-theme="dark"] .fh-add-modal,
html[data-theme="aura"] .fh-add-modal { background: #180c26; border: 1px solid rgba(147,51,234,0.25); }
.fh-add-modal-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 12px; border-bottom: 1px solid #f0eaf8;
}
html[data-theme="dark"] .fh-add-modal-hd,
html[data-theme="aura"] .fh-add-modal-hd { border-color: rgba(147,51,234,0.2); }
.fh-add-modal-title { font-size: 15px; font-weight: 800; color: #1a0028; }
html[data-theme="dark"] .fh-add-modal-title,
html[data-theme="aura"] .fh-add-modal-title { color: #e0c8ff; }
.fh-add-modal-close {
    background: none; border: none; cursor: pointer;
    font-size: 22px; color: #aaa; line-height: 1; padding: 0;
}
.fh-add-modal-close:hover { color: #555; }
.fh-add-modal-body { padding: 16px 20px 20px; }
.fh-add-search-wrap {
    display: flex; align-items: center; gap: 8px;
    background: #f5f0fa; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px;
}
html[data-theme="dark"] .fh-add-search-wrap,
html[data-theme="aura"] .fh-add-search-wrap { background: rgba(124,58,237,0.12); }
.fh-add-search-wrap input {
    flex: 1; border: none; background: none; outline: none;
    font-family: 'Lexend', sans-serif; font-size: 13px; color: #333;
}
html[data-theme="dark"] .fh-add-search-wrap input,
html[data-theme="aura"] .fh-add-search-wrap input { color: #e0c8ff; }
.fh-add-search-wrap input::placeholder { color: #bbb; }
.fh-add-results { max-height: 240px; overflow-y: auto; }
.fh-add-user-row {
    display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-radius: 8px;
}
.fh-add-user-av {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg,#7700bb,#4400aa);
    color: #fff; font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
}
.fh-add-user-info { flex: 1; min-width: 0; }
.fh-add-user-name { font-size: 13px; font-weight: 700; color: #1a0028; }
html[data-theme="dark"] .fh-add-user-name,
html[data-theme="aura"] .fh-add-user-name { color: #e0c8ff; }
.fh-add-user-handle { font-size: 11px; color: #999; }
.fh-add-user-btn {
    padding: 6px 14px; border-radius: 8px; border: none;
    font-family: 'Lexend', sans-serif; font-size: 11px; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: opacity 0.12s;
}
.fh-add-user-btn.send { background: linear-gradient(135deg,#7700bb,#5500aa); color: #fff; }
.fh-add-user-btn.send:hover { opacity: 0.85; }
.fh-add-user-btn.sent   { background: #ede0ff; color: #7700bb; cursor: default; }
.fh-add-user-btn.friend { background: #d4fce9; color: #15803d; cursor: default; }
.fh-add-hint { color: #bbb; font-size: 12px; text-align: center; padding: 20px 0; }
html[data-theme="dark"] .fh-add-hint,
html[data-theme="aura"] .fh-add-hint { color: rgba(224,200,255,0.4); }

/* ════════════════════════════════════════════════════════════════
   NOTIFICATIONS PAGE
════════════════════════════════════════════════════════════════ */

.cw-notif-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

/* ── Page header ── */
.notif-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.notif-page-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a0028;
    letter-spacing: 0.3px;
}

.notif-page-sub {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-top: 5px;
}

.notif-page-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.notif-settings-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #777;
    background: #f5f0fa;
    border: 1.5px solid #e0d0f0;
    border-radius: 7px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.12s;
}

.notif-settings-btn:hover { background: #ede0ff; color: #7700bb; }

/* ════════════════════════════════
   FLAG MODAL
════════════════════════════════ */
.flag-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 8000;
    display: none;
    align-items: center;
    justify-content: center;
}
.flag-modal-overlay.open { display: flex; }

.flag-modal {
    background: #fff;
    border-radius: 14px;
    border: 2px dashed #d0a0f0;
    padding: 28px;
    width: 480px;
    max-width: 95vw;
    max-height: 88vh;
    overflow-y: auto;
    font-family: 'Lexend', sans-serif;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.3);
}

.flag-modal-title { font-size: 17px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.flag-modal-sub   { font-size: 12px; color: #888; margin-bottom: 20px; line-height: 1.5; }
.flag-reasons { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }

.flag-reason-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #e8e0f0;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-size: 13px;
    font-weight: 500;
    color: #2a2a2a;
    user-select: none;
}
.flag-reason-opt:hover { border-color: #b080e0; background: #faf4ff; }
.flag-reason-opt.selected { border-color: #7700bb; background: #f5e8ff; color: #4400aa; }
.flag-reason-opt input[type="radio"] { accent-color: #7700bb; width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }

.flag-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.flag-detail-input {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    color: #1a1a1a;
    border: 1.5px solid #e0d0f0;
    border-radius: 8px;
    padding: 10px 12px;
    resize: vertical;
    min-height: 72px;
    outline: none;
    transition: border-color 0.15s;
    margin-bottom: 20px;
}
.flag-detail-input:focus { border-color: #7700bb; }

.flag-cooldown-msg {
    background: #fff8e6;
    border: 1.5px solid #f0c060;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    color: #885500;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.5;
}

.flag-modal-footer { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }

.flag-cancel-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s;
}
.flag-cancel-btn:hover { background: #e0e0e0; }

.flag-submit-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #cc2200;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.15s;
}
.flag-submit-btn:hover { background: #aa1500; }
.flag-submit-btn:disabled { background: #ccc; cursor: not-allowed; }

.flag-success-content { text-align: center; padding: 14px 0 6px; }
.flag-success-icon  { font-size: 40px; margin-bottom: 10px; }
.flag-success-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.flag-success-sub   { font-size: 12px; color: #888; line-height: 1.5; }

/* Flag disclaimer overlay */
.flag-disc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 8100; display: none; align-items: center; justify-content: center; }
.flag-disc-overlay.open { display: flex; }
.flag-disc-modal { background: #fff; border-radius: 18px; padding: 28px 30px 24px; max-width: 390px; width: 92%; font-family: 'Lexend', sans-serif; box-shadow: 0 16px 48px rgba(0,0,0,0.22); }
.flag-disc-icon { font-size: 36px; text-align: center; margin-bottom: 8px; }
.flag-disc-title { font-size: 17px; font-weight: 800; color: #111; text-align: center; margin-bottom: 6px; }
.flag-disc-msg { font-size: 13px; color: #555; text-align: center; line-height: 1.55; margin-bottom: 16px; }
.flag-disc-cards { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.flag-disc-card { display: flex; align-items: center; gap: 12px; background: #f8f4ff; border: 1.5px solid #e8d8ff; border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: background 0.15s; }
.flag-disc-card:hover { background: #f0e8fd; }
.flag-disc-card-icon { font-size: 22px; flex-shrink: 0; }
.flag-disc-card-text { flex: 1; }
.flag-disc-card-label { font-family: 'Lexend', sans-serif; font-size: 13px; font-weight: 700; color: #111; margin-bottom: 2px; }
.flag-disc-card-desc { font-family: 'Lexend', sans-serif; font-size: 11.5px; color: #888; line-height: 1.4; }
.flag-disc-done { display: block; width: 100%; padding: 11px; background: #f0f0f0; color: #333; border: none; border-radius: 10px; font-family: 'Lexend', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; }
.flag-disc-done:hover { background: #e4e4e4; }

/* Video status tags */
.video-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    border-radius: 5px;
    padding: 3px 8px;
    vertical-align: middle;
    margin-left: 8px;
    white-space: nowrap;
}
.vst-flagged     { background: #fff0e0; color: #b84000; border: 1px dashed #e08000; }
.vst-watchlisted { background: #fffbe0; color: #806000; border: 1px dashed #cca000; }
.vst-blacklisted { background: #1a0000; color: #ff5555; border: 1px dashed #ff3333; }
.vst-approved    { background: #e0fff0; color: #006630; border: 1px dashed #40bb70; }

/* Admin status buttons for video management */
.admin-status-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: opacity 0.15s;
    display: block;
    width: 100%;
    margin-bottom: 3px;
    text-align: center;
}
.admin-status-btn:hover { opacity: 0.8; }
.admin-status-btn.watchlist  { background: #3a3000; color: #f0c000; }
.admin-status-btn.approve    { background: #003a15; color: #44dd80; }
.admin-status-btn.blacklist  { background: #3a0000; color: #ff5555; }
.admin-status-btn.clear      { background: #222; color: #999; }

.admin-video-status-cell {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
    margin-bottom: 4px;
}
.avs-none        { color: #555; }
.avs-flagged     { background: #3a1500; color: #ff8844; }
.avs-watchlisted { background: #3a3000; color: #f0c000; }
.avs-blacklisted { background: #2a0000; color: #ff3333; }
.avs-approved    { background: #003a15; color: #44dd80; }

/* Flag button reported state */
.watch-action-btn.flag-reported { color: #cc2200; border-color: #f0b0b0; background: #fff5f5; }

/* ── Link-as-card resets (feed-card, feed-rec-card, sidebar-rec-card used as <a>) ── */
a.feed-card,
a.feed-rec-card,
a.sidebar-rec-card {
    text-decoration: none;
    color: inherit;
    display: flex;
}
a.feed-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
a.feed-rec-card   { display: block; }

/* ════════════════════════════════
   UPLOAD PAGE
════════════════════════════════ */
.cw-upload-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px 60px;
    font-family: 'Lexend', sans-serif;
}

.upload-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.upload-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.upload-page-sub {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
}

.upload-back-btn {
    font-size: 12px;
    font-weight: 600;
    color: #7700bb;
    text-decoration: none;
    border: 1.5px solid #d0a0ff;
    border-radius: 6px;
    padding: 6px 12px;
    transition: background 0.15s;
    white-space: nowrap;
}
.upload-back-btn:hover { background: #f5e8ff; }

/* Drop zone */
.upload-drop-zone {
    border: 2px dashed #c0a0e0;
    border-radius: 14px;
    background: #fdf6ff;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
}
.upload-drop-zone.drag-over {
    border-color: #7700bb;
    background: #f0e0ff;
}
.upload-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.upload-drop-icon {
    font-size: 48px;
    line-height: 1;
}
.upload-drop-title {
    font-size: 16px;
    font-weight: 700;
    color: #2a2a2a;
}
.upload-drop-sub {
    font-size: 12px;
    color: #999;
}
.upload-drop-btn {
    background: #7700bb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 22px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    pointer-events: none;
}
.upload-drop-zone:hover .upload-drop-btn { background: #5500aa; }
.upload-file-chosen {
    font-size: 13px;
    font-weight: 600;
    color: #7700bb;
    display: none;
    margin-top: 4px;
}

/* Form grid */
.upload-form-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.upload-form-left { display: flex; flex-direction: column; gap: 18px; }
.upload-form-right { display: flex; flex-direction: column; gap: 18px; }

.upload-field { display: flex; flex-direction: column; gap: 6px; }
.upload-label {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.upload-input,
.upload-textarea,
.upload-select {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    color: #1a1a1a;
    border: 1.5px solid #d8d0e8;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    resize: vertical;
}
.upload-input:focus,
.upload-textarea:focus,
.upload-select:focus { border-color: #7700bb; }
.upload-textarea { min-height: 110px; }
.upload-char-hint {
    font-size: 11px;
    color: #bbb;
    text-align: right;
    margin-top: -4px;
}

/* Thumbnail preview box */
.upload-thumb-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: radial-gradient(circle at 35% 35%, #cca0ee, #f5e8ff);
    border: 2px dashed #c0a0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.upload-thumb-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.upload-thumb-placeholder {
    font-size: 13px;
    font-weight: 600;
    color: #9960cc;
    pointer-events: none;
}
.upload-thumb-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/* Visibility & monetization row */
.upload-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Tags field */
.upload-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 1.5px solid #d8d0e8;
    border-radius: 8px;
    padding: 8px 10px;
    min-height: 44px;
    background: #fff;
    cursor: text;
    transition: border-color 0.15s;
}
.upload-tags-wrap:focus-within { border-color: #7700bb; }
.upload-tag-chip {
    background: #efe0ff;
    color: #5500aa;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    padding: 3px 8px 3px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.upload-tag-chip .remove-tag {
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    color: #9960cc;
}
.upload-tags-input {
    border: none;
    outline: none;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    flex: 1;
    min-width: 80px;
    color: #1a1a1a;
    background: transparent;
}

/* Divider */
.upload-divider {
    border: none;
    border-top: 2px dashed #e0d0f0;
    margin: 8px 0;
}

/* Submit row */
.upload-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 2px dashed #e0d0f0;
}

.upload-cancel-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #777;
    background: #f5f5f5;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 11px 24px;
    cursor: pointer;
    transition: background 0.15s;
}
.upload-cancel-btn:hover { background: #eee; }

.upload-submit-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #7700bb;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.upload-submit-btn:hover { background: #5500aa; transform: translateY(-1px); }
.upload-submit-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
    transform: none;
}

/* ── Video Promotion ─────────────────────────────────────────── */
.promo-card {
    background: rgba(251,191,36,0.06);
    border: 1.5px solid rgba(251,191,36,0.28);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    font-family: 'Lexend', sans-serif;
}
.promo-toggle-row {
    display: flex; align-items: center; gap: 14px; cursor: pointer;
}
.promo-toggle-icon { font-size: 22px; flex-shrink: 0; }
.promo-toggle-text { flex: 1; }
.promo-toggle-title { font-size: 14px; font-weight: 700; color: #1a0030; }
html[data-theme="dark"] .promo-toggle-title,
html[data-theme="aura"] .promo-toggle-title { color: #e0d0f8 !important; }
.promo-toggle-sub   { font-size: 11px; color: #888; margin-top: 2px; }
.promo-sw {
    width: 42px; height: 24px; border-radius: 12px; background: #ddd;
    position: relative; flex-shrink: 0; transition: background 0.2s;
}
.promo-sw::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%; background: #fff;
    transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.promo-sw.on { background: #f59e0b; }
.promo-sw.on::after { transform: translateX(18px); }

.promo-badge-wrap {
    display: none; align-items: center; gap: 16px; margin-top: 16px;
    padding-top: 14px; border-top: 1px dashed rgba(251,191,36,0.35);
}
.promo-badge-wrap.visible { display: flex; }
.promo-circle {
    width: 100px; height: 100px; border-radius: 50%;
    border: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex-shrink: 0; position: relative;
    box-shadow: 0 0 0 6px rgba(245,158,11,0.12);
    animation: promoPulse 2s ease-in-out infinite;
}
@keyframes promoPulse {
    0%,100% { box-shadow: 0 0 0 6px rgba(245,158,11,0.12); }
    50%      { box-shadow: 0 0 0 10px rgba(245,158,11,0.06); }
}
.promo-circle-coins { font-size: 13px; font-weight: 800; color: #92400e; text-align: center; line-height: 1.2; }
.promo-circle-label { font-size: 9px; font-weight: 600; color: #b45309; text-align: center; margin-top: 1px; }
.promo-circle-views { font-size: 10px; font-weight: 700; color: #d97706; text-align: center; margin-top: 3px; line-height: 1.2; }
.promo-badge-info { flex: 1; }
.promo-badge-title { font-size: 13px; font-weight: 700; color: #92400e; margin-bottom: 4px; }
.promo-badge-est   { font-size: 12px; color: #a16207; margin-bottom: 10px; line-height: 1.5; }
.promo-edit-btn {
    padding: 6px 14px; background: #fef3c7; color: #92400e;
    border: 1.5px solid #f59e0b; border-radius: 8px;
    font-family: 'Lexend', sans-serif; font-size: 11px; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
}
.promo-edit-btn:hover { background: #fde68a; }
.promo-disclaimer {
    margin-top: 10px; font-size: 11px; color: #a16207;
    background: rgba(245,158,11,0.08); border-radius: 8px;
    padding: 8px 12px; border-left: 3px solid #f59e0b; line-height: 1.6;
}

/* Promotion popup modal */
.promo-overlay {
    position: fixed; inset: 0; z-index: 30000;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.promo-overlay.open { display: flex; }
.promo-popup {
    background: #fff; border-radius: 20px; padding: 30px;
    max-width: 440px; width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    font-family: 'Lexend', sans-serif;
}
.promo-popup-title { font-size: 18px; font-weight: 800; color: #1a0030; margin-bottom: 4px; }
.promo-popup-sub   { font-size: 12px; color: #888; margin-bottom: 20px; }
.promo-balance-row {
    display: flex; align-items: center; gap: 8px;
    background: #f5f0ff; border-radius: 10px; padding: 10px 14px;
    margin-bottom: 18px; font-size: 13px; font-weight: 600; color: #7700bb;
}
.promo-input-label { font-size: 11px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.promo-coin-input {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px; border: 2px solid #e0d0f0; border-radius: 10px;
    font-family: 'Lexend', sans-serif; font-size: 16px; font-weight: 700;
    color: #1a0030; outline: none; transition: border-color 0.15s;
    margin-bottom: 16px;
}
.promo-coin-input:focus { border-color: #f59e0b; }
.promo-tiers {
    background: #fffbeb; border: 1.5px solid rgba(245,158,11,0.3);
    border-radius: 12px; padding: 14px; margin-bottom: 18px;
}
.promo-tiers-title { font-size: 11px; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.promo-tier-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; border-bottom: 1px solid rgba(245,158,11,0.15);
    font-size: 12px;
}
.promo-tier-row:last-child { border-bottom: none; }
.promo-tier-coins { font-weight: 700; color: #92400e; }
.promo-tier-views { color: #a16207; }
.promo-tier-row.highlight { background: rgba(245,158,11,0.12); border-radius: 6px; padding: 5px 8px; margin: 0 -8px; }
.promo-est-preview {
    text-align: center; padding: 12px; background: linear-gradient(135deg,#fffbeb,#fef3c7);
    border-radius: 10px; margin-bottom: 16px; border: 1.5px solid rgba(245,158,11,0.3);
}
.promo-est-num  { font-size: 22px; font-weight: 800; color: #92400e; }
.promo-est-sub  { font-size: 11px; color: #a16207; margin-top: 2px; }
.promo-popup-btns { display: flex; gap: 10px; }
.promo-confirm-btn {
    flex: 1; padding: 12px; background: linear-gradient(135deg,#f59e0b,#d97706);
    color: #fff; border: none; border-radius: 10px;
    font-family: 'Lexend', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s;
}
.promo-confirm-btn:hover { opacity: 0.9; }
.promo-cancel-btn {
    padding: 12px 20px; background: #f0f0f0; color: #555;
    border: none; border-radius: 10px;
    font-family: 'Lexend', sans-serif; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background 0.15s;
}
.promo-cancel-btn:hover { background: #e0e0e0; }

/* Projected view count — digital LED style */
.projected-views {
    font-family: 'Courier New', 'Lucida Console', monospace;
    letter-spacing: 0.06em;
    color: #7c3aed;
    text-shadow: 0 0 5px rgba(124,58,237,0.45);
    text-decoration: underline dashed 1.5px rgba(124,58,237,0.5);
    text-underline-offset: 3px;
    cursor: help;
}
/* Promoted tag overlay on thumbnails */
.promo-tag-overlay {
    position: absolute; bottom: 6px; left: 6px;
    height: 20px; pointer-events: none; z-index: 4;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* ChannelHub promote button */
.hub-promote-btn {
    padding: 4px 10px; background: linear-gradient(135deg,#fef3c7,#fde68a);
    color: #92400e; border: 1.5px solid #f59e0b; border-radius: 7px;
    font-family: 'Lexend', sans-serif; font-size: 11px; font-weight: 700;
    cursor: pointer; transition: background 0.15s; white-space: nowrap;
}
.hub-promote-btn:hover { background: linear-gradient(135deg,#fde68a,#fcd34d); }
.hub-promote-btn.active { background: linear-gradient(135deg,#f59e0b,#d97706); color:#fff; border-color:#d97706; }
.hub-promo-disable-btn {
    padding: 4px 10px; background: rgba(80,30,120,0.18);
    color: #c4b5fd; border: 1.5px solid #7c3aed; border-radius: 7px;
    font-family: 'Lexend', sans-serif; font-size: 11px; font-weight: 700;
    cursor: pointer; transition: background 0.15s; white-space: nowrap;
}
.hub-promo-disable-btn:hover { background: rgba(124,58,237,0.28); }

/* Success toast */
.upload-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a1a1a;
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.35s ease;
    white-space: nowrap;
}
.upload-toast.show { transform: translateX(-50%) translateY(0); }

.notif-mark-all-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #7700bb;
    border: none;
    border-radius: 7px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.12s;
}

.notif-mark-all-btn:hover { background: #5a0090; }

/* ── Filter tabs ── */
.notif-filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: #f5f0fa;
    border-radius: 10px;
    padding: 4px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.notif-filter-tab {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    padding: 7px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    user-select: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.notif-filter-tab.active {
    background: #fff;
    color: #7700bb;
    box-shadow: 0 1px 5px rgba(119,0,187,0.12);
}

.notif-filter-tab:hover:not(.active) { color: #7700bb; }

/* Unread badge on filter tabs */
.notif-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #7700bb;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    line-height: 1;
}
.notif-tab-badge:empty { display: none; }
.notif-filter-tab.active .notif-tab-badge { background: #7700bb; }

/* ── Date section groups ── */
.notif-section {
    margin-bottom: 32px;
}
.notif-section.notif-group-hidden { display: none; }

.notif-date-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #7700bb;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    padding: 5px 12px;
    background: rgba(119, 0, 187, 0.08);
    border-radius: 7px;
    margin-bottom: 12px;
}

/* ── Notification items ── */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 4px;
    background: #fff;
    border: 1.5px solid #ede6f8;
    transition: background 0.12s, opacity 0.22s, transform 0.22s;
    position: relative;
}

.notif-item:hover { background: #faf6ff; }

.notif-item.notif-unread {
    background: #faf5ff;
    border-color: #e0cef5;
}

.notif-item.notif-unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #7700bb;
    border-radius: 0 3px 3px 0;
}

/* ── Icon column ── */
.notif-icon-col {
    flex-shrink: 0;
    padding-top: 2px;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.notif-icon-comment { background: #eef4ff; }
.notif-icon-like    { background: #fff0f5; }
.notif-icon-coin    { background: #fffbea; }
.notif-icon-system  { background: #f0f0f0; }

/* ── Body ── */
.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-tag-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

/* ── Importance tags ── */
.notif-tag {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
    user-select: none;
}

.tag-serious {
    background: #ffe8e8;
    color: #cc1100;
    border: 1px solid rgba(204,17,0,0.25);
}

.tag-important {
    background: #fff3e0;
    color: #d06000;
    border: 1px solid rgba(208,96,0,0.25);
}

.tag-info {
    background: #e8f0ff;
    color: #1a55cc;
    border: 1px solid rgba(26,85,204,0.2);
}

.tag-milestone {
    background: #fffbe0;
    color: #a07800;
    border: 1px solid rgba(160,120,0,0.25);
}

/* ── Condensed badge ── */
.notif-condensed {
    font-size: 9px;
    font-weight: 800;
    color: #7700bb;
    background: #f0e6ff;
    border: 1px solid #e0cef5;
    border-radius: 4px;
    padding: 2px 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ── Message text ── */
.notif-text {
    font-size: 13px;
    color: #222;
    line-height: 1.5;
    font-weight: 500;
}

.notif-text strong { font-weight: 800; color: #1a0028; }

.notif-title-ref {
    font-style: italic;
    color: #7700bb;
    font-weight: 600;
}

.notif-quote {
    display: block;
    margin-top: 4px;
    font-style: italic;
    color: #888;
    font-size: 12px;
    background: #f8f5ff;
    border-left: 3px solid #e0cef5;
    padding: 4px 8px;
    border-radius: 0 4px 4px 0;
}

.notif-sub {
    display: inline-block;
    margin-top: 3px;
    font-size: 11px;
    color: #cc1100;
    font-weight: 700;
    background: #fff0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.notif-meta {
    font-size: 11px;
    color: #bbb;
    font-weight: 600;
    margin-top: 5px;
}

/* ── Actions ── */
.notif-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 2px;
}

.notif-view-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #7700bb;
    background: #f0e6ff;
    border: 1.5px solid #e0cef5;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
}

.notif-view-btn:hover { background: #ede0ff; }

.notif-dismiss-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: 1.5px solid #ede6f8;
    color: #ccc;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, color 0.12s;
}

.notif-dismiss-btn:hover { background: #fff0f0; color: #cc1100; border-color: #f0c0c0; }

/* ── End of list ── */
.notif-end {
    text-align: center;
    font-size: 12px;
    color: #ccc;
    font-style: italic;
    padding: 28px 0 8px;
    font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════
   SAVED FOR LATER PAGE
════════════════════════════════════════════════════════════════ */

.cw-s4l-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.s4l-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.s4l-page-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a0028;
    letter-spacing: 0.3px;
}

.s4l-page-sub {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-top: 5px;
}

.s4l-page-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.s4l-sort-select {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #f5f0fa;
    border: 1.5px solid #e0d0f0;
    border-radius: 7px;
    padding: 7px 12px;
    cursor: pointer;
    outline: none;
}

.s4l-clear-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #cc1100;
    background: #fff5f5;
    border: 1.5px solid #f0d0d0;
    border-radius: 7px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.12s;
}

.s4l-clear-btn:hover { background: #ffe0e0; }

/* ── Filter tabs ── */
.s4l-filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: #f5f0fa;
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

.s4l-filter-tab {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    padding: 7px 16px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    user-select: none;
    white-space: nowrap;
}

.s4l-filter-tab.active {
    background: #fff;
    color: #7700bb;
    box-shadow: 0 1px 5px rgba(119,0,187,0.12);
}

.s4l-filter-tab:hover:not(.active) { color: #7700bb; }

/* ── Cards grid ── */
.s4l-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.s4l-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #e8e0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.15s, opacity 0.22s, transform 0.22s;
}

.s4l-card:hover { box-shadow: 0 4px 18px rgba(119,0,187,0.09); }

.s4l-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    flex-shrink: 0;
}

.s4l-playlist-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, transparent 60%);
}

.s4l-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 1;
}

.badge-video    { background: #7700bb; color: #fff; }
.badge-live     { background: #cc1100; color: #fff; }
.badge-playlist { background: #1a4a00; color: #fff; }

.s4l-duration {
    position: absolute;
    bottom: 7px;
    right: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: rgba(0,0,0,0.7);
    padding: 2px 6px;
    border-radius: 4px;
}

.s4l-playlist-count {
    position: absolute;
    bottom: 7px;
    right: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: rgba(0,0,0,0.7);
    padding: 2px 6px;
    border-radius: 4px;
}

.s4l-card-info {
    padding: 12px 14px 8px;
    flex: 1;
}

.s4l-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a0028;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.s4l-card-uploader {
    font-size: 11px;
    font-weight: 700;
    color: #7700bb;
}

.s4l-card-date {
    font-size: 10px;
    color: #bbb;
    font-weight: 600;
    margin-top: 2px;
}

.s4l-card-meta {
    font-size: 10px;
    color: #999;
    font-weight: 600;
    margin-top: 3px;
}

.s4l-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 12px;
}

.s4l-watch-btn {
    flex: 1;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #7700bb;
    border: none;
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
    text-align: center;
}

.s4l-watch-btn:hover { background: #5a0090; }

.s4l-remove-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    background: #f5f0fa;
    border: 1.5px solid #e0d0f0;
    color: #7700bb;
    cursor: pointer;
    padding: 7px 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    transition: background 0.12s;
}

.s4l-remove-btn:hover { background: #ffe0e0; color: #cc1100; border-color: #f0c0c0; }

/* s4l card extras */
.s4l-thumb-link { display: block; text-decoration: none; }
.s4l-thumb-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.35); color: #fff; font-size: 22px;
    opacity: 0; transition: opacity 0.15s;
}
.s4l-thumb:hover .s4l-thumb-play { opacity: 1; }
.s4l-card-title { display: block; font-size: 13px; font-weight: 700; color: #1a0030; text-decoration: none; margin-bottom: 3px; line-height: 1.4; }
.s4l-card-title:hover { color: #7700bb; }
.s4l-card-meta { display: flex; gap: 8px; align-items: center; margin: 3px 0 4px; flex-wrap: wrap; }
.s4l-card-views { font-size: 11px; color: #888; font-weight: 600; }
.s4l-card-cat {
    font-size: 10px; font-weight: 700; color: #7700bb;
    background: #f0e6ff; border-radius: 4px; padding: 1px 6px;
}

/* ── Empty state ── */
.s4l-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 12px;
    text-align: center;
}

.s4l-empty-icon {
    font-size: 56px;
    opacity: 0.25;
}

.s4l-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #ccc;
}

.s4l-empty-sub {
    font-size: 13px;
    color: #bbb;
    font-weight: 500;
    max-width: 320px;
}

.s4l-empty-browse {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #7700bb;
    border-radius: 8px;
    padding: 10px 22px;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.12s;
}

.s4l-empty-browse:hover { background: #5a0090; }

/* ════════════════════════════════════════════════════════════════
   POPCOINS PAGE — RETRO CINEMA THEME
════════════════════════════════════════════════════════════════ */

.pc-retro-body {
    background: #f5ede0;
    background-image:
        linear-gradient(rgba(140, 80, 20, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 80, 20, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

.cw-popcoins-page {
    padding-bottom: 80px;
}

/* ── Marquee hero ── */
.pc-marquee {
    padding: 28px 40px 0;
}

.pc-marquee-outer {
    border: 3px dashed #8b4a00;
    border-radius: 4px;
    background: #1a0800;
    overflow: hidden;
    position: relative;
}

/* bulb rows */
.pc-marquee-lights {
    display: flex;
    justify-content: space-around;
    padding: 10px 24px;
    background: #120500;
}

.pc-bulb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffe066;
    box-shadow: 0 0 6px #ffe066, 0 0 14px rgba(255,200,0,0.5);
    border: 2px solid #c8a000;
    animation: pc-bulb-blink 1.8s infinite;
    flex-shrink: 0;
}

.pc-bulb:nth-child(even) {
    animation-delay: 0.9s;
}

@keyframes pc-bulb-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

.pc-marquee-inner {
    padding: 28px 40px 32px;
    text-align: center;
    background-image: radial-gradient(circle, rgba(255,200,0,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pc-marquee-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c8a000;
    margin-bottom: 10px;
}

.pc-marquee-title {
    font-size: 52px;
    font-weight: 800;
    color: #ffe066;
    text-shadow:
        0 0 20px rgba(255,200,0,0.6),
        0 0 60px rgba(255,200,0,0.25),
        2px 2px 0 #8b4a00;
    letter-spacing: 4px;
    margin-bottom: 10px;
    line-height: 1;
}

.pc-marquee-sub {
    font-size: 13px;
    color: rgba(255,230,150,0.65);
    font-weight: 500;
    letter-spacing: 0.8px;
    margin-bottom: 22px;
}

.pc-balance-row {
    display: flex;
    justify-content: center;
}

.pc-balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px dashed rgba(255,200,0,0.5);
    border-radius: 4px;
    padding: 8px 22px;
    background: rgba(255,200,0,0.07);
}

.pc-balance-lbl {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,220,100,0.55);
}

.pc-balance-num {
    font-size: 22px;
    font-weight: 800;
    color: #ffe066;
    letter-spacing: 1px;
}

.pc-balance-unit {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,220,100,0.6);
}

/* ── Section title ── */
.pc-list-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 32px 40px 18px;
}

.pc-list-dashes {
    flex: 1;
    border-bottom: 2px dashed #c8a060;
    opacity: 0.5;
}

.pc-list-title {
    font-size: 17px;
    font-weight: 800;
    color: #5a2a00;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* ── Tier list wrapper ── */
.pc-tier-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 40px;
}

/* ── Each tier row ── */
.pc-tier-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff8ef;
    border: 2px dashed #c8a060;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.pc-tier-row:hover {
    box-shadow: 0 4px 18px rgba(140,80,0,0.13);
}

/* highlighted variants */
.pc-tier-popular {
    background: #fffbee;
    border-color: #c8a000;
    box-shadow: 0 2px 12px rgba(200,160,0,0.12);
}

.pc-tier-starter {
    background: #f4fff8;
    border-color: #3a8a50;
}

.pc-tier-bestvalue {
    background: #fff9e6;
    border-color: #b87800;
    box-shadow: 0 2px 14px rgba(184,120,0,0.16);
}

/* floating badge above the row */
.pc-tier-badge-wrap {
    position: absolute;
    top: -1px;
    right: 18px;
}

.pc-tier-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 0 0 6px 6px;
    white-space: nowrap;
    display: block;
}

.pc-badge-starter  { background: #1a9a3a; color: #fff; }
.pc-badge-popular  { background: #c8a000; color: #1a0800; }
.pc-badge-bestvalue { background: #b87800; color: #fff; }

/* ── Art frame (left illustration) ── */
.pc-tier-art {
    flex-shrink: 0;
    padding: 14px 6px 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-art-frame {
    border: 2px dashed #c8a060;
    border-radius: 6px;
    background: #fdf0d8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 90px;
    gap: 2px;
    padding: 8px 6px 5px;
}

.pc-art-emoji {
    line-height: 1;
    display: block;
    text-align: center;
}

.pc-art-extra {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    line-height: 1;
}

.pc-art-extra-sm {
    position: absolute;
    bottom: 18px;
    right: 4px;
    font-size: 10px;
    line-height: 1;
}

.pc-art-crown {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    line-height: 1;
}

.pc-art-size-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #b07040;
    border-top: 1px dashed #c8a060;
    padding-top: 3px;
    width: 100%;
    text-align: center;
    margin-top: 2px;
}

/* Scaled emoji sizes per tier */
.pc-art-xs    .pc-art-emoji { font-size: 26px; }
.pc-art-sm    .pc-art-emoji { font-size: 30px; }
.pc-art-md    .pc-art-emoji { font-size: 34px; }
.pc-art-lg    .pc-art-emoji { font-size: 38px; }
.pc-art-xl    .pc-art-emoji { font-size: 44px; }
.pc-art-xxl   .pc-art-emoji { font-size: 50px; }
.pc-art-machine .pc-art-emoji { font-size: 50px; }
.pc-art-cinema  .pc-art-emoji { font-size: 50px; }

/* ── Tier body (center info) ── */
.pc-tier-body {
    flex: 1;
    padding: 16px 20px;
    min-width: 0;
    border-left: 2px dashed #e8d8b8;
    border-right: 2px dashed #e8d8b8;
}

.pc-tier-top {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.pc-tier-name {
    font-size: 16px;
    font-weight: 800;
    color: #2a1000;
    letter-spacing: 0.3px;
}

.pc-tier-coins {
    font-size: 15px;
    font-weight: 800;
    color: #b07800;
}

.pc-tier-coins span {
    font-size: 10px;
    font-weight: 700;
    color: #c8a060;
    letter-spacing: 0.5px;
}

.pc-tier-desc {
    font-size: 12px;
    font-weight: 500;
    color: #9a7050;
    font-style: italic;
    line-height: 1.4;
}

/* ── Right: price + button ── */
.pc-tier-right {
    flex-shrink: 0;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 130px;
}

.pc-tier-price {
    font-size: 22px;
    font-weight: 800;
    color: #2a1000;
    letter-spacing: 0.5px;
}

.pc-tier-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #5a2a00;
    background: #fdf0d8;
    border: 2px dashed #c8a060;
    border-radius: 4px;
    padding: 7px 18px;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.12s, border-color 0.12s;
    white-space: nowrap;
}

.pc-tier-btn:hover {
    background: #f5e0bc;
    border-color: #a07030;
}

.pc-btn-popular {
    background: #c8a000;
    color: #1a0800;
    border-color: #a07800;
    border-style: solid;
}

.pc-btn-popular:hover { background: #a07800; color: #fff; }

.pc-btn-bestvalue {
    background: #b87800;
    color: #fff;
    border-color: #8a5a00;
    border-style: solid;
}

.pc-btn-bestvalue:hover { background: #8a5a00; }

/* ── Disclaimer ── */
.pc-retro-disclaimer {
    max-width: 860px;
    margin: 32px auto 0;
    padding: 0 40px;
    text-align: center;
}

.pc-disclaimer-dash {
    border-bottom: 2px dashed #c8a060;
    opacity: 0.4;
    margin: 10px 0;
}

.pc-retro-disclaimer p {
    font-size: 11px;
    color: #9a7050;
    font-weight: 500;
    line-height: 1.8;
    margin: 0;
}

/* ════════════════════════════════════════════════
   POPCOINS REDESIGN — Selection Card
════════════════════════════════════════════════ */
.pc-sel-card {
    margin: 24px 40px;
    background: linear-gradient(135deg, #fdf8f0, #faf3e6);
    border: 3px dashed #c8a060;
    border-radius: 10px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 160px;
    box-shadow: 0 4px 20px rgba(140,80,0,0.1);
}

/* Left column: big price + coin amount */
.pc-sel-left {
    flex-shrink: 0;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    text-align: center;
}

.pc-sel-eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #8b5a20;
    margin-bottom: 10px;
}

.pc-sel-price {
    font-size: 64px;
    font-weight: 800;
    color: #b07800;
    line-height: 1;
    text-shadow: 1px 1px 0 rgba(200,140,0,0.2);
    letter-spacing: -1px;
    transition: color 0.2s ease;
}

.pc-sel-coins-wrap {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-top: 8px;
}

.pc-sel-plus {
    font-size: 22px;
    font-weight: 800;
    color: #c89040;
    line-height: 1;
}

.pc-sel-coins {
    font-size: 50px;
    font-weight: 800;
    color: #c87800;
    line-height: 1;
    text-shadow: none;
    transition: color 0.2s ease;
}

.pc-sel-coins-unit {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(120,70,0,0.45);
    margin-top: 4px;
}

/* Vertical dividers */
.pc-sel-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(200,140,0,0.35) 20%, rgba(200,140,0,0.35) 80%, transparent);
    flex-shrink: 0;
    margin: 16px 0;
}

/* Center column: product info */
.pc-sel-center {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.pc-sel-name {
    font-size: 20px;
    font-weight: 800;
    color: #2a0800;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

/* ── Unsaved-changes save bar ─────────────────────────────── */
.cw-save-bar {
    position: fixed;
    top: -64px;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #7700bb 0%, #4900aa 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    height: 56px;
    box-shadow: 0 6px 28px rgba(80, 0, 160, 0.45);
    transition: top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    opacity: 0;
}
.cw-save-bar.cw-save-bar-visible {
    top: 0;
    pointer-events: auto;
    opacity: 1;
}
.cw-save-bar-msg {
    flex: 1;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.cw-save-btn {
    background: #fff;
    color: #7700bb;
    border: none;
    border-radius: 8px;
    padding: 8px 22px;
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    animation: cwSavePulse 1.5s ease-in-out infinite;
    transition: opacity 0.2s;
}
.cw-save-btn:disabled {
    opacity: 0.55;
    animation: none;
    cursor: default;
}
.cw-discard-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    padding: 7px 16px;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.18s, border-color 0.18s;
}
.cw-discard-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}
@keyframes cwSavePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); transform: scale(1); }
    50%       { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); transform: scale(1.05); }
}

.pc-sel-live-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pc-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22dd44;
    flex-shrink: 0;
    box-shadow: 0 0 5px #22dd44;
    animation: pc-live-pulse 1.4s infinite;
}

@keyframes pc-live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #22dd44; }
    50%       { opacity: 0.5; box-shadow: 0 0 2px #22dd44; }
}

.pc-live-lbl {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #22dd44;
    color: #0a1a00;
    padding: 2px 6px;
    border-radius: 3px;
}

.pc-live-since {
    font-size: 10px;
    color: rgba(80,40,0,0.4);
    font-weight: 500;
}

.pc-sel-rate-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-rate-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(80,40,0,0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.pc-rate-val {
    font-size: 11px;
    font-weight: 700;
    color: rgba(60,30,0,0.7);
    font-family: 'Courier New', monospace;
    background: rgba(140,80,0,0.05);
    border: 1px solid rgba(140,80,0,0.15);
    border-radius: 4px;
    padding: 2px 8px;
}

.pc-sel-desc {
    font-size: 12px;
    color: #9a7050;
    font-style: italic;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.pc-sel-multi {
    display: inline-block;
    background: linear-gradient(135deg, #c8a000, #e87800);
    color: #1a0800;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    align-self: flex-start;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(200,120,0,0.3);
}

/* Right column: product image */
.pc-sel-right {
    flex-shrink: 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.pc-sel-img {
    max-height: 130px;
    max-width: 140px;
    object-fit: contain;
    transition: opacity 0.2s;
}

.pc-sel-img-hidden { display: none; }

.pc-sel-no-img {
    width: 110px;
    height: 110px;
    border: 2px dashed rgba(200,160,0,0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    opacity: 0.3;
}

/* ════════════════════════════════════════════════
   BAR SELECTOR
════════════════════════════════════════════════ */
.pc-bar-section {
    padding: 0 40px 12px;
}

.pc-bar-stage {
    position: relative;
    margin-top: 16px;
    padding: 20px 0 10px;
    overflow: visible;
    cursor: default;
    user-select: none;
}

/* The horizontal gradient track behind the dots */
.pc-bar-line {
    position: absolute;
    left: calc(100% / 16);
    right: calc(100% / 16);
    top: calc(70px + 7px);
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(
        to right,
        #3a8a40  0%,
        #5aaa30  14%,
        #c8b000  28%,
        #e87820  42%,
        #d84820  56%,
        #a02818  70%,
        #601008  84%,
        #200408  100%
    );
    box-shadow: 0 2px 8px rgba(0,0,0,0.18), inset 0 1px 2px rgba(255,255,255,0.12);
    z-index: 0;
}

/* Overlay to show progress fill (updated by JS) */
.pc-bar-fill-overlay {
    position: absolute;
    left: calc(100% / 16);
    top: calc(70px + 7px);
    height: 10px;
    border-radius: 5px 0 0 5px;
    background: rgba(255,255,255,0.0);
    pointer-events: none;
    z-index: 0;
    transition: width 0.3s ease;
}

/* The flex row of 8 tick columns */
.pc-bar-cols {
    display: flex;
    position: relative;
    z-index: 3;
    overflow: visible;
}

.pc-tick-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    padding: 0 2px;
}

/* Above area: badge + coins — animate in when active */
.pc-tick-above {
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    padding-bottom: 8px;
}

.pc-tick-badge-float {
    font-size: 8px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.pc-tick-col.active .pc-tick-badge-float {
    opacity: 1;
    transform: translateY(0);
}

.pc-tick-coins-float {
    font-size: 10px;
    font-weight: 800;
    color: #b07800;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease 0.06s, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) 0.06s;
    pointer-events: none;
}

.pc-tick-col.active .pc-tick-coins-float {
    opacity: 1;
    transform: translateY(0);
}

/* Badge color variants */
.pc-tbf-starter   { background: #1a9a3a; color: #fff; }
.pc-tbf-deal      { background: #c8a000; color: #1a0800; }
.pc-tbf-popular   { background: #e07000; color: #fff; }
.pc-tbf-bestvalue { background: #b87800; color: #fff; box-shadow: 0 2px 6px rgba(184,120,0,0.4); }

/* The clickable dot on the bar */
.pc-tick-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff8ef;
    border: 3px solid #c8a060;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s, border-color 0.15s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.pc-tick-col:hover .pc-tick-dot {
    border-color: #8a5a00;
    transform: scale(1.25);
}

.pc-tick-col.active .pc-tick-dot {
    transform: scale(1.7);
    background: #c8a000;
    border-color: #7a5000;
    box-shadow: 0 0 0 5px rgba(200,160,0,0.2), 0 0 20px rgba(200,160,0,0.5);
}

/* Labels below the bar */
.pc-tick-below {
    padding-top: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pc-tick-coins-lbl {
    font-size: 10px;
    font-weight: 800;
    color: #c0a880;
    transition: color 0.15s;
    white-space: nowrap;
    line-height: 1.2;
}

.pc-tick-col.active .pc-tick-coins-lbl,
.pc-tick-col:hover .pc-tick-coins-lbl {
    color: #9a6800;
}

.pc-tick-price-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #b09070;
    transition: color 0.15s, font-weight 0.15s;
    white-space: nowrap;
}

.pc-tick-col.active .pc-tick-price-lbl {
    color: #3a1000;
    font-weight: 800;
}

/* ════════════════════════════════════════════════
   PURCHASE WRAP
════════════════════════════════════════════════ */
.pc-purchase-wrap {
    margin: 20px 40px 0;
    border: 2.5px dashed #c8a060;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff9f0, #fdf4e4);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(140,80,0,0.1);
}

/* Left: selected item info */
.pc-pi-left {
    flex: 1;
    padding: 20px 24px;
    border-right: 2px dashed #e8d8b8;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pc-pi-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 2px;
}

.pc-pib-starter   { background: #1a9a3a; color: #fff; }
.pc-pib-deal      { background: #c8a000; color: #1a0800; }
.pc-pib-popular   { background: #e07000; color: #fff; }
.pc-pib-bestvalue { background: #b87800; color: #fff; }

.pc-pi-name {
    font-size: 17px;
    font-weight: 800;
    color: #1a0800;
    letter-spacing: 0.2px;
    transition: all 0.15s;
}

.pc-pi-coins {
    font-size: 13px;
    font-weight: 700;
    color: #b07800;
    transition: all 0.15s;
}

.pc-pi-desc {
    font-size: 11px;
    color: #9a7050;
    font-style: italic;
    line-height: 1.45;
    transition: all 0.15s;
}

/* Center: payment methods */
.pc-pi-mid {
    flex-shrink: 0;
    padding: 20px 24px;
    border-right: 2px dashed #e8d8b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pc-pay-or {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c0a070;
}

.pc-pay-methods {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pc-pay-btn {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    border: none;
    font-size: 13px;
    white-space: nowrap;
}

.pc-pay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.pc-pay-apple {
    background: #000;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.pc-pay-paypal {
    background: #fff;
    border: 1.5px solid #e0d8cc !important;
    padding: 9px 14px;
}

.pc-paypal-p1 {
    color: #003087;
    font-size: 14px;
    font-weight: 800;
}

.pc-paypal-p2 {
    color: #009cde;
    font-size: 14px;
    font-weight: 800;
}

.pc-pay-google {
    background: #fff;
    border: 1.5px solid #e0d8cc !important;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    padding: 10px 12px;
}

.pc-g-blue  { color: #4285f4; }
.pc-g-red   { color: #ea4335; }
.pc-g-yellow{ color: #fbbc05; }
.pc-g-blue2 { color: #4285f4; }
.pc-g-green { color: #34a853; }
.pc-g-red2  { color: #ea4335; }

/* Right: total + buy button */
.pc-pi-right {
    flex-shrink: 0;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
}

.pc-pt-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c0a070;
}

.pc-pt-price {
    font-size: 36px;
    font-weight: 800;
    color: #1a0800;
    letter-spacing: -0.5px;
    line-height: 1;
    transition: all 0.2s ease;
}

.pc-purchase-btn {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #c87800, #8a4a00);
    border: none;
    border-radius: 8px;
    padding: 13px 30px;
    cursor: pointer;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(180,100,0,0.35);
    white-space: nowrap;
}

.pc-purchase-btn:hover {
    background: linear-gradient(135deg, #a06000, #6a3800);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(180,100,0,0.45);
}

.pc-purchase-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(180,100,0,0.3);
}

/* ── Drag thumb ────────────────────────────────── */
.pc-bar-thumb {
    position: absolute;
    width: 40px;
    height: 58px;
    background: linear-gradient(180deg, #fffdf5 0%, #f5e4b0 55%, #e4c060 100%);
    border: 2.5px solid #c8a060;
    border-radius: 20px;
    cursor: grab;
    z-index: 10;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(140,80,0,0.5), 0 1px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: left 0.28s cubic-bezier(0.34,1.56,0.64,1), top 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.15s;
}

.pc-bar-thumb.dragging-thumb {
    cursor: grabbing;
    transition: none;
    box-shadow: 0 8px 28px rgba(140,80,0,0.7), 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.pc-thumb-no-trans {
    transition: none !important;
}

.pc-thumb-grip {
    width: 18px;
    height: 2.5px;
    background: #c0903a;
    border-radius: 2px;
    box-shadow: 0 -5px 0 #c0903a, 0 5px 0 #c0903a;
    opacity: 0.75;
}

/* ── Coin burst particles ─────────────────────── */
.pc-coin-particle {
    position: fixed;
    font-size: 20px;
    pointer-events: none;
    z-index: 9999;
    animation: pc-coin-fly 0.8s ease-out forwards;
}

@keyframes pc-coin-fly {
    from { opacity: 1; transform: translate(0,0) scale(1.2) rotate(0deg); }
    to   { opacity: 0; transform: translate(var(--dx),var(--dy)) scale(0.3) rotate(200deg); }
}

/* ── Selection card price/coins glow flash ────── */
.pc-price-flash {
    animation: pc-price-glow 0.5s ease-out forwards;
}

@keyframes pc-price-glow {
    0%   { text-shadow: 0 0 0 rgba(255,190,0,0); }
    25%  { text-shadow: 0 0 28px rgba(255,200,0,0.95), 0 0 10px rgba(255,170,0,0.7); }
    100% { text-shadow: 1px 1px 0 rgba(200,140,0,0.2); }
}

.pc-coins-flash {
    animation: pc-coins-glow 0.5s ease-out forwards;
}

@keyframes pc-coins-glow {
    0%   { text-shadow: 0 0 0 rgba(200,120,0,0); }
    25%  { text-shadow: 0 0 28px rgba(255,160,0,0.9), 0 0 10px rgba(200,100,0,0.6); }
    100% { text-shadow: none; }
}

/* ════════════════════════════════════════════════
   HOME — SERIES SECTIONS (Trending Series / Top This Month)
════════════════════════════════════════════════ */
.cw-series-section {
    padding: 28px 40px 20px;
    background: #fff;
}

.cw-series-section + .cw-series-section {
    border-top: 1px solid #f0e8f8;
    padding-top: 24px;
}

.cw-series-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cw-series-hdr-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cw-series-hdr-icon {
    font-size: 20px;
    line-height: 1;
}

.cw-series-hdr-title {
    font-family: 'Lexend', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1a0030;
    letter-spacing: -0.2px;
}

.cw-series-hdr-sub {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #9a80b0;
    margin-top: 1px;
}

.cw-series-view-all {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #7700bb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.75;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.cw-series-view-all:hover { opacity: 1; }

/* Horizontal scroll row */
.cw-series-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #d8b8ff transparent;
}
.cw-series-scroll::-webkit-scrollbar { height: 3px; }
.cw-series-scroll::-webkit-scrollbar-thumb { background: #d8b8ff; border-radius: 2px; }

/* Individual vertical-thumbnail series card */
.cw-sc {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    text-decoration: none;
    width: 148px;
    scroll-snap-align: start;
    cursor: pointer;
    border: 2px dashed #c8a0e8;
    border-radius: 14px;
    padding: 7px 7px 10px;
    background: #fff;
    box-sizing: border-box;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cw-sc:hover {
    border-color: #9955cc;
    box-shadow: 0 6px 22px rgba(100,0,200,0.16);
}

.cw-sc-ring { display: none; }

.cw-sc-thumb {
    width: 100%;
    height: 186px;
    border-radius: 9px;
    background: linear-gradient(160deg, #5500aa, #2a0060);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-size: 36px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.cw-sc:hover .cw-sc-thumb {
    transform: scale(1.02);
}

.cw-sc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cw-sc-new {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #22cc44;
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    font-family: 'Lexend', sans-serif;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.cw-sc-name {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1a0030;
    text-align: left;
    line-height: 1.3;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 1px;
}

.cw-sc-eps {
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #7a5a9a;
    text-align: left;
}

.cw-sc-views {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #16a832;
    letter-spacing: -0.2px;
}

.cw-sc-paid-badge {
    font-family: 'Lexend', sans-serif;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7700bb, #5500aa);
    padding: 2px 7px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1px;
}

/* ════════════════════════════════════════════════
   SHOWS.HTML PAGE
════════════════════════════════════════════════ */
.cw-shows-page {
    background: #f6f0fc;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Page hero */
.shows-hero {
    background: linear-gradient(135deg, #1a0030, #3a006a 50%, #1a0030);
    padding: 32px 44px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.shows-hero-title {
    font-family: 'Lexend', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.shows-hero-sub {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
    font-weight: 400;
}

.shows-owner-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    font-family: 'Lexend', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8800dd, #5500aa);
    padding: 9px 18px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}
.shows-owner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(136,0,221,0.4);
}

.shows-hero-stats {
    display: flex;
    gap: 24px;
}

.shows-hero-stat {
    text-align: center;
    color: #fff;
}

.shows-hero-stat-num {
    font-family: 'Lexend', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #dd99ff;
}

.shows-hero-stat-lbl {
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Genre filter strip */
.shows-filter-strip {
    background: #fff;
    border-bottom: 2px solid #f0e4fc;
    padding: 0 44px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.shows-filter-strip::-webkit-scrollbar { display: none; }

.shows-filter-tab {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #6a5a80;
    padding: 13px 16px;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    text-decoration: none;
    display: block;
    margin-bottom: -2px;
}

.shows-filter-tab:hover { color: #5500aa; }
.shows-filter-tab.active {
    color: #5500aa;
    border-bottom-color: #7700bb;
    font-weight: 700;
}

/* Section wrapper */
.shows-section {
    padding: 28px 44px 16px;
}

.shows-section-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1.5px dashed #e0c8f8;
}

.shows-section-title {
    font-family: 'Lexend', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #1a0030;
    display: flex;
    align-items: center;
    gap: 9px;
}

.shows-section-count {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    color: #9a80b0;
    font-weight: 500;
}

/* Series card (horizontal, matches reference image style) */
.shows-card-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #d0b0ff transparent;
}
.shows-card-row::-webkit-scrollbar { height: 3px; }
.shows-card-row::-webkit-scrollbar-thumb { background: #d0b0ff; border-radius: 2px; }

.shows-card {
    flex-shrink: 0;
    display: flex;
    gap: 0;
    background: #fff;
    border: 2px dashed #c8a0e8;
    border-radius: 14px;
    overflow: hidden;
    width: 340px;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    scroll-snap-align: start;
}

.shows-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(100,0,200,0.2);
}

/* Left: portrait poster */
.shows-card-poster {
    flex-shrink: 0;
    width: 112px;
    background: linear-gradient(160deg, #5500aa, #2a0060);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.shows-poster-inner {
    width: 72px;
    height: 110px;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
}

.shows-poster-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(circle at 40% 35%, rgba(255,255,255,0.12), transparent 60%);
}

.shows-poster-ep-badge {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 8px;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Right: text info */
.shows-card-info {
    flex: 1;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.shows-card-title {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a0030;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shows-card-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shows-price-lbl {
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #888;
    background: #f4f0f8;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e0d0f0;
}

.shows-price-free {
    color: #22aa44;
    font-weight: 800;
}

.shows-price-paid {
    color: #7700bb;
    font-weight: 800;
}

.shows-card-views {
    font-family: 'Lexend', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #16a832;
    letter-spacing: -0.3px;
}

.shows-views-label {
    font-size: 11px;
    font-weight: 600;
    color: #50a060;
    margin-right: 2px;
}

.shows-card-desc {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    color: #7a6090;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
}

.shows-card-eps-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.shows-eps-chip {
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #5500aa;
    background: #f0e4fc;
    padding: 3px 9px;
    border-radius: 20px;
}

.shows-sess-chip {
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #6a5a80;
}

/* All shows grid */
.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 16px;
    padding: 0 44px 32px;
}

/* Empty state for shows */
.shows-empty {
    text-align: center;
    padding: 60px 40px;
    font-family: 'Lexend', sans-serif;
    color: #9a80b0;
}

.shows-empty-icon { font-size: 48px; margin-bottom: 14px; }
.shows-empty-title { font-size: 18px; font-weight: 700; color: #3a1060; }
.shows-empty-sub { font-size: 13px; margin-top: 6px; }

/* ── SHOWS PAGE – DIAGONAL CARD REDESIGN ── */

.shows-combined-area {
    padding-bottom: 4px;
}

.shows-sub-hdr {
    font-family: 'Lexend', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #1a0030;
    padding: 24px 44px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1.5px dashed #e8d0ff;
    margin-bottom: 16px;
}

.shows-sub-hdr-mid {
    margin-top: 12px;
}

.shows-sub-count {
    font-size: 10px;
    font-weight: 500;
    color: #9a80b0;
    margin-left: 2px;
}

.shows-diag-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    padding: 0 44px 8px;
}

.shows-diag-card {
    display: flex;
    background: #fff;
    border: 2px dashed #c8a0e8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    min-height: 86px;
    transition: transform 0.18s, box-shadow 0.18s;
}

.shows-diag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(100,0,200,0.18);
}

.shows-diag-thumb {
    flex-shrink: 0;
    width: 100px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.shows-diag-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    padding-right: 18px;
}

.shows-diag-info {
    flex: 1;
    padding: 10px 13px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.shows-diag-title {
    font-family: 'Lexend', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #1a0030;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shows-diag-views {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #16a832;
    letter-spacing: -0.2px;
}

.shows-diag-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 1px;
}

.shows-diag-paid {
    font-family: 'Lexend', sans-serif;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7700bb, #5500aa);
    padding: 2px 7px;
    border-radius: 10px;
}

/* ChatHub new-message button */
.chathub-new-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #7700bb, #5500aa);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.chathub-new-btn:hover { opacity: 0.85; }


/* ════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE  (≤ 768px)
   Applies to every page that uses style.css
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Topbar: 2-row layout ───────────────────────────────────
       Row 1: Logo + Search bar  (44px)
       Row 2: Popcoins + Score (big) + action icons + avatar  (54px)
    ──────────────────────────────────────────────────────────── */
    .cw-topbar {
        flex-wrap: wrap;
        height: auto;
        padding: 0 10px;
        gap: 0;
    }
    .cw-topbar-left {
        width: auto;
        min-width: 0;
        height: 44px;
        order: 1;
    }
    .cw-logo { height: 26px !important; width: auto !important; }
    .cw-topbar-center {
        flex: 1;
        height: 44px;
        order: 2;
        padding: 0 6px;
    }
    .cw-nav { gap: 0; width: 100%; }
    .nav-search-row { width: 100%; }
    .cw-search-bar { width: 100%; max-width: none; }
    .search-input { font-size: 13px; }
    .nav-row { display: none; }

    /* Row 2: full-width stats + action bar */
    .cw-topbar-right {
        order: 3;
        width: 100%;
        height: auto;
        border-top: 1px solid rgba(180, 130, 255, 0.22);
        padding: 7px 10px;
        background: linear-gradient(90deg, rgba(250,245,255,.95), rgba(255,252,242,.95));
    }
    .cw-user-panel {
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    /* Stats: inline display on mobile */
    .cw-info-block {
        flex: 1;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
        min-width: 0;
        max-width: none;
    }
    .cw-info-connector   { display: none; }
    .cw-info-top-dashes,
    .cw-info-mid-dashes,
    .cw-info-bottom-dashes,
    .cw-welcome-box { display: none; }
    .cw-stat-orbs-row { display: flex; } /* show inline with others */
    .cw-stats {
        display: flex;
        flex-direction: row;
        gap: 14px;
        white-space: nowrap;
    }
    .cw-stat-row         { gap: 5px; align-items: center; }
    .cw-stat-coin-icon   { width: 26px !important; height: 26px !important; }
    .cw-stat-score-icon  { width: 20px !important; height: 20px !important; }
    .cw-stat-orb-icon    { width: 20px !important; height: 20px !important; }
    .cw-stats .coins     { font-size: 20px; font-weight: 800; }
    .cw-stats .score     { font-size: 19px; font-weight: 800; }
    .cw-stats .orbs      { font-size: 18px; font-weight: 800; }
    .cw-orbs-sublabel    { display: none; }
    .cw-add-more-link    { display: none; }
    .cw-score-tooltip    { display: none !important; }
    .cw-stat-val-col     { gap: 0; }

    /* Action icon group: condensed */
    .cw-icon-group { gap: 2px; align-items: center; }
    .cw-icon-btn   { padding: 4px; }
    .cw-icon-btn img { width: 22px !important; height: 22px !important; }
    .friend-badge, .chat-badge, .bell-badge { font-size: 8px; padding: 1px 3px; }
    .cw-create-quick-btn { font-size: 11px; padding: 5px 10px; }
    .cw-avatar { width: 34px; height: 34px; }

    /* ── Settings page ───────────────────────────────────────── */
    .cw-settings-page {
        grid-template-columns: 1fr;
        margin: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        border-radius: 0;
    }
    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 2px dashed #e0d0f0;
        padding: 0 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .settings-nav::-webkit-scrollbar { display: none; }
    .settings-nav-title,
    .settings-nav-divider { display: none; }
    .settings-nav-item {
        flex-direction: column;
        flex-shrink: 0;
        align-items: center;
        gap: 2px;
        padding: 8px 14px 6px;
        font-size: 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        margin-right: 0;
        white-space: nowrap;
    }
    .settings-nav-item.settings-nav-active {
        border-left-color: transparent;
        border-bottom-color: #7700bb;
    }
    .settings-nav-icon { font-size: 18px; line-height: 1.2; }
    .settings-content { padding: 16px; min-height: unset; }
    .settings-avatar-area { flex-wrap: wrap; gap: 12px; padding: 12px; }

    /* ── Watch page: single-column, Up Next below comments ────── */
    .cw-watch-page {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 0;
        margin: 10px auto 24px;
    }
    /* watch-main (video + info + comments) is first in HTML;
       watch-sidebar (Up Next) is second — so it naturally lands below */
    .watch-sidebar {
        position: static;
        margin-top: 28px;
        border-top: 2px dashed #e5e7eb;
        padding-top: 16px;
    }
    .watch-title       { font-size: 17px; }
    .watch-actions     { flex-wrap: wrap; gap: 8px; }
    .watch-vote-bar-wrap { flex: 0 0 100%; margin-top: 4px; }
    .sidebar-rec-card  { flex-direction: row; gap: 10px; }
    .sidebar-rec-thumb { width: 120px; height: 72px; flex-shrink: 0; border-radius: 6px; }
    .sidebar-rec-title { font-size: 12px; }

    /* ── Top Today ─────────────────────────────────────────── */
    .cw-top-today { margin: 12px 8px; padding: 14px 12px; }
    .cw-top-today-cards { flex-direction: column; }

    /* ── Your Feed ─────────────────────────────────────────── */
    .cw-feed-section   { margin: 12px 8px; }
    .cw-feed-container { padding: 8px; }
    .feed-card         { gap: 10px; padding: 10px 8px; }
    .feed-card-thumb   { width: 108px; height: 76px; border-radius: 6px; }
    .feed-card-title   { font-size: 13px; }
    .feed-card-date, .feed-card-uploader { font-size: 10px; }

    /* ── Save bar ──────────────────────────────────────────── */
    .cw-save-bar     { padding: 0 12px; gap: 8px; height: 50px; }
    .cw-save-bar-msg { font-size: 12px; }
    .cw-discard-btn, .cw-save-btn { padding: 6px 14px; font-size: 12px; }
}


/* ════════════════════════════════════════════════════════════════
   THEME OVERRIDES — applied via html[data-theme] set by theme-init.js
   Dark  = deep purple-black night mode
   Aura  = vivid purple nebula
════════════════════════════════════════════════════════════════ */

/* ── Shared dark-family base ─────────────────────────────────── */
html[data-theme="dark"],
html[data-theme="aura"] {
    background: #0d0018;
    color: #e0d0f8;
}

html[data-theme="dark"] body,
html[data-theme="aura"] body {
    background: #0d0018;
    color: #e0d0f8;
}

/* ── Topbar ──────────────────────────────────────────────────── */
html[data-theme="dark"] .cw-topbar {
    background:
        linear-gradient(rgba(130,0,220,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130,0,220,0.07) 1px, transparent 1px),
        linear-gradient(160deg, #1a002a 0%, #150020 50%, #180025 100%) !important;
    border-bottom-color: #3a1060 !important;
}
html[data-theme="aura"] .cw-topbar {
    background:
        linear-gradient(rgba(200,0,255,0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,0,255,0.09) 1px, transparent 1px),
        linear-gradient(160deg, #2a0055 0%, #1a003a 50%, #2a0050 100%) !important;
    border-bottom-color: #6600cc !important;
}

/* ── Search bar ──────────────────────────────────────────────── */
html[data-theme="dark"] .cw-search-bar,
html[data-theme="aura"] .cw-search-bar {
    background: #200035 !important;
    border-color: #5500aa !important;
}
html[data-theme="dark"] .search-input,
html[data-theme="aura"] .search-input {
    background: transparent !important;
    color: #e0d0f8 !important;
}
html[data-theme="dark"] .search-input::placeholder,
html[data-theme="aura"] .search-input::placeholder { color: #7755aa !important; }

/* ── Welcome/info block ──────────────────────────────────────── */
html[data-theme="dark"] .cw-welcome-box,
html[data-theme="aura"] .cw-welcome-box { color: #d0b8f8 !important; }
html[data-theme="dark"] .cw-welcome-box .label,
html[data-theme="aura"] .cw-welcome-box .label { color: #9966cc !important; }
html[data-theme="dark"] .cw-dash-line,
html[data-theme="aura"] .cw-dash-line { background: rgba(180,100,255,0.3) !important; }

/* ── Avatar dropdown ─────────────────────────────────────────── */
html[data-theme="dark"] .cw-avatar-menu,
html[data-theme="aura"] .cw-avatar-menu {
    background: #1a0030 !important;
    border-color: #6600cc !important;
}
html[data-theme="dark"] .avatar-menu-item,
html[data-theme="aura"] .avatar-menu-item { color: #d8c4f8 !important; }
html[data-theme="dark"] .avatar-menu-item:hover,
html[data-theme="aura"] .avatar-menu-item:hover { background: #280045 !important; }

/* ── Settings page ───────────────────────────────────────────── */
html[data-theme="dark"] .cw-settings-page,
html[data-theme="aura"] .cw-settings-page {
    background: #170028 !important;
    border: 1.5px solid #3a1060 !important;
}
html[data-theme="dark"] .settings-nav,
html[data-theme="aura"] .settings-nav {
    background: #110022 !important;
    border-right-color: #3a1060 !important;
}
html[data-theme="dark"] .settings-nav-title,
html[data-theme="aura"] .settings-nav-title { color: #c0a0e8 !important; }
html[data-theme="dark"] .settings-nav-item,
html[data-theme="aura"] .settings-nav-item { color: #c8b0e8 !important; }
html[data-theme="dark"] .settings-nav-item:hover,
html[data-theme="aura"] .settings-nav-item:hover { background: #220038 !important; }
html[data-theme="dark"] .settings-nav-item.settings-nav-active,
html[data-theme="aura"] .settings-nav-item.settings-nav-active {
    background: rgba(119,0,187,0.22) !important;
    color: #d8a8ff !important;
}
html[data-theme="dark"] .settings-nav-divider,
html[data-theme="aura"] .settings-nav-divider { border-color: #3a1060 !important; }
html[data-theme="dark"] .settings-content,
html[data-theme="aura"] .settings-content { background: #170028 !important; }
html[data-theme="dark"] .settings-section-title,
html[data-theme="aura"] .settings-section-title { color: #e8d8ff !important; }
html[data-theme="dark"] .settings-section-sub,
html[data-theme="aura"] .settings-section-sub { color: #9977bb !important; }
html[data-theme="dark"] .settings-group,
html[data-theme="aura"] .settings-group {
    background: #1e0032 !important;
    border-color: #3a1060 !important;
}
html[data-theme="dark"] .settings-group-label,
html[data-theme="aura"] .settings-group-label {
    color: #c088ee !important;
    border-bottom-color: #3a1060 !important;
}
html[data-theme="dark"] .settings-row,
html[data-theme="aura"] .settings-row { border-bottom-color: #2d0050 !important; }
html[data-theme="dark"] .settings-row-label,
html[data-theme="aura"] .settings-row-label { color: #ddc8f8 !important; }
html[data-theme="dark"] .settings-row-desc,
html[data-theme="aura"] .settings-row-desc { color: #8866aa !important; }

/* Settings inputs */
html[data-theme="dark"] .settings-input,
html[data-theme="dark"] .settings-select,
html[data-theme="dark"] .settings-textarea,
html[data-theme="aura"] .settings-input,
html[data-theme="aura"] .settings-select,
html[data-theme="aura"] .settings-textarea {
    background: #110020 !important;
    color: #ddc8f8 !important;
    border-color: #4a1880 !important;
}
html[data-theme="dark"] .settings-input-label,
html[data-theme="aura"] .settings-input-label { color: #aa88cc !important; }

/* Save bar */
html[data-theme="dark"] .cw-save-bar,
html[data-theme="aura"] .cw-save-bar {
    background: #1a0030 !important;
    border-color: #5500aa !important;
}
html[data-theme="dark"] .cw-save-bar-msg,
html[data-theme="aura"] .cw-save-bar-msg { color: #d0b8f8 !important; }

/* ── Appearance settings specific ────────────────────────────── */
html[data-theme="dark"] .app-theme-card,
html[data-theme="aura"] .app-theme-card {
    background: #220038 !important;
    border-color: #4a1880 !important;
}
html[data-theme="dark"] .app-theme-card.selected,
html[data-theme="aura"] .app-theme-card.selected {
    border-color: #9933ee !important;
    background: rgba(119,0,187,0.2) !important;
}
html[data-theme="dark"] .app-theme-name,
html[data-theme="aura"] .app-theme-name { color: #d8c0f8 !important; }
html[data-theme="dark"] .app-theme-badge,
html[data-theme="aura"] .app-theme-badge { color: #9977bb !important; }
html[data-theme="dark"] .app-layout-card,
html[data-theme="aura"] .app-layout-card {
    background: #220038 !important;
    border-color: #4a1880 !important;
    color: #d0b8f8 !important;
}
html[data-theme="dark"] .app-layout-card.selected,
html[data-theme="aura"] .app-layout-card.selected { border-color: #9933ee !important; }
html[data-theme="dark"] .app-layout-preview,
html[data-theme="aura"] .app-layout-preview { background: #110020 !important; border-color: #4a1880 !important; }
html[data-theme="dark"] .aplp-row span,
html[data-theme="aura"] .aplp-row span { background: #4a1880 !important; }
html[data-theme="dark"] .app-layout-name,
html[data-theme="aura"] .app-layout-name { color: #d0b8f8 !important; }
html[data-theme="dark"] .app-layout-desc,
html[data-theme="aura"] .app-layout-desc { color: #8866aa !important; }
html[data-theme="dark"] .app-font-card,
html[data-theme="aura"] .app-font-card {
    background: #220038 !important;
    border-color: #4a1880 !important;
}
html[data-theme="dark"] .app-font-card.selected,
html[data-theme="aura"] .app-font-card.selected { border-color: #9933ee !important; }
html[data-theme="dark"] .app-font-sample,
html[data-theme="aura"] .app-font-sample { color: #d8c0f8 !important; }
html[data-theme="dark"] .app-font-name,
html[data-theme="aura"] .app-font-name { color: #ccaaf0 !important; }
html[data-theme="dark"] .app-section-header,
html[data-theme="aura"] .app-section-header {
    color: #9977bb !important;
    border-bottom-color: #3a1060 !important;
}
html[data-theme="dark"] .app-theme-premium-notice,
html[data-theme="aura"] .app-theme-premium-notice { color: #8855bb !important; }
html[data-theme="dark"] .app-access-label,
html[data-theme="aura"] .app-access-label { color: #ddc8f8 !important; }
html[data-theme="dark"] .app-access-desc,
html[data-theme="aura"] .app-access-desc { color: #8866aa !important; }
html[data-theme="dark"] .app-text-size-ctrl .app-text-sz-sm,
html[data-theme="dark"] .app-text-size-ctrl .app-text-sz-lg,
html[data-theme="aura"] .app-text-size-ctrl .app-text-sz-sm,
html[data-theme="aura"] .app-text-size-ctrl .app-text-sz-lg { color: #c0a0e8 !important; }
html[data-theme="dark"] .app-text-sz-val,
html[data-theme="aura"] .app-text-sz-val { color: #c0a0e8 !important; }
html[data-theme="dark"] .app-text-preview,
html[data-theme="aura"] .app-text-preview {
    background: #110020 !important;
    color: #ddc8f8 !important;
    border-color: #3a1060 !important;
}

/* ── Accessibility section dark overrides ────────────────────── */
html[data-theme="dark"] .ah-severity-chip.low,
html[data-theme="aura"] .ah-severity-chip.low { background: rgba(22,163,74,0.12) !important; }
html[data-theme="dark"] .ah-severity-chip.mod,
html[data-theme="aura"] .ah-severity-chip.mod { background: rgba(202,138,4,0.12) !important; }
html[data-theme="dark"] .ah-severity-chip.high,
html[data-theme="aura"] .ah-severity-chip.high { background: rgba(220,38,38,0.12) !important; }
html[data-theme="dark"] .ah-severity-level,
html[data-theme="aura"] .ah-severity-level { color: #ddc8f8 !important; }
html[data-theme="dark"] .ah-warn-preview,
html[data-theme="aura"] .ah-warn-preview { background: #0a0015 !important; }
html[data-theme="dark"] .ah-sub-row,
html[data-theme="aura"] .ah-sub-row { border-left-color: #4a1880 !important; }
html[data-theme="dark"] .ah-cv-card,
html[data-theme="aura"] .ah-cv-card {
    border-color: #4a1880 !important;
}
html[data-theme="dark"] .ah-cv-info,
html[data-theme="aura"] .ah-cv-info { background: #200035 !important; }
html[data-theme="dark"] .ah-cv-name,
html[data-theme="aura"] .ah-cv-name { color: #ddc8f8 !important; }
html[data-theme="dark"] .ah-kb-chip,
html[data-theme="aura"] .ah-kb-chip {
    background: #1a0030 !important;
    border-color: #5500aa !important;
    color: #c088ee !important;
}

/* ── Channel Content Hub ─────────────────────────────────────── */
html[data-theme="dark"] .hub-page,
html[data-theme="dark"] .cw-hub-page,
html[data-theme="aura"] .hub-page,
html[data-theme="aura"] .cw-hub-page { background: #0d0018 !important; }
html[data-theme="dark"] .hub-sidebar,
html[data-theme="aura"] .hub-sidebar {
    background: #110022 !important;
    border-right-color: #3a1060 !important;
}
html[data-theme="dark"] .hub-nav-item,
html[data-theme="aura"] .hub-nav-item { color: #c8b0e8 !important; }
html[data-theme="dark"] .hub-nav-item:hover,
html[data-theme="dark"] .hub-nav-item.active,
html[data-theme="aura"] .hub-nav-item:hover,
html[data-theme="aura"] .hub-nav-item.active {
    background: #220038 !important;
    color: #e0c8ff !important;
}
html[data-theme="dark"] .hub-header,
html[data-theme="aura"] .hub-header {
    background: #170028 !important;
    border-bottom-color: #3a1060 !important;
}
html[data-theme="dark"] .hub-card,
html[data-theme="dark"] .hub-stat-card,
html[data-theme="dark"] .hub-quick-action-card,
html[data-theme="aura"] .hub-card,
html[data-theme="aura"] .hub-stat-card,
html[data-theme="aura"] .hub-quick-action-card {
    background: #1e0032 !important;
    border-color: #3a1060 !important;
    color: #d0b8f8 !important;
}
html[data-theme="dark"] .hub-tab,
html[data-theme="aura"] .hub-tab {
    color: #9977bb !important;
    border-bottom-color: transparent !important;
}
html[data-theme="dark"] .hub-tab.active,
html[data-theme="aura"] .hub-tab.active {
    color: #e0c8ff !important;
    border-bottom-color: #9933ee !important;
}
html[data-theme="dark"] .hub-table,
html[data-theme="aura"] .hub-table { border-color: #3a1060 !important; }
html[data-theme="dark"] .hub-table th,
html[data-theme="aura"] .hub-table th {
    background: #150025 !important;
    color: #9977bb !important;
    border-color: #3a1060 !important;
}
html[data-theme="dark"] .hub-table td,
html[data-theme="aura"] .hub-table td {
    color: #d0b8f8 !important;
    border-color: #2a0048 !important;
}
html[data-theme="dark"] .hub-table tr:hover td,
html[data-theme="aura"] .hub-table tr:hover td { background: #200035 !important; }

/* ── Create page ─────────────────────────────────────────────── */
html[data-theme="dark"] .create-page-header .create-header-title,
html[data-theme="aura"] .create-page-header .create-header-title { color: #e0c8ff !important; }
html[data-theme="dark"] .create-page-header .create-header-sub,
html[data-theme="aura"] .create-page-header .create-header-sub { color: #9977bb !important; }
html[data-theme="dark"] .create-header-dash,
html[data-theme="aura"] .create-header-dash { background: #3a1060 !important; }
html[data-theme="dark"] .create-card,
html[data-theme="aura"] .create-card {
    background: #1e0032 !important;
    border-color: #3a1060 !important;
}
html[data-theme="dark"] .create-card-title,
html[data-theme="aura"] .create-card-title { color: #e0c8ff !important; }
html[data-theme="dark"] .create-card-desc,
html[data-theme="aura"] .create-card-desc { color: #9977bb !important; }
html[data-theme="dark"] .create-hub-link,
html[data-theme="aura"] .create-hub-link {
    background: #1e0032 !important;
    color: #c088ee !important;
    border-color: #3a1060 !important;
}
html[data-theme="dark"] .create-hub-dash,
html[data-theme="aura"] .create-hub-dash { background: #3a1060 !important; }

/* ── General surface / card overrides ────────────────────────── */
html[data-theme="dark"] .cw-card,
html[data-theme="dark"] .cw-panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="aura"] .cw-card,
html[data-theme="aura"] .cw-panel,
html[data-theme="aura"] .card,
html[data-theme="aura"] .panel {
    background: #1e0032 !important;
    border-color: #3a1060 !important;
    color: #d0b8f8 !important;
}

/* ── Text colors ─────────────────────────────────────────────── */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="aura"] h1,
html[data-theme="aura"] h2,
html[data-theme="aura"] h3,
html[data-theme="aura"] h4 { color: #e8d8ff !important; }

/* ── Membership/popcoins sections ────────────────────────────── */
html[data-theme="dark"] .settings-membership-card,
html[data-theme="aura"] .settings-membership-card {
    background: #220038 !important;
    border-color: #4a1880 !important;
}
html[data-theme="dark"] .settings-membership-card.active,
html[data-theme="aura"] .settings-membership-card.active {
    background: rgba(119,0,187,0.22) !important;
    border-color: #9933ee !important;
}
html[data-theme="dark"] .settings-plan-name,
html[data-theme="aura"] .settings-plan-name { color: #e0c8ff !important; }
html[data-theme="dark"] .settings-plan-price,
html[data-theme="aura"] .settings-plan-price { color: #d0b8f8 !important; }
html[data-theme="dark"] .settings-plan-feature,
html[data-theme="aura"] .settings-plan-feature { color: #9977bb !important; }

/* ── Account section ─────────────────────────────────────────── */
html[data-theme="dark"] .settings-avatar-area,
html[data-theme="aura"] .settings-avatar-area {
    background: #1a0030 !important;
    border-color: #3a1060 !important;
}
html[data-theme="dark"] .settings-avatar-placeholder,
html[data-theme="aura"] .settings-avatar-placeholder {
    background: #2a0050 !important;
    color: #9966dd !important;
}

/* ── Danger zone ─────────────────────────────────────────────── */
html[data-theme="dark"] .settings-danger-box,
html[data-theme="aura"] .settings-danger-box {
    background: #200010 !important;
    border-color: #661020 !important;
}

/* ── AURA-specific overrides (brighter than dark) ────────────── */
html[data-theme="aura"] .cw-settings-page  { background: #130025 !important; }
html[data-theme="aura"] .settings-nav      { background: #0e001e !important; }
html[data-theme="aura"] .settings-group    { background: #190030 !important; border-color: #5500aa !important; }
html[data-theme="aura"] .settings-group-label { color: #dd88ff !important; border-bottom-color: #5500aa !important; }
html[data-theme="aura"] .settings-nav-item.settings-nav-active { background: rgba(160,0,255,0.28) !important; }
html[data-theme="aura"] .cw-topbar { border-bottom-color: #8800ee !important; }

/* ════════════════════════════════════════════════════════════════
   DARK/AURA — White icon swaps (CSS path for Chrome/Edge;
   theme-init.js MutationObserver handles Firefox)
════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .cw-logo,
html[data-theme="aura"] .cw-logo {
    content: url('Images/CirclewatchLogoWhite.png');
}
html[data-theme="dark"] .cw-icon-btn[title="Friends"] img,
html[data-theme="aura"] .cw-icon-btn[title="Friends"] img {
    content: url('Images/CirclewatchFriendLogoWhiteTwo.png');
}
html[data-theme="dark"] .cw-icon-btn[title="Chat"] img,
html[data-theme="aura"] .cw-icon-btn[title="Chat"] img {
    content: url('Images/CirclewatchChathubIconWhiteTwo.png');
}
html[data-theme="dark"] .cw-icon-btn[title="Notifications"] img,
html[data-theme="aura"] .cw-icon-btn[title="Notifications"] img {
    content: url('Images/CircleWatchBellIconWhite.png');
}
html[data-theme="dark"] .cw-icon-btn[title="Settings"] img,
html[data-theme="aura"] .cw-icon-btn[title="Settings"] img {
    content: url('Images/CirclewatchSettingsIconWhite.png');
}

/* ════════════════════════════════════════════════════════════════
   DARK/AURA — General text color overrides
   Targets hardcoded #111/#222/#333/#444/#555 that block inheritance
════════════════════════════════════════════════════════════════ */

/* Search bar input */
html[data-theme="dark"] .search-input,
html[data-theme="aura"] .search-input { color: #e0d0f8 !important; }

/* Topbar dash separators — dark/aura */
html[data-theme="dark"] .cw-dash-line,
html[data-theme="aura"] .cw-dash-line { border-top-color: #5a2080 !important; }
html[data-theme="dark"] .cw-dash-sm,
html[data-theme="aura"] .cw-dash-sm   { border-top-color: #3a1060 !important; }

/* Topbar stat coins/score/orbs */
html[data-theme="dark"] .cw-stats .coins,
html[data-theme="dark"] .cw-stats .score,
html[data-theme="dark"] .cw-stats .orbs,
html[data-theme="aura"] .cw-stats .coins,
html[data-theme="aura"] .cw-stats .score,
html[data-theme="aura"] .cw-stats .orbs { color: #e0d0f8 !important; }
html[data-theme="dark"] .cw-stats .score,
html[data-theme="aura"] .cw-stats .score { color: #f0d848 !important; }
html[data-theme="dark"] .cw-orbs-sublabel,
html[data-theme="aura"] .cw-orbs-sublabel { color: #bb88ee !important; }
html[data-theme="dark"] .cw-add-more-link,
html[data-theme="aura"] .cw-add-more-link { color: #cc88ff !important; }

html[data-theme="dark"] .cw-stat-vsep,
html[data-theme="aura"] .cw-stat-vsep { background: #444 !important; }

/* Connector lines */
html[data-theme="dark"] .cw-ic-branch,
html[data-theme="dark"] .cw-ic-spine,
html[data-theme="aura"] .cw-ic-branch,
html[data-theme="aura"] .cw-ic-spine { border-color: #7700bb !important; }
html[data-theme="dark"] .cw-ic-tip,
html[data-theme="aura"] .cw-ic-tip   { background: #9933cc !important; }

/* Welcome label */
html[data-theme="dark"] .cw-welcome-box .label,
html[data-theme="aura"] .cw-welcome-box .label { color: #aa88cc !important; }

/* Create page */
html[data-theme="dark"] .create-header-title,
html[data-theme="aura"] .create-header-title { color: #e8d8ff !important; }
html[data-theme="dark"] .create-header-sub,
html[data-theme="aura"] .create-header-sub { color: #9977bb !important; }
html[data-theme="dark"] .create-card-title,
html[data-theme="aura"] .create-card-title { color: #e8d8ff !important; }
html[data-theme="dark"] .create-card-desc,
html[data-theme="aura"] .create-card-desc { color: #9977bb !important; }
html[data-theme="dark"] .create-hub-link span,
html[data-theme="aura"] .create-hub-link span { color: #c088ee !important; }

/* Hub / channel pages */
html[data-theme="dark"] .hub-section-title,
html[data-theme="dark"] .hub-content-title,
html[data-theme="dark"] .hub-page-title,
html[data-theme="dark"] .hub-channel-name,
html[data-theme="dark"] .hub-stat-label,
html[data-theme="dark"] .hub-stat-value,
html[data-theme="dark"] .hub-quick-stat-label,
html[data-theme="dark"] .hub-quick-stat-value,
html[data-theme="aura"] .hub-section-title,
html[data-theme="aura"] .hub-content-title,
html[data-theme="aura"] .hub-page-title,
html[data-theme="aura"] .hub-channel-name,
html[data-theme="aura"] .hub-stat-label,
html[data-theme="aura"] .hub-stat-value,
html[data-theme="aura"] .hub-quick-stat-label,
html[data-theme="aura"] .hub-quick-stat-value { color: #e0d0f8 !important; }

html[data-theme="dark"] .hub-desc,
html[data-theme="dark"] .hub-sub,
html[data-theme="dark"] .hub-meta,
html[data-theme="aura"] .hub-desc,
html[data-theme="aura"] .hub-sub,
html[data-theme="aura"] .hub-meta { color: #9977bb !important; }

/* Watch page */
html[data-theme="dark"] .watch-title,
html[data-theme="dark"] .watch-desc,
html[data-theme="dark"] .watch-channel-name,
html[data-theme="dark"] .watch-meta,
html[data-theme="dark"] .watch-comment,
html[data-theme="dark"] .comment-text,
html[data-theme="dark"] .comment-author,
html[data-theme="dark"] .up-next-title,
html[data-theme="dark"] .up-next-channel,
html[data-theme="aura"] .watch-title,
html[data-theme="aura"] .watch-desc,
html[data-theme="aura"] .watch-channel-name,
html[data-theme="aura"] .watch-meta,
html[data-theme="aura"] .watch-comment,
html[data-theme="aura"] .comment-text,
html[data-theme="aura"] .comment-author,
html[data-theme="aura"] .up-next-title,
html[data-theme="aura"] .up-next-channel { color: #e0d0f8 !important; }
html[data-theme="dark"] .comment-username,
html[data-theme="aura"] .comment-username { color: #e0d0f8 !important; }

/* Home page / feed cards */
html[data-theme="dark"] .home-section-title,
html[data-theme="dark"] .feed-title,
html[data-theme="dark"] .feed-channel,
html[data-theme="dark"] .vid-title,
html[data-theme="dark"] .vid-channel,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .card-channel,
html[data-theme="dark"] .card-meta,
html[data-theme="aura"] .home-section-title,
html[data-theme="aura"] .feed-title,
html[data-theme="aura"] .feed-channel,
html[data-theme="aura"] .vid-title,
html[data-theme="aura"] .vid-channel,
html[data-theme="aura"] .card-title,
html[data-theme="aura"] .card-channel,
html[data-theme="aura"] .card-meta { color: #e0d0f8 !important; }

html[data-theme="dark"] .feed-desc,
html[data-theme="dark"] .card-desc,
html[data-theme="dark"] .vid-meta,
html[data-theme="aura"] .feed-desc,
html[data-theme="aura"] .card-desc,
html[data-theme="aura"] .vid-meta { color: #9977bb !important; }

/* Friend/chat hub */
html[data-theme="dark"] .friend-name,
html[data-theme="dark"] .friend-status,
html[data-theme="dark"] .chat-name,
html[data-theme="dark"] .chat-preview,
html[data-theme="dark"] .msg-text,
html[data-theme="dark"] .msg-sender,
html[data-theme="aura"] .friend-name,
html[data-theme="aura"] .friend-status,
html[data-theme="aura"] .chat-name,
html[data-theme="aura"] .chat-preview,
html[data-theme="aura"] .msg-text,
html[data-theme="aura"] .msg-sender { color: #e0d0f8 !important; }

/* Profile page */
html[data-theme="dark"] .profile-name,
html[data-theme="dark"] .profile-bio,
html[data-theme="dark"] .profile-stat-label,
html[data-theme="dark"] .profile-stat-value,
html[data-theme="aura"] .profile-name,
html[data-theme="aura"] .profile-bio,
html[data-theme="aura"] .profile-stat-label,
html[data-theme="aura"] .profile-stat-value { color: #e0d0f8 !important; }

/* Notifications */
html[data-theme="dark"] .notif-text,
html[data-theme="dark"] .notif-time,
html[data-theme="dark"] .notif-username,
html[data-theme="aura"] .notif-text,
html[data-theme="aura"] .notif-time,
html[data-theme="aura"] .notif-username { color: #e0d0f8 !important; }

/* Background surfaces on general pages */
html[data-theme="dark"] .cw-page,
html[data-theme="dark"] .page-wrap,
html[data-theme="dark"] .page-content,
html[data-theme="aura"] .cw-page,
html[data-theme="aura"] .page-wrap,
html[data-theme="aura"] .page-content {
    background: #0d0018 !important;
    color: #e0d0f8 !important;
}

/* Borders that are hardcoded dark on light backgrounds */
html[data-theme="dark"] hr,
html[data-theme="aura"] hr { border-color: #3a1060 !important; }

/* Nav links on non-settings pages */
html[data-theme="dark"] a:not([class*="btn"]):not([class*="badge"]):not([class*="tag"]):not([href^="http"]),
html[data-theme="aura"] a:not([class*="btn"]):not([class*="badge"]):not([class*="tag"]):not([href^="http"]) {
    color: #c088ee;
}
html[data-theme="dark"] a:not([class*="btn"]):not([class*="badge"]):not([class*="tag"]):not([href^="http"]):hover,
html[data-theme="aura"] a:not([class*="btn"]):not([class*="badge"]):not([class*="tag"]):not([href^="http"]):hover {
    color: #e0c0ff;
}

/* Input/textarea/select on any page */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="aura"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="aura"] textarea,
html[data-theme="aura"] select {
    background: #200035 !important;
    color: #e0d0f8 !important;
    border-color: #5500aa !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="aura"] input::placeholder,
html[data-theme="aura"] textarea::placeholder { color: #7755aa !important; }

/* ── Nav button image swaps (Groups / Trending / Market) ─────── */
html[data-theme="dark"] img[alt="Groups"],
html[data-theme="aura"] img[alt="Groups"] {
    content: url('Images/CirclewatchGroupsIconWhite.png');
}
html[data-theme="dark"] img[alt="Trending"],
html[data-theme="aura"] img[alt="Trending"] {
    content: url('Images/CirclewatchTrendingIconWhite.png');
}
html[data-theme="dark"] img[alt="Market"],
html[data-theme="aura"] img[alt="Market"] {
    content: url('Images/CirclewatchMarketIconWhite.png');
}

/* ── Topbar username + Profile text — dark/aura ─────────────── */
html[data-theme="dark"] .cw-welcome-box .username,
html[data-theme="aura"] .cw-welcome-box .username { color: #e8d8ff !important; }

html[data-theme="dark"] .profile-username,
html[data-theme="aura"] .profile-username { color: #e8d8ff !important; }

html[data-theme="dark"] .profile-stat-num,
html[data-theme="aura"] .profile-stat-num { color: #e8d8ff !important; }

html[data-theme="dark"] .profile-stat-label,
html[data-theme="aura"] .profile-stat-label { color: #9977bb !important; }

html[data-theme="dark"] .profile-stat-sep,
html[data-theme="aura"] .profile-stat-sep { background: #3a1060 !important; }

/* ── Watch sidebar — dark/aura text overrides ───────────────── */
html[data-theme="dark"] .watch-sidebar-header,
html[data-theme="aura"] .watch-sidebar-header {
    color: #e8d8ff !important;
    border-bottom-color: #3a1060 !important;
}
html[data-theme="dark"] .sidebar-rec-title,
html[data-theme="aura"] .sidebar-rec-title { color: #e0d0f8 !important; }
html[data-theme="dark"] .sidebar-rec-creator,
html[data-theme="aura"] .sidebar-rec-creator { color: #9977bb !important; }
html[data-theme="dark"] .sidebar-rec-card:hover,
html[data-theme="aura"] .sidebar-rec-card:hover { background: #220038 !important; }

/* ══════════════════════════════════════════════════════════════════════
   POST DETAIL MODAL  (post-modal.js)
══════════════════════════════════════════════════════════════════════ */
.pm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex; align-items: flex-start; justify-content: center;
    z-index: 9000; overflow-y: auto;
    padding: 40px 16px 60px;
    backdrop-filter: blur(3px);
}
.pm-modal {
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 720px;
    position: relative; flex-shrink: 0;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    font-family: 'Lexend', sans-serif;
}
.pm-close {
    position: absolute; top: 12px; right: 14px;
    background: rgba(0,0,0,0.06); border: none; border-radius: 50%;
    width: 30px; height: 30px; font-size: 20px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #555; z-index: 1; transition: background 0.15s;
}
.pm-close:hover { background: rgba(0,0,0,0.14); }

/* Header */
.pm-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px 14px; border-bottom: 1px solid #f0e8ff;
}
.pm-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.pm-meta { flex: 1; }
.pm-name  { font-size: 14px; font-weight: 700; color: #1a0030; }
.pm-time  { font-size: 11px; color: #aaa; }
.pm-type-badge {
    font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 12px;
    background: rgba(119,0,187,0.1); color: #7700bb; flex-shrink: 0;
}

/* Body */
.pm-body { padding: 16px 20px; max-height: 520px; overflow-y: auto; }
.pm-post-text { font-size: 15px; color: #222; line-height: 1.65; margin-bottom: 12px; }
.pm-img-grid { display: grid; gap: 3px; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.pm-img-grid.n1 { grid-template-columns: 1fr; }
.pm-img-grid.n2 { grid-template-columns: 1fr 1fr; }
.pm-img-grid.n3 { grid-template-columns: 1fr 1fr; }
.pm-img-grid.n3 img:first-child { grid-column: 1 / -1; }
.pm-img-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; cursor: zoom-in; }
.pm-img-grid.n1 img { aspect-ratio: auto; max-height: 480px; object-fit: contain; background: #000; }
.pm-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

/* Image lightbox */
.pm-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.96);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
}
.pm-lightbox img {
    max-width: 92vw; max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    cursor: default;
}
.pm-lightbox-close {
    position: absolute; top: 16px; right: 20px;
    background: rgba(255,255,255,0.12); border: none;
    color: #fff; font-size: 22px; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background 0.15s;
}
.pm-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.pm-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.12); border: none;
    color: #fff; font-size: 20px; width: 44px; height: 44px;
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background 0.15s;
}
.pm-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.pm-lightbox-nav.prev { left: 16px; }
.pm-lightbox-nav.next { right: 16px; }
.pm-tag  { font-size: 11px; font-weight: 600; color: #7700bb; background: rgba(119,0,187,0.08); padding: 2px 8px; border-radius: 6px; }

/* Poll */
.pm-poll-question { font-size: 15px; font-weight: 700; color: #1a0030; margin-bottom: 12px; line-height: 1.5; }
.pm-poll-opts     { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.pm-poll-opt {
    position: relative; width: 100%; padding: 10px 14px; border-radius: 10px;
    border: 1.5px solid rgba(119,0,187,0.2); background: rgba(119,0,187,0.03);
    text-align: left; font-family: 'Lexend', sans-serif; font-size: 13px;
    cursor: pointer; overflow: hidden; display: flex;
    justify-content: space-between; align-items: center; gap: 8px;
    transition: border-color 0.13s;
}
.pm-poll-opt:hover:not(:disabled) { border-color: #9333ea; }
.pm-poll-opt:disabled { cursor: default; }
.pm-poll-bar {
    position: absolute; left: 0; top: 0; bottom: 0; background: rgba(119,0,187,0.09);
    z-index: 0; transition: width 0.4s ease;
}
.pm-poll-opt-label, .pm-poll-opt-pct { position: relative; z-index: 1; }
.pm-poll-opt-pct { font-size: 11px; color: #888; white-space: nowrap; }
.pm-poll-total { font-size: 11px; color: #aaa; }

/* Trivia */
.pm-trivia-question { font-size: 15px; font-weight: 700; color: #1a0030; margin-bottom: 12px; line-height: 1.5; }
.pm-trivia-opts     { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.pm-trivia-opt {
    width: 100%; padding: 11px 14px; border-radius: 10px;
    border: 1.5px solid rgba(99,102,241,0.25); background: rgba(99,102,241,0.04);
    text-align: left; font-family: 'Lexend', sans-serif; font-size: 13px;
    cursor: pointer; display: flex; align-items: center; gap: 10px;
    transition: border-color 0.13s, background 0.13s;
}
.pm-trivia-opt:hover:not(:disabled) { border-color: #6366f1; background: rgba(99,102,241,0.1); }
.pm-trivia-opt:disabled { cursor: default; }
.pm-trivia-opt.correct          { border-color: #16a34a; background: rgba(22,163,74,0.1); color: #15803d; }
.pm-trivia-opt.revealed-correct { border-color: #16a34a; background: rgba(22,163,74,0.1); color: #15803d; }
.pm-trivia-opt.wrong            { border-color: #dc2626; background: rgba(220,38,38,0.07); color: #b91c1c; }
.pm-trivia-opt-img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.pm-trivia-letter {
    width: 24px; height: 24px; border-radius: 6px;
    background: rgba(99,102,241,0.12); display: flex; align-items: center;
    justify-content: center; font-size: 11px; font-weight: 800; color: #6366f1; flex-shrink: 0;
}
.pm-trivia-opt.revealed-correct .pm-trivia-letter { background: rgba(22,163,74,0.15); color: #15803d; }
.pm-trivia-opt.wrong            .pm-trivia-letter { background: rgba(220,38,38,0.1);  color: #b91c1c; }
.pm-trivia-result { font-size: 13px; font-weight: 700; color: #555; margin-top: 4px; }

/* Reaction */
.pm-reaction-prompt { font-size: 15px; font-weight: 700; color: #1a0030; margin-bottom: 12px; line-height: 1.5; }
.pm-reaction-btns   { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pm-reaction-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 16px; border-radius: 12px;
    border: 1.5px solid rgba(119,0,187,0.15); background: rgba(119,0,187,0.04);
    cursor: pointer; font-family: 'Lexend', sans-serif; transition: border-color 0.13s, background 0.13s;
}
.pm-reaction-btn:hover:not(:disabled) { border-color: #9333ea; background: rgba(119,0,187,0.09); }
.pm-reaction-btn:disabled { cursor: default; }
.pm-reaction-emoji { font-size: 24px; }
.pm-reaction-pct   { font-size: 11px; color: #888; }
.pm-reaction-total { font-size: 11px; color: #aaa; }

/* Score */
.pm-score-prompt  { font-size: 15px; font-weight: 700; color: #1a0030; margin-bottom: 8px; line-height: 1.5; }
.pm-score-labels  { display: flex; justify-content: space-between; font-size: 11px; color: #888; margin-bottom: 8px; }
.pm-score-btns    { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pm-score-btn {
    width: 38px; height: 38px; border-radius: 8px;
    border: 1.5px solid rgba(119,0,187,0.2); background: rgba(119,0,187,0.04);
    font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Lexend', sans-serif;
    transition: border-color 0.13s, background 0.13s;
}
.pm-score-btn:hover:not(:disabled) { border-color: #9333ea; background: rgba(119,0,187,0.1); }
.pm-score-btn.selected { background: #9333ea; color: #fff; border-color: #7700bb; }
.pm-score-btn:disabled { cursor: default; }
.pm-score-avg { font-size: 13px; font-weight: 700; color: #7700bb; }

/* Actions row */
.pm-actions {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 20px; border-top: 1px solid #f0e8ff; border-bottom: 1px solid #f0e8ff;
}
.pm-like-btn {
    background: none; border: 1.5px solid rgba(119,0,187,0.2);
    border-radius: 20px; padding: 5px 15px; font-size: 13px;
    cursor: pointer; color: #555; font-family: 'Lexend', sans-serif;
    transition: border-color 0.13s, color 0.13s;
}
.pm-like-btn:hover:not(:disabled) { border-color: #9333ea; color: #9333ea; }
.pm-comment-count { font-size: 13px; color: #888; }

/* Comments section */
.pm-comments-wrap  { padding: 14px 20px 22px; }
.pm-comments-title { font-size: 11px; font-weight: 800; color: #7700bb; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.pm-comments-list  { display: flex; flex-direction: column; gap: 12px; max-height: 220px; overflow-y: auto; margin-bottom: 14px; }
.pm-comment-meta   { display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.pm-comment-name   { font-size: 12px; font-weight: 700; color: #7700bb; }
.pm-comment-time   { font-size: 10.5px; color: #bbb; }
.pm-comment-text   { font-size: 13px; color: #333; line-height: 1.5; }
.pm-comment-form {
    display: flex; gap: 8px; align-items: center;
    margin-top: 10px; padding-top: 12px; border-top: 1px solid #f0e8ff;
}
.pm-comment-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: #9333ea; display: flex; align-items: center;
    justify-content: center; font-size: 13px; font-weight: 700; color: #fff;
}
.pm-comment-input {
    flex: 1; border: 1.5px solid rgba(119,0,187,0.2); border-radius: 20px;
    padding: 7px 14px; font-family: 'Lexend', sans-serif; font-size: 13px;
    outline: none; background: #fff; transition: border-color 0.13s;
}
.pm-comment-input:focus { border-color: #9333ea; }
.pm-comment-post {
    background: linear-gradient(135deg, #9333ea, #7700bb); color: #fff;
    border: none; border-radius: 20px; padding: 7px 16px;
    font-family: 'Lexend', sans-serif; font-size: 12px; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: opacity 0.15s;
}
.pm-comment-post:hover { opacity: 0.88; }
.pm-signin-prompt { font-size: 13px; color: #aaa; text-align: center; padding: 10px 0; }
.pm-signin-prompt a { color: #9333ea; text-decoration: none; font-weight: 600; }
.pm-loading, .pm-no-comments { font-size: 13px; color: #aaa; text-align: center; padding: 16px 0; }

/* Dark / Aura theme overrides */
html[data-theme="dark"] .pm-modal,
html[data-theme="aura"] .pm-modal { background: #12002a; }
html[data-theme="dark"] .pm-name,
html[data-theme="aura"] .pm-name  { color: #e8d8ff; }
html[data-theme="dark"] .pm-post-text,
html[data-theme="aura"] .pm-post-text { color: #d0b0ff; }
html[data-theme="dark"] .pm-header,
html[data-theme="dark"] .pm-actions,
html[data-theme="dark"] .pm-comment-form,
html[data-theme="aura"] .pm-header,
html[data-theme="aura"] .pm-actions,
html[data-theme="aura"] .pm-comment-form { border-color: rgba(168,85,247,0.2); }
html[data-theme="dark"] .pm-poll-question,
html[data-theme="dark"] .pm-trivia-question,
html[data-theme="dark"] .pm-reaction-prompt,
html[data-theme="dark"] .pm-score-prompt,
html[data-theme="aura"] .pm-poll-question,
html[data-theme="aura"] .pm-trivia-question,
html[data-theme="aura"] .pm-reaction-prompt,
html[data-theme="aura"] .pm-score-prompt { color: #e8d8ff; }
html[data-theme="dark"] .pm-comment-text,
html[data-theme="aura"] .pm-comment-text { color: #c4a8e8; }
html[data-theme="dark"] .pm-comment-input,
html[data-theme="aura"] .pm-comment-input { background: rgba(255,255,255,0.05); color: #e8d8ff; border-color: rgba(168,85,247,0.25); }
html[data-theme="dark"] .pm-close,
html[data-theme="aura"] .pm-close { background: rgba(255,255,255,0.08); color: #ccc; }
