{{-- ===========================================================
     Channel page — DESKTOP / BASE styles
     This file is the foundation: it establishes the layout that
     applies on every viewport (desktop sizes natively, and acts
     as the base that mobile rules override on small screens).
     -----------------------------------------------------------
     • Edit here for: typography, colors, layout structure,
       desktop-specific scaling, hero/banner sizing, tab styles.
     • Do NOT add @media (max-width: ...) overrides here — those
       live in partials/channel/styles.mobile.blade.php so the
       two viewports remain independent.
     =========================================================== --}}
<style>
.yt-main.no-pad { padding: 0; }

/* ══════════════════════════════════════════════════
   BANNER
══════════════════════════════════════════════════ */
.ch-banner {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 120% at 20% 50%,  hsl({{ $hue }},  60%, 18%) 0%, transparent 70%),
        radial-gradient(ellipse 60% 100% at 80% 30%,  hsl({{ $hue2 }}, 55%, 14%) 0%, transparent 65%),
        radial-gradient(ellipse 50% 80%  at 55% 80%,  hsl({{ $hue3 }}, 40%, 10%) 0%, transparent 60%),
        #0a0a0a;
}
.ch-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.55) 100%);
}
.ch-banner-noise {
    position: absolute; inset: 0;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

@media (min-width: 768px)  { .ch-banner { height: 230px; } }
@media (min-width: 1280px) { .ch-banner { height: 260px; } }

/* ══════════════════════════════════════════════════
   HEADER BLOCK
══════════════════════════════════════════════════ */
.ch-header {
    background: var(--bg-dark);
    padding: 0 32px 24px;
}
.ch-header-inner {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}

/* Avatar */
.ch-avatar-wrap { flex-shrink: 0; position: relative; }
.ch-avatar {
    width: 120px; height: 120px; border-radius: 14px;
    object-fit: cover; display: block;
    border: 0; background: #222;
    box-shadow: 0 0 0 5px hsl({{ $hue }}, 50%, 38%),
                0 12px 40px rgba(0,0,0,.65),
                0 0 0 11px rgba(0,0,0,.35);
    transition: box-shadow .3s, transform .2s;
}
.ch-avatar:hover { box-shadow: 0 0 0 5px hsl({{ $hue }}, 70%, 52%),
                               0 16px 48px rgba(0,0,0,.7),
                               0 0 0 11px rgba(0,0,0,.35); transform: translateY(-2px); }

/* Avatar & banner edit overlays */
.ch-avatar-edit-btn {
    position: absolute; inset: 0; border-radius: 14px;
    background: rgba(0,0,0,.58); border: none; cursor: pointer;
    color: #fff; font-size: 22px; opacity: 0;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .18s;
}
.ch-avatar-wrap:hover .ch-avatar-edit-btn { opacity: 1; }
.ch-banner-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.ch-banner-edit-btn {
    position: absolute; bottom: 14px; right: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 7px;
    height: 34px; padding: 0 14px; border-radius: 8px;
    background: rgba(0,0,0,.65); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2); color: #fff;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .15s, opacity .18s;
    opacity: 0;
}
.ch-banner:hover .ch-banner-edit-btn { opacity: 1; }
.ch-banner-edit-btn:hover { background: rgba(20,20,20,.85); }
.ch-banner-actions {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    display: flex; align-items: center; gap: 8px;
}
.ch-banner-subscribe-btn {
    display: inline-flex; align-items: center; gap: 7px;
    height: 36px; padding: 0 18px; border-radius: 8px;
    background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25); color: #fff;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap; text-decoration: none;
}
.ch-banner-subscribe-btn:hover { background: rgba(0,0,0,.75); border-color: rgba(255,255,255,.45); color: #fff; }
.ch-banner-subscribe-btn.subscribed-ch { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.ch-banner-subscribe-btn.subscribed-ch:hover { background: rgba(255,255,255,.18); }
.ch-banner-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25); color: #fff;
    font-size: 15px; cursor: pointer;
    transition: background .15s, border-color .15s;
    text-decoration: none;
}
.ch-banner-share-btn:hover { background: rgba(0,0,0,.75); border-color: rgba(255,255,255,.45); color: #fff; }

/* Info */
.ch-info { flex: 1; min-width: 0; padding-top: 12px; }
.ch-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 3px; }
.ch-name { font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--text-primary); margin: 0; letter-spacing: -.4px; }
.ch-verified-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: hsl({{ $hue }}, 60%, 45%); color: #fff; font-size: 11px; flex-shrink: 0;
}
.ch-handle { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; opacity: .7; }

