/* Boop v3.0.0 — Cyber-Paw Neon Pop Design System (X + Instagram + TikTok + Bump) */

:root {
    --bg-base: #07080d;
    --bg-surface: #0e1019;
    --bg-elevated: #141827;
    --bg-card: rgba(16, 20, 34, 0.82);
    --bg-card-hover: rgba(24, 30, 48, 0.9);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-overlay: rgba(7, 8, 13, 0.88);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --border-active: rgba(0, 242, 255, 0.35);

    --accent: #00f2ff;
    --accent-dim: rgba(0, 242, 255, 0.14);
    --pink: #ff2e97;
    --pink-dim: rgba(255, 46, 151, 0.16);
    --violet: #9b5cff;
    --violet-dim: rgba(155, 92, 255, 0.16);
    --gradient: linear-gradient(135deg, #00f2ff 0%, #ff2e97 52%, #9b5cff 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0,242,255,0.12) 0%, rgba(255,46,151,0.10) 55%, rgba(155,92,255,0.12) 100%);

    --danger: #ff4b6e;
    --success: #22c55e;
    --warning: #f59e0b;

    --text-high: rgba(255, 255, 255, 0.96);
    --text-mid: rgba(255, 255, 255, 0.68);
    --text-low: rgba(255, 255, 255, 0.42);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', var(--font-body);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.55);
    --shadow-glow: 0 0 26px rgba(0, 242, 255, 0.22), 0 0 42px rgba(255, 46, 151, 0.14);

    --sidebar-w: 256px;
    --sidebar-w-collapsed: 74px;
    --sidebar-right-w: 336px;
    --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
    --bg-base: #f5f7fc;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-card-hover: rgba(240, 244, 255, 0.96);
    --bg-input: #f1f5f9;
    --bg-overlay: rgba(245, 247, 252, 0.94);
    --border: rgba(15, 23, 42, 0.09);
    --border-hover: rgba(15, 23, 42, 0.18);
    --accent: #0284c7;
    --accent-dim: rgba(2, 132, 199, 0.12);
    --pink: #db2777;
    --pink-dim: rgba(219, 39, 119, 0.12);
    --violet: #7c3aed;
    --text-high: #0f172a;
    --text-mid: #475569;
    --text-low: #64748b;
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background: var(--bg-base);
    color: var(--text-high);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink); }
img { max-width: 100%; }

/* ═══════════ LAYOUT ═══════════ */
.glass-nav {
    position: fixed; top: 0; left: 0;
    width: var(--sidebar-w); height: 100vh;
    background: var(--bg-overlay);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    z-index: 1000;
    display: flex; flex-direction: column;
    overflow-y: auto;
}

.main-feed {
    margin-left: var(--sidebar-w);
    margin-right: var(--sidebar-right-w);
    min-height: 100vh;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    max-width: 720px;
}

.main-feed.wide-mode {
    margin-right: 0;
    max-width: none;
    border-right: none;
}

.sidebar-right {
    position: fixed; right: 0; top: 0;
    width: var(--sidebar-right-w); height: 100vh;
    padding: 18px;
    overflow-y: auto;
}

/* ═══════════ BRAND & NAV ═══════════ */
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.65rem; font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.6px;
    display: inline-flex; align-items: center; gap: 6px;
}

.nav-link {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-full);
    color: var(--text-high);
    font-weight: 500; font-size: 0.94rem;
    transition: var(--transition);
}
.nav-link:hover { background: var(--accent-dim); color: var(--accent); transform: translateX(2px); }
.nav-link.active {
    background: var(--gradient-subtle);
    color: var(--accent);
    font-weight: 700;
    border: 1px solid var(--border-active);
}
.nav-link i { font-size: 1.25rem; width: 24px; text-align: center; }

.nav-badge {
    font-size: 0.68rem; padding: 2px 7px; border-radius: 999px;
    background: var(--pink); color: #fff; font-weight: 700; margin-left: auto;
}

