:root {
    --sky-blue: #A2D2FF;
    --soft-pink: #FFC2D1;
    --white: #FFFFFF;
    --lavender: #BDB2FF;
    --dark-text: #2D3748;
    --bg-light: #F8F9FA;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --cyan: #7BD3EA;
}

/* ================= GLOBAL RESPONSIVE GUARD ================= */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* ================= RESET ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--dark-text);
    overflow-x: hidden;
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: 64px;
    position: sticky;
    top: 0;
    background: rgba(10,15,30,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 1000;
    transition: box-shadow 0.3s, background 0.3s;
}
.navbar.scrolled {
    background: rgba(10,15,30,0.98);
    box-shadow: 0 4px 32px rgba(0,0,0,.4);
}

/* Logo */
.logo {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.45rem;
    letter-spacing: -.3px;
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    background: linear-gradient(90deg, #A2D2FF 0%, #FFC2D1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}
.logo span { -webkit-text-fill-color: transparent; }
.logo-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--soft-pink);
    margin-left: 3px;
    margin-bottom: 10px;
    flex-shrink: 0;
    -webkit-text-fill-color: initial;
}

.nav-links { display: flex; align-items: center; gap: 8px; }

/* ===== POST + BUTTON (nav) ===== */
.nav-post-btn {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #A2D2FF, #FFC2D1);
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; color: #0a0f1e;
    cursor: pointer; transition: transform .2s, box-shadow .2s;
    flex-shrink: 0; line-height: 1; padding: 0;
    box-shadow: 0 2px 12px rgba(162,210,255,.3);
}
.nav-post-btn:hover { transform: scale(1.12); box-shadow: 0 4px 20px rgba(162,210,255,.45); }

/* ===== INBOX ICON BUTTON (nav) ===== */
.nav-inbox-btn {
    position: relative;
    width: 38px; height: 38px;
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer;
    text-decoration: none; color: #94a3b8;
    transition: background .2s, border-color .2s, color .2s;
    flex-shrink: 0;
}
.nav-inbox-btn:hover { background: rgba(162,210,255,.1); border-color: rgba(162,210,255,.3); color: #A2D2FF; }
.nav-inbox-badge {
    position: absolute; top: -4px; right: -4px;
    background: #FFC2D1; color: #0a0f1e;
    border-radius: 50%; min-width: 17px; height: 17px;
    font-size: .62rem; font-weight: 800;
    display: none; align-items: center; justify-content: center;
    border: 2px solid #0a0f1e;
    padding: 0 3px;
}
.nav-inbox-badge.visible { display: flex; }

/* ===== NAV SEARCH ===== */
.nav-search {
    position: relative;
    flex: 1;
    max-width: 320px;
    margin: 0 20px;
}
.nav-search-inner {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 50px;
    padding: 8px 16px;
    gap: 8px;
    transition: .2s;
}
.nav-search-inner:focus-within {
    background: rgba(255,255,255,.1);
    border-color: rgba(162,210,255,.4);
    border-radius: 16px 16px 0 0;
}
.search-icon { font-size: .9rem; flex-shrink: 0; }
#searchInput {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    width: 100%;
}
#searchInput::placeholder { color: #64748b; }
.search-clear {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.search-clear:hover { color: #fff; }
.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #1e293b;
    border: 1.5px solid rgba(162,210,255,.25);
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    z-index: 10001;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    max-height: 360px;
    overflow-y: auto;
}
.search-dropdown.open { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: .15s;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(162,210,255,.08); }
.search-result-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    color: #0a0f1e;
    flex-shrink: 0;
    overflow: hidden;
}
.search-result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-result-name { font-weight: 700; font-size: .88rem; color: #fff; }
.search-result-sub { font-size: .73rem; color: #94a3b8; margin-top: 1px; }
.search-result-badge { margin-left: auto; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.search-badge-brand { background: rgba(162,210,255,.15); color: #A2D2FF; }
.search-badge-personal { background: rgba(255,194,209,.1); color: #FFC2D1; }
.search-empty { padding: 20px; text-align: center; color: #64748b; font-size: .85rem; }
.search-loading { padding: 16px; text-align: center; color: #64748b; font-size: .82rem; }

@media(max-width: 768px) {
    .nav-search { display: none; }
}

/* ── Mobile search overlay ── */
.nav-search-icon-btn {
    display: none; /* shown via JS on mobile */
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.1);
    color: #94a3b8;
    cursor: pointer;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: .2s;
}
.nav-search-icon-btn:hover { background: rgba(162,210,255,.12); border-color: rgba(162,210,255,.3); color: #A2D2FF; }
.nav-search-icon-btn svg { display: block; }

.mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10,15,30,.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px 5%;
}
.mobile-search-overlay.open { display: flex; }
.mobile-search-top {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.mobile-search-input-wrap {
    flex: 1;
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 10px 14px;
}
.mobile-search-input-wrap:focus-within {
    border-color: rgba(162,210,255,.5);
    background: rgba(162,210,255,.05);
}
.mobile-search-input-wrap input {
    background: none; border: none; outline: none;
    color: #fff; font-family: 'Outfit', sans-serif;
    font-size: .95rem; width: 100%;
}
.mobile-search-input-wrap input::placeholder { color: #475569; }
.mobile-search-cancel {
    background: none; border: none;
    color: #94a3b8; font-size: .9rem; font-weight: 700;
    cursor: pointer; font-family: 'Outfit', sans-serif;
    flex-shrink: 0; padding: 6px 2px;
}
.mobile-search-results { flex: 1; overflow-y: auto; }

/* ── Clean SVG nav icon buttons ── */
.nav-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.1);
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
    transition: .2s;
    position: relative;
    text-decoration: none;
}
.nav-icon-btn:hover { background: rgba(162,210,255,.12); border-color: rgba(162,210,255,.3); color: #A2D2FF; }
.nav-icon-btn svg { display: block; }

.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,.55);
    font-weight: 500;
    font-size: .88rem;
    letter-spacing: .2px;
    transition: color .2s;
    padding: 6px 2px;
    border-bottom: 1.5px solid transparent;
}
.nav-link:hover {
    color: #fff;
    border-bottom-color: rgba(162,210,255,.4);
}

.nav-btn-primary {
    background: linear-gradient(135deg, #A2D2FF, #FFC2D1);
    color: #0a0f1e;
    padding: 9px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: opacity .2s, transform .2s;
    letter-spacing: .2px;
}
.nav-btn-primary:hover { opacity: .88; transform: translateY(-1px); }

/* ================= HAMBURGER (Mobile) ================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,.7);
    border-radius: 2px;
    transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================= MOBILE NAV DRAWER ================= */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10,15,30,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 80px 24px 100px;
    overflow-y: auto;
    box-sizing: border-box;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.1);
}
.mobile-nav.open { transform: translateY(0); display: flex; }
.mobile-nav .nav-link {
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    border-bottom: none;
    letter-spacing: -.3px;
}
.mobile-nav .nav-link:hover { color: #fff; border-bottom: none; }
.mobile-nav .nav-btn-primary { font-size: 1.1rem; padding: 14px 44px; border-radius: 50px; }

/* ================= HERO ================= */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 80px 8%;
    align-items: center;
    min-height: 80vh;
}

.badge {
    background: var(--lavender);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    display: inline-block;
}

.hero h1 { font-size: 4rem; line-height: 1.1; margin-top: 20px; }

.gradient-text {
    display: inline-block;
    background: linear-gradient(90deg, var(--sky-blue), var(--soft-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity .5s ease, transform .5s ease;
}

.fade-out { opacity: 0; transform: translateY(10px); }

.hero p { font-size: 1.1rem; color: #666; margin: 25px 0; max-width: 450px; }

.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

.btn-main {
    background: var(--soft-pink);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255,143,177,.3);
    transition: .3s;
}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,143,177,.4); }
.btn-main:active { transform: scale(.96); }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--sky-blue);
    padding: 16px 32px;
    border-radius: 50px;
    color: var(--sky-blue);
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: .3s;
}
.btn-secondary:hover { background: var(--sky-blue); color: white; }
.btn-secondary:active { transform: scale(.96); }

/* ================= FLOATING CARDS ================= */
.hero-visual { position: relative; height: 400px; }

.floating-card {
    position: absolute;
    width: 250px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}
.floating-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.floating-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 45px rgba(0,0,0,0.15); }

.card-1 { transform: rotate(-10deg); left: 50px; top: 0; z-index: 2; }
.card-2 { transform: rotate(8deg); right: 20px; top: 0; z-index: 2; }

.card-tag {
    position: absolute;
    bottom: 15px; left: 15px;
    background: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 700;
}

/* ================= CATEGORIES BAR ================= */
.categories-section { padding: 0 0 10px; }

.categories-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 20px 5%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.categories-bar::-webkit-scrollbar { display: none; }

.cat-pill {
    background: white;
    border: 2px solid #e2e8f0;
    color: var(--dark-text);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cat-pill:hover { border-color: var(--sky-blue); color: var(--sky-blue); transform: translateY(-2px); }
.cat-pill.active {
    background: var(--dark-text);
    border-color: var(--dark-text);
    color: white;
    box-shadow: 0 4px 15px rgba(45,55,72,0.3);
}

/* ================= FEED GRID ================= */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.post-card {
    background: white;
    border-radius: 24px;
    padding: 12px;
    box-shadow: var(--shadow);
    transition: .3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Image container with hover overlay */
.img-container {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
}
.img-container img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}
.post-card:hover .img-container img { transform: scale(1.08); }

.vote-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
    transform: translateY(105%);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 10;
}
.post-card:hover .vote-overlay { transform: translateY(0); }

.cat-tag-chip {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    z-index: 5;
}

.vote-pill {
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Outfit', sans-serif;
}
.vote-pill:hover { transform: scale(1.1); background: var(--bg-light); }

.post-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px 2px;
    font-size: .9rem;
}
.user { font-weight: 700; }
.time { color: #aaa; font-size: .8rem; }

.cop-count { font-size: .85rem; opacity: 0.7; padding: 2px 12px 6px; font-weight: 500; }

/* ================= COMMENT SYSTEM ================= */
.post-actions-row { padding: 2px 8px 6px; display: flex; align-items: center; justify-content: space-between; }

.report-post-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    transition: .2s;
    opacity: .6;
}
.report-post-btn:hover { background: rgba(239,68,68,.08); color: #f87171; opacity: 1; }

.comment-toggle-btn {
    background: none;
    border: none;
    color: #888;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    padding: 4px 8px;
    border-radius: 8px;
    transition: 0.2s;
}
.comment-toggle-btn:hover { background: #f1f5f9; color: var(--dark-text); }
.comment-toggle-btn.active { color: var(--sky-blue); }

/* Comment section container */
.comment-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid transparent;
}
.comment-section.open {
    max-height: 600px;
    border-top: 1px solid #f0f4f8;
    overflow-y: auto;
}

/* Comment list */
.cmt-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 12px 4px;
}