/* Stats row — frosted pill so the text stays legible over any banner color */
.ch-meta-row {
    display: inline-flex; align-items: center; flex-wrap: wrap;
    gap: 0; margin-bottom: 12px; font-size: 13px; color: #e7e7e7;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.08);
    width: fit-content; max-width: 100%;
}
.ch-meta-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #f1f1f1; }
.ch-meta-item i { font-size: 11px; color: hsl({{ $hue }}, 70%, 65%); }
.ch-meta-sep { margin: 0 10px; opacity: .35; font-size: 12px; color: #fff; }

/* Bio */
.ch-bio { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; max-width: 580px; margin-bottom: 14px; }
.ch-bio-short { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-bio-full { display: none; }
.ch-bio-toggle { background: none; border: none; color: var(--text-primary); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; margin-left: 2px; }

/* Horoscope + compat strip */
.ch-horo-strip {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
    margin-bottom: 14px; padding: 10px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    width: fit-content; max-width: 100%;
}
.ch-horo-sign-part { display: flex; align-items: center; gap: 8px; }
.ch-horo-emoji { font-size: 22px; line-height: 1; cursor: default;
    filter: drop-shadow(0 0 6px hsl({{ $hue }}, 60%, 45%)); }
.ch-horo-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.ch-horo-el {
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,.07); color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,.1);
}
.ch-horo-divider { width: 1px; height: 18px; background: rgba(255,255,255,.12); flex-shrink: 0; }
.ch-compat-mini { display: flex; align-items: center; gap: 8px; }
.ch-compat-mini-pct { font-size: 13px; font-weight: 800; }
.ch-compat-mini-track {
    width: 72px; height: 4px; border-radius: 4px;
    background: rgba(255,255,255,.1); overflow: hidden;
}
.ch-compat-mini-fill {
    height: 100%; border-radius: 4px;
    transition: width 1.2s cubic-bezier(.22,.61,.36,1);
}
.ch-compat-mini-label { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }

/* Social icon buttons row */
.ch-social-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ch-social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.65); font-size: 16px;
    text-decoration: none; cursor: pointer;
    transition: background .15s, transform .1s, border-color .15s, color .15s;
    flex-shrink: 0;
}
.ch-social-btn:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
    color: #fff;
    transform: translateY(-1px);
}

/* Manage dropdown (owner) — sits inline with the horoscope strip */
.ch-manage-wrap { position: relative; display: inline-block; }
.ch-manage-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.07); color: var(--text-primary);
    border: 1px solid rgba(255,255,255,.14);
    height: 36px; padding: 0 14px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.ch-manage-btn:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.25); }
.ch-manage-btn .bi-chevron-down { font-size: 11px; opacity: .7; }
.ch-manage-menu {
    position: fixed; z-index: 9500;
    min-width: 220px; padding: 6px;
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,.55);
    display: none;
}
.ch-manage-menu.open { display: block; }
.ch-manage-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: transparent; border: 0; cursor: pointer; text-align: left;
    padding: 9px 12px; border-radius: 7px;
    color: var(--text-primary); font-size: 13.5px; font-weight: 500;
    text-decoration: none;
}
.ch-manage-item i { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.ch-manage-item:hover { background: rgba(255,255,255,.08); }
.ch-manage-item.danger        { color: #f87171; }
.ch-manage-item.danger:hover  { background: rgba(248,113,113,.12); }
.ch-manage-item.success i     { color: #4ade80; }
.ch-manage-item.warning i     { color: #fbbf24; }

/* Actions */
.ch-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-btn-primary {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--text-primary); color: var(--bg-dark);
    border: none; height: 36px; padding: 0 18px;
    border-radius: 8px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background .15s, transform .1s;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.ch-btn-primary:hover { background: #d4d4d4; color: var(--bg-dark); transform: translateY(-1px); }
.ch-btn-primary.subscribed-ch { background: rgba(255,255,255,.08); color: var(--text-primary); border: 1px solid rgba(255,255,255,.18); }
.ch-btn-primary.subscribed-ch:hover { background: rgba(255,255,255,.13); }
.ch-btn-ghost {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.07); color: var(--text-primary);
    border: 1px solid rgba(255,255,255,.12);
    height: 36px; padding: 0 16px; border-radius: 8px;
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: background .15s; text-decoration: none; white-space: nowrap;
}
.ch-btn-ghost:hover { background: rgba(255,255,255,.13); color: var(--text-primary); }
.ch-btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    color: var(--text-primary); font-size: 15px; cursor: pointer; transition: background .15s;
}
.ch-btn-icon:hover { background: rgba(255,255,255,.15); }

/* Video search bar */
.ch-vid-search-wrap {
    position: relative; margin-bottom: 20px; max-width: 340px;
}
.ch-vid-search-wrap i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-secondary); font-size: 14px; pointer-events: none;
}
.ch-vid-search {
    width: 100%; height: 38px; padding: 0 14px 0 36px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px; color: var(--text-primary); font-size: 14px;
    outline: none; transition: border-color .2s, background .2s;
}
.ch-vid-search:focus { border-color: hsl({{ $hue }}, 55%, 45%); background: rgba(255,255,255,.08); }
.ch-vid-search::placeholder { color: var(--text-secondary); }
.ch-vid-no-results {
    display: none; text-align: center; padding: 60px 20px;
    color: var(--text-secondary); grid-column: 1/-1;
}
.ch-vid-no-results i { font-size: 40px; display: block; margin-bottom: 12px; opacity: .4; }

/* ══════════════════════════════════════════════════
   TABS
══════════════════════════════════════════════════ */
.ch-tabs-wrap {
    position: sticky; top: 56px; z-index: 80;
    background: var(--bg-dark); border-bottom: 1px solid var(--border-color); padding: 0 32px;
}
.ch-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.ch-tabs::-webkit-scrollbar { display: none; }
.ch-tab {
    background: none; border: none; color: var(--text-secondary);
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
    padding: 0 20px; height: 46px; cursor: pointer; position: relative; white-space: nowrap;
    transition: color .15s; flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
}
.ch-tab:hover { color: var(--text-primary); }
.ch-tab.active { color: var(--text-primary); }
.ch-tab.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: hsl({{ $hue }}, 65%, 55%); border-radius: 2px 2px 0 0;
}
.ch-tab-badge {
    background: rgba(255,255,255,.1); color: var(--text-secondary);
    font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 10px; line-height: 1.4;
}
.ch-tab.active .ch-tab-badge { background: hsl({{ $hue }}, 55%, 30%); color: hsl({{ $hue }}, 80%, 75%); }