/* ═══════════ BUTTONS ═══════════ */
.neon-btn {
    background: var(--gradient);
    border: none; color: #fff;
    padding: 11px 24px;
    border-radius: var(--radius-full);
    font-weight: 700; font-size: 0.92rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none;
}
.neon-btn:hover { transform: translateY(-1px) scale(1.01); filter: brightness(1.08); color: #fff; }
.neon-btn:active { transform: scale(0.97); }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-high);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ═══════════ CARDS & FORMS ═══════════ */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.post-card {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    transition: background var(--transition);
}
.post-card:hover { background: var(--bg-card-hover); }

.form-control, .form-select {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-high) !important;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-dim) !important;
    outline: none;
}
.form-control::placeholder { color: var(--text-low) !important; }
.form-select option { background: var(--bg-elevated); color: var(--text-high); }
.form-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.9px; font-weight: 700; color: var(--text-mid); margin-bottom: 6px; }

/* ═══════════ AVATARS ═══════════ */
.avatar-xs { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-md { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-lg { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ═══════════ NOTES 24H & STORIES (INSTAGRAM) ═══════════ */
.notes-stories-strip {
    display: flex; gap: 14px;
    padding: 14px 18px 12px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}
.notes-stories-strip::-webkit-scrollbar { display: none; }

.note-bubble-card {
    display: flex; flex-direction: column; align-items: center;
    flex-shrink: 0; width: 76px; cursor: pointer; position: relative;
}
.note-speech {
    background: var(--bg-elevated);
    border: 1px solid var(--border-active);
    color: var(--text-high);
    font-size: 0.68rem; line-height: 1.25;
    padding: 5px 8px; border-radius: 12px;
    max-width: 82px; text-align: center;
    margin-bottom: -8px; z-index: 2;
    box-shadow: var(--shadow-sm);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.story-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; cursor: pointer; }
.story-ring {
    width: 58px; height: 58px; border-radius: 50%;
    padding: 2.5px; background: var(--gradient);
    transition: transform var(--transition);
}
.story-ring:hover { transform: scale(1.07); }
.story-ring img { width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid var(--bg-base); object-fit: cover; }
.story-name { font-size: 0.68rem; color: var(--text-mid); max-width: 68px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══════════ CAROUSEL & DOUBLE-TAP BOOP ═══════════ */
.boop-media-wrap {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); background: #000;
    user-select: none;
}
.boop-carousel-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; scroll-behavior: smooth;
}
.boop-carousel-track::-webkit-scrollbar { display: none; }
.boop-carousel-slide {
    flex: 0 0 100%; scroll-snap-align: center;
    display: flex; align-items: center; justify-content: center;
    max-height: 480px; background: #05060a;
}
.boop-carousel-slide img, .boop-carousel-slide video {
    width: 100%; max-height: 480px; object-fit: cover; display: block;
}
.carousel-counter {
    position: absolute; top: 10px; right: 12px;
    background: rgba(0,0,0,0.68); color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 3px 10px; border-radius: 999px;
    backdrop-filter: blur(8px);
}
.carousel-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,0.62); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 4;
}
.carousel-nav-btn.prev { left: 10px; }
.carousel-nav-btn.next { right: 10px; }

.boop-pop-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; z-index: 5;
    font-size: 4.5rem;
    opacity: 0;
}
.boop-pop-overlay.pop {
    animation: boopHeartBurst 0.65s ease-out forwards;
}
@keyframes boopHeartBurst {
    0% { opacity: 0; transform: scale(0.4) rotate(-12deg); }
    30% { opacity: 1; transform: scale(1.22) rotate(6deg); }
    70% { opacity: 0.95; transform: scale(1.0) rotate(0deg); }
    100% { opacity: 0; transform: scale(1.35) translateY(-16px); }
}

.quote-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    margin-top: 10px;
}