/* Individual comment */
.cmt-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
    animation: fadeSlideIn .3s ease;
}
.cmt-item:last-child { border-bottom: none; }
.cmt-item.cmt-is-reply { padding-left: 24px; }
.cmt-new { animation: fadeSlideIn .35s cubic-bezier(0.34,1.56,.64,1); }

/* Avatar */
.cmt-avatar {
    width: 30px; height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #A2D2FF, #BDB2FF);
    display: flex; align-items: center; justify-content: center;
    font-size: .62rem; font-weight: 900; color: #0a0f1e;
    flex-shrink: 0; letter-spacing: .5px;
}

.cmt-body { flex: 1; min-width: 0; }

.cmt-header {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 2px;
}
.cmt-user { font-weight: 700; font-size: .82rem; color: var(--sky-blue); }
.cmt-time { font-size: .7rem; color: #aaa; }
.cmt-text { font-size: .85rem; color: #444; line-height: 1.45; word-break: break-word; }
.cmt-reply-label { font-size: .72rem; color: #94a3b8; margin-bottom: 2px; }

/* GIF in comment */
.cmt-gif-img {
    width: 100%; max-width: 200px;
    border-radius: 10px;
    margin-top: 4px;
    display: block;
}

/* Comment actions row */
.cmt-actions {
    display: flex; align-items: center; gap: 12px;
    margin-top: 5px;
}
.cmt-like-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; cursor: pointer;
    color: #aaa; font-size: .75rem; font-weight: 600;
    font-family: 'Outfit', sans-serif; padding: 2px 0;
    transition: color .15s;
}
.cmt-like-btn svg { transition: fill .15s, transform .2s cubic-bezier(.34,1.56,.64,1); }
.cmt-like-btn:hover { color: #f87171; }
.cmt-like-btn:hover svg { stroke: #f87171; }
.cmt-like-btn.liked { color: #f87171; }
.cmt-like-btn.liked svg { fill: #f87171; stroke: #f87171; transform: scale(1.2); }
.cmt-like-count { font-size: .75rem; }
.cmt-reply-btn {
    background: none; border: none; cursor: pointer;
    color: #94a3b8; font-size: .75rem; font-weight: 700;
    font-family: 'Outfit', sans-serif; padding: 2px 0;
    transition: color .15s;
}
.cmt-reply-btn:hover { color: var(--sky-blue); }

/* Load more */
.cmt-load-more {
    display: flex; align-items: center; justify-content: center;
    background: none; border: none;
    color: var(--sky-blue); font-size: .8rem; font-weight: 700;
    font-family: 'Outfit', sans-serif; cursor: pointer;
    padding: 8px 0 4px; width: 100%;
    transition: opacity .15s;
}
.cmt-load-more:hover { opacity: .7; }

/* Reply banner */
.cmt-reply-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(162,210,255,.08);
    border-left: 2px solid var(--sky-blue);
    padding: 6px 10px;
    border-radius: 0 8px 8px 0;
    margin: 4px 12px 0;
}
.cmt-reply-to { font-size: .78rem; color: var(--sky-blue); font-weight: 600; }
.cmt-reply-cancel {
    background: none; border: none; color: #94a3b8;
    font-size: .85rem; cursor: pointer; padding: 0 4px;
    transition: color .15s;
}
.cmt-reply-cancel:hover { color: #f87171; }

/* Input row */
.cmt-input-wrap { padding: 6px 12px 12px; }
.cmt-input-row {
    display: flex; align-items: center; gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 4px 4px 10px;
    transition: border-color .2s, box-shadow .2s;
}
.cmt-input-row:focus-within {
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(162,210,255,.15);
}
.cmt-gif-btn {
    background: none; border: none; cursor: pointer;
    color: #94a3b8; display: flex; align-items: center;
    padding: 4px; border-radius: 6px; transition: color .15s, background .15s;
    flex-shrink: 0;
}
.cmt-gif-btn:hover { color: var(--sky-blue); background: rgba(162,210,255,.1); }
.cmt-input {
    flex: 1; background: none; border: none; outline: none;
    font-family: 'Outfit', sans-serif; font-size: .85rem;
    color: #1e293b; padding: 6px 0;
}
.cmt-input::placeholder { color: #94a3b8; }
.cmt-send-btn {
    background: var(--sky-blue);
    border: none; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: white; flex-shrink: 0;
    transition: background .2s, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.cmt-send-btn:hover { background: var(--lavender); transform: scale(1.1); }

/* Sticker chips in GIF picker */
.sticker-chip {
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 10px;
    font-size: 1.3rem;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: background .15s, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.sticker-chip:hover { background: rgba(162,210,255,.12); transform: scale(1.15); }

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

/* ================= EMPTY STATE ================= */
.empty-filter-state {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 16px;
}
.empty-icon { font-size: 3rem; }
.empty-filter-state p { color: #888; font-size: 1.1rem; font-weight: 500; }

/* ================= POP ANIMATION ================= */
@keyframes pop { 0%{transform:scale(1);} 50%{transform:scale(1.3);} 100%{transform:scale(1);} }
.pop-active { animation: pop .4s ease-out; background: var(--lavender)!important; color: white!important; }

/* ================= HEART PARTICLES ================= */
.heart-particle {
    position: fixed;
    pointer-events: none;
    font-size: 1.5rem;
    z-index: 2000;
    animation: float-out .8s ease-out forwards;
}
@keyframes float-out {
    0% { transform: translate(-50%,-50%) scale(.5); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2) rotate(20deg); opacity: 0; }
}

/* ================= REVEAL ================= */
.reveal { opacity: 1; transform: translateY(0); transition: .7s ease; }
.js-enabled .reveal { opacity: 0; transform: translateY(40px); }
.reveal-active { opacity: 1 !important; transform: translateY(0) !important; }

/* ================= NAV SCROLL ================= */
.nav-scrolled { box-shadow: 0 5px 20px rgba(0,0,0,.08); background: rgba(255,255,255,.97); }

/* ================= AMBIENT BG ================= */
.ambient-bg {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(162,210,255,.25), transparent 70%);
    filter: blur(80px);
    animation: drift 12s infinite alternate ease-in-out;
    z-index: -1;
}
@keyframes drift { from{transform:translate(-50px,-30px);} to{transform:translate(50px,40px);} }

/* ================= CURSOR GLOW ================= */
.cursor-glow {
    position: fixed;
    width: 400px; height: 400px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(162,210,255,0.15), transparent 70%);
    filter: blur(80px);
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* ================= LIVE BADGE ================= */
/* ===== ACCOUNT SWITCHER ===== */
.acct-switcher {
    position: relative;
    flex-shrink: 0;
    /* Always visible — sits between nav-links and hamburger */
    display: none; /* JS sets to flex when logged in */
    align-items: center;
}
.acct-current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.14);
    border-radius: 50px;
    padding: 5px 10px 5px 5px;
    cursor: pointer;
    transition: .2s;
    font-family: 'Outfit', sans-serif;
}
.acct-current:hover { background: rgba(162,210,255,.14); border-color: rgba(162,210,255,.4); }
.acct-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A2D2FF, #FFC2D1);
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 800; color: #0a0f1e;
    overflow: hidden; flex-shrink: 0;
}
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.acct-caret { font-size: .6rem; color: #94a3b8; transition: transform .2s; }
.acct-switcher.open .acct-caret { transform: rotate(180deg); }
.acct-dropdown {
    display: none;
    position: fixed; /* fixed so it never clips on small screens */
    top: 68px;       /* just below navbar height */
    right: 12px;
    background: #111827;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    width: 230px;
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(0,0,0,.7);
    z-index: 9999;
}
.acct-switcher.open .acct-dropdown { display: block; }

/* Mobile: ensure dropdown never clips */
@media (max-width: 600px) {
    .acct-dropdown {
        position: fixed;
        top: 64px;
        right: 8px;
        left: 8px;
        width: auto;
        z-index: 99999; /* above everything including mobile overlay */
    }
    .acct-current span.acct-caret { display: none; } /* less clutter on small screens */
    .acct-current { padding: 5px; } /* just the avatar circle on mobile */
}
.acct-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.acct-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px; cursor: pointer;
    transition: .15s; border: none; background: none;
    width: 100%; text-align: left; font-family: 'Outfit', sans-serif;
    color: #fff;
}
.acct-item:hover { background: rgba(255,255,255,.06); }
.acct-item.active-acct { background: rgba(162,210,255,.08); }
.acct-item-av {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #A2D2FF, #FFC2D1);
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 800; color: #0a0f1e;
    overflow: hidden; flex-shrink: 0;
}
.acct-item-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.acct-item-name { font-size: .82rem; font-weight: 700; color: #fff; }
.acct-item-type { font-size: .68rem; color: #64748b; }
.acct-item-check { margin-left: auto; color: #A2D2FF; font-size: .8rem; }
.acct-add-btn {
    width: 100%; padding: 11px 16px; border: none;
    border-top: 1px solid rgba(255,255,255,.06);
    background: none; color: #94a3b8; font-size: .82rem;
    font-weight: 700; cursor: pointer; font-family: 'Outfit', sans-serif;
    transition: .15s; text-align: left;
}
.acct-add-btn:hover { color: #A2D2FF; background: rgba(162,210,255,.05); }

/* ===== SHARE BUTTON (on post cards & profiles) ===== */
.share-btn {
    background: none; border: none;
    color: #64748b; font-size: .8rem; font-weight: 700;
    cursor: pointer; font-family: 'Outfit', sans-serif;
    display: flex; align-items: center; gap: 5px;
    padding: 4px 6px; border-radius: 8px; transition: .15s;
}
.share-btn:hover { color: #A2D2FF; background: rgba(162,210,255,.07); }

/* ===== SHARE MODAL ===== */
.share-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.7); z-index: 10000;
    align-items: center; justify-content: center; padding: 20px;
}
.share-modal-overlay.open { display: flex; }
.share-modal {
    background: #111827; border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px; padding: 28px; width: 100%; max-width: 420px;
    position: relative;
}
.share-modal h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem; margin-bottom: 6px;
}
.share-modal-sub { color: #64748b; font-size: .83rem; margin-bottom: 18px; }
.share-search-wrap { position: relative; margin-bottom: 12px; }
.share-search-input {
    width: 100%; padding: 11px 16px 11px 38px;
    background: #1e293b; border: 1.5px solid rgba(255,255,255,.08);
    border-radius: 12px; color: #fff; font-family: 'Outfit', sans-serif;
    font-size: .88rem; outline: none;
}
.share-search-input:focus { border-color: rgba(162,210,255,.35); }
.share-search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #475569; font-size: .9rem; pointer-events: none;
}
.share-results { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.share-result-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 12px; cursor: pointer;
    transition: .15s; border: 1.5px solid transparent;
}
.share-result-item:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
.share-result-item.selected { background: rgba(162,210,255,.07); border-color: rgba(162,210,255,.25); }
.share-result-av {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #A2D2FF, #FFC2D1);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800; color: #0a0f1e; flex-shrink: 0; overflow: hidden;
}
.share-result-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.share-result-name { font-size: .85rem; font-weight: 700; color: #fff; }
.share-result-type { font-size: .7rem; color: #64748b; }
.share-result-check { margin-left: auto; color: #A2D2FF; display: none; }
.share-result-item.selected .share-result-check { display: block; }
.share-empty { text-align: center; padding: 24px; color: #475569; font-size: .83rem; }
.share-send-btn {
    width: 100%; margin-top: 14px; padding: 13px;
    background: linear-gradient(135deg, #A2D2FF, #FFC2D1);
    border: none; border-radius: 14px; color: #0a0f1e;
    font-weight: 800; font-size: .9rem; cursor: pointer;
    font-family: 'Outfit', sans-serif; transition: opacity .2s;
}
.share-send-btn:hover { opacity: .88; }
.share-send-btn:disabled { opacity: .4; cursor: not-allowed; }
.share-close-btn {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none; color: #64748b;
    font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.share-close-btn:hover { color: #fff; }

.live-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 800;
    margin-left: 12px;
    border: 1px solid rgba(34,197,94,0.2);
    vertical-align: middle;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.pulse-dot {
    height: 8px; width: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    position: relative;
}
.pulse-dot::after {
    content: "";
    position: absolute;
    width: 100%; height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse-ring 1.8s cubic-bezier(0.24,0,0.38,1) infinite;
}
@keyframes pulse-ring { 0%{transform:scale(0.5);opacity:1;} 80%,100%{transform:scale(3);opacity:0;} }

#liveCount { margin-right: 3px; font-variant-numeric: tabular-nums; }

/* ================= DASHBOARD & LAYOUT ================= */
.dashboard-area { padding: 30px 0 60px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.section-header { margin-bottom: 16px; }
.section-header h3 { font-size: 1.6rem; font-weight: 800; }
.section-header p { color: #666; margin-top: 4px; font-size: .9rem; }

/* ================= LEADERBOARD ================= */
.leaderboard-sticky { position: sticky; top: 100px; }

.leaderboard-mini-card {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 32px;
    padding-bottom: 10px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
    overflow: hidden;
    position: relative;
    max-width: 100%;
    min-width: 0;
}
.leaderboard-mini-card::after {
    content: "ELITE";
    position: absolute;
    bottom: -10px; left: 10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    pointer-events: none;
    letter-spacing: -5px;
}
.leaderboard-mini-card .section-header { padding: 30px 25px 15px; text-align: left; }
.leaderboard-mini-card .section-header h3 { font-size: 1.4rem; color: #fff; margin: 0; }
.leaderboard-mini-card .section-header p { color: #64748b; font-size: .85rem; margin-top: 5px; }

.lb-row {
    display: grid;
    grid-template-columns: 40px 1fr 70px;
    padding: 16px 20px;
    margin: 2px 10px;
    border-radius: 16px;
    align-items: center;
    transition: all .3s ease;
}
.lb-row.header { font-weight: 800; color: #475569; font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
.lb-row:not(.header):hover { background: rgba(255,255,255,.05); transform: translateX(8px); cursor: pointer; }
.lb-row:nth-child(3) { background: linear-gradient(90deg, rgba(123,211,234,0.1), transparent); }
.lb-row:nth-child(3) .rank-num { color: var(--cyan); font-weight: 800; }

.rank-num { font-weight: 300; font-size: 1rem; color: #64748b; }
.lb-row .user-trigger { font-weight: 500; color: #f1f5f9; font-size: .95rem; display: inline-flex; align-items: center; }

.score-val {
    font-weight: 800;
    font-size: .9rem;
    text-align: right;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(123,211,234,.3);
}

#joinRankBtn {
    background: #ffffff;
    color: #0f172a;
    width: calc(100% - 40px);
    margin: 20px;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .75rem;
    border: none;
    cursor: pointer;
    transition: .3s;
    font-family: 'Outfit', sans-serif;
}
#joinRankBtn:hover { background: var(--cyan); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(123,211,234,.2); }

/* ================= STYLE TIP CARD ================= */
/* ── STYLE TIP FLIP DECK ── */
#styleTipDeck { position: relative; }
.tip-flip-card {
    width: 100%;
    min-height: 260px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(.175,.885,.32,1.275);
    cursor: pointer;
    border-radius: 4px 40px 4px 40px;
}
.tip-flip-card.is-flipping { transform: rotateY(180deg); }
.tip-face {
    position: absolute; inset: 0;
    border-radius: 4px 40px 4px 40px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 28px 28px 22px;
    overflow: hidden;
}
.tip-face-front { z-index: 2; }
.tip-face-back { transform: rotateY(180deg); }
.tip-face::before {
    content: attr(data-watermark);
    position: absolute; top: -8px; right: -8px;
    font-size: 3.8rem; font-weight: 800;
    opacity: .06; color: #000; pointer-events: none;
    white-space: nowrap; line-height: 1;
}
.tip-badge { background: #000; color: #fff; font-size: .62rem; font-weight: 800; padding: 5px 11px; border-radius: 0; margin-bottom: 16px; display: inline-block; letter-spacing: 2px; text-transform: uppercase; }
.tip-flip-card h4 { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.5px; margin-bottom: 10px; line-height: 1.1; color: #000; }
.tip-flip-card p { font-size: .92rem; line-height: 1.45; color: rgba(0,0,0,.82); margin-bottom: 18px; font-weight: 500; }
.tip-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(0,0,0,.1); padding-top: 12px; }
.tip-tag { font-weight: 800; font-size: .72rem; text-transform: uppercase; color: rgba(0,0,0,.7); }
.tip-share-btn { background: #000; color: #fff; border: none; width: 34px; height: 34px; border-radius: 50%; font-size: .95rem; cursor: pointer; transition: .2s; flex-shrink: 0; }
.tip-share-btn:hover { transform: scale(1.12); }
/* Tap hint bar below deck */
.tip-flip-hint {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 10px; font-size: .72rem; color: #64748b; font-family: 'Outfit', sans-serif;
}
.tip-flip-dots { display: flex; gap: 5px; }
.tip-flip-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.15); transition: background .3s; }
.tip-flip-dot.on { background: rgba(162,210,255,.6); }

/* Colour themes per card */
.tip-theme-sky   { background: linear-gradient(135deg, #A2D2FF 0%, #BDB2FF 100%); }
.tip-theme-pink  { background: linear-gradient(135deg, #FFC2D1 0%, #FFB1C1 100%); }
.tip-theme-lav   { background: linear-gradient(135deg, #BDB2FF 0%, #A2D2FF 100%); }
.tip-theme-gold  { background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%); }
.tip-theme-mint  { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.tip-theme-dusk  { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.tip-theme-coral { background: linear-gradient(135deg, #f7971e 0%, #ffd200 80%); }
.tip-theme-rose  { background: linear-gradient(135deg, #f953c6 0%, #b91d73 100%); color: #fff; }

/* ================= NOTIFICATIONS ================= */
#notification-container {
    position: fixed;
    bottom: 30px; left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.notif-toast {
    background: rgba(15,23,42,.85);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,.1);
    border-left: 4px solid var(--cyan);
    padding: 14px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    width: fit-content;
    min-width: 260px;
    max-width: 90vw;
    color: #fff;
    font-size: .85rem;
    font-weight: 400;
    white-space: nowrap;
    display: flex;
    align-items: center;
    animation: slideIn .5s cubic-bezier(0.18,.89,.32,1.28) forwards, fadeOut .5s ease 4.5s forwards;
    pointer-events: auto;
}
.notif-toast .notif-user { font-weight: 800; color: var(--cyan); margin: 0 3px; cursor: pointer; text-decoration: underline rgba(123,211,234,.3); transition: .2s; }
.notif-toast .notif-user:hover { color: white; }
.notif-toast .pink-text { color: #FFB1C1; font-weight: 800; }

@keyframes slideIn { from{transform:translateX(-120%);opacity:0;} to{transform:translateX(0);opacity:1;} }
@keyframes fadeOut { from{opacity:1;} to{opacity:0;transform:translateX(-20px);} }

/* ================= JOIN MODAL ================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15,23,42,.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all .4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: rgba(255,255,255,.97);
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(30px);
    transition: all .5s cubic-bezier(.18,.89,.32,1.28);
    box-shadow: 0 25px 50px rgba(0,0,0,.2);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 20px; right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--dark-text);
    cursor: pointer;
    opacity: .5;
    transition: .2s;
    line-height: 1;
}
.close-modal:hover { opacity: 1; }

.modal-header h2 { font-size: 2rem; margin-bottom: 10px; }
.modal-header p { color: #64748b; margin-bottom: 30px; font-size: .95rem; }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 8px; color: var(--dark-text); }
.input-group input, .input-group select {
    width: 100%;
    padding: 14px 20px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: .3s;
    background: white;
}
.input-group input:focus, .input-group select:focus {
    border-color: var(--sky-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(162,210,255,.2);
}

.full-width { width: 100%; margin-top: 10px; }
.modal-footer { margin-top: 20px; font-size: .8rem; color: #94a3b8; text-align: center; }

/* ================= PROFILE MODAL ================= */
.profile-modal-content {
    max-width: 420px;
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,.08);
}
.profile-modal-content .close-modal {
    background: rgba(255,255,255,.08);
    color: #94a3b8;
    border: none;
}
.profile-modal-content .close-modal:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}
.profile-fit-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    transition: .2s;
    cursor: pointer;
}
.profile-fit-thumb:hover { transform: scale(1.04); opacity: .88; }

/* ================= HOVER PROFILE PREVIEW CARD ================= */
#profile-preview {
    position: absolute;
    z-index: 10002;
    width: 220px;
    background: rgba(15,23,42,.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(.95);
    transition: all .3s cubic-bezier(.18,.89,.32,1.28);
    color: white;
}
#profile-preview.active { opacity: 1; transform: translateY(0) scale(1); }

.preview-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.preview-user { font-weight: 800; color: var(--cyan); font-size: 1.1rem; }
.seller-badge { background: var(--sky-blue); color: #0f172a; font-size: .6rem; font-weight: 900; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }

.style-score-label { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 4px; }
.style-score-value { font-size: 1.4rem; font-weight: 900; color: #FFB1C1; }

.preview-hint { font-size: .65rem; color: #64748b; margin-top: 10px; text-align: center; letter-spacing: .5px; }

/* ================= TIER BADGES ================= */
.tier-badge { padding: 2px 8px; border-radius: 6px; font-size: .6rem; font-weight: 900; text-transform: uppercase; margin-top: 5px; display: inline-block; }
.tier-bronze { background: #CD7F32; color: white; box-shadow: 0 0 10px rgba(205,127,50,.5); }
.tier-silver { background: #C0C0C0; color: #333; box-shadow: 0 0 10px rgba(192,192,192,.5); }
.tier-gold { background: #FFD700; color: #333; box-shadow: 0 0 15px rgba(255,215,0,.6); }
.tier-platinum { background: linear-gradient(45deg,#E5E4E2,#fff); color: #0f172a; box-shadow: 0 0 20px rgba(229,228,226,.8); animation: platinum-shimmer 2s infinite linear; }
@keyframes platinum-shimmer { 0%{filter:brightness(1);} 50%{filter:brightness(1.3);} 100%{filter:brightness(1);} }

#profile-preview.border-bronze { border-color: #CD7F32; }
#profile-preview.border-silver { border-color: #C0C0C0; }
#profile-preview.border-gold { border-color: #FFD700; }
#profile-preview.border-platinum { border-color: #E5E4E2; }

/* ================= VERIFIED TICK ================= */
.verified-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px; height: 14px;
    background: #0095f6;
    border-radius: 50%;
    margin-left: 5px;
    position: relative;
    flex-shrink: 0;
}
.verified-tick::after {
    content: '';
    width: 3px; height: 6px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
}

/* ================= NEW BADGE ================= */
.new-badge {
    font-size: .6rem;
    font-weight: 800;
    background: linear-gradient(135deg,#FFB1C1,#D183FF);
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(255,177,193,.4);
    animation: badgePulse 2s infinite ease-in-out;
}
@keyframes badgePulse { 0%{transform:scale(1);opacity:.9;} 50%{transform:scale(1.05);opacity:1;} 100%{transform:scale(1);opacity:.9;} }

/* ================= USER TRIGGER ================= */
.user-trigger {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
}

/* ================= COP COUNT ================= */
.cop-count { font-size: .85rem; opacity: .7; padding: 0 5px 6px; font-weight: 500; }

/* ================= CONFETTI ================= */
.confetti {
    position: fixed;
    width: 10px; height: 10px;
    z-index: 10001;
    top: -10px;
    user-select: none;
    pointer-events: none;
    border-radius: 2px;
    animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

/* ================= EVENT VOTING SECTION ================= */
.events-section {
    background: #0f172a;
    padding: 70px 0;
    margin-top: 20px;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}
.events-header h2 { font-size: 2.2rem; font-weight: 800; color: white; }
.events-header p { color: #64748b; margin-top: 6px; }

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.event-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 24px;
    transition: .3s;
}
.event-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }

.event-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.event-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.event-badge.prom { background: rgba(162,210,255,.15); color: var(--sky-blue); border: 1px solid rgba(162,210,255,.3); }
.event-badge.job { background: rgba(123,211,234,.15); color: var(--cyan); border: 1px solid rgba(123,211,234,.3); }
.event-badge.date { background: rgba(255,194,209,.15); color: #FFB1C1; border: 1px solid rgba(255,194,209,.3); }

.event-deadline { font-size: .75rem; color: #64748b; font-weight: 500; }

.event-question { color: #e2e8f0; font-size: .95rem; line-height: 1.5; margin-bottom: 20px; font-weight: 500; }

.event-options { display: flex; gap: 14px; margin-bottom: 20px; }

.event-option {
    flex: 1;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.04);
    border: 2px solid rgba(255,255,255,.08);
    transition: .25s;
}
.event-option:hover { border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.event-option img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.option-label { color: #e2e8f0; font-weight: 700; font-size: .8rem; padding: 8px 10px 4px; }
.option-bar { height: 4px; background: rgba(255,255,255,.1); margin: 0 10px 6px; border-radius: 2px; }
.option-fill { height: 100%; background: linear-gradient(90deg, var(--sky-blue), var(--soft-pink)); border-radius: 2px; transition: width 1s ease; }
.option-votes { font-size: .7rem; color: #64748b; padding: 0 10px 10px; font-weight: 600; }

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.event-poster { font-size: .8rem; color: #64748b; }
.event-poster .user-trigger { color: var(--cyan); }
.event-vote-btn { padding: 10px 20px; font-size: .8rem; }
.event-vote-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }



/* ================= AUTH MODAL — SPLIT FLOW ================= */
.auth-modal { max-width: 520px; padding: 32px; }

.auth-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 28px;
}
.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    color: #888;
    transition: .2s;
}
.auth-tab.active { background: white; color: var(--dark-text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Step visibility */
.auth-step { display: none; }
.auth-step.active { display: block; animation: fadeSlideIn .3s ease; }

/* Account type choice cards */
.account-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0;
}
.account-type-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 16px;
    cursor: pointer;
    text-align: center;
    transition: all .25s ease;
    font-family: 'Outfit', sans-serif;
}
.account-type-card:hover {
    border-color: var(--sky-blue);
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(162,210,255,.2);
}
.type-icon { font-size: 2.2rem; margin-bottom: 10px; }
.account-type-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--dark-text); }
.account-type-card p { font-size: .78rem; color: #888; line-height: 1.4; margin-bottom: 12px; }

.type-tag {
    display: inline-block;
    background: rgba(162,210,255,.2);
    color: #0284c7;
    font-size: .65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.brand-tag { background: rgba(255,194,209,.2); color: #db2777; }

/* Back button */
.back-btn {
    background: none;
    border: none;
    color: #888;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    display: block;
    transition: .2s;
}
.back-btn:hover { color: var(--dark-text); }

/* Form layout helpers */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.input-with-status { position: relative; }
.input-with-status input { padding-right: 40px; }
.username-status {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .85rem;
}

textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: .9rem;
    resize: vertical;
    transition: .3s;
    background: white;
}
textarea:focus { border-color: var(--sky-blue); outline: none; box-shadow: 0 0 0 4px rgba(162,210,255,.2); }

.optional { color: #aaa; font-weight: 400; font-size: .8rem; }
.required-tag { background: #fef2f2; color: #ef4444; font-size: .65rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-left: 6px; text-transform: uppercase; }

/* File upload */
.file-upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 15px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: .3s;
    position: relative;
    overflow: hidden;
}
.file-upload-zone:hover { border-color: var(--sky-blue); background: rgba(162,210,255,.04); }
.file-upload-zone.has-file { border-color: #22c55e; background: rgba(34,197,94,.04); }
.file-upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-upload-ui .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload-ui p { font-size: .85rem; font-weight: 600; color: var(--dark-text); margin-bottom: 4px; }
.file-upload-ui span { font-size: .75rem; color: #aaa; }
.file-selected { font-size: .85rem; font-weight: 600; color: #22c55e; margin-top: 8px; }

/* Brand notice */
.brand-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(123,211,234,.1);
    border: 1px solid rgba(123,211,234,.3);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0;
}
.brand-notice span { font-size: 1rem; flex-shrink: 0; }
.brand-notice p { font-size: .82rem; color: #475569; line-height: 1.4; }

/* Auth error */
.auth-error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Switch links */
.modal-footer a { color: var(--sky-blue); font-weight: 700; text-decoration: none; }
.modal-footer a:hover { text-decoration: underline; }

/* Success states */
.success-state { text-align: center; padding: 20px 0; }
.success-icon { font-size: 3.5rem; margin-bottom: 16px; display: block; animation: successBounce .6s cubic-bezier(.175,.885,.32,1.275); }
@keyframes successBounce { 0%{transform:scale(0);} 60%{transform:scale(1.2);} 100%{transform:scale(1);} }
.success-state h2 { font-size: 1.8rem; margin-bottom: 12px; }
.success-state p { color: #64748b; font-size: .95rem; line-height: 1.5; margin-bottom: 24px; }

.brand-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123,211,234,.1);
    border: 1px solid rgba(123,211,234,.3);
    color: #0284c7;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .account-type-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .auth-modal { padding: 24px 20px; }
}

/* ================= POST A FIT MODAL ================= */
.post-fit-modal { max-width: 480px; }
.post-fit-header { margin-bottom: 20px; }
.post-fit-header h2 { font-size: 1.8rem; margin-bottom: 6px; }
.post-fit-header p { color: #64748b; font-size: .9rem; }

.fit-upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 18px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}
.fit-upload-zone:hover { border-color: var(--sky-blue); background: rgba(162,210,255,.04); }
.fit-upload-zone.has-image { border-style: solid; border-color: var(--sky-blue); min-height: unset; }
.fit-upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 2; }
.fit-upload-ui { text-align: center; padding: 30px 20px; pointer-events: none; }
.fit-upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.fit-upload-ui p { font-size: .9rem; font-weight: 600; color: var(--dark-text); margin-bottom: 4px; }
.fit-upload-ui span { font-size: .75rem; color: #aaa; }

.fit-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.fit-cat-btn {
    background: #f1f5f9;
    border: 2px solid transparent;
    color: #475569;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: .2s;
}
.fit-cat-btn:hover { border-color: var(--sky-blue); color: var(--dark-text); }
.fit-cat-btn.active { background: var(--dark-text); color: white; border-color: var(--dark-text); }

/* ================= REAL FEED CARD ================= */
.feed-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
.feed-empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.feed-empty-state p { font-size: 1rem; margin-bottom: 20px; }

/* ================= VOTED STATE ================= */
.vote-pill.voted-cop { background: #fce7f3 !important; color: #db2777 !important; border: 2px solid #fbcfe8; }
.vote-pill.voted-drop { background: #1e293b !important; color: #94a3b8 !important; border: 2px solid #334155; }



/* ══════════════════════════════════════════════════════════
   LEADERBOARD TABS
══════════════════════════════════════════════════════════ */
.lb-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 18px 20px 0;
    gap: 4px;
}
.lb-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-family: 'Space Grotesk','Outfit',sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 8px 12px;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}
.lb-tab.active { color: var(--acid,#d4ff4e); border-bottom-color: var(--acid,#d4ff4e); }
.lb-tab:hover:not(.active) { color: #e2e8f0; }

.lb-panel { display: none; }
.lb-panel.active { display: block; }

.lb-row-live {
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.lb-row-live:hover { background: rgba(212,255,78,.04); transform: translateX(4px); }

.lb-user-info { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow: hidden; }
.lb-label { font-size: .88rem; color: #f1f5f9; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-sublabel { font-size: .68rem; color: #64748b; margin-top: 1px; }
.lb-loading { padding: 16px 20px; color: #475569; font-size: .8rem; }
.lb-empty { padding: 16px 20px; color: #475569; font-size: .82rem; font-style: italic; }

/* ══════════════════════════════════════════════════════════
   SEARCH — section headers + product results + converted price
══════════════════════════════════════════════════════════ */
.search-section-header {
    padding: 8px 14px 4px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #475569;
    border-top: 1px solid rgba(255,255,255,.05);
}
.search-section-header:first-child { border-top: none; }

.search-product-item { align-items: flex-start; gap: 12px; }
.search-product-thumb {
    width: 42px;
    height: 52px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-product-thumb-empty { font-size: 1.2rem; }
.search-converted { color: var(--acid,#d4ff4e); font-size: .8em; font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   CUSTOMER SUPPORT FAB
══════════════════════════════════════════════════════════ */
#supportFab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--acid,#d4ff4e);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(212,255,78,.35);
    transition: transform .2s, box-shadow .2s;
}
#supportFab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(212,255,78,.5); }

/* ══════════════════════════════════════════════════════════
   SUPPORT MODAL — fully dark theme
══════════════════════════════════════════════════════════ */

/* Override the global white modal-content background */
#supportModal .modal-content {
    background: #111111 !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    color: #e2e8f0 !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 88vh;
}

.support-modal { max-width: 520px; width: 100%; display: flex; flex-direction: column; max-height: 88vh; }

/* Make the tab panels scrollable, not the whole modal */
.support-panel { display: none; padding: 20px 20px 24px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.support-panel.active { display: flex; flex-direction: column; }

/* Close button on dark bg */
#supportModal .close-modal { color: #64748b; }
#supportModal .close-modal:hover { color: #e2e8f0; }

.support-header { text-align: center; padding: 32px 24px 12px; background: #111111; }
.support-logo { font-size: 2.4rem; margin-bottom: 10px; }
.support-header h2 {
    font-family: 'Bebas Neue','DM Serif Display',serif;
    font-size: 2rem;
    letter-spacing: 1.5px;
    margin: 0;
    color: #ffffff;
}
.support-header p { color: #64748b; font-size: .88rem; margin-top: 6px; }

/* Tabs — sticky dark bar */
.support-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 0 20px;
    gap: 2px;
    position: sticky;
    top: 0;
    background: #111111;
    z-index: 10;
}
.support-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-family: 'Space Grotesk','Outfit',sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 16px;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.support-tab.active { color: var(--acid,#d4ff4e); border-bottom-color: var(--acid,#d4ff4e); }
.support-tab:hover:not(.active) { color: #cbd5e1; }

.support-panel { display: none; padding: 20px 20px 4px; }
.support-panel.active { display: block; }

/* Success message */
.support-success {
    background: rgba(74,222,128,.08);
    border: 1px solid rgba(74,222,128,.25);
    color: #4ade80;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: .85rem;
    margin-bottom: 14px;
    text-align: center;
    line-height: 1.5;
}

/* Contact form inputs inherit dark theme */
#supportModal select,
#supportModal input,
#supportModal textarea {
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: .88rem;
    width: 100%;
}
#supportModal select option { background: #1a1a1a; color: #e2e8f0; }
#supportModal input::placeholder,
#supportModal textarea::placeholder { color: #475569; }
#supportModal select:focus,
#supportModal input:focus,
#supportModal textarea:focus {
    outline: none;
    border-color: var(--acid,#d4ff4e) !important;
    box-shadow: 0 0 0 3px rgba(212,255,78,.08) !important;
}
#supportModal .input-group { margin-bottom: 14px; }
#supportModal .input-group label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 7px;
}
#supportModal .optional { color: #475569; text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Error banner */
#supportModal .auth-error {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.25);
    color: #f87171;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .83rem;
    margin-bottom: 12px;
}

/* Submit button */
#supportModal .btn-main {
    background: var(--acid,#d4ff4e) !important;
    color: #0a0a0a !important;
    font-weight: 800;
    border-radius: 6px !important;
    margin-top: 6px;
}
#supportModal .btn-main:hover { background: #c8f53a !important; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-item {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s, background .2s;
}
.faq-item:hover { background: rgba(255,255,255,.06); }
.faq-item[open] {
    border-color: rgba(212,255,78,.25);
    background: rgba(212,255,78,.03);
}
.faq-item summary {
    padding: 14px 16px;
    font-size: .88rem;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
    line-height: 1.4;
}
.faq-item summary::after {
    content: '+';
    color: var(--acid,#d4ff4e);
    font-size: 1.3rem;
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
    transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
    padding: 2px 16px 16px;
    font-size: .84rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 12px;
}

/* ── Tickets ─────────────────────────────────────────── */
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 14px 16px;
}
.ticket-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.ticket-cat {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    background: rgba(255,255,255,.06);
    padding: 3px 8px;
    border-radius: 4px;
}
.ticket-status { font-size: .74rem; font-weight: 700; text-transform: capitalize; }
.ticket-msg { font-size: .84rem; color: #cbd5e1; margin: 0 0 8px; line-height: 1.55; }
.ticket-reply {
    background: rgba(212,255,78,.05);
    border-left: 2px solid var(--acid,#d4ff4e);
    padding: 8px 12px;
    font-size: .82rem;
    color: #94a3b8;
    margin-bottom: 8px;
    border-radius: 0 4px 4px 0;
}
.ticket-reply-label { color: var(--acid,#d4ff4e); font-weight: 700; margin-right: 4px; }
.ticket-date { font-size: .7rem; color: #475569; }


/* ═══════════════════════════════════════════════════════════════
   SINGLE AUTHORITATIVE RESPONSIVE SYSTEM
   One set of breakpoints, no duplicates, mobile-first cascade.
   Order: global base → 1440 → 1100 → 1024 → 768 → 480 → 360
═══════════════════════════════════════════════════════════════ */

/* ── Global base (all screens) ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; min-width: 0; }

/* All images keep their aspect ratio and never overflow */
img, video, iframe, embed { max-width: 100%; display: block; }
img { height: auto; }

/* Floating hero cards: always portrait aspect-ratio */
.floating-card img { aspect-ratio: 3/4; object-fit: cover; width: 100%; height: auto; }

/* Feed post images: always 3:4 portrait */
.img-container img { aspect-ratio: 3/4; object-fit: cover; width: 100%; border-radius: 18px; }

/* Event voting images: consistent square-ish crop */
.event-option img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 12px; }

/* Modals safe on all screens */
.modal-content { max-width: min(520px, 94vw) !important; max-height: 92vh; overflow-y: auto; }
.post-fit-modal { max-width: min(540px, 95vw) !important; }
.support-modal { max-width: min(520px, 94vw) !important; max-height: 92vh; overflow: hidden; }


/* ── Wide desktop 1440px+ ──────────────────────────────────── */
@media (min-width: 1440px) {
    .hero h1 { font-size: 4.8rem; }
    .floating-card { width: 280px; }
    .hero-visual { height: 460px; }
    .card-1 { left: 60px; }
    .card-2 { right: 30px; }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr) 380px; }
}


/* ── Desktop 1101–1439px ───────────────────────────────────── */
@media (min-width: 1101px) and (max-width: 1439px) {
    .dashboard-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}


/* ── Tablet landscape 1025–1100px ──────────────────────────── */
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .leaderboard-sticky { position: static; max-width: 600px; margin: 40px auto 0; }
}

@media (max-width: 1024px) {
    .navbar { padding: 14px 5%; }
    .hero { padding: 60px 5%; }
    .hero h1 { font-size: 3rem; }
    .floating-card { width: 200px; }
    /* Card positions tighten to avoid overflow */
    .card-1 { left: 20px; }
    .card-2 { right: 10px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 24px; }
    .leaderboard-sticky { position: static; max-width: 100%; }
    .feed-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
}


/* ── Tablet portrait 601–768px ─────────────────────────────── */
@media (min-width: 601px) and (max-width: 768px) {
    /* Two feed columns on tablets */
    .feed-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    /* Event options side by side */
    .event-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}


/* ── Mobile ≤768px ─────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Navbar */
    .navbar { padding: 12px 4%; gap: 8px; flex-wrap: nowrap; }
    .logo { font-size: 1.25rem; flex-shrink: 0; }
    .nav-links { gap: 6px; flex-shrink: 0; }
    .nav-link { display: none; }
    .hamburger { display: flex; }
    /* Hide text-heavy nav buttons on mobile — they live in the drawer */
    .nav-btn-primary, #feedSignOutBtn { display: none !important; }
    /* Show mobile search icon */
    .nav-search-icon-btn { display: flex; }

    /* Hero — stack vertically */
    .hero {
        grid-template-columns: 1fr;
        padding: 36px 5% 24px;
        text-align: center;
        min-height: auto;
        gap: 24px;
    }
    .hero-content { order: 1; display: flex; flex-direction: column; align-items: center; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); line-height: 1.2; }
    .hero p { font-size: .92rem; max-width: 420px; margin: 12px auto; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; gap: 10px; margin: 0 auto; }
    .btn-main, .btn-secondary { width: 100%; justify-content: center; box-sizing: border-box; }

    /* Floating cards — hidden on mobile, reel takes over */
    .hero-visual { display: none !important; }
    .hero { gap: 0; padding: 32px 5% 16px; }

    /* Feed — 2 portrait columns, Pinterest-style */
    .feed-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .post-card { border-radius: 14px; padding: 7px; }
    .post-card:hover .img-container img { transform: none; }
    .vote-overlay { transform: translateY(0); background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 35%); }
    /* Portrait crop that fits the column — never full-screen tall */
    .img-container img { aspect-ratio: 2/3; width: 100%; height: auto; max-height: none; border-radius: 10px; }
    .post-info { font-size: .76rem; }
    .vote-pill { padding: 6px 8px; font-size: .72rem; }
    .cop-count { font-size: .76rem; }
    .comment-toggle-btn { font-size: .74rem; }
    .share-btn { font-size: .72rem; }

    /* Layout */
    section { padding-left: 4%; padding-right: 4%; }
    .dashboard-grid { padding: 0; gap: 20px; }
    .leaderboard-sticky { position: static; }
    .section-header h3 { font-size: 1.4rem; }
    .leaderboard-mini-card .section-header h3 { font-size: 1.2rem; }

    /* Modals */
    .modal-content { width: 96vw !important; max-width: 96vw !important; border-radius: 20px !important; padding: 24px 20px !important; }
    .post-fit-modal { width: 96vw !important; max-width: 96vw !important; }

    /* Events */
    .events-grid { grid-template-columns: 1fr; gap: 16px; }
    .events-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .events-header .btn-main { width: 100%; }

    /* Category pills */
    .categories-bar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cat-pill { flex-shrink: 0; }

    /* Notifications */
    #notification-container { bottom: 12px; left: 8px; right: 8px; }
    .notif-toast { min-width: unset; width: 100%; white-space: normal; }

    /* Support FAB */
    #supportFab { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 1.2rem; }
}


/* ── Small phone ≤480px ────────────────────────────────────── */
@media (max-width: 480px) {
    /* Navbar */
    .navbar { padding: 10px 3%; }
    .logo { font-size: 1.1rem; }
    .live-badge { display: none; }
    .nav-post-btn, .nav-inbox-btn { width: 34px; height: 34px; font-size: .9rem; }
    .nav-btn-primary { padding: 8px 14px !important; font-size: .78rem !important; }
    #feedSignOutBtn { display: none; }

    /* Hero */
    .hero { padding: 28px 4% 16px; gap: 0; }
    .hero-visual { display: none !important; }
    .hero h1 { font-size: clamp(1.65rem, 8vw, 2.2rem); }

    /* Feed rules already set in ≤768px block above */

    /* Auth modal */
    .account-type-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr !important; }
    .auth-modal { padding: 24px 16px !important; }

    /* Events */
    .event-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .events-header h2 { font-size: 1.8rem; }
    .profile-fits-grid { grid-template-columns: repeat(2, 1fr); }

    /* Dashboard */
    .dashboard-grid { padding: 0 3%; }
}


/* ── Very small ≤360px ─────────────────────────────────────── */
@media (max-width: 360px) {
    .hero h1 { font-size: clamp(1.45rem, 9vw, 1.8rem); }
    .logo { font-size: .95rem; }
    .nav-btn-primary { padding: 6px 10px !important; font-size: .72rem !important; }
    .post-card { padding: 5px; }
    .vote-pill { padding: 5px 6px; font-size: .68rem; }
}


/* ── Landscape phone (height ≤500px) ───────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 20px 5% 16px; gap: 16px; }
    .hero-visual { height: 170px; }
    .floating-card { width: 100px; }
    .modal-content { max-height: 95vh !important; }
}



/* ═══════════════════════════════════════════════════════════════
   FASHION REEL — mobile only, infinite scroll strips
   ═══════════════════════════════════════════════════════════════ */

.fashion-reel { display: none; }

@media (max-width: 768px) {
    .fashion-reel {
        display: block;
        width: 100%;
        overflow: hidden;
        padding: 4px 0 28px;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
        mask-image:         linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
    }

    .reel-track {
        overflow: hidden;
        margin-bottom: 10px;
        width: 100%;
    }

    .reel-inner {
        display: flex;
        flex-direction: row;       /* must be row */
        flex-wrap: nowrap;         /* never wrap */
        gap: 10px;
        width: max-content;        /* grow as wide as needed */
        will-change: transform;
    }

    .reel-left  .reel-inner { animation: reel-left  30s linear infinite; }
    .reel-right .reel-inner { animation: reel-right 36s linear infinite; }

    .fashion-reel:hover .reel-inner,
    .fashion-reel:active .reel-inner { animation-play-state: paused; }

    /* Fixed card size — must override global img rules */
    .reel-card {
        position: relative;
        flex: 0 0 120px;           /* never shrink, never grow */
        width: 120px !important;
        height: 160px !important;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 6px 24px rgba(0,0,0,.4);
        background: #1a2540;
    }

    /* Hard override of global img { max-width:100%; height:auto } */
    .reel-card img {
        display: block !important;
        width: 120px !important;
        height: 160px !important;
        max-width: none !important;
        min-width: unset !important;
        object-fit: cover !important;
        object-position: center top !important;
        animation: none !important;  /* kill shimmer */
    }

    .reel-cop {
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,.65);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        color: #fff;
        font-size: .62rem;
        font-weight: 800;
        padding: 3px 9px;
        border-radius: 20px;
        white-space: nowrap;
        pointer-events: none;
    }

    @keyframes reel-left {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
    @keyframes reel-right {
        0%   { transform: translateX(-50%); }
        100% { transform: translateX(0); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .reel-left  .reel-inner,
    .reel-right .reel-inner { animation: none !important; }
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(10,15,30,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255,255,255,0.08);
        z-index: 998;
        align-items: center;
        justify-content: space-around;
        padding: 0 4px;
    }

    .bnav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        color: #475569;
        text-decoration: none;
        font-family: 'Outfit', sans-serif;
        font-size: .62rem;
        font-weight: 600;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px 0;
        transition: color .2s;
        position: relative;
    }

    .bnav-item.active,
    .bnav-item:hover {
        color: #A2D2FF;
    }

    .bnav-post {
        background: linear-gradient(135deg, #A2D2FF, #FFC2D1);
        color: #0a0f1e !important;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        padding: 0;
        box-shadow: 0 4px 15px rgba(162,210,255,0.3);
    }

    .bnav-post span { display: none; }

    .bnav-badge {
        position: absolute;
        top: 2px;
        right: 18px;
        background: #FFC2D1;
        color: #0a0f1e;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        font-size: .6rem;
        font-weight: 800;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .bnav-badge.visible { display: flex; }

    /* Push page content above bottom nav */
    main { padding-bottom: 70px; }

    /* ===== FEED TABS ===== */
    .feed-tabs {
        display: flex;
        gap: 0;
        margin-bottom: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .feed-tab {
        flex: 1;
        padding: 10px;
        background: none;
        border: none;
        color: #475569;
        font-family: 'Outfit', sans-serif;
        font-size: .88rem;
        font-weight: 700;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        transition: all .2s;
    }

    .feed-tab.active {
        color: #A2D2FF;
        border-bottom-color: #A2D2FF;
    }

    /* ===== SUGGESTED ACCOUNTS STRIP ===== */
    .suggested-strip {
        margin-bottom: 16px;
    }

    .suggested-title {
        font-family: 'Outfit', sans-serif;
        font-size: .8rem;
        font-weight: 700;
        color: #475569;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .suggested-scroll {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .suggested-scroll::-webkit-scrollbar { display: none; }

    .suggested-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        width: 76px;
    }

    .sug-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        font-size: .85rem;
        color: #0a0f1e;
    }

    .sug-name {
        font-family: 'Outfit', sans-serif;
        font-size: .7rem;
        color: #94a3b8;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .sug-follow-btn {
        background: rgba(162,210,255,0.1);
        border: 1px solid rgba(162,210,255,0.3);
        color: #A2D2FF;
        border-radius: 20px;
        padding: 4px 10px;
        font-family: 'Outfit', sans-serif;
        font-size: .68rem;
        font-weight: 700;
        cursor: pointer;
        transition: all .2s;
    }

    .sug-follow-btn:hover,
    .sug-follow-btn.following {
        background: #A2D2FF;
        color: #0a0f1e;
    }
}

@media (max-width: 768px) {
    /* Toast pops up above bottom nav */
    #notification-container {
        bottom: 72px !important;
        left: 12px !important;
        right: 12px !important;
    }

    /* Support FAB above bottom nav */
    #supportFab {
        bottom: 76px !important;
        right: 16px !important;
    }
}