/* ══════════════════════════════════════════════════
   TAB CONTENT
══════════════════════════════════════════════════ */
.ch-tab-content { display: none; padding: 28px 32px; }
.ch-tab-content.active { display: block; }

/* Sort bar */
.ch-sort-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.ch-sort-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.ch-sort-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-sort-pill {
    background: transparent; border: 1px solid rgba(255,255,255,.1); color: var(--text-secondary);
    font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 20px;
    cursor: pointer; text-decoration: none; transition: all .15s; display: inline-block;
}
.ch-sort-pill:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--text-primary); }
.ch-sort-pill.active { background: hsl({{ $hue }}, 55%, 25%); border-color: hsl({{ $hue }}, 60%, 40%); color: hsl({{ $hue }}, 80%, 80%); }

/* ══════════════════════════════════════════════════
   VIDEO GRID
══════════════════════════════════════════════════ */
.yt-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1100px) { .yt-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .yt-video-grid { grid-template-columns: 1fr; } }
@media (min-width: 1500px) { .yt-video-grid { grid-template-columns: repeat(4, 1fr); } }

/* ══════════════════════════════════════════════════
   SHORTS GRID
══════════════════════════════════════════════════ */
.ch-shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.ch-short-card { cursor: pointer; text-decoration: none; color: inherit; display: block; }
.ch-short-thumb { position: relative; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: #1a1a1a; transition: transform .2s; }
.ch-short-card:hover .ch-short-thumb { transform: scale(1.02); }
.ch-short-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ch-short-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,.7) 100%); }
.ch-short-play {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.2); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; z-index: 1; opacity: 0; transition: opacity .2s;
}
.ch-short-card:hover .ch-short-play { opacity: 1; }
.ch-short-duration { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; z-index: 1; }
.ch-short-visibility-badge { position: absolute; bottom: 10px; left: 8px; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; z-index: 2; display: flex; align-items: center; gap: 3px; pointer-events: none; }
.ch-vis-private { background: rgba(220,38,38,.88); color: #fff; }
.ch-vis-unlisted { background: rgba(20,20,20,.82); color: #facc15; border: 1px solid rgba(250,204,21,.4); }
.ch-short-title { font-size: 13px; font-weight: 500; margin: 9px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.ch-short-meta { font-size: 12px; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════
   PLAYLISTS GRID
══════════════════════════════════════════════════ */
.ch-playlists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
@media (max-width: 600px) { .ch-playlists-grid { grid-template-columns: repeat(2, 1fr); } }
.ch-playlist-card { text-decoration: none; color: inherit; display: block; transition: transform .2s; }
.ch-playlist-card:hover { transform: translateY(-3px); }
.ch-playlist-thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--bg-secondary); margin-bottom: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.ch-playlist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ch-pl-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a1a, #252525); color: var(--text-secondary); font-size: 36px; }
.ch-playlist-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.75) 100%); }
.ch-playlist-count { position: absolute; bottom: 0; right: 0; background: rgba(0,0,0,.82); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 12px; width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ch-playlist-count i { color: hsl({{ $hue }}, 70%, 65%); }
.ch-playlist-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-playlist-meta { font-size: 12px; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════
   WALL / POSTS TAB
══════════════════════════════════════════════════ */
.ch-wall-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
}
@media (max-width: 860px) { .ch-wall-layout { grid-template-columns: 1fr; } }

/* ── Composer ────────────────────────────────────── */
.ch-composer {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: 3px solid hsl({{ $hue }}, 55%, 50%);
    border-radius: 18px;
    padding: 0;
    margin-bottom: 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
    overflow: hidden;
    transition: box-shadow .2s;
}
.ch-composer:focus-within { box-shadow: 0 6px 32px rgba(0,0,0,.28), 0 0 0 1px hsl({{ $hue }}, 50%, 40%); }

.ch-composer-top {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px 18px 14px;
}
.ch-composer-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid hsl({{ $hue }}, 45%, 35%);
    box-shadow: 0 0 0 3px hsl({{ $hue }}, 45%, 18%);
}
.ch-composer-right { flex: 1; min-width: 0; }
.ch-composer-name { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 7px; }
.ch-composer textarea {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    padding: 13px 16px;
    resize: none;
    line-height: 1.6;
    font-family: inherit;
    min-height: 68px;
    max-height: 280px;
    transition: border-color .2s, min-height .2s;
}
.ch-composer textarea:focus {
    outline: none;
    border-color: hsl({{ $hue }}, 55%, 45%);
    min-height: 110px;
    background: rgba(255,255,255,.06);
}
.ch-composer textarea::placeholder { color: var(--text-secondary); font-size: 15px; }