/* ═══════════ ACTIONS & POLLS ═══════════ */
.action-bar { display: flex; justify-content: space-between; max-width: 460px; margin-top: 10px; }
.action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: var(--radius-full);
    color: var(--text-low); cursor: pointer; font-size: 0.84rem;
    transition: var(--transition); user-select: none;
}
.action-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-high); }
.action-btn.like-btn:hover, .action-btn.like-btn.liked { color: var(--pink); background: var(--pink-dim); }
.action-btn.repost-btn:hover { color: var(--success); background: rgba(34,197,94,0.12); }
.action-btn.reply-btn:hover { color: var(--accent); background: var(--accent-dim); }
.action-btn.save-btn:hover { color: var(--warning); background: rgba(245,158,11,0.12); }

.poll-option-btn {
    position: relative; overflow: hidden; width: 100%; text-align: left;
    padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.03); color: var(--text-high); cursor: pointer;
}
.poll-option-btn:hover, .poll-option-btn.voted { border-color: var(--accent); }
.poll-bar-fill {
    position: absolute; top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,242,255,0.22), rgba(255,46,151,0.22));
    pointer-events: none; transition: width 0.35s ease;
}

/* ═══════════ BOOP CLIPS (TIKTOK VERTICAL VIEWPORT) ═══════════ */
.clips-shell {
    position: relative;
    height: calc(100vh - 16px);
    max-width: 520px;
    margin: 8px auto;
}
.clips-viewport {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    border-radius: var(--radius-xl);
    background: #04050a;
    border: 1px solid var(--border);
}
.clips-viewport::-webkit-scrollbar { display: none; }

.clip-slide {
    position: relative;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex; align-items: center; justify-content: center;
    background: #04050a;
    overflow: hidden;
}
.clip-media {
    width: 100%; height: 100%;
    object-fit: cover;
}
.clip-gradient-bottom {
    position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
    background: linear-gradient(to top, rgba(4,5,10,0.92), transparent);
    pointer-events: none;
}
.clip-info-overlay {
    position: absolute; left: 16px; right: 78px; bottom: 22px; z-index: 4; color: #fff;
}
.clip-side-rail {
    position: absolute; right: 12px; bottom: 26px; z-index: 5;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.clip-rail-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(10,12,20,0.68); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
}
.clip-rail-btn:hover { transform: scale(1.08); border-color: var(--accent); }
.clip-rail-btn.liked { background: var(--pink); border-color: var(--pink); }
.clip-rail-label { font-size: 0.72rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

/* ═══════════ BOOP RADAR (BUMP FRIEND-FINDER) ═══════════ */
.radar-stage {
    position: relative;
    height: calc(100vh - 110px);
    min-height: 540px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}
.radar-avatar-pin {
    position: relative; width: 48px; height: 48px;
}
.radar-avatar-pin img {
    width: 48px; height: 48px; border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 18px rgba(0,242,255,0.55);
    object-fit: cover; background: #0e1019;
}
.radar-avatar-pin.mutual img { border-color: var(--pink); box-shadow: 0 0 20px rgba(255,46,151,0.65); }
.radar-mood-pill {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: rgba(12,15,24,0.92); color: #fff;
    border: 1px solid var(--border-active);
    font-size: 0.66rem; font-weight: 700; padding: 1px 7px;
    border-radius: 999px; white-space: nowrap;
}
.radar-boop-fab {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 600;
    padding: 13px 30px; font-size: 1rem;
    box-shadow: 0 0 32px rgba(255,46,151,0.45), 0 0 24px rgba(0,242,255,0.35);
}

/* ═══════════ PROFILE & 3x3 INSTAGRAM GRID ═══════════ */
.profile-cover { width: 100%; height: 195px; background-size: cover; background-position: center; position: relative; }
.profile-cover::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 55%; background: linear-gradient(to top, var(--bg-base), transparent); }
.profile-avatar { width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--bg-base); object-fit: cover; position: relative; z-index: 2; margin-top: -56px; background: var(--bg-elevated); }
.profile-avatar.verified { box-shadow: 0 0 0 2.5px var(--accent), var(--shadow-glow); }

.profile-tabs { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
    flex: 1; padding: 13px 10px; text-align: center; font-weight: 600; font-size: 0.85rem;
    color: var(--text-low); border-bottom: 2px solid transparent; white-space: nowrap;
}
.profile-tab:hover { color: var(--text-high); }
.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.profile-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}
.profile-grid-tile {
    position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #090b12;
}
.profile-grid-tile img, .profile-grid-tile video {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease;
}
.profile-grid-tile:hover img, .profile-grid-tile:hover video { transform: scale(1.06); }
.profile-grid-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.42);
    opacity: 0; transition: opacity 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 14px;
    color: #fff; font-weight: 700; font-size: 0.85rem;
}
.profile-grid-tile:hover .profile-grid-overlay { opacity: 1; }

/* ═══════════ CHIPS, CARDS, EVENTS & COMMUNITIES ═══════════ */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 600;
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text-mid);
    transition: var(--transition); cursor: pointer;
}
.chip:hover, .chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.event-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.event-card:hover { border-color: var(--border-active); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.event-card-img { height: 155px; background-size: cover; background-position: center; position: relative; }
.event-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,13,0.9), transparent 55%); }

.swatch-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); cursor: pointer; font-size: 0.78rem; }
.swatch-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); }

/* ═══════════ COMPOSE & MESSAGES & AUTH ═══════════ */
.compose-box { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.compose-box textarea { background: transparent !important; border: none !important; font-size: 1.02rem; padding: 6px 0; min-height: 54px; }
.compose-box textarea:focus { box-shadow: none !important; }
.compose-icon {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--accent); cursor: pointer; font-size: 1.05rem; transition: var(--transition);
}
.compose-icon:hover { background: var(--accent-dim); }

.emoji-picker-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elevated); }
.emoji-picker-bar button { background: transparent; border: none; font-size: 1.1rem; cursor: pointer; padding: 2px 5px; border-radius: 6px; }
.emoji-picker-bar button:hover { background: var(--accent-dim); }

.chat-list-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-high); }
.chat-list-item:hover { background: var(--bg-card-hover); color: var(--text-high); }
.chat-list-item.active { background: var(--accent-dim); border-left: 3px solid var(--accent); }
.msg-bubble { max-width: 76%; padding: 10px 15px; border-radius: 18px; font-size: 0.9rem; word-break: break-word; }
.msg-sent { background: var(--gradient); color: #fff; border-bottom-right-radius: 4px; margin-left: auto; }
.msg-received { background: var(--bg-elevated); color: var(--text-high); border: 1px solid var(--border); border-bottom-left-radius: 4px; }

.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-base); padding: 20px; }
.auth-card { background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; width: 100%; max-width: 440px; box-shadow: var(--shadow-md); }
.auth-logo { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-align: center; }

.trend-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.trend-item:last-child { border-bottom: none; }

.flash-toast {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 9999;
    min-width: 280px; max-width: 500px; padding: 12px 22px; border-radius: var(--radius-md);
    font-size: 0.88rem; font-weight: 600; backdrop-filter: blur(20px); box-shadow: var(--shadow-md);
}
.flash-success { background: rgba(34,197,94,0.18); border: 1px solid rgba(34,197,94,0.4); color: var(--success); }
.flash-error, .flash-danger { background: rgba(255,75,110,0.18); border: 1px solid rgba(255,75,110,0.4); color: var(--danger); }
.flash-warning { background: rgba(245,158,11,0.18); border: 1px solid rgba(245,158,11,0.4); color: var(--warning); }
.flash-info { background: rgba(0,242,255,0.14); border: 1px solid rgba(0,242,255,0.35); color: var(--accent); }

.empty-state { text-align: center; padding: 52px 20px; color: var(--text-low); }
.empty-state i { font-size: 2.8rem; opacity: 0.35; margin-bottom: 12px; display: block; }

/* ═══════════ MOBILE ═══════════ */
.mobile-top-bar {
    display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
    background: var(--bg-overlay); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 9px 14px;
    align-items: center; justify-content: space-between;
}
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
    background: var(--bg-overlay); backdrop-filter: blur(20px);
    border-top: 1px solid var(--border); padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.mobile-bottom-nav .nav-items { display: flex; justify-content: space-around; align-items: center; max-width: 520px; margin: 0 auto; }