/* ── Multi-image preview grid ── */
.ch-composer-img-grid {
    display: grid;
    gap: 6px;
    margin: 0 18px 10px;
}
.ch-composer-img-grid.count-1 { grid-template-columns: 1fr; }
.ch-composer-img-grid.count-2 { grid-template-columns: 1fr 1fr; }
.ch-composer-img-grid.count-3 { grid-template-columns: 1fr 1fr 1fr; }
.ch-composer-img-grid.count-4,
.ch-composer-img-grid.count-more { grid-template-columns: 1fr 1fr; }

.ch-composer-img-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    aspect-ratio: 4/3;
}
.ch-composer-img-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ch-composer-img-remove {
    position: absolute; top: 6px; right: 6px;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
    color: #fff; border: none; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.ch-composer-img-remove:hover { background: rgba(200,30,30,.85); }

/* ── Selected video chips ── */
.ch-composer-video-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 0 18px 10px;
}
.ch-composer-video-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.25);
    border-radius: 20px; padding: 5px 5px 5px 8px;
    font-size: 12px; font-weight: 600; color: #93c5fd; max-width: 220px;
}
.ch-composer-video-chip-thumb {
    width: 32px; height: 20px; border-radius: 4px; object-fit: cover;
    background: #111; flex-shrink: 0;
}
.ch-composer-video-chip span {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ch-composer-video-chip-remove {
    flex-shrink: 0; background: rgba(96,165,250,.2); border: none;
    border-radius: 50%; width: 20px; height: 20px; color: #93c5fd;
    font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.ch-composer-video-chip-remove:hover { background: rgba(239,68,68,.3); color: #fca5a5; }

/* ── Video picker modal ── */
.ch-vp-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.75);
    z-index: 9100; display: flex; align-items: center; justify-content: center;
    padding: 16px; animation: chVpIn .15s ease;
}
@keyframes chVpIn { from{opacity:0} to{opacity:1} }
.ch-vp-modal {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 18px; width: 100%; max-width: 680px;
    max-height: 82vh; display: flex; flex-direction: column;
    overflow: hidden; animation: chVpSlide .2s cubic-bezier(.34,1.4,.64,1);
}
@keyframes chVpSlide { from{opacity:0;transform:scale(.9) translateY(16px)} to{opacity:1;transform:none} }
.ch-vp-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px 13px; border-bottom: 1px solid var(--border-color); flex-shrink: 0;
}
.ch-vp-head h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0; }
.ch-vp-close {
    background: rgba(255,255,255,.06); border: none; color: var(--text-secondary);
    border-radius: 50%; width: 30px; height: 30px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    transition: background .15s, color .15s;
}
.ch-vp-close:hover { background: rgba(239,68,68,.2); color: #fca5a5; }
.ch-vp-search {
    padding: 12px 18px; border-bottom: 1px solid var(--border-color); flex-shrink: 0;
}
.ch-vp-search input {
    width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--border-color);
    border-radius: 10px; color: var(--text-primary); padding: 9px 14px; font-size: 13px;
    font-family: inherit;
}
.ch-vp-search input:focus { outline: none; border-color: rgba(96,165,250,.5); }
.ch-vp-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px; padding: 14px 18px; overflow-y: auto; flex: 1;
}
@media(max-width:500px){ .ch-vp-grid { grid-template-columns: repeat(2,1fr); } }
.ch-vp-card {
    position: relative; border-radius: 12px; overflow: hidden;
    background: rgba(255,255,255,.04); border: 2px solid transparent;
    cursor: pointer; transition: border-color .15s, transform .12s;
    user-select: none;
}
.ch-vp-card:hover { border-color: rgba(96,165,250,.4); transform: translateY(-2px); }
.ch-vp-card.selected { border-color: #60a5fa; background: rgba(96,165,250,.08); }
.ch-vp-card-thumb {
    position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden;
}
.ch-vp-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-vp-card-check {
    position: absolute; top: 6px; right: 6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #60a5fa; display: none;
    align-items: center; justify-content: center; font-size: 12px; color: #fff;
}
.ch-vp-card.selected .ch-vp-card-check { display: flex; }
.ch-vp-card-title {
    font-size: 12px; font-weight: 600; color: var(--text-primary);
    padding: 8px 9px 9px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ch-vp-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px 14px; border-top: 1px solid var(--border-color); flex-shrink: 0;
    gap: 12px;
}
.ch-vp-count { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.ch-vp-confirm {
    background: #60a5fa; color: #fff; border: none;
    padding: 0 22px; height: 36px; border-radius: 18px;
    font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: background .15s; flex-shrink: 0;
}
.ch-vp-confirm:hover { background: #3b82f6; }
.ch-vp-confirm:disabled { background: rgba(255,255,255,.12); color: var(--text-secondary); cursor: not-allowed; }

/* ── Post image grid (feed) ── */
.ch-post-img-grid {
    display: grid; gap: 3px; margin-top: 12px; overflow: hidden;
}
.ch-post-img-grid.count-1 { grid-template-columns: 1fr; }
.ch-post-img-grid.count-2 { grid-template-columns: 1fr 1fr; }
.ch-post-img-grid.count-3 { grid-template-columns: 1fr 1fr 1fr; }
.ch-post-img-grid.count-4,
.ch-post-img-grid.count-more { grid-template-columns: 1fr 1fr; }
.ch-post-img-item {
    position: relative; overflow: hidden; cursor: zoom-in;
    background: #111;
}
.ch-post-img-grid.count-1 .ch-post-img-item { max-height: 480px; }
.ch-post-img-grid.count-2 .ch-post-img-item { aspect-ratio: 4/3; }
.ch-post-img-grid.count-3 .ch-post-img-item { aspect-ratio: 1/1; }
.ch-post-img-grid.count-4 .ch-post-img-item,
.ch-post-img-grid.count-more .ch-post-img-item { aspect-ratio: 4/3; }
.ch-post-img-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.ch-post-img-item:hover img { transform: scale(1.03); }
.ch-post-img-more {
    position: absolute; inset: 0; background: rgba(0,0,0,.55);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 900; color: #fff; pointer-events: none;
}

.ch-composer-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px 14px;
    border-top: 1px solid rgba(255,255,255,.05);
    background: rgba(255,255,255,.02);
    flex-wrap: wrap; gap: 8px;
}
.ch-composer-media { display: flex; gap: 4px; }
.ch-composer-media-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 20px;
    background: none; border: none;
    color: var(--text-secondary); font-size: 13px; font-weight: 500;
    cursor: pointer; font-family: inherit;
    transition: background .15s, color .15s;
}
.ch-composer-media-btn:hover { background: rgba(255,255,255,.08); color: var(--text-primary); }
.ch-composer-media-btn i { font-size: 16px; }
.ch-composer-media-btn.photo i { color: #4ade80; }
.ch-composer-media-btn.video i { color: #60a5fa; }
.ch-composer-post-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: hsl({{ $hue }}, 60%, 45%);
    color: #fff; border: none;
    height: 36px; padding: 0 22px;
    border-radius: 18px; font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 2px 12px hsl({{ $hue }}, 60%, 30%);
}
.ch-composer-post-btn:hover {
    background: hsl({{ $hue }}, 70%, 52%);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px hsl({{ $hue }}, 60%, 25%);
}

/* ── Post card ───────────────────────────────────── */
.ch-post {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    margin-bottom: 18px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.ch-post:hover {
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 4px 24px rgba(0,0,0,.22);
}

.ch-post-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px 0;
}
.ch-post-avatar-link { flex-shrink: 0; display: block; }
.ch-post-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; display: block;
    border: 2px solid rgba(255,255,255,.1);
}
.ch-post-meta { flex: 1; min-width: 0; }
.ch-post-name {
    font-size: 15px; font-weight: 700; color: var(--text-primary);
    line-height: 1.2;
}
.ch-post-time {
    font-size: 12px; color: var(--text-secondary);
    margin-top: 2px; display: flex; align-items: center; gap: 4px;
}
.ch-post-time i { font-size: 11px; }
.ch-post-menu-wrap { position: relative; flex-shrink: 0; }
.ch-post-menu-btn {
    background: none; border: none;
    width: 34px; height: 34px; border-radius: 50%;
    color: var(--text-secondary); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.ch-post-menu-btn:hover { background: rgba(255,255,255,.08); color: var(--text-primary); }
.ch-post-dropdown {
    display: none; position: absolute; right: 0; top: 38px;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 12px; min-width: 160px; z-index: 50;
    box-shadow: 0 8px 32px rgba(0,0,0,.4); padding: 6px;
}
.ch-post-dropdown.open { display: block; }
.ch-post-dropdown form { margin: 0; }
.ch-post-dropdown button, .ch-post-dropdown a {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 8px 12px; border-radius: 8px;
    background: none; border: none; text-align: left;
    font-size: 14px; color: var(--text-secondary); cursor: pointer; font-family: inherit;
    text-decoration: none; transition: background .12s, color .12s;
}
.ch-post-dropdown button:hover, .ch-post-dropdown a:hover { background: rgba(255,255,255,.07); color: var(--text-primary); }
.ch-post-dropdown .danger:hover { background: rgba(255,60,60,.12); color: #f87171; }
.ch-post-dropdown i { font-size: 14px; width: 16px; text-align: center; }

.ch-post-body {
    font-size: 15px; color: var(--text-primary);
    line-height: 1.7; white-space: pre-wrap;
    padding: 14px 18px 4px;
}
.ch-post-body-lg { font-size: 22px; line-height: 1.45; font-weight: 500; padding: 16px 18px 4px; }

.ch-post-image-wrap {
    margin-top: 12px;
    cursor: zoom-in;
}
.ch-post-image-wrap img {
    width: 100%; max-height: 480px; object-fit: cover; display: block;
}

.ch-post-video-wrap { padding: 12px 18px 0; }
.ch-post-video-card {
    display: flex; gap: 14px; align-items: center;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px; padding: 12px 14px;
    text-decoration: none; color: var(--text-primary);
    transition: background .15s, border-color .15s;
    overflow: hidden;
}
.ch-post-video-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); color: var(--text-primary); }
.ch-post-video-thumb-wrap {
    position: relative; flex-shrink: 0;
    width: 100px; height: 58px; border-radius: 9px; overflow: hidden;
    background: #111;
}
.ch-post-video-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-post-video-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35);
    transition: background .15s;
}
.ch-post-video-card:hover .ch-post-video-play { background: rgba(0,0,0,.5); }
.ch-post-video-play i { font-size: 22px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.ch-post-video-info { flex: 1; min-width: 0; }
.ch-post-video-title { font-size: 14px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ch-post-video-meta { font-size: 12px; color: var(--text-secondary); margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-post-video-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,.07); border-radius: 6px; padding: 2px 7px; font-size: 11px;
}

.ch-post-actions {
    display: flex; align-items: center;
    padding: 10px 10px 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,.05);
    gap: 4px;
}
.ch-post-action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 20px;
    background: none; border: none;
    color: var(--text-secondary); font-size: 13px; font-weight: 500;
    cursor: pointer; font-family: inherit;
    transition: background .15s, color .15s, transform .1s;
    text-decoration: none;
}
.ch-post-action-btn:hover { background: rgba(255,255,255,.07); color: var(--text-primary); transform: scale(1.03); }
.ch-post-action-btn.liked { color: #f87171; }
.ch-post-action-btn.liked:hover { background: rgba(248,113,113,.1); }
.ch-post-action-btn i { font-size: 16px; }
.ch-post-action-sep { width: 1px; height: 20px; background: rgba(255,255,255,.07); margin: 0 2px; }
.ch-post-like-anim { display: inline-block; }
.ch-post-like-anim.pop { animation: likePop .3s ease; }
@keyframes likePop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* ── Wall sidebar ─────────────────────────────────── */
.ch-wall-sidebar {}

.ch-sidebar-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,.12);
}