.nav-item-mobile { display: flex; flex-direction: column; align-items: center; color: var(--text-low); font-size: 0.62rem; gap: 2px; padding: 4px 10px; }
.nav-item-mobile i { font-size: 1.28rem; }
.nav-item-mobile.active, .nav-item-mobile:hover { color: var(--accent); }
.post-btn-mobile {
    width: 44px; height: 44px; border-radius: 50%; background: var(--gradient);
    border: none; color: #fff; font-size: 1.35rem;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow);
}

@media (max-width: 767.98px) {
    .glass-nav, .sidebar-right { display: none !important; }
    .mobile-bottom-nav { display: block; }
    .mobile-top-bar { display: flex; }
    .main-feed { margin: 0 !important; padding: 54px 0 72px !important; max-width: 100% !important; border: none !important; }
    .clips-shell { height: calc(100vh - 130px); margin: 0; max-width: 100%; }
    .clips-viewport { border-radius: 0; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .glass-nav { width: var(--sidebar-w-collapsed) !important; padding: 18px 8px !important; align-items: center; }
    .glass-nav .nav-logo span, .glass-nav .nav-link span, .glass-nav .neon-btn span, .glass-nav .lang-switcher { display: none; }
    .glass-nav .nav-link { justify-content: center; padding: 11px; gap: 0; }
    .main-feed { margin-left: var(--sidebar-w-collapsed) !important; margin-right: 0 !important; max-width: none !important; }
    .sidebar-right { display: none !important; }
}

.text-accent { color: var(--accent) !important; }
.text-pink { color: var(--pink) !important; }
.text-violet { color: var(--violet) !important; }
.text-high { color: var(--text-high) !important; }
.text-mid { color: var(--text-mid) !important; }
.text-low { color: var(--text-low) !important; }
.x-small { font-size: 0.72rem; }
.neon-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.object-fit-cover { object-fit: cover; }

/* ═══════════ v3.1.0: COMMISSION KANBAN QUEUE, DIRECT ENHANCED & ECA DIGITAL ═══════════ */
.commission-kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 991.98px) {
    .commission-kanban { grid-template-columns: 1fr; }
}
.kanban-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    min-height: 220px;
}
.kanban-col-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 8px; margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-weight: 700; font-size: 0.85rem;
}
.kanban-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 10px;
    transition: var(--transition);
}
.kanban-card:hover { border-color: var(--border-active); }

.dm-msg-row { display: flex; flex-direction: column; max-width: 78%; }
.dm-msg-row.sent { align-self: flex-end; align-items: flex-end; }
.dm-msg-row.recv { align-self: flex-start; align-items: flex-start; }
.dm-reply-quote {
    font-size: 0.75rem; padding: 5px 9px; margin-bottom: 6px;
    border-left: 3px solid var(--accent);
    background: rgba(0,0,0,0.22); border-radius: 6px;
    opacity: 0.9;
}
.dm-media-img {
    max-width: 260px; max-height: 260px; border-radius: 12px;
    object-fit: cover; display: block; margin-bottom: 6px;
}
.dm-react-bar {
    display: inline-flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; align-items: center;
}
.dm-react-pill {
    font-size: 0.72rem; padding: 1px 7px; border-radius: 999px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--text-high); cursor: pointer;
}
.dm-react-pill.mine { border-color: var(--accent); background: var(--accent-dim); }
.dm-quick-actions { opacity: 0.55; transition: opacity 0.15s; font-size: 0.72rem; }
.dm-msg-row:hover .dm-quick-actions { opacity: 1; }

.eca-banner {
    background: linear-gradient(135deg, rgba(0,242,255,0.09), rgba(155,92,255,0.1));
    border: 1px solid rgba(0,242,255,0.3);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.82rem;
}
.cookie-notice-bar {
    position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
    z-index: 1060; width: min(94%, 640px);
    background: var(--bg-elevated); border: 1px solid var(--border-active);
    border-radius: var(--radius-lg); padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    box-shadow: var(--shadow-md); font-size: 0.78rem;
}