/* ── Compact horoscope + compat card ── */
.ch-sw-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 0 0 1px var(--sw-h, transparent) inset,
                0 4px 24px rgba(0,0,0,.18);
}
.ch-sw-sign-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ch-sw-emoji { font-size: 32px; line-height: 1; flex-shrink: 0; }
.ch-sw-sign-info { min-width: 0; }
.ch-sw-sign-name { font-size: 15px; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.ch-sw-element { font-size: 11px; font-weight: 600; color: var(--sw-h, var(--text-secondary)); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.ch-sw-traits { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.ch-sw-trait {
    font-size: 11px; font-weight: 500; padding: 3px 9px;
    border-radius: 4px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
    color: var(--text-secondary);
}
.ch-sw-compat {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 10px;
}
.ch-sw-compat-signs {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 7px; font-size: 20px;
}
.ch-sw-compat-sign { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ch-sw-compat-sign small { font-size: 10px; color: var(--text-secondary); margin-top: 2px; font-style: normal; }
.ch-sw-compat-heart { font-size: 14px; }
.ch-sw-compat-pct { font-size: 15px; font-weight: 900; line-height: 1; }
.ch-sw-compat-lbl { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.ch-sw-compat-bar {
    height: 4px; border-radius: 4px;
    background: rgba(255,255,255,.08); overflow: hidden;
}
.ch-sw-compat-fill { height: 100%; border-radius: 4px; transition: width 1.3s cubic-bezier(.22,.61,.36,1); }
.ch-sw-compat-prompt {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 10px;
    font-size: 12px; color: var(--text-secondary); line-height: 1.6;
}
.ch-sw-compat-prompt a { color: var(--sw-h, #a78bfa); text-decoration: none; font-weight: 600; }
.ch-sw-compat-prompt a:hover { text-decoration: underline; }
.ch-sidebar-widget-header {
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 7px;
}
.ch-sidebar-widget-header i { font-size: 13px; }
.ch-sidebar-widget-body { padding: 16px 18px 18px; }

/* Horoscope widget */
.ch-horoscope-hero {
    display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.ch-horoscope-orb {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; flex-shrink: 0;
    border: 2px solid var(--h-color, rgba(255,255,255,.15));
    background: rgba(255,255,255,.05);
    box-shadow: 0 0 28px var(--h-color, transparent), inset 0 1px 0 rgba(255,255,255,.12);
    position: relative;
    transition: box-shadow .3s;
}
.ch-horoscope-sign-info { flex: 1; min-width: 0; }
.ch-horoscope-sign-name {
    font-size: 18px; font-weight: 800; color: var(--text-primary); line-height: 1.1; margin-bottom: 4px;
}
.ch-horoscope-sign-dates { font-size: 12px; color: var(--text-secondary); }
.ch-horoscope-element-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; padding: 3px 11px;
    border-radius: 20px; margin-top: 5px;
    border: 1px solid var(--h-color, rgba(255,255,255,.15));
    background: rgba(255,255,255,.06);
    color: var(--h-color, var(--text-secondary));
}
.ch-horoscope-divider { height: 1px; background: rgba(255,255,255,.06); margin: 12px 0; }
.ch-horoscope-traits { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-horoscope-trait {
    font-size: 12px; padding: 4px 11px; border-radius: 20px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    color: var(--text-secondary); font-weight: 500;
}

/* Compatibility widget */
.ch-compat-hero {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 18px;
}
.ch-compat-sign-block { text-align: center; flex: 1; }
.ch-compat-sign-orb {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 6px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.ch-compat-sign-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; line-height: 1.5; }
.ch-compat-vs {
    padding: 0 12px;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.ch-compat-hearts { font-size: 20px; line-height: 1; }
.ch-compat-vs-text { font-size: 10px; color: var(--text-secondary); font-weight: 600; letter-spacing: .05em; }
.ch-compat-score-wrap { text-align: center; margin-bottom: 12px; }
.ch-compat-score {
    font-size: 42px; font-weight: 900; line-height: 1;
    color: var(--compat-color, #22c55e);
}
.ch-compat-label-text { font-size: 13px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
.ch-compat-track {
    height: 6px; background: rgba(255,255,255,.07); border-radius: 6px; overflow: hidden;
}
.ch-compat-fill {
    height: 100%; border-radius: 6px;
    background: var(--compat-color, #22c55e);
    transition: width 1.4s cubic-bezier(.22,.61,.36,1);
}

/* Profile mini-card in sidebar */
.ch-wall-profile-mini {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 20px 18px 18px;
}
.ch-wall-profile-mini-avatar {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    border: 3px solid hsl({{ $hue }}, 45%, 35%);
    box-shadow: 0 0 0 4px hsl({{ $hue }}, 45%, 14%), 0 8px 24px rgba(0,0,0,.3);
    margin-bottom: 12px;
}
.ch-wall-profile-mini-name { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 2px; }
.ch-wall-profile-mini-handle { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.ch-wall-profile-mini-stats {
    display: flex; gap: 0; width: 100%;
    background: rgba(255,255,255,.04); border-radius: 12px;
    border: 1px solid rgba(255,255,255,.07); overflow: hidden;
    margin-bottom: 14px;
}
.ch-wall-profile-mini-stat {
    flex: 1; padding: 10px 6px; text-align: center;
    border-right: 1px solid rgba(255,255,255,.07);
}
.ch-wall-profile-mini-stat:last-child { border-right: none; }
.ch-wall-profile-mini-stat-val { font-size: 16px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.ch-wall-profile-mini-stat-key { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }

/* No-birthday prompt */
.ch-no-birthday-card {
    text-align: center; padding: 20px 18px;
}
.ch-no-birthday-card .nb-icon { font-size: 32px; margin-bottom: 10px; }
.ch-no-birthday-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }

/* ── Empty wall state ─────────────────────────────── */
.ch-wall-empty {
    text-align: center; padding: 56px 24px 48px;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 18px;
}
.ch-wall-empty-icon {
    width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 20px;
    background: radial-gradient(circle at 35% 35%, hsl({{ $hue }}, 55%, 22%), hsl({{ $hue }}, 40%, 12%));
    border: 1px solid hsl({{ $hue }}, 45%, 22%);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    box-shadow: 0 0 40px hsl({{ $hue }}, 55%, 15%);
}
.ch-wall-empty h3 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.ch-wall-empty p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; max-width: 300px; margin: 0 auto 22px; }

/* ══════════════════════════════════════════════════
   ABOUT TAB
══════════════════════════════════════════════════ */
.ch-about-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
@media (max-width: 820px) { .ch-about-layout { grid-template-columns: 1fr; } }
.ch-about-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.ch-about-card:last-child { margin-bottom: 0; }
.ch-about-card-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ch-about-card-title i { color: hsl({{ $hue }}, 60%, 55%); }
.ch-about-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.75; white-space: pre-wrap; margin: 0; }

/* Stat cards */
.ch-stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ch-stat-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 14px 16px; text-align: center; }
.ch-stat-card-val { font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.ch-stat-card-key { font-size: 11px; color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.ch-stat-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,.05); }
.ch-stat-item:last-child { border-bottom: none; }
.ch-stat-item-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; background: hsl({{ $hue }}, 40%, 16%); border: 1px solid hsl({{ $hue }}, 40%, 22%); display: flex; align-items: center; justify-content: center; color: hsl({{ $hue }}, 65%, 60%); font-size: 14px; }

/* Social links */
.ch-link-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); text-decoration: none; color: var(--text-secondary); margin-bottom: 8px; transition: all .15s; font-size: 14px; }
.ch-link-card:last-child { margin-bottom: 0; }
.ch-link-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: var(--text-primary); transform: translateX(3px); }
.ch-link-card-icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ch-link-card-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-link-card i.bi-chevron-right { font-size: 12px; opacity: .4; flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   HOROSCOPE & COMPATIBILITY CARDS
══════════════════════════════════════════════════ */
.ch-horoscope-card {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 22px; margin-bottom: 16px;
    position: relative; overflow: hidden;
}
.ch-horoscope-glow {
    position: absolute; top: -30px; right: -30px;
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--horoscope-color, hsl({{ $hue }}, 60%, 45%));
    opacity: .08; filter: blur(30px); pointer-events: none;
}
.ch-horoscope-sign-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ch-horoscope-symbol {
    font-size: 42px; line-height: 1;
    filter: drop-shadow(0 0 12px var(--horoscope-color, hsl({{ $hue }}, 60%, 55%)));
}
.ch-horoscope-name { font-size: 20px; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.ch-horoscope-element {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
    background: rgba(255,255,255,.07); color: var(--text-secondary);
    margin-top: 3px;
}
.ch-horoscope-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ch-horoscope-trait {
    font-size: 12px; padding: 4px 11px; border-radius: 20px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    color: var(--text-secondary);
}

/* Compatibility card */
.ch-compat-card {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 22px; margin-bottom: 16px;
    position: relative; overflow: hidden;
}
.ch-compat-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); margin-bottom: 14px; }
.ch-compat-faces { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.ch-compat-sign-block { text-align: center; }
.ch-compat-sign-sym { font-size: 30px; line-height: 1.2; }
.ch-compat-sign-name { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.ch-compat-heart { font-size: 20px; color: #e33; }
.ch-compat-bar-wrap { background: rgba(255,255,255,.07); border-radius: 8px; height: 8px; overflow: hidden; margin-bottom: 8px; }
.ch-compat-bar { height: 100%; border-radius: 8px; transition: width 1.2s cubic-bezier(.25,.1,.25,1); }
.ch-compat-pct { font-size: 28px; font-weight: 900; text-align: center; line-height: 1; margin-bottom: 4px; }
.ch-compat-desc { font-size: 12px; color: var(--text-secondary); text-align: center; }

/* ══════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════ */
.ch-empty { text-align: center; padding: 80px 24px; color: var(--text-secondary); }
.ch-empty-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 20px; color: var(--text-secondary); }
.ch-empty h3 { font-size: 20px; color: var(--text-primary); margin-bottom: 6px; }
.ch-empty p  { font-size: 14px; margin-bottom: 20px; max-width: 320px; margin-left: auto; margin-right: auto; }


/* ══════════════════════════════════════════════════
   SETTINGS TAB
══════════════════════════════════════════════════ */
.ch-settings-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}
@media (max-width: 860px) { .ch-settings-layout { grid-template-columns: 1fr; } }

.ch-settings-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.ch-settings-card:last-child { margin-bottom: 0; }

/* ── Notification preference rows ── */
.notif-section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--text-secondary);
    margin: 0 0 12px; display: flex; align-items: center; gap: 6px;
}
.notif-pref-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.notif-pref-row:last-of-type { border-bottom: none; }
.notif-pref-label { font-size: 14px; color: var(--text-primary); }
.notif-pref-note {
    font-size: 12px; color: var(--text-secondary);
    margin-top: 16px; line-height: 1.5;
}
.notif-toggle-wrap {
    position: relative; width: 42px; height: 24px;
    flex-shrink: 0; cursor: pointer;
}
.notif-toggle-input { opacity: 0; width: 0; height: 0; position: absolute; }
.notif-toggle-slider {
    position: absolute; inset: 0;
    background: rgba(255,255,255,.15); border-radius: 24px;
    transition: background .2s;
}
.notif-toggle-slider::before {
    content: ''; position: absolute;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; top: 3px; left: 3px;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.notif-toggle-input:checked + .notif-toggle-slider { background: var(--brand-red); }
.notif-toggle-input:checked + .notif-toggle-slider::before { transform: translateX(18px); }
.ch-settings-card-title {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-secondary); margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.ch-settings-card-title i { color: hsl({{ $hue }}, 60%, 55%); }

.ch-settings-avatar-row {
    display: flex; align-items: center; gap: 20px; margin-bottom: 22px;
    padding: 16px; background: rgba(255,255,255,.03); border-radius: 12px;
    border: 1px solid rgba(255,255,255,.06);
}
.ch-settings-avatar-wrap { position: relative; flex-shrink: 0; }
.ch-settings-avatar {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,255,255,.12); display: block;
}
.ch-settings-avatar-btn {
    position: absolute; bottom: 0; right: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: hsl({{ $hue }}, 60%, 40%); border: 2px solid var(--bg-secondary);
    color: #fff; font-size: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.ch-settings-avatar-btn:hover { background: hsl({{ $hue }}, 70%, 50%); }

.ch-settings-2col { display: flex; gap: 14px; }
.ch-settings-2col > .ch-settings-field { flex: 1; min-width: 0; }
@media (max-width: 600px) { .ch-settings-2col { flex-direction: column; } }

.ch-settings-field { margin-bottom: 16px; }
.ch-settings-field:last-of-type { margin-bottom: 0; }
.ch-settings-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; }
.ch-settings-input {
    width: 100%; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 11px 14px;
    color: var(--text-primary); font-size: 14px; font-family: inherit;
    transition: border-color .2s;
}
.ch-settings-input:focus { outline: none; border-color: hsl({{ $hue }}, 60%, 45%); }
.ch-settings-input:disabled { opacity: .45; cursor: not-allowed; }
.ch-settings-textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
.ch-settings-hint { font-size: 12px; color: var(--text-secondary); margin-top: 5px; }
.ch-settings-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: flex-end; }

/* Make country/timezone/date-picker match ch-settings-input sizing */
#tab-settings .csd-btn,
#tab-settings .dp-btn { padding: 11px 14px; min-height: 0; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); border-radius: 10px; }
</style>
