/* =========================================================
   PREMIUM EDITION v2 — DEDUPLICATED (functionally identical)
   Dark Glassmorphism · Gradient Accents · Smooth Motion
   ----------------------------------------------------------
   Refactor notes:
   - Merged identical/near-identical selectors
   - Extracted shared declaration groups
   - Preserved cascade order for overrides
   - No selectors removed, no visual change
========================================================= */

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

/* =========================
   DESIGN TOKENS
========================= */
:root {
    /* Surfaces */
    --bg-0: #05060A;
    --bg-1: #0A0D14;
    --bg-2: #11151F;
    --surface: rgba(20, 24, 36, 0.65);
    --surface-strong: rgba(28, 33, 48, 0.85);

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    /* Text */
    --text: #E8ECF4;
    --text-dim: #9aa3b8;
    --text-muted: #6b7488;

    /* Brand */
    --primary: #7C5CFF;
    --primary-2: #B14CFF;
    --accent: #00E0FF;
    --pink: #FF5C8A;
    --green: #22C55E;
    --green-glow: #16f29a;
    --red: #FF3B5C;
    --gold: #FFD27A;

    /* Effects */
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.35);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7C5CFF 0%, #B14CFF 50%, #FF5C8A 100%);
    --gradient-accent:  linear-gradient(135deg, #00E0FF 0%, #7C5CFF 100%);
    --gradient-gold:    linear-gradient(135deg, #FFD27A 0%, #FF8A4C 100%);
    --gradient-green:   linear-gradient(135deg, #22C55E 0%, #16f29a 100%);
}

/* =========================
   BASE
========================= */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-0);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

::selection { background: rgba(124, 92, 255, 0.4); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7C5CFF, #B14CFF);
    border-radius: 10px;
    border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #B14CFF, #FF5C8A); }

/* =========================
   ANIMATED BACKGROUND
========================= */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -10;
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(124, 92, 255, 0.30), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 20%, rgba(255, 92, 138, 0.22), transparent 55%),
        radial-gradient(ellipse 90% 60% at 50% 100%, rgba(0, 224, 255, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(177, 76, 255, 0.16), transparent 55%),
        var(--bg-0);
    animation: bgShift 22s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -9;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
    animation: gridPan 80s linear infinite;
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.45;
    z-index: -9;
    animation: floatGlow 18s ease-in-out infinite alternate;
    pointer-events: none;
}
.g1 { width: 360px; height: 360px; background: #7C5CFF; top: 5%; left: 5%; }
.g2 { width: 320px; height: 320px; background: #FF5C8A; top: 50%; right: 5%; animation-delay: -6s; }
.g3 { width: 280px; height: 280px; background: #00E0FF; bottom: 5%; left: 35%; animation-delay: -12s; }

.noise {
    position: fixed;
    inset: 0;
    z-index: -8;
    opacity: 0.05;
    background: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* =========================
   GRADIENT-TEXT UTILITY GROUP
   (selectors that share the exact same green-gradient text fill)
========================= */
.card-price,
.view-price,
.price,
.mypost-sub,
.mypost-price {
    background: var(--gradient-green);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* =========================
   HEADER — 3-COLUMN GRID
========================= */
.header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 18px 4%;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    background: linear-gradient(180deg, rgba(8,10,16,0.88) 0%, rgba(8,10,16,0.60) 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    min-width: 0;
    z-index: 110;
}

.header-left .welcome-text {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.header-left strong {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.header-right-spacer { min-width: 0; }

/* Logo */

.logo {

    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    justify-self: center;
}


.logo::after {
    content: '';
    position: absolute;
    inset: -25px;
    background: radial-gradient(circle, rgba(124,92,255,0.4), transparent 70%);
    z-index: -1;
    filter: blur(25px);
    opacity: 0.85;
    animation: logoPulse 4s ease-in-out infinite;
}
.logo:hover { transform: scale(1.06) rotate(-1deg); }
.logo a { display: block; line-height: 0; }
.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(124, 92, 255, 0.45));
    display: block;
}

/* Nav buttons */
.nav-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-buttons a {
    padding: 9px 14px !important;
    font-size: 13px !important;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.3px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.04);
    white-space: nowrap;
}

.nav-buttons a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.nav-buttons a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.nav-buttons a:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(124,92,255,0.45);
}
.nav-buttons a:hover::before { opacity: 1; }
.nav-buttons a:hover::after  { left: 100%; }

.nav-buttons a.btn-danger::before { background: linear-gradient(135deg, #FF3B5C, #FF8A4C); }
.nav-buttons a.btn-danger:hover   { box-shadow: 0 12px 30px rgba(255,59,92,0.45); }

/* =========================
   GRID
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 40px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

/* =========================
   CARD
========================= */
.card {
    background: linear-gradient(145deg, rgba(28,33,48,0.7) 0%, rgba(17,21,31,0.85) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    isolation: isolate;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124,92,255,0.7), transparent 40%, transparent 60%, rgba(255,92,138,0.7));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.10) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.9s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover {
    transform: translateY(-12px) scale(1.025);
    border-color: transparent;
    box-shadow: 0 30px 70px rgba(124,92,255,0.35), 0 0 0 1px rgba(124,92,255,0.25);
    z-index: 10;
}
.card:hover::before { opacity: 1; }
.card:hover::after  { transform: translateX(50%); }

/* Card thumb */
.compact-thumb {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0a0d14, #11151f);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}

.card:hover .compact-thumb img { transform: scale(1.10); }

.compact-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
    pointer-events: none;
}

.compact-thumb img[src*="No_Image.png"] {
    object-fit: contain;
    padding: 22px;
    opacity: 0.65;
}

/* Card info */
.compact-info {
    padding: 4px 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.compact-info > * { margin: 0 !important; }

.compact-info h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--text);
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    letter-spacing: 0.1px;
    min-height: 36px;
}

.compact-seller {
    font-size: 12px;
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 400 !important;
}
.compact-seller span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-price {
    margin-top: auto !important;
    padding-top: 4px;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: 0.3px;
    /* gradient text inherited from utility group above */
}

.card p {
    font-size: 13px;
    color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card p:empty,
.compact-info p:empty,
.card .compact-info > *:empty { display: none !important; }

/* =========================
   VIEW PAGE
========================= */
.view-wrapper {
    display: grid;
    grid-template-columns: 1fr 2.8fr;
    gap: 28px;
    max-width: 1600px;
    margin: 50px auto;
    padding: 32px;
    background: linear-gradient(145deg, rgba(28,33,48,0.7), rgba(17,21,31,0.88));
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}

.view-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124,92,255,0.45), transparent 50%, rgba(255,92,138,0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.view-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
}

.view-info h1 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 6px;
}

.view-price,
.price {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
    /* gradient text inherited from utility group above */
}

.view-phone,
.phone {
    color: #00E0FF;
    font-weight: 700;
    transition: color 0.2s ease;
    font-size: 15px;
}
.view-phone:hover,
.phone:hover { color: #7C5CFF; }

.view-desc,
.desc {
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--text-dim);
    background: rgba(8,10,16,0.5);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Gallery */
.gallery { width: 100%; }

.main-image-box {
    width: 100%;
    height: 650px;
    background: radial-gradient(ellipse at center, #11151f, #05060A);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    box-shadow: inset 0 0 60px rgba(0,0,0,0.6);
}

#mainImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease;
    cursor: zoom-in;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.55));
}

.thumb-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumb-item {
    width: 84px;
    height: 84px;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--bg-1);
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.thumb-item:hover {
    border-color: #7C5CFF;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(124,92,255,0.5);
}
.thumb-item:hover img { transform: scale(1.18); }

/* Back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(124,92,255,0.4);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.3px;
    animation: gradientShift 4s ease infinite;
    margin-bottom: 4px;
    width: fit-content;
}
.back-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 15px 40px rgba(124,92,255,0.6);
}

/* =========================
   SELLER CARD
========================= */
.seller-card {
    background: linear-gradient(145deg, rgba(20,24,36,0.85), rgba(11,13,21,0.95));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.seller-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 6px 20px rgba(124,92,255,0.5);
    flex-shrink: 0;
}

.seller-name {
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
}
.seller-name:hover { color: #B14CFF; }
.seller-username { font-size: 12px; color: var(--text-muted); }

/* =========================
   RANK BADGES
========================= */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid transparent;
    width: fit-content;
}

.rank-legend    { background: linear-gradient(135deg, rgba(255,210,122,0.15), rgba(255,138,76,0.15)); color: #FFD27A; border-color: rgba(255,210,122,0.4); box-shadow: 0 0 20px rgba(255,210,122,0.2); }
.rank-elite     { background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(177,76,255,0.18)); color: #B14CFF; border-color: rgba(177,76,255,0.4); box-shadow: 0 0 20px rgba(177,76,255,0.2); }
.rank-trusted   { background: linear-gradient(135deg, rgba(0,224,255,0.15), rgba(124,92,255,0.15));  color: #00E0FF; border-color: rgba(0,224,255,0.35); }
.rank-rookie    { background: rgba(255,255,255,0.04); color: var(--text-dim); border-color: var(--border); }
.rank-shady     { background: linear-gradient(135deg, rgba(255,138,76,0.15), rgba(255,59,92,0.15));  color: #FF8A4C; border-color: rgba(255,138,76,0.4); }
.rank-blacklist { background: linear-gradient(135deg, rgba(255,59,92,0.18), rgba(177,30,30,0.18));   color: #FF3B5C; border-color: rgba(255,59,92,0.45); box-shadow: 0 0 20px rgba(255,59,92,0.25); }

/* =========================
   STARS & RATING
========================= */
.stars {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
}
.stars .star { color: #2a2f3d; transition: color 0.2s ease; }
.stars .star.filled {
    color: #FFD27A;
    text-shadow: 0 0 10px rgba(255,210,122,0.6);
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-dim);
}
.rating-summary strong {
    color: #FFD27A;
    font-weight: 900;
    font-size: 15px;
}

.rate-form {
    margin-top: 12px;
    padding: 14px;
    background: rgba(8,10,16,0.55);
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rate-form label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 700;
}
.rate-form label small { font-size: 11px; }

.star-input {
    display: inline-flex;
    direction: rtl;
    gap: 4px;
    width: fit-content;
}
.star-input input { display: none; }
.star-input label {
    cursor: pointer;
    font-size: 28px;
    color: #2a2f3d;
    transition: all 0.2s ease;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: #FFD27A;
    text-shadow: 0 0 14px rgba(255,210,122,0.75);
    transform: scale(1.12);
}

.rate-form textarea {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(8,10,16,0.6);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    min-height: 70px;
    outline: none;
    transition: all 0.25s ease;
}
.rate-form textarea:focus {
    border-color: #7C5CFF;
    box-shadow: 0 0 0 3px rgba(124,92,255,0.18);
}

.rate-form button {
    padding: 11px 16px;
    border: none;
    border-radius: 10px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: white;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    animation: gradientShift 5s ease infinite;
}
.rate-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(124,92,255,0.55);
}

/* Reviews */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.review-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(8,10,16,0.5);
    border: 1px solid var(--border);
}
.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.review-head .stars { font-size: 13px; }
.review-author {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
}
.review-body {
    font-size: 13px;
    color: var(--text);
    line-height: 1.55;
}
.review-empty {
    padding: 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    background: rgba(8,10,16,0.35);
    border-radius: 10px;
    border: 1px dashed var(--border);
}

.review-item .admin-remove {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #FF3B5C, #FF8A4C);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.4px;
}
.review-item .admin-remove:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,59,92,0.45);
}

/* =========================
   FORMS
========================= */
.form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 36px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(28,33,48,0.78), rgba(17,21,31,0.88));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}
.form-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124,92,255,0.5), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.form-container h2 {
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.form-container p { color: var(--text-dim); margin-bottom: 8px; }
.form-container a {
    text-decoration: none;
    color: #B14CFF;
    font-weight: 600;
    transition: color 0.2s ease;
}
.form-container a:hover { color: #FF5C8A; }

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.form-container input,
.form-container textarea,
.form-container select {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(8, 10, 16, 0.65);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
}
.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
    border-color: #7C5CFF;
    background: rgba(8, 10, 16, 0.92);
    box-shadow: 0 0 0 4px rgba(124,92,255,0.18);
}

.form-container textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; gap: 12px; }

.form-container .back-btn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: var(--gradient-primary) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 18px;
    font-size: 14px;
    padding: 11px 20px;
}
.form-container a.back-btn,
.form-container a.back-btn:hover { color: #fff !important; }

/* =========================
   BUTTONS
   (shared base extracted; color-specific overrides kept)
========================= */
.btn-primary,
.btn-danger {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.3px;
    font-family: inherit;
    font-size: 14px;
}

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    box-shadow: 0 8px 24px rgba(124,92,255,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    background-position: 100% 100%;
    box-shadow: 0 14px 36px rgba(124,92,255,0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #FF3B5C, #FF8A4C);
    box-shadow: 0 8px 24px rgba(255,59,92,0.4);
}
.btn-danger:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 36px rgba(255,59,92,0.6);
}

/* =========================
   HERO + SEARCH
========================= */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px 30px;
    text-align: center;
}

.search-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, rgba(28,33,48,0.65), rgba(17,21,31,0.78));
    padding: 14px;
    border-radius: 18px;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--border);
    box-shadow: 0 22px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    max-width: 1200px;
    margin: 0 auto;
    width: 95%;
    position: relative;
}

.search-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124,92,255,0.45), transparent 50%, rgba(0,224,255,0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.search-box input[type="text"] {
    flex: 1;
    min-width: 220px;
    padding: 14px 16px;
    border: 1px solid transparent;
    outline: none;
    background: rgba(8,10,16,0.55);
    color: white;
    font-size: 15px;
    border-radius: 12px;
    transition: all 0.25s ease;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus {
    background: rgba(8,10,16,0.88);
    border-color: rgba(124,92,255,0.55);
    box-shadow: 0 0 0 3px rgba(124,92,255,0.18);
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-box select,
.search-filters input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(8,10,16,0.65);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}
.search-box select:hover,
.search-filters input:hover { border-color: rgba(124,92,255,0.45); }
.search-box select:focus,
.search-filters input:focus {
    border-color: #7C5CFF;
    box-shadow: 0 0 0 3px rgba(124,92,255,0.22);
}
.search-box select option {
    background: var(--bg-1);
    color: var(--text);
}

.search-box button {
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: white;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.4px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 22px rgba(124,92,255,0.45);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: gradientShift 5s ease infinite;
}
.search-box button:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 30px rgba(124,92,255,0.65);
}

/* =========================
   SOLD STATES
========================= */
.sold-title {
    color: #FF3B5C !important;
    font-weight: 800;
    text-decoration: line-through;
    text-decoration-color: rgba(255,59,92,0.5);
    text-decoration-thickness: 2px;
}

.sold-badge {
    background: linear-gradient(135deg, #FF3B5C, #FF8A4C);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 4px 9px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(255,59,92,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    text-transform: uppercase;
    display: inline-block;
}

.sold-badge.looking { background: #2563eb; }
.sold-badge.selling { background: #22c55e; }

.card.sold { opacity: 0.6; filter: grayscale(0.4); }
.card.sold:hover {
    opacity: 0.78;
    filter: grayscale(0.1);
    box-shadow: 0 18px 40px rgba(255,59,92,0.25);
}

.compact-thumb .sold-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 5;
    backdrop-filter: blur(6px);
}

/* Sold view banner */
.view-sold-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF3B5C, #FF8A4C);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255,59,92,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
    width: fit-content;
    animation: soldPulse 2.4s ease-in-out infinite;
    margin-bottom: 12px;
}

.main-image-box.sold-image { position: relative; }
.main-image-box.sold-image::before {
    content: 'SOLD';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    font-size: clamp(80px, 14vw, 220px);
    font-weight: 900;
    letter-spacing: 12px;
    color: rgba(255,59,92,0.85);
    text-shadow: 0 0 40px rgba(255,59,92,0.6), 0 0 80px rgba(0,0,0,0.5);
    border: 8px solid rgba(255,59,92,0.85);
    padding: 14px 40px;
    border-radius: 18px;
    z-index: 5;
    pointer-events: none;
    animation: soldStamp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.main-image-box.sold-image img {
    filter: grayscale(0.65) brightness(0.6);
}

/* =========================
   MY POSTS
========================= */
.myposts-topbar {
    display: flex;
    gap: 10px;
    padding: 22px 5%;
}
.myposts-topbar .btn-primary {
    padding: 10px 18px !important;
    font-size: 13px !important;
    border-radius: 12px;
    flex: unset !important;
    width: auto !important;
}

.myposts-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 5% 60px;
}

.myposts-title {
    margin-bottom: 22px;
    font-size: 30px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.6px;
}

.myposts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mypost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(28,33,48,0.7), rgba(17,21,31,0.85));
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.mypost-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mypost-row:hover {
    border-color: rgba(124,92,255,0.45);
    transform: translateX(8px);
    box-shadow: 0 14px 32px rgba(124,92,255,0.22);
}
.mypost-row:hover::before { transform: translateX(0); }

.mypost-main {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mypost-title {
    font-size: 14px;
    font-weight: 700;
}
.mypost-sub,
.mypost-price {
    font-size: 14px;
    font-weight: 800;
    /* gradient text inherited from utility group above */
}
.mypost-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px solid var(--border);
}
.mypost-desc {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 8px;
}
.is-sold { opacity: 0.6; }

/* =========================
   PROFILE
   (shared avatar size/shadow extracted)
========================= */
.profile-avatar-large,
.profile-avatar-fallback {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(124,92,255,0.5);
}

.profile-avatar-large {
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
                var(--gradient-primary) border-box;
}
.profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 900;
    font-size: 50px;
}

.profile-edit-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.welcome-link {
    text-decoration: none;
    cursor: pointer;
}
.welcome-link strong { transition: filter 0.2s ease; }
.welcome-link:hover strong { filter: brightness(1.35); }

/* =========================
   ALERTS
   (shared base extracted; color-specific kept)
========================= */
.alert-error,
.alert-success {
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
}
.alert-error   { background: #ff4d4d; }
.alert-success { background: #22c55e; }

/* =========================
   TYPE BADGES
========================= */
.type-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    margin-right: 6px;
    font-weight: 600;
    display: inline-block;
    vertical-align: middle;
}
.type-badge.sell { background: #22c55e; color: #fff; }
.type-badge.buy  { background: #3b82f6; color: #fff; }

.listing-title {
	font-weight: 700 !important; /* Forces bold */
    color: var(--text-bright);
    font-size: 15px;
     }

/* =========================
   INBOX
========================= */
.badge-inbox {
    background: #B14CFF;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
    display: inline-block;
}

.inbox-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 10px;
}

.inbox-card {
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.inbox-card:hover { border-color: #B14CFF; }

.inbox-card.unread {
    border-left: 4px solid #B14CFF;
    background: #1a1a1a;
}
.inbox-card.read { opacity: 0.7; }

.inbox-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ccc;
}

.sender { color: #B14CFF; font-weight: bold; }
.title  { color: #ccc; font-size: 14px; }

.inbox-link { color: #ccc; text-decoration: none; }
.inbox-link:hover { text-decoration: underline; }

.message {
    margin-top: 8px;
    padding: 8px 10px;
    background: #0d0d0d;
    border-radius: 8px;
    border-top: 1px solid #222;
    white-space: pre-wrap;
    display: none;
    line-height: 1.25;
}

.copy-btn {
    margin-top: 10px;
    background: #B14CFF;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.msg-text {
    margin-bottom: 10px;
    color: #ddd;
}

.msg-action { margin-top: 8px; font-size: 14px; }
.msg-action a {
    color: #B14CFF;
    text-decoration: none;
    font-weight: bold;
}
.msg-action a:hover { text-decoration: underline; }

.inbox-card .message p,
.inbox-card .message div { margin: 0; padding: 0; }

/* Higher-specificity overrides — kept after base for cascade correctness */
.inbox-container .message {
    padding: 8px;
    margin-top: 6px;
    line-height: 1.25;
}
.inbox-container ul {
    margin: 4px 0 0 16px !important;
    padding: 0 !important;
}
.inbox-container li {
    margin: 0 !important;
    padding: 2px 0 !important;
    line-height: 1.2;
}
.inbox-container .message div { margin: 0 !important; }

/* =========================
   ANIMATIONS
========================= */
@keyframes bgShift {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    50%  { filter: hue-rotate(15deg) brightness(1.1); }
    100% { filter: hue-rotate(-10deg) brightness(0.95); }
}

@keyframes gridPan {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 600px 600px, 600px 600px; }
}

@keyframes floatGlow {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -50px) scale(1.15); }
    100% { transform: translate(-25px, 35px) scale(0.92); }
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.15); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

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

@keyframes soldPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(255,59,92,0.45); }
    50%      { transform: scale(1.04); box-shadow: 0 14px 40px rgba(255,59,92,0.7); }
}

@keyframes soldStamp {
    0%   { opacity: 0; transform: translate(-50%, -50%) rotate(-18deg) scale(2); }
    100% { opacity: 1; transform: translate(-50%, -50%) rotate(-18deg) scale(1); }
}

/* Card stagger animation */
.card { animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; }
.card:nth-child(1)   { animation-delay: 0.04s; }
.card:nth-child(2)   { animation-delay: 0.08s; }
.card:nth-child(3)   { animation-delay: 0.12s; }
.card:nth-child(4)   { animation-delay: 0.16s; }
.card:nth-child(5)   { animation-delay: 0.20s; }
.card:nth-child(6)   { animation-delay: 0.24s; }
.card:nth-child(7)   { animation-delay: 0.28s; }
.card:nth-child(8)   { animation-delay: 0.32s; }
.card:nth-child(n+9) { animation-delay: 0.36s; }

.search-box,
.view-wrapper,
.form-container,
.mypost-row {
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .header {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }
    .logo { order: -1; }
    .header-left { align-items: center; }
    .nav-buttons { justify-content: center; }
    .header-right-spacer { display: none; }
}

@media (max-width: 800px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .view-wrapper {
        grid-template-columns: 1fr;
        padding: 18px;
        margin: 20px;
    }
}

@media (max-width: 600px) {
    .header { padding: 14px 4%; }
    .logo img { height: 78px; }
    .btn-primary {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 10px;
    }
    .nav-buttons a {
        font-size: 12px !important;
        padding: 7px 11px !important;
    }
    .nav-buttons { gap: 6px; }

    .search-box { padding: 10px; gap: 8px; }
    .search-filters { width: 100%; }
    .search-filters select,
    .search-filters input { flex: 1; min-width: 0; }

    .myposts-title { font-size: 22px; }
    .grid { padding: 24px 4%; }
    .main-image-box { height: 380px; }
    .view-info h1 { font-size: 22px; }
    .price,
    .view-price { font-size: 24px; }
}

@media (max-width: 400px) {
    .compact-thumb { height: 140px; }
    .compact-info h3 {
        font-size: 13px !important;
        min-height: 32px;
    }
}

/* =========================
   PREMIUM NUDGE UI
========================= */
.premium-nudge {
    background: rgba(20,20,30,0.65);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.nudge-header {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.nudge-label {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.nudge-select-wrapper {
    margin-top: 6px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.nudge-select {
    width: 100%;
    height: 140px;
    background: rgba(10,10,15,0.9);
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 14px;
    outline: none;
}

.nudge-select option {
    background: #111;
    color: #fff;
    padding: 8px;
}

/* NOTE: .nudge-textarea is declared twice intentionally —
   the second block (further below) overrides background/border
   while preserving `resize: none` from this first block.
   DO NOT MERGE — cascade order is functionally required. */
.nudge-textarea {
    width: 100%;
    min-height: 80px;
    margin-top: 6px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,10,15,0.9);
    color: #fff;
    resize: none;
}

.nudge-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg,#7b2ff7,#00c6ff);
    box-shadow: 0 8px 25px rgba(123,47,247,0.3);
    cursor: pointer;
    transition: 0.2s ease;
}

.nudge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,198,255,0.35);
}

/* ===== NUDGE UI FIX5 ===== */
.nudge-offer-box {
    background: rgba(20,20,30,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px;
    border-radius: 14px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

.item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.item-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: 0.2s;
}

.item-card:hover {
    background: rgba(177,76,255,0.15);
    transform: translateY(-2px);
}

.item-card input { accent-color: #B14CFF; }

.item-title {
    font-size: 13px;
    color: #ddd;
}

/* SECOND .nudge-textarea — overrides first by design (see note above) */
.nudge-textarea {
    width: 100%;
    min-height: 80px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.primary-glow {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg,#B14CFF,#6C63FF);
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
/* Mini Rank Icons for the Marketplace Grid */
.mini-rank {
    font-size: 14px;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

/* Optional: Make the Icon Glow based on rank */
.rank-legend { filter: drop-shadow(0 0 8px #ffd700); }
.rank-elite { filter: drop-shadow(0 0 8px #00d4ff); }
.rank-blacklist { filter: grayscale(1) contrast(2); }

/* =========================
   ANNOUNCEMENT BAR
========================= */
.announcement-bar {
    width: 100%;
    overflow: hidden;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.announcement-track {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 20s linear infinite;
}

.announcement-track span {
    display: inline-block;
    padding: 10px 0;
    color: #00ffcc;
    font-weight: bold;
    font-size: 14px;
}

@keyframes scrollText {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* =========================
   FULL EDGE-TO-EDGE MARQUEE
========================= */

.announcement-container {
    width: 100vw;            /* CHANGED: force viewport width */
    overflow: hidden;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);

    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;      /* CHANGED: force true edge-to-edge */
    margin-right: -50vw;
}

.moving-text {
    width: 100%;
    overflow: hidden;
}

.track {
    display: flex;
    width: max-content;
    white-space: nowrap;
 animation: marquee var(--speed, 20s) linear infinite; /* FIXED */
}

.track span {
    padding: 10px 60px;
    color: #00ffcc;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

/* REAL EDGE-TO-EDGE SCROLL */
@keyframes marquee {
    0% {
        transform: translateX(100vw);  /* starts outside RIGHT edge */
    }
    100% {
        transform: translateX(-100%);  /* exits LEFT edge */
    }
}
@media (max-width: 600px) {
    .track span {
        font-size: 12px;
        padding: 8px 30px;
    }

    .track {
        animation: marquee 15s linear infinite;
    }
}
/* PAUSE ON HOVER */
@media (hover: hover) and (pointer: fine) {
    .announcement-container:hover .track {
        animation-play-state: paused;
    }
}

/* ADDED: Featured listing badge */
.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px; /* CHANGED: moved from left to right */
    background: linear-gradient(135deg, #f59e0b, #b14cff);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(177, 76, 255, 0.5);
    z-index: 3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.card { position: relative; }


/* FEATURED SHOWCASE BAR */
.featured-showcase {
    background: rgba(10, 11, 16, 0.8);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
}

.featured-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: featuredScroll 40s linear infinite;
}

.featured-track:hover {
    animation-play-state: paused;
}

.feat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #14161f;
    border: 1px solid #2d303e;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    min-width: 220px;
    transition: border-color 0.3s;
}

.feat-card:hover {
    border-color: #ff2d55; /* Neon accent */
}

.feat-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.feat-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feat-title {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feat-price {
    font-size: 11px;
    color: #ff2d55;
    font-family: monospace;
}

@keyframes featuredScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Halfway because we duplicate for loop */
}

/* =========================================================
   // ADDED: RESPONSIVE MOBILE UX HARDENING LAYER
   Purpose: preserve the existing visual system while fixing real mobile issues:
   - fluid media and containers
   - 44px touch targets
   - readable mobile typography
   - stacked layouts for narrow screens
   - reduced mobile paint cost from decorative effects
   NOTE: markers are inside CSS comments so the stylesheet remains valid CSS.
========================================================= */

/* // ADDED: Safer viewport sizing on mobile browsers with dynamic address bars. */
html {
    -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
}

/* // ADDED: Prevent images/media from causing horizontal scrolling. */
img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* // ADDED: Form controls inherit font sizing and never overflow narrow screens. */
input,
select,
textarea,
button {
    max-width: 100%;
    font: inherit;
}

/* // ADDED: Mobile-safe wrapping for long listing titles, usernames, URLs, and messages. */
a,
p,
span,
div,
h1,
h2,
h3,
.view-desc,
.desc,
.message,
.msg-text,
.item-title,
.listing-title {
    overflow-wrap: anywhere;
}

/* // ADDED: Minimum tap size based on mobile accessibility baseline. */
a,
button,
.btn-primary,
.btn-danger,
.nav-buttons a,
.back-btn,
.copy-btn,
.nudge-btn,
.primary-glow,
.rate-form button,
.review-item .admin-remove,
.search-box button,
.thumb-item,
.star-input label,
.item-card,
.feat-card {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

/* // CHANGED: Make button-like links align cleanly when their tap target grows. */
.btn-primary,
.btn-danger,
.nav-buttons a,
.back-btn,
.copy-btn,
.nudge-btn,
.primary-glow,
.rate-form button,
.search-box button,
.feat-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* // CHANGED: Hover movement is desktop-only; touch devices should not jump on tap. */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .thumb-item:hover,
    .back-btn:hover,
    .seller-name:hover,
    .rate-form button:hover,
    .review-item .admin-remove:hover,
    .mypost-row:hover,
    .item-card:hover,
    .nudge-btn:hover,
    .primary-glow:hover,
    .feat-card:hover,
    .btn-primary:hover,
    .btn-danger:hover,
    .nav-buttons a:hover {
        transform: none !important;
    }

    .card:hover .compact-thumb img,
    .thumb-item:hover img {
        transform: none !important;
    }
}

/* // CHANGED: Tablet layout keeps content fluid before the hard mobile stack. */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        padding-inline: 4%;
    }

    .view-wrapper {
        grid-template-columns: 1fr 2fr;
        width: calc(100% - 32px);
        margin: 32px auto;
    }

    .main-image-box {
        height: min(58vw, 560px);
    }

    .form-container,
    .myposts-wrapper,
    .inbox-container {
        width: min(100% - 32px, 900px);
    }
}

/* // CHANGED: Listing detail page becomes single-column before cramped tablet widths. */
@media (max-width: 1024px) {
    .view-wrapper {
        grid-template-columns: 1fr;
        max-width: 900px;
        gap: 22px;
    }

    .main-image-box {
        height: clamp(360px, 62vw, 540px);
    }

    .search-box {
        width: min(96vw, 1000px);
    }

    .featured-track {
        animation-duration: 55s;
    }
}

/* // CHANGED: Phone and small-tablet layout — stacked, fluid, no fixed desktop widths. */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.55;
    }

    .header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px max(12px, 4vw);
        text-align: center;
    }

    .header-left {
        align-items: center;
        width: 100%;
    }

    .header-left .welcome-text {
        white-space: normal;
        line-height: 1.45;
    }

    .logo {
        order: -1;
    }

    .logo img {
        height: clamp(64px, 18vw, 86px);
    }

    .header-right-spacer {
        display: none;
    }

    .nav-buttons {
        width: 100%;
        justify-content: center;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-buttons a {
        flex: 1 1 calc(50% - 8px);
        padding: 10px 12px !important;
        font-size: 13px !important;
        white-space: normal;
        line-height: 1.25;
    }

    .hero {
        padding: 24px 12px 18px;
    }

    .search-box {
        width: calc(100% - 24px);
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input[type="text"],
    .search-box select,
    .search-filters input,
    .search-box button {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    .search-filters {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 16px 12px 24px;
    }

    .card {
        border-radius: 16px;
        padding: 10px;
    }

    .compact-thumb {
        height: clamp(132px, 42vw, 190px);
    }

    .compact-info h3 {
        font-size: 14px !important;
        line-height: 1.35;
        min-height: auto;
    }

    .card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .view-wrapper {
        width: auto;
        margin: 16px 12px;
        padding: 16px;
        gap: 18px;
        border-radius: 18px;
    }

    .view-info h1 {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.2;
    }

    .view-price,
    .price {
        font-size: clamp(24px, 7vw, 30px);
        line-height: 1.2;
    }

    .view-desc,
    .desc {
        font-size: 14px;
        line-height: 1.65;
        padding: 12px;
    }

    .main-image-box {
        height: clamp(280px, 78vw, 460px);
        border-radius: 16px;
    }

    .thumb-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .thumb-item {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
    }

    .seller-card,
    .rate-form,
    .review-item,
    .premium-nudge,
    .nudge-offer-box {
        padding: 14px;
    }

    .form-container {
        width: calc(100% - 24px);
        max-width: none;
        margin: 24px auto;
        padding: 20px;
        border-radius: 18px;
    }

    .form-container h2 {
        font-size: clamp(22px, 7vw, 28px);
    }

    .form-container input,
    .form-container textarea,
    .form-container select {
        min-height: 44px;
        font-size: 16px;
    }

    .form-actions {
        flex-direction: column;
        width: 100%;
    }

    .form-actions .btn-primary,
    .form-actions .btn-danger,
    .form-actions button,
    .form-actions a {
        width: 100%;
    }

    .myposts-topbar {
        padding: 12px;
    }

    .myposts-wrapper {
        width: calc(100% - 24px);
        margin: 16px auto;
    }

    .mypost-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .mypost-main {
        flex-wrap: wrap;
        gap: 8px;
    }

    .profile-edit-row,
    .seller-header,
    .review-head,
    .rating-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .item-grid {
        grid-template-columns: 1fr;
    }

    .item-card {
        align-items: flex-start;
    }

    .announcement-container {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }

    .featured-showcase {
        padding: 8px 0;
    }

    .feat-card {
        min-width: 180px;
        max-width: 72vw;
    }
}

/* // CHANGED: Small phones get one-column cards and larger readable listing text. */
@media (max-width: 480px) {
    .nav-buttons a {
        flex-basis: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
        padding-inline: 12px;
    }

    .compact-thumb {
        height: min(62vw, 240px);
        min-height: 190px;
    }

    .compact-info {
        gap: 8px;
    }

    .compact-info h3 {
        font-size: 16px !important;
    }

    .card-price {
        font-size: 18px;
    }

    .main-image-box {
        height: min(72vh, 360px);
    }

    .thumb-item {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .seller-avatar,
    .profile-avatar-large,
    .profile-avatar-fallback {
        width: 72px;
        height: 72px;
    }

    .star-input label {
        font-size: 26px;
    }

    .rate-form textarea,
    .nudge-textarea {
        min-height: 110px;
    }

    .nudge-select {
        height: 128px;
    }

    .track span {
        padding-inline: 24px;
    }
}

/* // CHANGED: Ultra-narrow phones — prevent clipped buttons and cramped thumbnails. */
@media (max-width: 360px) {
    .header,
    .hero,
    .grid,
    .form-container,
    .view-wrapper,
    .myposts-wrapper {
        padding-inline: 10px;
    }

    .compact-thumb {
        min-height: 170px;
    }

    .feat-card {
        min-width: 165px;
    }
}

/* // REMOVED: Mobile-only heavy decorative painting/animations that hurt scrolling performance. */
@media (max-width: 600px) {
    body::before {
        animation: none !important;
    }

    body::after,
    .noise,
    .glow,
    .card::after,
    .logo::after,
    .view-wrapper::before,
    .search-box::before {
        display: none !important;
    }

    .card,
    .view-wrapper,
    .form-container,
    .search-box,
    .premium-nudge,
    .nudge-offer-box {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* // REMOVED: Motion for users/devices asking for reduced motion. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   POST AD MOBILE UX HOTFIX
   Exact failure fixed: post form still needed pinch zoom on phones.
========================================================= */

/* // ADDED: prevent mobile browsers from auto-enlarging text and producing weird zoom behavior. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* // ADDED: safer page shell for post-ad.php only. */
.post-ad-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* // CHANGED: replaces inline-only top padding with a mobile-safe container. */
.post-page-topbar {
    width: min(700px, calc(100% - 24px));
    margin: 0 auto;
    padding: max(12px, env(safe-area-inset-top)) 0 0;
}

.post-page-topbar .btn-primary {
    width: auto;
    min-width: 88px;
    min-height: 44px;
    padding: 12px 16px !important;
}

/* // CHANGED: the default form container was visually fine but too roomy for phones. */
.form-container.post-form-container {
    width: min(700px, calc(100% - 24px));
    max-width: none;
    margin: 14px auto max(18px, env(safe-area-inset-bottom));
    padding: clamp(18px, 5vw, 36px);
    overflow: hidden;
}

/* // ADDED: status/error cards converted from inline styles to responsive blocks. */
.post-status-card,
.post-error-card {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    color: #fff;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.post-status-card {
    background: rgba(17, 17, 17, 0.82);
    border: 1px solid rgba(255,255,255,0.08);
}

.post-error-card {
    background: #7f1d1d;
    border: 1px solid rgba(255,255,255,0.10);
}

/* // ADDED: hard mobile guard; prevents children from forcing the form wider than the screen. */
.post-form,
.post-form *,
.post-form-container,
.post-form-container * {
    max-width: 100%;
    min-width: 0;
}

/* // CHANGED: iOS zooms when inputs are below 16px. This is the pinch/zoom culprit. */
.post-form input,
.post-form textarea,
.post-form select,
.post-form button,
.post-form .btn-primary,
.post-form .btn-danger {
    width: 100%;
    min-height: 44px;
    font-size: 16px !important;
    line-height: 1.35;
}

/* // ADDED: better mobile readability for description field. */
.post-form textarea {
    min-height: 150px;
    line-height: 1.55;
}

/* // CHANGED: featured checkbox label is now a real touch target, not a tiny checkbox row. */
.feature-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    margin-bottom: 2px;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.88);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text, #E8ECF4);
    cursor: pointer;
    user-select: none;
}

.feature-toggle input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-height: 22px;
    flex: 0 0 22px;
    accent-color: var(--primary, #7C5CFF);
}

/* // CHANGED: the old inline price row used flex; on narrow phones it can force pinching. */
.price-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

/* // ADDED: file input wrapper with readable helper text. */
.image-upload-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.image-upload-field > label {
    color: var(--text-dim, #9aa3b8);
    font-size: 13px;
    font-weight: 800;
}

.image-help {
    margin: 0 !important;
    color: var(--text-dim, #9aa3b8);
    font-size: 13px;
    line-height: 1.45;
}

/* // CHANGED: action buttons stack on phones; no squeezed side-by-side buttons. */
.post-form-actions,
.form-container .post-form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.post-form-actions .btn-primary,
.post-form-actions .btn-danger {
    flex: none;
}

/* // ADDED: disabled submit state while client-side compression runs. */
#postSubmitBtn:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none !important;
}

/* // ADDED: reduce costly visual effects only where mobile users are posting. */
@media (max-width: 479px) {
    .form-container.post-form-container {
        border-radius: 18px;
        box-shadow: 0 14px 36px rgba(0,0,0,0.42);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .form-container.post-form-container h2 {
        font-size: clamp(24px, 7vw, 30px);
        line-height: 1.15;
    }

    .post-form input,
    .post-form textarea,
    .post-form select {
        padding: 13px 14px;
        border-radius: 12px;
    }
}

/* // ADDED: restore two-column price inputs only when there is enough room. */
@media (min-width: 480px) {
    .price-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .post-form-actions,
    .form-container .post-form-actions {
        flex-direction: row;
    }
}

/* // ADDED: desktop keeps the nicer spacious post form. */
@media (min-width: 768px) {
    .form-container.post-form-container {
        margin-top: 24px;
    }
}

/* =========================================================
   POST AD DESKTOP ACTION ALIGNMENT HOTFIX
   Fixes desktop Post Listing / Cancel alignment after mobile patch.
========================================================= */

/* // CHANGED: buttons stay full-width only in the stacked mobile layout.
   Reason: the previous mobile hotfix set post-form controls to width:100%; once
   the action row switched back to horizontal at 480px, the submit button still
   occupied the full row and pushed the Cancel button out of view. */
@media (min-width: 480px) {
    .post-form-actions .btn-primary,
    .post-form-actions .btn-danger,
    .post-form-actions button,
    .post-form-actions a {
        width: auto !important;
        flex: 1 1 0;
        min-width: 0;
    }
}

/* // ADDED: desktop action row keeps both buttons equal, aligned, and readable. */
@media (min-width: 768px) {
    .post-form-actions,
    .form-container .post-form-actions {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
    }

    .post-form-actions .btn-primary,
    .post-form-actions .btn-danger {
        min-height: 48px;
        padding-left: 18px;
        padding-right: 18px;
        white-space: nowrap;
    }
}

/* // ADDED: top Post Ad page navigation button should never stretch like a form action. */
.post-page-topbar .btn-primary {
    flex: 0 0 auto;
}

/* =========================================================
   INDEX.PHP MOBILE-FIRST MARKETPLACE REFACTOR
   Keeps original visual system, fixes mobile header/search/grid behavior.
========================================================= */

/* // ADDED: Accessible helper for mobile/desktop search labels. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* // ADDED: Hide the mobile-only search/header row on desktop. */
.mobile-header-row,
.mobile-market-search {
    display: none;
}

/* // CHANGED: desktop search gets a cleaner two-row structure instead of one cramped flex wrap. */
.desktop-market-search {
    padding: clamp(18px, 3vw, 34px) 4% 18px;
}

.search-box-desktop {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 12px;
}

.search-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
}

.search-main-row input[type="search"] {
    width: 100%;
    min-width: 0;
}

.search-box input[type="search"] {
    flex: 1;
    min-width: 220px;
    padding: 14px 16px;
    border: 1px solid transparent;
    outline: none;
    background: rgba(8,10,16,0.55);
    color: white;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.search-box input[type="search"]:focus {
    background: rgba(8,10,16,0.88);
    border-color: rgba(124,92,255,0.55);
    box-shadow: 0 0 0 3px rgba(124,92,255,0.18);
}

.search-clear {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
}

.search-clear:hover {
    border-color: rgba(255,92,138,0.55);
    color: #fff;
}

/* // ADDED: All index search controls meet the 44px touch target rule. */
.marketplace-header a,
.mobile-market-search a,
.mobile-market-search button,
.mobile-market-search input,
.mobile-market-search select,
.search-box-desktop button,
.search-box-desktop input,
.search-box-desktop select,
.search-clear {
    min-height: 44px;
}

/* // ADDED: strong mobile layout override; index.php only classes are targeted to avoid breaking post/profile forms. */
@media (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* // CHANGED: mobile header is now compact and stacked; the old 3-column header wastes space on phones. */
    .marketplace-header.header {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px max(12px, env(safe-area-inset-left)) 10px max(12px, env(safe-area-inset-right));
        text-align: left;
        position: sticky;
        top: 0;
        z-index: 120;
        background: rgba(5, 6, 10, 0.94);
        backdrop-filter: blur(14px) saturate(140%);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
    }

    .mobile-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .mobile-brand {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        line-height: 0;
    }

    .mobile-brand img {
        height: 50px;
        width: auto;
        max-width: min(190px, 58vw);
        object-fit: contain;
        filter: drop-shadow(0 6px 16px rgba(124, 92, 255, 0.38));
    }

    .desktop-logo,
    .header-right-spacer {
        display: none !important;
    }

    .mobile-post-cta {
        flex: 0 0 auto;
        min-width: 86px;
        padding: 0 14px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 900;
        text-decoration: none;
        background: var(--gradient-primary);
        box-shadow: 0 8px 22px rgba(124,92,255,0.38);
    }

    .marketplace-nav.header-left {
        width: 100%;
        align-items: stretch;
        gap: 6px;
    }

    .marketplace-nav .welcome-text {
        padding: 0 2px;
        font-size: 12px;
        line-height: 1.25;
        text-align: left;
    }

    /* // CHANGED: nav becomes horizontal scroll instead of wrapping into a tall unreadable block. */
    .marketplace-nav .nav-buttons {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 2px 4px;
    }

    .marketplace-nav .nav-buttons::-webkit-scrollbar {
        display: none;
    }

    .marketplace-nav .nav-buttons a {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 12px !important;
        min-height: 44px;
        font-size: 12px !important;
        border-radius: 999px;
        white-space: nowrap;
    }

    .nav-post-desktop {
        display: none !important;
    }

    /* // REMOVED (reason): the old hero search is hidden on phones because it consumes too much vertical space. */
    .desktop-market-search {
        display: none !important;
    }

    /* // ADDED: compact mobile search sits below header/announcement and is built for thumbs. */
    .mobile-market-search {
        display: block;
        padding: 10px 12px 8px;
        background: linear-gradient(180deg, rgba(5,6,10,0.98), rgba(5,6,10,0.78));
        border-bottom: 1px solid rgba(255,255,255,0.08);
        position: relative;
        z-index: 80;
    }

    .mobile-search-form {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-search-line {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        width: 100%;
    }

    .mobile-search-form input,
    .mobile-search-form select {
        width: 100%;
        min-width: 0;
        padding: 12px 13px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.10);
        background: rgba(8,10,16,0.82);
        color: var(--text);
        font: inherit;
        font-size: 16px;
        outline: none;
    }

    .mobile-search-form input:focus,
    .mobile-search-form select:focus {
        border-color: rgba(124,92,255,0.75);
        box-shadow: 0 0 0 3px rgba(124,92,255,0.20);
    }

    .mobile-search-form button {
        border: 0;
        border-radius: 12px;
        padding: 0 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 900;
        background: var(--gradient-primary);
        box-shadow: 0 8px 22px rgba(124,92,255,0.34);
        font-size: 14px;
    }

    .mobile-filter-panel {
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,0.10);
        background: rgba(255,255,255,0.045);
        overflow: hidden;
    }

    .mobile-filter-panel summary {
        min-height: 44px;
        padding: 0 13px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        cursor: pointer;
        color: var(--text);
        font-weight: 900;
        list-style: none;
    }

    .mobile-filter-panel summary::-webkit-details-marker {
        display: none;
    }

    .mobile-filter-panel summary::after {
        content: '⌄';
        opacity: 0.75;
        transition: transform 0.2s ease;
    }

    .mobile-filter-panel[open] summary::after {
        transform: rotate(180deg);
    }

    .mobile-filter-panel summary strong {
        margin-left: auto;
        padding: 4px 8px;
        border-radius: 999px;
        font-size: 11px;
        color: #04120c;
        background: var(--green-glow);
    }

    .mobile-filter-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 12px 12px;
    }

    .mobile-filter-grid label {
        display: flex;
        flex-direction: column;
        gap: 6px;
        color: var(--text-dim);
        font-size: 12px;
        font-weight: 800;
        text-align: left;
    }

    .mobile-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 12px 12px;
    }

    .mobile-filter-actions .search-clear {
        width: 100%;
    }

    /* // CHANGED: featured carousel is shorter and thumb-friendly on phones. */
    .featured-showcase {
        padding: 12px 0 !important;
        border-bottom-width: 1px !important;
    }

    .featured-track {
        gap: 12px !important;
        animation-duration: 48s !important;
    }

    .feat-card {
        width: 170px !important;
        min-width: 170px !important;
        border-radius: 12px !important;
    }

    .feat-thumb {
        height: 108px !important;
    }

    .feat-info {
        padding: 9px 10px !important;
        gap: 4px !important;
    }

    .feat-title {
        font-size: 13px !important;
    }

    .feat-price {
        font-size: 14px !important;
    }

    .feat-badge-top {
        font-size: 9px !important;
        padding: 3px 6px !important;
    }

    /* // CHANGED: phone grid uses two stable columns without forcing horizontal scroll. */
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 14px 10px 28px !important;
        max-width: none !important;
        width: 100% !important;
    }

    .card {
        min-width: 0;
        padding: 8px;
        border-radius: 14px;
        gap: 8px;
        animation: none !important;
        transition: border-color 0.18s ease, background 0.18s ease;
    }

    .card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .compact-thumb {
        height: clamp(118px, 36vw, 152px) !important;
        border-radius: 11px;
    }

    .compact-thumb img {
        max-width: 100%;
    }

    .compact-info {
        padding: 0 2px 2px;
        gap: 5px;
    }

    .compact-info h3 {
        font-size: 13px !important;
        line-height: 1.28;
        min-height: 34px;
        -webkit-line-clamp: 2;
    }

    .compact-seller {
        font-size: 11px;
    }

    .card-price {
        font-size: 15px;
        line-height: 1.2;
    }

    .compact-thumb .sold-badge,
    .sold-badge {
        font-size: 9px;
        padding: 4px 7px;
        border-radius: 999px;
        max-width: calc(100% - 12px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .track span {
        font-size: 12px;
        padding: 8px 22px;
    }

    /* // ADDED: mobile performance guard; these layers are visual only and expensive on low-end phones. */
    .glow,
    .noise,
    body::after {
        display: none !important;
    }
}

/* // ADDED: very narrow phones get one card per row to avoid unreadable item titles. */
@media (max-width: 359px) {
    .grid {
        grid-template-columns: 1fr !important;
    }

    .compact-thumb {
        height: 180px !important;
    }
}

/* // ADDED: tablet bridge between phone and desktop. */
@media (min-width: 768px) and (max-width: 1023px) {
    .marketplace-header.header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
    }

    .header-right-spacer {
        display: none;
    }

    .desktop-logo img {
        height: 82px;
    }

    .marketplace-nav .nav-buttons a {
        min-height: 44px;
    }

    .search-box-desktop {
        width: min(100%, 920px);
    }

    .search-filters {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
        gap: 10px;
        width: 100%;
    }

    .search-filters select,
    .search-filters input,
    .search-clear {
        width: 100%;
        min-width: 0;
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-left: 3%;
        padding-right: 3%;
    }
}

/* // ADDED: desktop keeps the full search controls aligned and readable. */
@media (min-width: 1024px) {
    .search-box-desktop {
        width: min(1120px, 94vw);
    }

    .search-filters {
        display: grid;
        grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) auto;
        gap: 10px;
        align-items: center;
        width: 100%;
    }

    .search-filters select,
    .search-filters input,
    .search-clear {
        width: 100%;
        min-width: 0;
    }
}

/* // ADDED: users who prefer reduced motion should not get infinite scrolling effects. */
@media (prefers-reduced-motion: reduce) {
    .featured-track,
    .track,
    .card,
    .search-box,
    .view-wrapper,
    .form-container,
    .mypost-row {
        animation: none !important;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   INDEX CHAT WIDGET COLLISION FIX
   Root cause: the mobile/index responsive layer added global rules for
   buttons, links, SVGs, spans, and divs. The chat widget uses those same
   primitives, so this layer protects only the chat surface.
========================================================= */

/* // ADDED: wrapper is neutral; the real positioning still belongs to #chatWidget. */
.ls-chat-guard {
    position: static !important;
    display: contents;
}

/* // CHANGED: keep chat above sticky header/search/featured sections without moving it to the wrong side. */
#chatWidget {
    z-index: 2147483000 !important;
    pointer-events: none !important;
    isolation: isolate;
}

/* // CHANGED: only actual chat surfaces receive clicks; the wrapper never blocks listing cards. */
#chatWidget .chat-launcher,
#chatWidget .chat-panel,
#chatWidget .chat-lightbox {
    pointer-events: auto !important;
}

/* // CHANGED: cancel marketplace global wrapping rules inside chat. */
#chatWidget,
#chatWidget *,
#chatLightbox,
#chatLightbox * {
    overflow-wrap: normal !important;
    word-break: normal !important;
    letter-spacing: normal;
}

/* // CHANGED: cancel global 44px button/link rules only inside the chat where exact circular controls matter. */
#chatWidget button,
#chatWidget a,
#chatWidget input,
#chatWidget textarea,
#chatWidget select {
    font: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* // CHANGED: prevent global SVG/image fluid rules from changing the chat launcher icon shape. */
#chatWidget svg,
#chatLightbox svg {
    max-width: none !important;
    height: auto;
    flex: 0 0 auto;
}

/* // CHANGED: preserve the original uploaded chat bubble icon size. */
#chatWidget .chat-launcher-icon {
    width: 26px !important;
    height: 26px !important;
    display: block;
}

/* // CHANGED: exact chat control sizes override global marketplace touch-target expansion. */
#chatWidget .chat-launcher {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

#chatWidget .chat-icon-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
}

#chatWidget .chat-attach-btn,
#chatWidget .chat-send-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
}

#chatWidget .chat-badge {
    min-width: 22px !important;
    min-height: 22px !important;
}

/* // CHANGED: phone layout keeps original bottom-left chat behavior and avoids iOS safe-area overlap. */
@media (max-width: 480px) {
    #chatWidget {
        left: max(14px, env(safe-area-inset-left)) !important;
        right: auto !important;
        bottom: max(14px, env(safe-area-inset-bottom)) !important;
        width: 54px !important;
        height: 54px !important;
    }

    #chatWidget .chat-launcher {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
    }

    #chatWidget .chat-panel {
        width: calc(100vw - 28px) !important;
        height: min(620px, calc(100dvh - 96px)) !important;
        max-height: calc(100dvh - 96px) !important;
        left: 0 !important;
        bottom: 72px !important;
    }
}

/* =========================================================
   VIEW.PHP MOBILE-FIRST DETAIL PAGE REFACTOR
   Scope: only <body class="view-page">, so index/post/inbox styles stay safe.
========================================================= */

/* // ADDED: keep detail page from creating sideways scroll on phones. */
.view-page {
    overflow-x: hidden;
}

/* // CHANGED: detail wrapper becomes fluid instead of relying on the old desktop card width. */
.view-page .view-wrapper {
    width: min(1600px, calc(100% - 32px));
    margin: 32px auto;
    align-items: start;
}

/* // CHANGED: media column can shrink without forcing horizontal overflow. */
.view-page .view-info,
.view-page .view-image,
.view-page .gallery,
.view-page .seller-card,
.view-page .premium-nudge,
.view-page .nudge-offer-box,
.view-page .rate-form {
    min-width: 0;
}

/* // CHANGED: view page nav is allowed to wrap neatly, not shove buttons off-screen. */
.view-page .view-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

/* // CHANGED: phone is now a proper button-like tel: link on mobile and desktop. */
.view-page .view-phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,224,255,0.25);
    background: rgba(0,224,255,0.08);
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* // CHANGED: main image height now scales with viewport instead of being locked to 650px. */
.view-page .main-image-box {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 280px;
    max-height: min(70vh, 650px);
}

/* // CHANGED: main image must never create horizontal overflow. */
.view-page #mainImage {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

/* // ADDED: touch devices do not get the desktop zoom cursor. */
.view-page #mainImage.no-hover-zoom {
    cursor: default;
}

/* // CHANGED: thumbnails are now real buttons; reset native button styling safely. */
.view-page .thumb-item {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    min-width: 64px;
    min-height: 64px;
    flex: 0 0 auto;
}

/* // ADDED: visible state for the selected thumbnail. */
.view-page .thumb-item.is-active {
    border-color: #7C5CFF;
    box-shadow: 0 0 0 3px rgba(124,92,255,0.18), 0 10px 24px rgba(124,92,255,0.35);
}

/* // CHANGED: forms and controls use 16px on mobile-capable pages to avoid iPhone input zoom. */
.view-page input,
.view-page select,
.view-page textarea,
.view-page button {
    font-size: 16px;
}

/* // CHANGED: seller/action forms need full-width controls on narrow screens. */
.view-page .rate-form textarea,
.view-page .nudge-textarea,
.view-page .nudge-select {
    width: 100%;
}

/* // ADDED: desktop keeps the original two-column product-detail feel. */
@media (min-width: 1025px) {
    .view-page .view-wrapper {
        grid-template-columns: minmax(300px, 0.9fr) minmax(0, 2.1fr);
        gap: 28px;
    }

    .view-page .view-info {
        position: sticky;
        top: 24px;
    }
}

/* // CHANGED: tablet and phone stack image first, then details. */
@media (max-width: 1024px) {
    .view-page .view-wrapper {
        grid-template-columns: 1fr !important;
        width: min(940px, calc(100% - 24px));
        margin: 18px auto 88px;
        padding: 18px;
        gap: 18px;
    }

    .view-page .view-image {
        order: -1;
    }

    .view-page .view-info {
        order: 1;
    }

    .view-page .main-image-box {
        min-height: clamp(260px, 56vw, 520px);
        max-height: 62vh;
    }
}

/* // CHANGED: phone detail view is compact, readable, and one-hand friendly. */
@media (max-width: 600px) {
    .view-page .view-wrapper {
        width: calc(100% - 20px);
        margin: 10px auto 84px;
        padding: 12px;
        border-radius: 18px;
        gap: 14px;
    }

    .view-page .view-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .view-page .view-nav .back-btn {
        width: 100% !important;
        min-height: 44px;
        margin-bottom: 0;
        padding: 10px 12px;
        font-size: 13px !important;
    }

    .view-page .view-info {
        gap: 12px;
        padding-top: 0;
    }

    .view-page .view-info h1 {
        font-size: clamp(22px, 7vw, 30px);
        line-height: 1.15;
        letter-spacing: -0.35px;
        margin-top: 2px;
    }

    .view-page .price,
    .view-page .view-price {
        font-size: clamp(26px, 8vw, 34px);
        line-height: 1.1;
    }

    .view-page .view-phone-link {
        width: 100%;
        justify-content: flex-start;
        font-size: 16px;
    }

    .view-page .desc,
    .view-page .view-desc {
        padding: 12px;
        font-size: 15px;
        line-height: 1.65;
        max-height: none;
    }

    .view-page .gallery {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .view-page .main-image-box {
        aspect-ratio: 1 / 1;
        min-height: 0;
        max-height: none;
        border-radius: 16px;
    }

    .view-page .thumb-row {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        margin-top: 0;
        padding: 2px 2px 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .view-page .thumb-item {
        width: 70px;
        height: 70px;
        scroll-snap-align: start;
    }

    .view-page .seller-card,
    .view-page .premium-nudge,
    .view-page .nudge-offer-box,
    .view-page .rate-form {
        padding: 14px;
        border-radius: 14px;
    }

    .view-page .seller-header {
        align-items: flex-start;
    }

    .view-page .seller-avatar {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .view-page .rank-badge {
        max-width: 100%;
        white-space: normal;
        line-height: 1.25;
    }

    .view-page .rating-summary {
        gap: 6px;
        line-height: 1.4;
    }

    .view-page .star-input {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .view-page .star-input label {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 31px;
    }

    .view-page .rate-form button,
    .view-page .nudge-btn,
    .view-page .primary-glow {
        width: 100% !important;
        min-height: 48px;
        font-size: 15px;
    }

    .view-page .nudge-select {
        height: 150px;
        font-size: 16px;
    }

    .view-page .view-sold-banner {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 12px;
        padding: 10px 12px;
    }

    .view-page .main-image-box.sold-image::before {
        font-size: clamp(48px, 18vw, 92px);
        letter-spacing: 4px;
        border-width: 5px;
        padding: 8px 18px;
    }
}

/* // CHANGED: very small phones should never show a two-button nav that clips. */
@media (max-width: 360px) {
    .view-page .view-nav {
        grid-template-columns: 1fr;
    }

    .view-page .thumb-item {
        width: 64px;
        height: 64px;
    }
}

/* // REMOVED: hover zoom and hover movement on touch screens; it causes accidental visual jumps. */
@media (hover: none) and (pointer: coarse) {
    .view-page #mainImage,
    .view-page .thumb-item img,
    .view-page .thumb-item:hover img {
        transform: none !important;
    }

    .view-page .thumb-item:hover {
        transform: none !important;
    }
}



/* =========================================================
   // ADDED: View page point-zoom image viewer
   Purpose: fixes mobile/desktop image zoom so zoom anchors to the tap,
   wheel, cursor, or pinch midpoint instead of randomly scaling from center.
========================================================= */
body.image-zoom-open {
    overflow: hidden !important;
    touch-action: none;
}

.view-page .main-image-box {
    cursor: zoom-in;
}

.view-page #mainImage {
    cursor: zoom-in;
}

.image-zoom-viewer[hidden] {
    display: none !important;
}

.image-zoom-viewer {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(124,92,255,0.20), transparent 42%),
        rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    overscroll-behavior: contain;
}

.image-zoom-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-select: none;
}

.image-zoom-stage.is-zoomed {
    cursor: grab;
}

.image-zoom-stage.is-dragging {
    cursor: grabbing;
}

.image-zoom-img {
    max-width: min(94vw, 1400px);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 90ms linear;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.image-zoom-toolbar {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(10, 13, 20, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.image-zoom-btn {
    appearance: none;
    -webkit-appearance: none;
    min-width: 44px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font: 800 16px/1 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
}

.image-zoom-btn:hover,
.image-zoom-btn:focus-visible {
    background: rgba(124,92,255,0.35);
    border-color: rgba(124,92,255,0.7);
    outline: none;
}

.image-zoom-close {
    background: rgba(255,59,92,0.22);
    border-color: rgba(255,59,92,0.45);
    font-size: 24px;
}

.image-zoom-hint {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 2;
    transform: translateX(-50%);
    max-width: min(92vw, 520px);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10,13,20,0.70);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.78);
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    pointer-events: none;
}

@media (max-width: 600px) {
    .image-zoom-toolbar {
        top: max(10px, env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
        left: max(10px, env(safe-area-inset-left));
        justify-content: space-between;
        border-radius: 18px;
    }

    .image-zoom-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0 12px;
    }

    .image-zoom-img {
        max-width: 96vw;
        max-height: 78vh;
        border-radius: 10px;
    }

    .image-zoom-hint {
        bottom: max(12px, env(safe-area-inset-bottom));
        font-size: 12px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-zoom-img {
        transition: none;
    }
}

/* =========================================================
   INDEX MANUAL ANNOUNCEMENT + FEATURED SCROLL FIX
   Root cause: announcement + featured were auto-marquees.
   Better UX: user-controlled drag/swipe rails on phone AND desktop.
========================================================= */

/* // REMOVED: visible drag/swipe hint pills. Reason: they covered announcement text and created visual noise on desktop/mobile. */

/* // CHANGED: Announcement no longer auto-scrolls; it becomes a draggable readable rail. */
.announcement-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    cursor: grab;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,204,0.55) rgba(255,255,255,0.06);
}

.announcement-container::-webkit-scrollbar {
    height: 8px;
}

.announcement-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
}

.announcement-container::-webkit-scrollbar-thumb {
    background: rgba(0,255,204,0.55);
    border-radius: 999px;
}

.announcement-container:active,
.announcement-container.is-dragging {
    cursor: grabbing;
}

.announcement-container .moving-text {
    overflow: visible !important;
    width: max-content !important;
    min-width: 100%;
}

.announcement-container .track {
    animation: none !important;
    transform: none !important;
    display: inline-flex !important;
    width: max-content !important;
    min-width: 100%;
    padding-right: 120px;
    will-change: auto !important;
}

/* // REMOVED: cloned marquee text is never needed now that the announcement is manually scrollable. */
.announcement-container .announcement-copy-clone {
    display: none !important;
}

.announcement-container .track span,
.announcement-container .announcement-copy {
    font-size: clamp(13px, 1.5vw, 15px) !important;
    line-height: 1.35;
    padding: 10px 18px !important;
    white-space: nowrap;
}

/* // CHANGED: Featured banner is manual on desktop and mobile. No auto-scroll, no duplicate cards. */
.featured-showcase {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,45,85,0.55) rgba(255,255,255,0.06);
    scroll-snap-type: x proximity;
    padding: 14px 14px 22px !important;
    cursor: grab;
    user-select: none;
}

.featured-showcase::-webkit-scrollbar {
    height: 8px;
}

.featured-showcase::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
}

.featured-showcase::-webkit-scrollbar-thumb {
    background: rgba(255,45,85,0.55);
    border-radius: 999px;
}

.featured-showcase:active,
.featured-showcase.is-dragging {
    cursor: grabbing;
}

.featured-track {
    animation: none !important;
    transform: none !important;
    width: max-content !important;
    max-width: none !important;
    padding-right: 96px;
    will-change: auto !important;
}

.featured-track:hover {
    animation-play-state: paused !important;
}

.featured-track .feat-card--clone {
    display: none !important;
}

.featured-track .feat-card,
.feat-card {
    scroll-snap-align: start;
    flex: 0 0 240px;
}

/* // ADDED: While dragging, child links/images should not fight the rail gesture. */
.js-drag-scroll.is-dragging,
.js-drag-scroll.is-dragging * {
    cursor: grabbing !important;
}

.js-drag-scroll.is-dragging a,
.js-drag-scroll.is-dragging img {
    pointer-events: none;
}

@media (max-width: 767px) {
    .announcement-container {
        scrollbar-width: none;
    }

    .announcement-container::-webkit-scrollbar,
    .featured-showcase::-webkit-scrollbar {
        display: none;
    }

    .announcement-container .track {
        padding-right: 88px;
    }

    .announcement-container .track span,
    .announcement-container .announcement-copy {
        font-size: 13px !important;
        padding: 10px 18px !important;
    }

    .featured-showcase {
        scrollbar-width: none;
        padding: 12px 10px 20px !important;
    }

    .featured-track {
        padding-right: 72px;
    }

    .featured-track .feat-card,
    .feat-card {
        flex: 0 0 170px !important;
    }
}

/* =========================================================
   // ADDED: MOBILE MARKETPLACE DENSE CARD MODE
   Purpose: show more posts per screen on phones without breaking desktop layout.
   Scope: index listing cards only (.grid/.card/.compact-*).
========================================================= */
@media (max-width: 767px) {
    /* // CHANGED: tighter phone grid so more listings are visible at once. */
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        padding: 10px 7px 26px !important;
    }

    /* // CHANGED: reduce card chrome; content stays readable. */
    .card {
        padding: 6px !important;
        gap: 4px !important;
        border-radius: 11px !important;
        min-height: 0 !important;
        box-shadow: none !important;
    }

    .card::after,
    .card::before {
        display: none !important; /* // REMOVED: heavy hover shine/border effect on mobile; wastes paint and space. */
    }

    /* // CHANGED: shorter thumbnails are the biggest win for showing more rows. */
    .compact-thumb {
        height: clamp(86px, 25vw, 108px) !important;
        border-radius: 9px !important;
    }

    .compact-thumb::after {
        background: linear-gradient(180deg, transparent 62%, rgba(0,0,0,0.45)) !important;
    }

    .compact-thumb img[src*="No_Image.png"] {
        padding: 14px !important;
    }

    /* // CHANGED: compact text block. */
    .compact-info {
        padding: 1px 2px 2px !important;
        gap: 2px !important;
    }

    .compact-info h3 {
        font-size: 11.5px !important;
        line-height: 1.18 !important;
        min-height: 27px !important;
        -webkit-line-clamp: 2 !important;
        letter-spacing: 0 !important;
    }

    .compact-info h3 .listing-title,
    .listing-title {
        font-size: inherit !important;
        line-height: inherit !important;
    }

    .compact-seller {
        font-size: 9.5px !important;
        line-height: 1.15 !important;
        gap: 2px !important;
        min-height: 12px !important;
    }

    .mini-rank {
        font-size: 10px !important;
        margin-right: 1px !important;
    }

    .seller-name {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .card-price {
        font-size: 13px !important;
        line-height: 1.05 !important;
        padding-top: 1px !important;
        letter-spacing: 0 !important;
    }

    .compact-thumb .sold-badge,
    .sold-badge {
        font-size: 7.5px !important;
        line-height: 1 !important;
        padding: 3px 5px !important;
        border-radius: 6px !important;
        top: 5px !important;
        left: 5px !important;
        letter-spacing: 0.25px !important;
    }
}

/* // ADDED: Large phones and landscape phones can safely fit 3 compact columns. */
@media (min-width: 430px) and (max-width: 767px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .compact-thumb {
        height: clamp(78px, 20vw, 96px) !important;
    }

    .compact-info h3 {
        font-size: 11px !important;
        min-height: 26px !important;
    }

    .compact-seller {
        font-size: 9px !important;
    }

    .card-price {
        font-size: 12.5px !important;
    }
}

/* // ADDED: Very narrow phones keep two columns but avoid unreadable cramped text. */
@media (max-width: 359px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        padding-inline: 6px !important;
    }

    .compact-thumb {
        height: 82px !important;
    }

    .compact-seller {
        display: none !important; /* // REMOVED: seller line only on ultra-narrow phones to keep cards usable. */
    }

    .compact-info h3 {
        min-height: 28px !important;
    }
}

/* =========================================================
   // ADDED: SAFE AUTH + MARKETPLACE PRESERVATION LAYER
   Source: latest working style.css uploaded by user.
   Purpose:
   - support the mobile-friendly login/register markup
   - prevent auth styling from touching marketplace/index pages
   - re-lock announcement/featured rails to manual scrolling
   - keep compact mobile post cards
========================================================= */

/* // ADDED: Auth pages only. Scoped to body.auth-page so index/view/post pages are untouched. */
body.auth-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    overflow-x: hidden;
}

/* // ADDED: Prevent oversized background glows from making auth pages feel cramped on phones. */
body.auth-page .glow,
body.auth-page .noise {
    pointer-events: none;
}

/* // ADDED: Auth wrapper is fluid and centered. */
.auth-shell {
    width: min(100%, 460px);
    margin: 0 auto;
}

/* // CHANGED: Auth card uses the existing form style but becomes phone-safe. */
.auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: clamp(22px, 6vw, 36px);
    border-radius: clamp(18px, 5vw, 24px);
}

/* // ADDED: Small brand block for login/register only. */
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    text-align: center;
}

.auth-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.auth-logo {
    width: min(150px, 42vw);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 26px rgba(124, 92, 255, 0.38));
}

.auth-kicker {
    margin: 0 !important;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.35;
}

/* // ADDED: Auth-specific form rhythm. */
.auth-form {
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
}

.auth-field span {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

/* // CHANGED: 16px prevents iPhone/Safari zoom-on-focus. */
.auth-page .form-container input,
.auth-page .form-container textarea,
.auth-page .form-container select {
    width: 100%;
    min-height: 48px;
    font-size: 16px !important;
    line-height: 1.35;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 10px 0 14px;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    border: 1px solid rgba(255,255,255,0.10);
}

.auth-alert-error {
    background: linear-gradient(135deg, rgba(127,29,29,0.95), rgba(255,59,92,0.55));
}

.auth-switch {
    margin: 16px 0 0 !important;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.auth-switch a {
    color: #B14CFF !important;
    font-weight: 900;
}

/* // CHANGED: Auth actions stack on phones, align on larger screens. */
.auth-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 4px;
}

.auth-actions .btn-primary,
.auth-actions .btn-danger,
.auth-actions button,
.auth-actions a {
    width: 100% !important;
    min-height: 48px;
    font-size: 15px !important;
    padding: 13px 16px !important;
}

@media (min-width: 520px) {
    .auth-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    body.auth-page {
        align-items: start;
        padding-top: 18px;
    }

    .auth-card h2 {
        font-size: 24px;
    }

    .auth-logo {
        width: min(132px, 46vw);
    }
}

/* =========================================================
   // ADDED: MANUAL ANNOUNCEMENT / FEATURED RAIL SAFEGUARD
   Reason: prevents stale CSS from re-enabling auto-marquee behavior.
========================================================= */

/* // CHANGED: Announcement becomes user-controlled horizontal scroll. */
.announcement-container,
.announcement-bar {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.moving-text {
    overflow: visible !important;
}

.track,
.announcement-track {
    display: flex !important;
    width: max-content !important;
    min-width: 100%;
    padding-left: 0 !important;
    animation: none !important;
    transform: none !important;
    white-space: nowrap;
}

.track span,
.announcement-track span {
    flex: 0 0 auto;
}

/* // CHANGED: Featured listings are manually scrollable everywhere. */
.featured-showcase {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    cursor: grab;
}

.featured-showcase:active,
.featured-showcase.is-dragging {
    cursor: grabbing;
}

.featured-track {
    width: max-content !important;
    max-width: none !important;
    animation: none !important;
    transform: none !important;
}

/* // REMOVED (reason): stale auto-scrolling behavior is neutralized by animation:none above. */

/* =========================================================
   // ADDED: COMPACT MOBILE POST GRID
   Goal: show more posts on phones without making cards unreadable.
========================================================= */

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 14px 8px 28px !important;
    }

    .card {
        border-radius: 12px !important;
        padding: 7px !important;
        gap: 5px !important;
        min-width: 0;
    }

    .compact-thumb {
        height: 112px !important;
        border-radius: 10px !important;
    }

    .compact-info {
        padding: 2px 2px 3px !important;
        gap: 3px !important;
    }

    .compact-info h3,
    .listing-title {
        font-size: 11.5px !important;
        line-height: 1.22 !important;
        min-height: 28px !important;
        -webkit-line-clamp: 2;
    }

    .compact-seller {
        font-size: 10px !important;
        gap: 2px !important;
    }

    .mini-rank {
        font-size: 11px !important;
        margin-right: 2px !important;
    }

    .card-price {
        font-size: 13px !important;
        line-height: 1.2 !important;
        padding-top: 1px !important;
    }

    .compact-thumb .sold-badge,
    .featured-badge {
        top: 5px !important;
        left: 5px !important;
        right: auto !important;
        font-size: 8px !important;
        padding: 2px 5px !important;
        border-radius: 5px !important;
        letter-spacing: 0.2px !important;
    }

    .sold-badge.selling,
    .sold-badge.looking {
        max-width: calc(100% - 10px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* // CHANGED: Large phones and landscape phones can fit 3 columns. */
@media (min-width: 520px) and (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .compact-thumb {
        height: 104px !important;
    }
}

/* // CHANGED: Tiny phones keep cards legible by hiding seller line. */
@media (max-width: 360px) {
    .compact-thumb {
        height: 98px !important;
    }

    .compact-seller {
        display: none !important;
    }

    .compact-info h3,
    .listing-title {
        font-size: 11px !important;
        min-height: 27px !important;
    }
}

/* =========================================================
   // ADDED: INDEX FEATURED RAIL + HEADER REWORK
   Reason: moved inline CSS out of index.php and fixed header alignment/jitter in one stylesheet.
   Scope: only index marketplace header/featured classes.
========================================================= */

/* // ADDED: Featured showcase styles moved from index.php. */
.featured-showcase {
    background: rgba(10, 11, 16, 0.98) !important;
    border-bottom: 2px solid #ff2d55 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 25px 0 !important;
    position: relative;
    z-index: 10;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    cursor: grab;
}

.featured-showcase:active,
.featured-showcase.is-dragging {
    cursor: grabbing;
}

.featured-track {
    display: flex !important;
    gap: 20px !important;
    width: max-content !important;
    max-width: none !important;
    animation: none !important;
    transform: none !important;
}

.featured-track:hover {
    animation-play-state: paused;
}

.feat-card {
    width: 240px !important;
    flex: 0 0 240px !important;
    scroll-snap-align: start;
    background: #1a1d29;
    border-radius: 12px;
    border: 1px solid #333644;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.feat-card:hover {
    transform: none !important; /* CHANGED: reduced motion; no card jumping. */
    border-color: #ff2d55;
    box-shadow: 0 8px 20px rgba(255, 45, 85, 0.32);
    filter: brightness(1.03);
}

.feat-thumb {
    width: 100%;
    height: 160px;
    position: relative;
}

.feat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feat-badge-top {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff2d55;
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.feat-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feat-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feat-price {
    font-size: 16px;
    font-weight: 900;
    color: #00ff88;
}

/* // REMOVED (reason): featuredScroll auto-marquee is intentionally neutralized by animation:none above. */

/* // CHANGED: Header is now controlled from style.css, not inline PHP. */
body .marketplace-header.header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(12px, 2vw, 28px) !important;
    min-height: 92px;
    padding: 10px clamp(14px, 2.4vw, 32px) !important;
    overflow: visible !important;
}

/* // CHANGED: desktop header keeps the logo centered while the user/action rail stays stable on the left. */
body .marketplace-header .mobile-header-row {
    display: none !important;
}

body .marketplace-nav.header-left {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
    gap: 7px;
    width: min(100%, 580px);
    min-width: 0;
    max-width: 100%;
    justify-self: start;
}

/* // CHANGED: Username + Post Ad use one aligned rail instead of floating separately. */
body .marketplace-nav .user-action-row {
    display: inline-grid;
    grid-template-columns: minmax(0, auto) auto;
    align-items: center;
    justify-content: start;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    padding: 5px 6px 5px 11px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(5, 8, 18, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body .marketplace-nav .welcome-text {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: clamp(190px, 25vw, 350px);
    height: 34px;
    padding: 0;
    color: rgba(235, 244, 255, 0.84) !important;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: clamp(12px, 0.92vw, 13px) !important;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .marketplace-nav .welcome-link,
body .marketplace-nav .welcome-link strong {
    display: inline-block;
    max-width: clamp(96px, 14vw, 210px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
    color: #67e8f9 !important;
    font-weight: 900 !important;
    text-decoration: none;
}

body .marketplace-nav .header-post-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 126px;
    padding: 0 17px;
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.42);
    color: #06121a !important;
    text-decoration: none !important;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: clamp(14px, 1.02vw, 15.5px) !important;
    font-weight: 950 !important;
    letter-spacing: -0.015em;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.65), transparent 34%),
        linear-gradient(135deg, #67e8f9 0%, #22d3ee 48%, #a78bfa 100%);
    box-shadow:
        0 10px 24px rgba(34, 211, 238, 0.22),
        0 0 18px rgba(167, 139, 250, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transform: none !important;
    transition: filter 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

body .marketplace-nav .header-post-cta:hover {
    transform: none !important;
    filter: brightness(1.05);
    border-color: rgba(103, 232, 249, 0.72);
    box-shadow:
        0 10px 24px rgba(34, 211, 238, 0.30),
        0 0 24px rgba(167, 139, 250, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

/* // CHANGED: Header nav buttons cannot stretch, bounce, or spill text. */
body .marketplace-nav .nav-buttons {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
}

body .marketplace-nav .nav-buttons > a {
    position: relative;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    min-height: 31px;
    min-width: max-content;
    max-width: none;
    padding: 7px 9px !important;
    border-radius: 10px !important;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: clamp(10px, 0.72vw, 11.2px) !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    transform: none !important;
    transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

/* // CHANGED: Remove animated shine from header buttons; it was visual noise and contributed to hover instability. */
body .marketplace-nav .nav-buttons > a::before,
body .marketplace-nav .nav-buttons > a::after {
    display: none !important;
}

body .marketplace-nav .nav-buttons > a:hover {
    transform: none !important;
    filter: brightness(1.06);
}

body .marketplace-nav .nav-buttons > a.btn-primary {
    background: rgba(255, 255, 255, 0.055) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body .marketplace-nav .nav-buttons > a.btn-primary:hover {
    border-color: rgba(124, 92, 255, 0.42) !important;
    box-shadow: 0 8px 18px rgba(124, 92, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

body .marketplace-nav .nav-buttons > a.btn-danger {
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.72), rgba(255, 138, 76, 0.62)) !important;
    border: 1px solid rgba(255, 118, 118, 0.22) !important;
    box-shadow: 0 7px 16px rgba(255, 59, 92, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

body .marketplace-nav .chat-nav-btn {
    position: relative;
    isolation: isolate;
    min-width: 78px !important;
    padding-right: 25px !important;
    overflow: hidden !important;
    border: 1px solid rgba(34, 211, 238, 0.38) !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.22), transparent 36%),
        linear-gradient(135deg, rgba(8, 47, 73, 0.88), rgba(49, 46, 129, 0.66)) !important;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.22),
        0 0 12px rgba(34, 211, 238, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body .marketplace-nav .chat-nav-btn:hover {
    transform: none !important;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.26),
        0 0 16px rgba(34, 211, 238, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

body .marketplace-nav .chat-nav-badge,
body .marketplace-nav .badge-inbox {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 9px !important;
    font-weight: 950;
    line-height: 1;
    margin-left: 0 !important;
    background: linear-gradient(135deg, #ff2d55, #ff7a18) !important;
    border: 1px solid rgba(8, 11, 24, 0.98);
    box-shadow: 0 0 10px rgba(255, 45, 85, 0.40);
    pointer-events: none;
}

body .marketplace-header .desktop-logo {
    justify-self: center;
    min-width: 0;
}

body .marketplace-header .desktop-logo img {
    display: block;
    width: clamp(260px, 29vw, 430px) !important;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

body .marketplace-header .header-right-spacer {
    min-width: 0;
    justify-self: stretch;
}

@media (max-width: 1180px) {
    body .marketplace-header.header {
        gap: 14px !important;
    }

    body .marketplace-nav.header-left {
        width: min(100%, 500px);
    }

    body .marketplace-header .desktop-logo img {
        width: clamp(220px, 27vw, 340px) !important;
    }
}

@media (max-width: 900px) {
    body .marketplace-header.header {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        min-height: 0;
        gap: 9px !important;
        padding: 10px 12px 12px !important;
        background: rgba(5, 6, 10, 0.94);
        backdrop-filter: blur(14px) saturate(140%);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
    }

    body .marketplace-header .mobile-header-row {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 46px;
    }

    body .marketplace-header .mobile-brand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        text-decoration: none;
    }

    body .marketplace-header .mobile-brand img {
        width: min(82vw, 340px) !important;
        max-width: 100%;
        height: auto !important;
        object-fit: contain;
    }

    body .marketplace-header .desktop-logo,
    body .marketplace-header .header-right-spacer {
        display: none !important;
    }

    body .marketplace-nav.header-left {
        width: 100%;
        align-items: stretch !important;
        gap: 8px;
    }

    body .marketplace-nav .user-action-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 7px;
        padding: 8px;
        border-radius: 16px;
    }

    body .marketplace-nav .welcome-text {
        width: 100%;
        height: auto;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 12px !important;
    }

    body .marketplace-nav .welcome-link,
    body .marketplace-nav .welcome-link strong {
        max-width: min(250px, 72vw);
    }

    body .marketplace-nav .header-post-cta {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding-inline: 14px;
        font-size: 14px !important;
    }

    body .marketplace-nav .nav-buttons {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
        overflow: visible !important;
        padding: 0 !important;
    }

    body .marketplace-nav .nav-buttons > a {
        width: 100%;
        min-width: 0 !important;
        max-width: none;
        min-height: 36px;
        padding: 8px 6px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 520px) {
    body .marketplace-nav .nav-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .marketplace-nav .nav-buttons > a {
        min-height: 38px;
        font-size: 11px !important;
    }
}

@media (max-width: 360px) {
    body .marketplace-nav .nav-buttons > a {
        font-size: 10px !important;
        padding-inline: 4px !important;
    }
}


/* =========================================================
   // ADDED: INDEX HEADER LOGO CENTERING + DRAGGABLE BANNER FIX
   Reason: desktop logo was visually off-center and announcement needed real mouse drag behavior.
========================================================= */

/* ADDED: Replacement for the old inline empty-state style in index.php. */
.listing-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
}

/* CHANGED: Make draggable rails feel intentional and stop text/image selection while dragging. */
.js-drag-scroll {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.js-drag-scroll.is-dragging {
    cursor: grabbing !important;
    scroll-snap-type: none !important;
}

.js-drag-scroll.is-dragging,
.js-drag-scroll.is-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

.js-drag-scroll.is-dragging a,
.js-drag-scroll.is-dragging img {
    pointer-events: none;
}

/* CHANGED: Announcement must expose true horizontal overflow for mouse dragging. */
.announcement-container.js-drag-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scroll-behavior: auto;
}

.announcement-container.js-drag-scroll .moving-text {
    display: block !important;
    width: max-content !important;
    min-width: 100%;
    overflow: visible !important;
}

.announcement-container.js-drag-scroll .track {
    display: inline-flex !important;
    width: max-content !important;
    min-width: 100%;
    max-width: none !important;
    padding-right: clamp(180px, 32vw, 520px) !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
}

.announcement-container.js-drag-scroll .announcement-copy {
    flex: 0 0 auto;
    white-space: nowrap !important;
}

@media (min-width: 901px) {
    /* CHANGED: hard-center the desktop logo against the viewport, not against leftover grid math. */
    body .marketplace-header.header {
        position: sticky !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
        min-height: 108px;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    body .marketplace-nav.header-left {
        position: relative;
        z-index: 125;
        max-width: min(45vw, 620px);
    }

    body .marketplace-header .desktop-logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        justify-self: auto !important;
        z-index: 105;
        transform: translate(-50%, -50%) !important;
        transform-origin: center center;
    }

    body .marketplace-header .desktop-logo:hover {
        transform: translate(-50%, -50%) scale(1.025) !important;
    }

    body .marketplace-header .desktop-logo img {
        width: clamp(320px, 33vw, 520px) !important;
        max-width: min(52vw, 520px) !important;
        height: auto !important;
    }

    body .marketplace-header .header-right-spacer {
        display: block !important;
        min-width: 0;
    }
}

@media (min-width: 901px) and (max-width: 1160px) {
    /* CHANGED: prevent overlap on narrower desktop/tablet widths while keeping the logo visibly larger. */
    body .marketplace-header .desktop-logo img {
        width: clamp(280px, 29vw, 340px) !important;
        max-width: 42vw !important;
    }

    body .marketplace-nav.header-left {
        max-width: min(48vw, 520px);
    }
}


/* =========================================================
   // ADDED: RESTORE DESKTOP RIGHT-THUMB LISTING CARDS
   Reason: the stylesheet still had the old marketplace card base:
   - .card { flex-direction: column; }
   - .compact-thumb { width: 100%; height: 180px; }
   That forced the old vertical card layout. This block is intentionally
   appended at the end so it wins the cascade without deleting older rules.
   Mobile dense-card rules remain untouched below 768px.
========================================================= */
@media (min-width: 769px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)) !important; /* CHANGED: wider cards for left text + right thumbnail */
        gap: 16px !important; /* CHANGED: tighter, cleaner desktop spacing */
        padding: 34px min(5vw, 72px) 56px !important; /* CHANGED: less dead vertical space */
        align-items: stretch !important; /* ADDED */
    }

    .grid > .card {
        display: grid !important; /* CHANGED: stable horizontal card layout */
        grid-template-columns: minmax(0, 1fr) 118px !important; /* CHANGED: text left, thumbnail right */
        grid-template-areas: "info thumb" !important; /* ADDED */
        align-items: stretch !important; /* ADDED */
        min-height: 132px !important; /* CHANGED */
        padding: 10px !important; /* CHANGED */
        gap: 12px !important; /* CHANGED */
        border-radius: 16px !important; /* CHANGED */
        overflow: hidden !important; /* ADDED */
    }

    .grid > .card:hover {
        transform: translateY(-4px) scale(1.01) !important; /* CHANGED: less jumpy than old large hover */
        box-shadow: 0 20px 46px rgba(124,92,255,0.26), 0 0 0 1px rgba(124,92,255,0.22) !important; /* CHANGED */
    }

    .grid > .card .compact-info {
        grid-area: info !important; /* ADDED */
        order: 1 !important; /* ADDED */
        min-width: 0 !important; /* ADDED */
        height: 100% !important; /* ADDED */
        padding: 7px 4px 7px 6px !important; /* CHANGED */
        display: flex !important; /* ADDED */
        flex-direction: column !important; /* ADDED */
        justify-content: center !important; /* ADDED */
        gap: 7px !important; /* CHANGED */
    }

    .grid > .card .compact-thumb {
        grid-area: thumb !important; /* ADDED */
        order: 2 !important; /* ADDED */
        width: 118px !important; /* CHANGED: fixed right thumbnail */
        height: 112px !important; /* CHANGED */
        min-width: 118px !important; /* ADDED */
        align-self: center !important; /* ADDED */
        border-radius: 13px !important; /* CHANGED */
    }

    .grid > .card .compact-thumb img {
        width: 100% !important; /* ADDED */
        height: 100% !important; /* ADDED */
        object-fit: cover !important; /* ADDED */
    }

    .grid > .card .compact-info h3 {
        min-height: 0 !important; /* CHANGED: old min-height made horizontal cards too tall */
        max-width: 100% !important; /* ADDED */
        font-size: 15px !important; /* CHANGED */
        line-height: 1.22 !important; /* CHANGED */
        -webkit-line-clamp: 2 !important; /* ADDED */
    }

    .grid > .card .listing-title {
        font-size: inherit !important; /* ADDED */
        line-height: inherit !important; /* ADDED */
    }

    .grid > .card .compact-seller {
        max-width: 100% !important; /* ADDED */
        font-size: 11.5px !important; /* CHANGED */
        line-height: 1.2 !important; /* CHANGED */
    }

    .grid > .card .seller-name {
        min-width: 0 !important; /* ADDED */
        overflow: hidden !important; /* ADDED */
        text-overflow: ellipsis !important; /* ADDED */
        white-space: nowrap !important; /* ADDED */
    }

    .grid > .card .card-price {
        margin-top: 2px !important; /* CHANGED */
        padding-top: 0 !important; /* CHANGED */
        font-size: 18px !important; /* CHANGED */
        line-height: 1.05 !important; /* CHANGED */
    }

    .grid > .card .compact-thumb .sold-badge,
    .grid > .card .sold-badge.selling,
    .grid > .card .sold-badge.looking {
        top: 7px !important; /* CHANGED */
        left: 7px !important; /* CHANGED */
        right: auto !important; /* ADDED */
        max-width: calc(100% - 14px) !important; /* ADDED */
        overflow: hidden !important; /* ADDED */
        text-overflow: ellipsis !important; /* ADDED */
        white-space: nowrap !important; /* ADDED */
        font-size: 8px !important; /* CHANGED */
        padding: 3px 6px !important; /* CHANGED */
        border-radius: 6px !important; /* CHANGED */
    }
}

/* // ADDED: medium desktop gets two stable columns instead of cramped pseudo-card columns. */
@media (min-width: 769px) and (max-width: 1080px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding-inline: 18px !important;
    }

    .grid > .card {
        grid-template-columns: minmax(0, 1fr) 108px !important;
    }

    .grid > .card .compact-thumb {
        width: 108px !important;
        min-width: 108px !important;
        height: 104px !important;
    }
}

/* =========================================================
   // ADDED: MOBILE-FIRST MARKETPLACE CARD TYPOGRAPHY + RIGHT THUMB
   Reason: cards must keep the newer layout everywhere:
   - left side: bigger title, smaller seller name, price
   - right side: compact thumbnail
   This block is intentionally last so it wins over older vertical/mobile card rules.
========================================================= */
.grid > .card {
    display: grid !important; /* CHANGED: mobile-first horizontal card layout */
    grid-template-columns: minmax(0, 1fr) clamp(92px, 28vw, 118px) !important; /* CHANGED */
    grid-template-areas: "info thumb" !important; /* ADDED */
    align-items: stretch !important; /* ADDED */
    gap: clamp(8px, 2.4vw, 12px) !important; /* CHANGED */
    min-width: 0 !important; /* ADDED */
}

.grid > .card .compact-info {
    grid-area: info !important; /* ADDED */
    order: 1 !important; /* ADDED */
    min-width: 0 !important; /* ADDED */
    display: flex !important; /* ADDED */
    flex-direction: column !important; /* ADDED */
    justify-content: center !important; /* ADDED */
    gap: clamp(4px, 1.5vw, 7px) !important; /* CHANGED */
    padding: 4px 2px 4px 4px !important; /* CHANGED */
}

.grid > .card .compact-thumb {
    grid-area: thumb !important; /* ADDED */
    order: 2 !important; /* ADDED */
    width: clamp(92px, 28vw, 118px) !important; /* CHANGED */
    min-width: clamp(92px, 28vw, 118px) !important; /* CHANGED */
    height: clamp(86px, 26vw, 112px) !important; /* CHANGED */
    align-self: center !important; /* ADDED */
    border-radius: 12px !important; /* CHANGED */
}

.grid > .card .compact-thumb img {
    width: 100% !important; /* ADDED */
    height: 100% !important; /* ADDED */
    object-fit: cover !important; /* ADDED */
}

.grid > .card .compact-info h3,
.grid > .card .listing-title {
    font-size: clamp(14px, 3.6vw, 18px) !important; /* CHANGED: bigger title, mobile-first */
    line-height: 1.12 !important; /* CHANGED */
    font-weight: 950 !important; /* CHANGED */
    letter-spacing: -0.02em !important; /* ADDED */
    min-height: 0 !important; /* CHANGED */
    max-width: 100% !important; /* ADDED */
    display: -webkit-box !important; /* ADDED */
    -webkit-line-clamp: 2 !important; /* ADDED */
    -webkit-box-orient: vertical !important; /* ADDED */
    overflow: hidden !important; /* ADDED */
    overflow-wrap: anywhere !important; /* ADDED */
}

.grid > .card .compact-seller {
    max-width: 100% !important; /* ADDED */
    font-size: clamp(9px, 2.35vw, 11px) !important; /* CHANGED: smaller seller name */
    line-height: 1.15 !important; /* CHANGED */
    font-weight: 650 !important; /* CHANGED */
    opacity: 0.82 !important; /* ADDED */
    gap: 3px !important; /* CHANGED */
}

.grid > .card .seller-name {
    min-width: 0 !important; /* ADDED */
    overflow: hidden !important; /* ADDED */
    text-overflow: ellipsis !important; /* ADDED */
    white-space: nowrap !important; /* ADDED */
}

.grid > .card .mini-rank {
    flex: 0 0 auto !important; /* ADDED */
    font-size: clamp(9px, 2.3vw, 11px) !important; /* CHANGED */
    line-height: 1 !important; /* ADDED */
}

.grid > .card .card-price {
    margin-top: 0 !important; /* CHANGED */
    padding-top: 0 !important; /* CHANGED */
    font-size: clamp(14px, 3.45vw, 19px) !important; /* CHANGED */
    line-height: 1.05 !important; /* CHANGED */
    font-weight: 1000 !important; /* CHANGED */
    letter-spacing: -0.015em !important; /* ADDED */
}

.grid > .card .compact-thumb .sold-badge,
.grid > .card .sold-badge.selling,
.grid > .card .sold-badge.looking {
    top: 6px !important; /* CHANGED */
    left: 6px !important; /* CHANGED */
    max-width: calc(100% - 12px) !important; /* ADDED */
    overflow: hidden !important; /* ADDED */
    text-overflow: ellipsis !important; /* ADDED */
    white-space: nowrap !important; /* ADDED */
    font-size: clamp(7px, 1.8vw, 8.5px) !important; /* CHANGED */
    padding: 3px 6px !important; /* CHANGED */
    border-radius: 6px !important; /* CHANGED */
}

/* // CHANGED: phones should be readable, not tiny two-column tiles. */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important; /* CHANGED: mobile-first readable list */
        gap: 9px !important; /* CHANGED */
        padding: 12px 9px 28px !important; /* CHANGED */
    }

    .grid > .card {
        min-height: 104px !important; /* ADDED */
        padding: 8px !important; /* CHANGED */
        border-radius: 14px !important; /* CHANGED */
        grid-template-columns: minmax(0, 1fr) clamp(92px, 30vw, 112px) !important; /* CHANGED */
    }

    .grid > .card:hover {
        transform: none !important; /* CHANGED: mobile should not jump */
    }

    .grid > .card .compact-thumb {
        width: clamp(92px, 30vw, 112px) !important; /* CHANGED */
        min-width: clamp(92px, 30vw, 112px) !important; /* CHANGED */
        height: clamp(86px, 28vw, 104px) !important; /* CHANGED */
    }

    .grid > .card .compact-info h3,
    .grid > .card .listing-title {
        font-size: clamp(15px, 4.4vw, 17px) !important; /* CHANGED: bigger mobile title */
        line-height: 1.12 !important; /* CHANGED */
    }

    .grid > .card .compact-seller {
        display: flex !important; /* CHANGED: do not hide seller on small phones */
        font-size: clamp(9px, 2.75vw, 10.5px) !important; /* CHANGED */
    }

    .grid > .card .card-price {
        font-size: clamp(15px, 4.2vw, 18px) !important; /* CHANGED */
    }
}

/* // CHANGED: slightly wider phones can still remain one-column for readability. */
@media (min-width: 520px) and (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important; /* CHANGED: overrides old 3-column phone rule */
        max-width: 680px !important; /* ADDED */
        margin-inline: auto !important; /* ADDED */
    }
}

/* // CHANGED: tiny phones keep the right-thumb layout and just compress dimensions. */
@media (max-width: 360px) {
    .grid > .card {
        grid-template-columns: minmax(0, 1fr) 84px !important; /* CHANGED */
        gap: 7px !important; /* CHANGED */
        padding: 7px !important; /* CHANGED */
    }

    .grid > .card .compact-thumb {
        width: 84px !important; /* CHANGED */
        min-width: 84px !important; /* CHANGED */
        height: 82px !important; /* CHANGED */
    }

    .grid > .card .compact-info h3,
    .grid > .card .listing-title {
        font-size: 14px !important; /* CHANGED */
    }

    .grid > .card .compact-seller {
        display: flex !important; /* CHANGED: overrides old hide rule */
        font-size: 8.75px !important; /* CHANGED */
    }

    .grid > .card .card-price {
        font-size: 14px !important; /* CHANGED */
    }
}

/* // CHANGED: desktop typography final pass. */
@media (min-width: 769px) {
    .grid > .card .compact-info h3,
    .grid > .card .listing-title {
        font-size: clamp(17px, 1.15vw, 20px) !important; /* CHANGED: bigger desktop title */
    }

    .grid > .card .compact-seller {
        font-size: clamp(10px, 0.74vw, 11.5px) !important; /* CHANGED: smaller desktop seller line */
    }
}

/* =========================================================
   // ADDED: OMNI ADMIN VISUAL ENGINE — SAFELY INTEGRATED
   Source was styles(2).css.
   Reason:
   - Keep one CSS file.
   - Prevent admin styles from leaking into marketplace pages.
   - Preserve existing marketplace CSS cascade.
   Notes:
   - Admin-specific rules are scoped to:
     body.omni-page, body.omni-login, body:has(.omni-shell), body:has(.login-stage)
   - --text-dim was renamed to --omni-text-dim to avoid overriding marketplace text color.
========================================================= */
:root {
--neon-cyan:   #00f3ff;
    --neon-pink:   #ff0055;
    --neon-violet: #b14cff;
    --neon-green:  #00ff9d;
    --bg-deep:     #04060c;
    --bg-panel:    rgba(10, 14, 24, 0.55);
    --border-neo:  rgba(0, 243, 255, 0.25);
    --text-soft:   #cfe9ff;
    --omni-text-dim:    #6b7a92;
}

body.omni-page *,
body.omni-login *,
body:has(.omni-shell) *,
body:has(.login-stage) * {
box-sizing:border-box; margin:0; padding:0;
}

body.omni-page,
body.omni-login,
body:has(.omni-shell),
body:has(.login-stage) {
background: radial-gradient(ellipse at top, #0b1428 0%, #04060c 60%, #000 100%);
    color: var(--text-soft);
    font-family: "JetBrains Mono", monospace;
    min-height: 100vh;
    overflow-x: hidden;
    perspective: 1600px;
}

body.omni-page .omni-bg,
body.omni-login .omni-bg,
body:has(.omni-shell) .omni-bg,
body:has(.login-stage) .omni-bg {
position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

body.omni-page #neuralMesh,
body.omni-login #neuralMesh,
body:has(.omni-shell) #neuralMesh,
body:has(.login-stage) #neuralMesh {
position:absolute; inset:0; opacity:0.55;
}

body.omni-page .grid-overlay,
body.omni-login .grid-overlay,
body:has(.omni-shell) .grid-overlay,
body:has(.login-stage) .grid-overlay {
position:absolute; inset:0;
    background-image:
        linear-gradient(rgba(0,243,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,243,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 75%);
}

body.omni-page .scanline,
body.omni-login .scanline,
body:has(.omni-shell) .scanline,
body:has(.login-stage) .scanline {
position:absolute; inset:0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,243,255,0.05) 50%, transparent 100%);
    background-size: 100% 6px;
    animation: scan 8s linear infinite;
    mix-blend-mode: screen;
}

@keyframes scan {
to {
background-position: 0 -800px;
}
}

body.omni-page .login-stage,
body.omni-login .login-stage,
body:has(.omni-shell) .login-stage,
body:has(.login-stage) .login-stage {
position: relative; z-index: 5;
    min-height: 100vh; display: grid; place-items: center;
}

body.omni-page .hex-frame,
body.omni-login .hex-frame,
body:has(.omni-shell) .hex-frame,
body:has(.login-stage) .hex-frame {
position: relative; padding: 2px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink), var(--neon-violet));
    border-radius: 20px;
    animation: borderShift 6s linear infinite;
    box-shadow:
        0 0 60px rgba(0,243,255,0.4),
        0 0 120px rgba(255,0,85,0.2);
}

@keyframes borderShift {
0%,100% {
filter: hue-rotate(0deg);
}

50% {
filter: hue-rotate(60deg);
}
}

body.omni-page .hex-glow,
body.omni-login .hex-glow,
body:has(.omni-shell) .hex-glow,
body:has(.login-stage) .hex-glow {
position:absolute; inset:-30px;
    background: radial-gradient(circle, rgba(0,243,255,0.4), transparent 70%);
    filter: blur(40px); z-index:-1;
    animation: pulse 3s ease infinite;
}

@keyframes pulse {
50% {
opacity:0.6; transform:scale(1.1);
}
}

body.omni-page .login-card,
body.omni-login .login-card,
body:has(.omni-shell) .login-card,
body:has(.login-stage) .login-card {
width: 380px;
    padding: 40px 32px;
    background: var(--bg-panel);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 18px;
}

body.omni-page .login-brand,
body.omni-login .login-brand,
body:has(.omni-shell) .login-brand,
body:has(.login-stage) .login-brand {
text-align:center; margin-bottom: 28px;
}

body.omni-page .logo-orb,
body.omni-login .logo-orb,
body:has(.omni-shell) .logo-orb,
body:has(.login-stage) .logo-orb {
width: 70px; height: 70px; margin: 0 auto 14px;
    background: conic-gradient(from 0deg, var(--neon-cyan), var(--neon-pink), var(--neon-violet), var(--neon-cyan));
    border-radius: 50%;
    box-shadow: 0 0 40px var(--neon-cyan), inset 0 0 20px rgba(0,0,0,0.5);
    animation: spin 6s linear infinite;
    position: relative;
}

body.omni-page .logo-orb::after,
body.omni-login .logo-orb::after,
body:has(.omni-shell) .logo-orb::after,
body:has(.login-stage) .logo-orb::after {
content:""; position:absolute; inset:8px;
    background: var(--bg-deep); border-radius: 50%;
}

body.omni-page .logo-orb.sm,
body.omni-login .logo-orb.sm,
body:has(.omni-shell) .logo-orb.sm,
body:has(.login-stage) .logo-orb.sm {
width:34px; height:34px;
}

body.omni-page .logo-orb.sm::after,
body.omni-login .logo-orb.sm::after,
body:has(.omni-shell) .logo-orb.sm::after,
body:has(.login-stage) .logo-orb.sm::after {
inset:5px;
}

@keyframes spin {
to {
transform: rotate(360deg);
}
}

body.omni-page .login-card h1,
body.omni-login .login-card h1,
body:has(.omni-shell) .login-card h1,
body:has(.login-stage) .login-card h1 {
font-family: "Orbitron", sans-serif;
    font-size: 32px; letter-spacing: 6px;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
}

body.omni-page .login-card h1 span,
body.omni-login .login-card h1 span,
body:has(.omni-shell) .login-card h1 span,
body:has(.login-stage) .login-card h1 span {
color: var(--neon-pink); text-shadow: 0 0 20px var(--neon-pink);
}

body.omni-page .subtitle,
body.omni-login .subtitle,
body:has(.omni-shell) .subtitle,
body:has(.login-stage) .subtitle {
color: var(--omni-text-dim); font-size: 11px; letter-spacing:2px; margin-top:6px;
}

body.omni-page .input-laser,
body.omni-login .input-laser,
body:has(.omni-shell) .input-laser,
body:has(.login-stage) .input-laser {
position: relative; margin-bottom: 18px;
}

body.omni-page .input-laser input,
body.omni-login .input-laser input,
body:has(.omni-shell) .input-laser input,
body:has(.login-stage) .input-laser input {
width: 100%; padding: 14px 16px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--border-neo);
    border-radius: 10px;
    color: var(--neon-cyan);
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 4px; font-size: 14px;
    outline: none; transition: 0.3s;
}

body.omni-page .input-laser input:focus,
body.omni-login .input-laser input:focus,
body:has(.omni-shell) .input-laser input:focus,
body:has(.login-stage) .input-laser input:focus {
border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255,0,85,0.4);
}

body.omni-page .laser-line,
body.omni-login .laser-line,
body:has(.omni-shell) .laser-line,
body:has(.login-stage) .laser-line {
position:absolute; left:10%; right:10%; bottom:-2px; height:2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: laser 2s ease infinite;
}

@keyframes laser {
50% {
opacity:0.3; transform:scaleX(0.6);
}
}

body.omni-page .btn-cyber,
body.omni-login .btn-cyber,
body:has(.omni-shell) .btn-cyber,
body:has(.login-stage) .btn-cyber {
width:100%; padding: 14px; cursor:pointer;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    border: none; border-radius: 10px;
    color: #001018; font-weight: 900;
    font-family: "Orbitron", sans-serif;
    letter-spacing: 4px; font-size: 14px;
    position: relative; overflow: hidden;
    box-shadow: 0 0 30px rgba(0,243,255,0.5);
    transition: 0.2s;
}

body.omni-page .btn-cyber:hover,
body.omni-login .btn-cyber:hover,
body:has(.omni-shell) .btn-cyber:hover,
body:has(.login-stage) .btn-cyber:hover {
box-shadow: 0 0 50px var(--neon-cyan); transform: translateY(-2px);
}

body.omni-page .btn-cyber .arrow,
body.omni-login .btn-cyber .arrow,
body:has(.omni-shell) .btn-cyber .arrow,
body:has(.login-stage) .btn-cyber .arrow {
margin-left: 10px;
}

body.omni-page .error-shake,
body.omni-login .error-shake,
body:has(.omni-shell) .error-shake,
body:has(.login-stage) .error-shake {
background: rgba(255,0,85,0.15);
    border: 1px solid var(--neon-pink);
    color: #ffb1c5; padding: 10px; border-radius: 8px;
    text-align:center; margin-bottom: 14px;
    animation: shake 0.4s;
}

@keyframes shake {
0%,100% {
transform:translateX(0);
}

25% {
transform:translateX(-6px);
}

75% {
transform:translateX(6px);
}
}

body.omni-page .hint-text,
body.omni-login .hint-text,
body:has(.omni-shell) .hint-text,
body:has(.login-stage) .hint-text {
text-align:center; color: var(--omni-text-dim); font-size: 11px; margin-top: 18px; letter-spacing:2px;
}

body.omni-page .omni-shell,
body.omni-login .omni-shell,
body:has(.omni-shell) .omni-shell,
body:has(.login-stage) .omni-shell {
position: relative; z-index: 4;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    transform-style: preserve-3d;
    transition: transform 0.1s;
    will-change: transform;
}

body.omni-page .omni-sidebar,
body.omni-login .omni-sidebar,
body:has(.omni-shell) .omni-sidebar,
body:has(.login-stage) .omni-sidebar {
background: linear-gradient(180deg, rgba(8,12,22,0.85), rgba(4,6,12,0.9));
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-neo);
    padding: 24px 18px;
    display: flex; flex-direction: column;
    box-shadow: 4px 0 40px rgba(0,243,255,0.05);
}

body.omni-page .brand,
body.omni-login .brand,
body:has(.omni-shell) .brand,
body:has(.login-stage) .brand {
display:flex; align-items:center; gap:12px;
    padding-bottom: 22px; margin-bottom: 22px;
    border-bottom: 1px solid var(--border-neo);
}

body.omni-page .brand h2,
body.omni-login .brand h2,
body:has(.omni-shell) .brand h2,
body:has(.login-stage) .brand h2 {
font-family: "Orbitron", sans-serif;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    text-shadow: 0 0 12px var(--neon-cyan);
}

body.omni-page .status-pulse,
body.omni-login .status-pulse,
body:has(.omni-shell) .status-pulse,
body:has(.login-stage) .status-pulse {
color: var(--neon-green); font-size: 10px;
    letter-spacing: 2px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
50% {
opacity:0.4;
}
}

body.omni-page .nav-stack,
body.omni-login .nav-stack,
body:has(.omni-shell) .nav-stack,
body:has(.login-stage) .nav-stack {
display:flex; flex-direction: column; gap: 8px; flex:1;
}

body.omni-page .nav-tab,
body.omni-login .nav-tab,
body:has(.omni-shell) .nav-tab,
body:has(.login-stage) .nav-tab {
position: relative;
    display:flex; align-items:center; gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-soft);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px; letter-spacing: 1px;
    cursor: pointer;
    text-align: left; width:100%;
    overflow: hidden;
    transition: 0.25s;
}

body.omni-page .nav-tab:hover,
body.omni-login .nav-tab:hover,
body:has(.omni-shell) .nav-tab:hover,
body:has(.login-stage) .nav-tab:hover {
background: rgba(0,243,255,0.06);
    border-color: var(--border-neo);
    transform: translateX(4px);
}

body.omni-page .nav-tab.active,
body.omni-login .nav-tab.active,
body:has(.omni-shell) .nav-tab.active,
body:has(.login-stage) .nav-tab.active {
background: linear-gradient(90deg, rgba(0,243,255,0.18), rgba(177,76,255,0.05));
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0,243,255,0.25), inset 0 0 20px rgba(0,243,255,0.08);
}

body.omni-page .nav-tab.active .tab-glow,
body.omni-login .nav-tab.active .tab-glow,
body:has(.omni-shell) .nav-tab.active .tab-glow,
body:has(.login-stage) .nav-tab.active .tab-glow {
position:absolute; left:0; top:0; bottom:0; width: 3px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

body.omni-page .tab-icon,
body.omni-login .tab-icon,
body:has(.omni-shell) .tab-icon,
body:has(.login-stage) .tab-icon {
font-size: 18px;
}

body.omni-page .abuse-tab,
body.omni-login .abuse-tab,
body:has(.omni-shell) .abuse-tab,
body:has(.login-stage) .abuse-tab {
border-color: rgba(255,0,85,0.2);
}

body.omni-page .abuse-tab.active,
body.omni-login .abuse-tab.active,
body:has(.omni-shell) .abuse-tab.active,
body:has(.login-stage) .abuse-tab.active {
background: linear-gradient(90deg, rgba(255,0,85,0.18), rgba(255,0,85,0.02));
    border-color: var(--neon-pink); color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255,0,85,0.3);
}

body.omni-page .abuse-tab.active .tab-glow,
body.omni-login .abuse-tab.active .tab-glow,
body:has(.omni-shell) .abuse-tab.active .tab-glow,
body:has(.login-stage) .abuse-tab.active .tab-glow {
background: var(--neon-pink); box-shadow: 0 0 10px var(--neon-pink);
}

body.omni-page .sidebar-foot,
body.omni-login .sidebar-foot,
body:has(.omni-shell) .sidebar-foot,
body:has(.login-stage) .sidebar-foot {
margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border-neo);
}

body.omni-page .btn-logout,
body.omni-login .btn-logout,
body:has(.omni-shell) .btn-logout,
body:has(.login-stage) .btn-logout {
display:block; padding: 12px; text-align:center;
    background: rgba(255,0,85,0.1);
    border: 1px solid rgba(255,0,85,0.3);
    color: var(--neon-pink); border-radius: 10px;
    text-decoration: none; font-size: 12px;
    letter-spacing: 2px; transition: 0.2s;
}

body.omni-page .btn-logout:hover,
body.omni-login .btn-logout:hover,
body:has(.omni-shell) .btn-logout:hover,
body:has(.login-stage) .btn-logout:hover {
background: var(--neon-pink); color: #fff;
    box-shadow: 0 0 20px var(--neon-pink);
}

body.omni-page .sys-stats,
body.omni-login .sys-stats,
body:has(.omni-shell) .sys-stats,
body:has(.login-stage) .sys-stats {
margin-top: 14px; font-size: 10px; color: var(--omni-text-dim);
    display:flex; flex-direction: column; gap: 4px;
}

body.omni-page .sys-stats .green,
body.omni-login .sys-stats .green,
body:has(.omni-shell) .sys-stats .green,
body:has(.login-stage) .sys-stats .green {
color: var(--neon-green);
}

body.omni-page .omni-main,
body.omni-login .omni-main,
body:has(.omni-shell) .omni-main,
body:has(.login-stage) .omni-main {
padding: 20px 28px 32px;
    overflow: hidden;
    transform-style: preserve-3d;
}

body.omni-page .top-bar,
body.omni-login .top-bar,
body:has(.omni-shell) .top-bar,
body:has(.login-stage) .top-bar {
display:flex; justify-content: space-between; align-items: center;
    padding: 14px 22px; margin-bottom: 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border-neo);
    backdrop-filter: blur(14px);
    border-radius: 14px;
}

body.omni-page .breadcrumb,
body.omni-login .breadcrumb,
body:has(.omni-shell) .breadcrumb,
body:has(.login-stage) .breadcrumb {
font-family: "Orbitron", sans-serif; letter-spacing: 3px;
    font-size: 13px;
}

body.omni-page .bc-root,
body.omni-login .bc-root,
body:has(.omni-shell) .bc-root,
body:has(.login-stage) .bc-root {
color: var(--omni-text-dim);
}

body.omni-page .bc-sep,
body.omni-login .bc-sep,
body:has(.omni-shell) .bc-sep,
body:has(.login-stage) .bc-sep {
color: var(--neon-cyan); margin: 0 10px;
}

body.omni-page .bc-current,
body.omni-login .bc-current,
body:has(.omni-shell) .bc-current,
body:has(.login-stage) .bc-current {
color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan);
}

body.omni-page .indicator,
body.omni-login .indicator,
body:has(.omni-shell) .indicator,
body:has(.login-stage) .indicator {
display:flex; align-items:center; gap:8px;
    font-size: 11px; color: var(--omni-text-dim); letter-spacing:2px;
}

body.omni-page .dot,
body.omni-login .dot,
body:has(.omni-shell) .dot,
body:has(.login-stage) .dot {
width:8px; height:8px; border-radius:50%; background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

body.omni-page .dot.pulse,
body.omni-login .dot.pulse,
body:has(.omni-shell) .dot.pulse,
body:has(.login-stage) .dot.pulse {
animation: blink 1.2s infinite;
}

body.omni-page .viewport-3d,
body.omni-login .viewport-3d,
body:has(.omni-shell) .viewport-3d,
body:has(.login-stage) .viewport-3d {
transform-style: preserve-3d;
    transform: translateZ(20px);
}

body.omni-page .hologram-panel,
body.omni-login .hologram-panel,
body:has(.omni-shell) .hologram-panel,
body:has(.login-stage) .hologram-panel {
position: relative;
    min-height: 70vh;
    background: linear-gradient(135deg, rgba(10,14,24,0.7), rgba(4,6,12,0.5));
    border: 1px solid var(--border-neo);
    border-radius: 18px;
    backdrop-filter: blur(24px) saturate(160%);
    padding: 28px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        inset 0 0 60px rgba(0,243,255,0.03);
    overflow: hidden;
}

body.omni-page .hologram-panel::before,
body.omni-login .hologram-panel::before,
body:has(.omni-shell) .hologram-panel::before,
body:has(.login-stage) .hologram-panel::before {
content:""; position:absolute; inset:0;
    background:
        linear-gradient(180deg, rgba(0,243,255,0.5), transparent 4%),
        linear-gradient(180deg, transparent 96%, rgba(255,0,85,0.4));
    pointer-events: none; opacity: 0.4;
}

body.omni-page .loader,
body.omni-login .loader,
body:has(.omni-shell) .loader,
body:has(.login-stage) .loader {
display:flex; flex-direction:column; align-items:center; justify-content:center;
    height: 60vh; gap: 24px;
    color: var(--neon-cyan);
    font-family: "Orbitron", sans-serif;
    letter-spacing: 4px; font-size: 12px;
}

body.omni-page .laser-scan,
body.omni-login .laser-scan,
body:has(.omni-shell) .laser-scan,
body:has(.login-stage) .laser-scan {
width: 240px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-pink), transparent);
    border-radius: 4px;
    box-shadow: 0 0 30px var(--neon-cyan);
    animation: laserScan 1.4s ease-in-out infinite;
}

@keyframes laserScan {
0%,100% {
transform: scaleX(0.3); opacity:0.4;
}

50% {
transform: scaleX(1.3); opacity:1;
}
}

body.omni-page .module-fade,
body.omni-login .module-fade,
body:has(.omni-shell) .module-fade,
body:has(.login-stage) .module-fade {
animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
from {
opacity:0; transform: translateY(20px) scale(0.98); filter: blur(6px);
}

to {
opacity:1; transform: translateY(0)    scale(1);    filter: blur(0);
}
}

body.omni-page .ripple-fx,
body.omni-login .ripple-fx,
body:has(.omni-shell) .ripple-fx,
body:has(.login-stage) .ripple-fx {
position:absolute; border-radius:50%;
    width: 8px; height: 8px;
    background: rgba(0,243,255,0.6);
    transform: translate(-50%,-50%) scale(1);
    animation: ripple 0.7s ease-out forwards;
    pointer-events:none;
}

@keyframes ripple {
to {
transform: translate(-50%,-50%) scale(40); opacity: 0;
}
}

body.omni-page .hologram-panel .form-container,
body.omni-login .hologram-panel .form-container,
body:has(.omni-shell) .hologram-panel .form-container,
body:has(.login-stage) .hologram-panel .form-container,
body.omni-page .hologram-panel .admin-wrap,
body.omni-login .hologram-panel .admin-wrap,
body:has(.omni-shell) .hologram-panel .admin-wrap,
body:has(.login-stage) .hologram-panel .admin-wrap,
body.omni-page .hologram-panel .panel,
body.omni-login .hologram-panel .panel,
body:has(.omni-shell) .hologram-panel .panel,
body:has(.login-stage) .hologram-panel .panel,
body.omni-page .hologram-panel .login-box,
body.omni-login .hologram-panel .login-box,
body:has(.omni-shell) .hologram-panel .login-box,
body:has(.login-stage) .hologram-panel .login-box {
background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

body.omni-page .hologram-panel h1,
body.omni-login .hologram-panel h1,
body:has(.omni-shell) .hologram-panel h1,
body:has(.login-stage) .hologram-panel h1,
body.omni-page .hologram-panel h2,
body.omni-login .hologram-panel h2,
body:has(.omni-shell) .hologram-panel h2,
body:has(.login-stage) .hologram-panel h2,
body.omni-page .hologram-panel h3,
body.omni-login .hologram-panel h3,
body:has(.omni-shell) .hologram-panel h3,
body:has(.login-stage) .hologram-panel h3 {
font-family: "Orbitron", sans-serif;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0,243,255,0.4);
    margin-bottom: 18px;
}

body.omni-page .hologram-panel input,
body.omni-login .hologram-panel input,
body:has(.omni-shell) .hologram-panel input,
body:has(.login-stage) .hologram-panel input,
body.omni-page .hologram-panel select,
body.omni-login .hologram-panel select,
body:has(.omni-shell) .hologram-panel select,
body:has(.login-stage) .hologram-panel select,
body.omni-page .hologram-panel textarea,
body.omni-login .hologram-panel textarea,
body:has(.omni-shell) .hologram-panel textarea,
body:has(.login-stage) .hologram-panel textarea {
background: rgba(0,0,0,0.5) !important;
    border: 1px solid var(--border-neo) !important;
    color: var(--text-soft) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    font-family: "JetBrains Mono", monospace !important;
    transition: 0.2s;
}

body.omni-page .hologram-panel input:focus,
body.omni-login .hologram-panel input:focus,
body:has(.omni-shell) .hologram-panel input:focus,
body:has(.login-stage) .hologram-panel input:focus,
body.omni-page .hologram-panel select:focus,
body.omni-login .hologram-panel select:focus,
body:has(.omni-shell) .hologram-panel select:focus,
body:has(.login-stage) .hologram-panel select:focus,
body.omni-page .hologram-panel textarea:focus,
body.omni-login .hologram-panel textarea:focus,
body:has(.omni-shell) .hologram-panel textarea:focus,
body:has(.login-stage) .hologram-panel textarea:focus {
border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 16px rgba(0,243,255,0.3) !important;
    outline: none;
}

body.omni-page .hologram-panel button,
body.omni-login .hologram-panel button,
body:has(.omni-shell) .hologram-panel button,
body:has(.login-stage) .hologram-panel button,
body.omni-page .hologram-panel .btn,
body.omni-login .hologram-panel .btn,
body:has(.omni-shell) .hologram-panel .btn,
body:has(.login-stage) .hologram-panel .btn,
body.omni-page .hologram-panel .btn-primary,
body.omni-login .hologram-panel .btn-primary,
body:has(.omni-shell) .hologram-panel .btn-primary,
body:has(.login-stage) .hologram-panel .btn-primary {
background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet)) !important;
    color: #001018 !important;
    border: none !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-weight: 800 !important;
    font-family: "Orbitron", sans-serif !important;
    letter-spacing: 2px !important;
    box-shadow: 0 0 16px rgba(0,243,255,0.4) !important;
    transition: 0.2s !important;
    position: relative;
    overflow: hidden;
}

body.omni-page .hologram-panel button:hover,
body.omni-login .hologram-panel button:hover,
body:has(.omni-shell) .hologram-panel button:hover,
body:has(.login-stage) .hologram-panel button:hover,
body.omni-page .hologram-panel .btn-primary:hover,
body.omni-login .hologram-panel .btn-primary:hover,
body:has(.omni-shell) .hologram-panel .btn-primary:hover,
body:has(.login-stage) .hologram-panel .btn-primary:hover {
transform: translateY(-2px);
    box-shadow: 0 0 28px var(--neon-cyan) !important;
}

body.omni-page .hologram-panel .btn-danger,
body.omni-login .hologram-panel .btn-danger,
body:has(.omni-shell) .hologram-panel .btn-danger,
body:has(.login-stage) .hologram-panel .btn-danger,
body.omni-page .hologram-panel a[href*="delete"],
body.omni-login .hologram-panel a[href*="delete"],
body:has(.omni-shell) .hologram-panel a[href*="delete"],
body:has(.login-stage) .hologram-panel a[href*="delete"] {
background: linear-gradient(135deg, var(--neon-pink), #7a0029) !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(255,0,85,0.4) !important;
}

body.omni-page .hologram-panel .user-card,
body.omni-login .hologram-panel .user-card,
body:has(.omni-shell) .hologram-panel .user-card,
body:has(.login-stage) .hologram-panel .user-card,
body.omni-page .hologram-panel .card,
body.omni-login .hologram-panel .card,
body:has(.omni-shell) .hologram-panel .card,
body:has(.login-stage) .hologram-panel .card {
background: rgba(255,255,255,0.03) !important;
    border: 1px solid var(--border-neo) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-top: 12px;
    transition: 0.2s;
}

body.omni-page .hologram-panel .user-card:hover,
body.omni-login .hologram-panel .user-card:hover,
body:has(.omni-shell) .hologram-panel .user-card:hover,
body:has(.login-stage) .hologram-panel .user-card:hover,
body.omni-page .hologram-panel .card:hover,
body.omni-login .hologram-panel .card:hover,
body:has(.omni-shell) .hologram-panel .card:hover,
body:has(.login-stage) .hologram-panel .card:hover {
border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 22px rgba(0,243,255,0.2) !important;
    transform: translateY(-2px);
}

body.omni-page .omni-error,
body.omni-login .omni-error,
body:has(.omni-shell) .omni-error,
body:has(.login-stage) .omni-error {
padding: 20px; text-align:center;
    background: rgba(255,0,85,0.1);
    border: 1px solid var(--neon-pink);
    border-radius: 12px;
    color: var(--neon-pink);
}

body.omni-page .abuse-grid,
body.omni-login .abuse-grid,
body:has(.omni-shell) .abuse-grid,
body:has(.login-stage) .abuse-grid {
display:grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px; margin-top: 18px;
}

body.omni-page .abuse-card,
body.omni-login .abuse-card,
body:has(.omni-shell) .abuse-card,
body:has(.login-stage) .abuse-card {
background: rgba(255,0,85,0.04) !important;
    border: 1px solid rgba(255,0,85,0.25) !important;
    border-radius: 14px;
    padding: 16px;
    display:flex; flex-direction: column; gap: 10px;
}

body.omni-page .abuse-card h4,
body.omni-login .abuse-card h4,
body:has(.omni-shell) .abuse-card h4,
body:has(.login-stage) .abuse-card h4 {
color: var(--neon-pink); font-family: "Orbitron", sans-serif;
    letter-spacing: 1px; font-size: 14px;
}

body.omni-page .abuse-card .meta,
body.omni-login .abuse-card .meta,
body:has(.omni-shell) .abuse-card .meta,
body:has(.login-stage) .abuse-card .meta {
font-size: 11px; color: var(--omni-text-dim);
}

body.omni-page .abuse-card .desc,
body.omni-login .abuse-card .desc,
body:has(.omni-shell) .abuse-card .desc,
body:has(.login-stage) .abuse-card .desc {
font-size: 12px; color: var(--text-soft);
    max-height: 80px; overflow: hidden;
    text-overflow: ellipsis;
    border-left: 2px solid var(--neon-pink); padding-left: 10px;
}

body.omni-page .abuse-actions,
body.omni-login .abuse-actions,
body:has(.omni-shell) .abuse-actions,
body:has(.login-stage) .abuse-actions {
display:flex; gap:6px; flex-wrap:wrap;
}

body.omni-page .abuse-actions select,
body.omni-login .abuse-actions select,
body:has(.omni-shell) .abuse-actions select,
body:has(.login-stage) .abuse-actions select {
flex:1; min-width: 140px;
}

body.omni-page .toast,
body.omni-login .toast,
body:has(.omni-shell) .toast,
body:has(.login-stage) .toast {
position: fixed; bottom: 30px; right: 30px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    color: #001018; padding: 14px 22px; border-radius: 12px;
    font-weight: 800; letter-spacing: 1px;
    box-shadow: 0 0 30px var(--neon-cyan);
    z-index: 9999;
    animation: toastIn 0.3s, toastOut 0.3s 2.5s forwards;
}

@keyframes toastIn {
from {
transform:translateY(40px); opacity:0;
}
}

@keyframes toastOut {
to {
transform:translateY(40px); opacity:0;
}
}

@media (max-width: 900px) {
body.omni-page .omni-shell,
body.omni-login .omni-shell,
body:has(.omni-shell) .omni-shell,
body:has(.login-stage) .omni-shell {
grid-template-columns: 1fr;
}

body.omni-page .omni-sidebar,
body.omni-login .omni-sidebar,
body:has(.omni-shell) .omni-sidebar,
body:has(.login-stage) .omni-sidebar {
border-right: none; border-bottom: 1px solid var(--border-neo);
}

body.omni-page .nav-stack,
body.omni-login .nav-stack,
body:has(.omni-shell) .nav-stack,
body:has(.login-stage) .nav-stack {
flex-direction: row; flex-wrap: wrap;
}
}

body.omni-page.page-leaving .hologram-panel,
body.omni-login.page-leaving .hologram-panel,
body:has(.omni-shell).page-leaving .hologram-panel,
body:has(.login-stage).page-leaving .hologram-panel {
opacity: 0;
    transform: translateY(-10px) scale(0.99);
    filter: blur(4px);
    transition: all 0.22s ease;
}

body.omni-page .abuse-search,
body.omni-login .abuse-search,
body:has(.omni-shell) .abuse-search,
body:has(.login-stage) .abuse-search {
display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap;
}

body.omni-page .abuse-search input[type=text],
body.omni-login .abuse-search input[type=text],
body:has(.omni-shell) .abuse-search input[type=text],
body:has(.login-stage) .abuse-search input[type=text] {
flex:1; min-width:240px;
}

body.omni-page .btn-clear,
body.omni-login .btn-clear,
body:has(.omni-shell) .btn-clear,
body:has(.login-stage) .btn-clear {
padding:12px 16px;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--border-neo) !important;
    border-radius: 10px;
    color: var(--text-soft) !important;
    text-decoration: none;
    font-family: "Orbitron", sans-serif;
    letter-spacing: 2px;
    font-size: 12px;
    display: inline-flex; align-items: center;
}

body.omni-page .abuse-empty,
body.omni-login .abuse-empty,
body:has(.omni-shell) .abuse-empty,
body:has(.login-stage) .abuse-empty {
grid-column: 1/-1;
    text-align:center; padding:40px;
    color: var(--omni-text-dim);
    font-size: 13px;
}

body.omni-page .btn-purge,
body.omni-login .btn-purge,
body:has(.omni-shell) .btn-purge,
body:has(.login-stage) .btn-purge {
background: linear-gradient(135deg, var(--neon-pink), #7a0029) !important;
    color:#fff !important;
    box-shadow: 0 0 16px rgba(255,0,85,0.4) !important;
}

body.omni-page .btn-purge:disabled,
body.omni-login .btn-purge:disabled,
body:has(.omni-shell) .btn-purge:disabled,
body:has(.login-stage) .btn-purge:disabled {
opacity:0.5; cursor: not-allowed;
}

body.omni-page #toastStack,
body.omni-login #toastStack,
body:has(.omni-shell) #toastStack,
body:has(.login-stage) #toastStack {
position: fixed; bottom: 24px; right: 24px;
    display: flex; flex-direction: column-reverse; gap: 10px;
    z-index: 99999;
}

body.omni-page .toast,
body.omni-login .toast,
body:has(.omni-shell) .toast,
body:has(.login-stage) .toast {
background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    color: #001018;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 0 30px rgba(0,243,255,0.5);
    animation: toastIn 0.3s ease;
    transition: all 0.3s ease;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    max-width: 380px;
}

body.omni-page .toast.toast-error,
body.omni-login .toast.toast-error,
body:has(.omni-shell) .toast.toast-error,
body:has(.login-stage) .toast.toast-error {
background: linear-gradient(135deg, var(--neon-pink), #7a0029);
    color: #fff;
    box-shadow: 0 0 30px rgba(255,0,85,0.5);
}

body.omni-page .toast.out,
body.omni-login .toast.out,
body:has(.omni-shell) .toast.out,
body:has(.login-stage) .toast.out {
opacity:0; transform: translateX(40px);
}

@keyframes toastIn {
from {
opacity:0; transform: translateX(40px);
}
}

body.omni-page img,
body.omni-login img,
body:has(.omni-shell) img,
body:has(.login-stage) img,
body.omni-page video,
body.omni-login video,
body:has(.omni-shell) video,
body:has(.login-stage) video,
body.omni-page canvas,
body.omni-login canvas,
body:has(.omni-shell) canvas,
body:has(.login-stage) canvas,
body.omni-page svg,
body.omni-login svg,
body:has(.omni-shell) svg,
body:has(.login-stage) svg {
max-width: 100%;
    height: auto;
}

body.omni-page input,
body.omni-login input,
body:has(.omni-shell) input,
body:has(.login-stage) input,
body.omni-page select,
body.omni-login select,
body:has(.omni-shell) select,
body:has(.login-stage) select,
body.omni-page textarea,
body.omni-login textarea,
body:has(.omni-shell) textarea,
body:has(.login-stage) textarea,
body.omni-page button,
body.omni-login button,
body:has(.omni-shell) button,
body:has(.login-stage) button {
max-width: 100%;
    font: inherit;
}

body.omni-page .hologram-panel,
body.omni-login .hologram-panel,
body:has(.omni-shell) .hologram-panel,
body:has(.login-stage) .hologram-panel,
body.omni-page .hologram-panel *,
body.omni-login .hologram-panel *,
body:has(.omni-shell) .hologram-panel *,
body:has(.login-stage) .hologram-panel * {
min-width: 0;
}

body.omni-page .hologram-panel,
body.omni-login .hologram-panel,
body:has(.omni-shell) .hologram-panel,
body:has(.login-stage) .hologram-panel,
body.omni-page .abuse-card,
body.omni-login .abuse-card,
body:has(.omni-shell) .abuse-card,
body:has(.login-stage) .abuse-card,
body.omni-page .toast,
body.omni-login .toast,
body:has(.omni-shell) .toast,
body:has(.login-stage) .toast,
body.omni-page .breadcrumb,
body.omni-login .breadcrumb,
body:has(.omni-shell) .breadcrumb,
body:has(.login-stage) .breadcrumb,
body.omni-page .nav-tab,
body.omni-login .nav-tab,
body:has(.omni-shell) .nav-tab,
body:has(.login-stage) .nav-tab,
body.omni-page .hologram-panel .card,
body.omni-login .hologram-panel .card,
body:has(.omni-shell) .hologram-panel .card,
body:has(.login-stage) .hologram-panel .card,
body.omni-page .hologram-panel .user-card,
body.omni-login .hologram-panel .user-card,
body:has(.omni-shell) .hologram-panel .user-card,
body:has(.login-stage) .hologram-panel .user-card {
overflow-wrap: anywhere;
}

body.omni-page a,
body.omni-login a,
body:has(.omni-shell) a,
body:has(.login-stage) a,
body.omni-page button,
body.omni-login button,
body:has(.omni-shell) button,
body:has(.login-stage) button,
body.omni-page .nav-tab,
body.omni-login .nav-tab,
body:has(.omni-shell) .nav-tab,
body:has(.login-stage) .nav-tab,
body.omni-page .btn-cyber,
body.omni-login .btn-cyber,
body:has(.omni-shell) .btn-cyber,
body:has(.login-stage) .btn-cyber,
body.omni-page .btn-logout,
body.omni-login .btn-logout,
body:has(.omni-shell) .btn-logout,
body:has(.login-stage) .btn-logout,
body.omni-page .btn-clear,
body.omni-login .btn-clear,
body:has(.omni-shell) .btn-clear,
body:has(.login-stage) .btn-clear,
body.omni-page .hologram-panel button,
body.omni-login .hologram-panel button,
body:has(.omni-shell) .hologram-panel button,
body:has(.login-stage) .hologram-panel button,
body.omni-page .hologram-panel .btn,
body.omni-login .hologram-panel .btn,
body:has(.omni-shell) .hologram-panel .btn,
body:has(.login-stage) .hologram-panel .btn,
body.omni-page .hologram-panel .btn-primary,
body.omni-login .hologram-panel .btn-primary,
body:has(.omni-shell) .hologram-panel .btn-primary,
body:has(.login-stage) .hologram-panel .btn-primary,
body.omni-page .hologram-panel .btn-danger,
body.omni-login .hologram-panel .btn-danger,
body:has(.omni-shell) .hologram-panel .btn-danger,
body:has(.login-stage) .hologram-panel .btn-danger,
body.omni-page .hologram-panel a[href*="delete"],
body.omni-login .hologram-panel a[href*="delete"],
body:has(.omni-shell) .hologram-panel a[href*="delete"],
body:has(.login-stage) .hologram-panel a[href*="delete"] {
min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

body.omni-page .login-stage,
body.omni-login .login-stage,
body:has(.omni-shell) .login-stage,
body:has(.login-stage) .login-stage {
padding: 16px;
}

body.omni-page .hex-frame,
body.omni-login .hex-frame,
body:has(.omni-shell) .hex-frame,
body:has(.login-stage) .hex-frame,
body.omni-page .login-card,
body.omni-login .login-card,
body:has(.omni-shell) .login-card,
body:has(.login-stage) .login-card {
width: min(100%, 420px);
}

body.omni-page .login-card,
body.omni-login .login-card,
body:has(.omni-shell) .login-card,
body:has(.login-stage) .login-card {
padding: clamp(24px, 7vw, 40px) clamp(18px, 6vw, 32px);
}

body.omni-page .input-laser input,
body.omni-login .input-laser input,
body:has(.omni-shell) .input-laser input,
body:has(.login-stage) .input-laser input,
body.omni-page .btn-cyber,
body.omni-login .btn-cyber,
body:has(.omni-shell) .btn-cyber,
body:has(.login-stage) .btn-cyber {
min-height: 44px;
}

@media (max-width: 1100px) {
body.omni-page .omni-shell,
body.omni-login .omni-shell,
body:has(.omni-shell) .omni-shell,
body:has(.login-stage) .omni-shell {
grid-template-columns: 230px minmax(0, 1fr);
}

body.omni-page .omni-sidebar,
body.omni-login .omni-sidebar,
body:has(.omni-shell) .omni-sidebar,
body:has(.login-stage) .omni-sidebar {
padding: 18px 14px;
}

body.omni-page .hologram-panel,
body.omni-login .hologram-panel,
body:has(.omni-shell) .hologram-panel,
body:has(.login-stage) .hologram-panel {
padding: 18px;
}

body.omni-page .abuse-grid,
body.omni-login .abuse-grid,
body:has(.omni-shell) .abuse-grid,
body:has(.login-stage) .abuse-grid {
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
}

@media (max-width: 900px) {
body.omni-page,
body.omni-login,
body:has(.omni-shell),
body:has(.login-stage) {
perspective: none;
}

body.omni-page .omni-shell,
body.omni-login .omni-shell,
body:has(.omni-shell) .omni-shell,
body:has(.login-stage) .omni-shell {
grid-template-columns: 1fr;
        min-height: 100dvh;
        transform: none !important;
}

body.omni-page .omni-sidebar,
body.omni-login .omni-sidebar,
body:has(.omni-shell) .omni-sidebar,
body:has(.login-stage) .omni-sidebar {
position: sticky;
        top: 0;
        z-index: 20;
        border-right: none;
        border-bottom: 1px solid var(--border-neo);
        padding: 14px;
}

body.omni-page .brand,
body.omni-login .brand,
body:has(.omni-shell) .brand,
body:has(.login-stage) .brand {
margin-bottom: 12px;
        padding-bottom: 12px;
}

body.omni-page .nav-stack,
body.omni-login .nav-stack,
body:has(.omni-shell) .nav-stack,
body:has(.login-stage) .nav-stack {
flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
}

body.omni-page .nav-tab,
body.omni-login .nav-tab,
body:has(.omni-shell) .nav-tab,
body:has(.login-stage) .nav-tab {
flex: 0 0 auto;
        padding: 12px 14px;
        white-space: nowrap;
}

body.omni-page .sidebar-foot,
body.omni-login .sidebar-foot,
body:has(.omni-shell) .sidebar-foot,
body:has(.login-stage) .sidebar-foot {
margin-top: 12px;
        padding-top: 12px;
}

body.omni-page .omni-main,
body.omni-login .omni-main,
body:has(.omni-shell) .omni-main,
body:has(.login-stage) .omni-main {
padding: 16px;
}

body.omni-page .top-bar,
body.omni-login .top-bar,
body:has(.omni-shell) .top-bar,
body:has(.login-stage) .top-bar {
align-items: flex-start;
        flex-direction: column;
        gap: 10px;
}

body.omni-page .breadcrumb,
body.omni-login .breadcrumb,
body:has(.omni-shell) .breadcrumb,
body:has(.login-stage) .breadcrumb {
line-height: 1.5;
}

body.omni-page .hologram-panel,
body.omni-login .hologram-panel,
body:has(.omni-shell) .hologram-panel,
body:has(.login-stage) .hologram-panel {
padding: 16px;
        border-radius: 16px;
}
}

@media (max-width: 640px) {
body.omni-page,
body.omni-login,
body:has(.omni-shell),
body:has(.login-stage) {
font-size: 15px;
        line-height: 1.55;
}

body.omni-page .login-card h1,
body.omni-login .login-card h1,
body:has(.omni-shell) .login-card h1,
body:has(.login-stage) .login-card h1 {
font-size: clamp(24px, 9vw, 32px);
        letter-spacing: 4px;
}

body.omni-page .subtitle,
body.omni-login .subtitle,
body:has(.omni-shell) .subtitle,
body:has(.login-stage) .subtitle,
body.omni-page .hint-text,
body.omni-login .hint-text,
body:has(.omni-shell) .hint-text,
body:has(.login-stage) .hint-text {
letter-spacing: 1px;
        line-height: 1.45;
}

body.omni-page .brand,
body.omni-login .brand,
body:has(.omni-shell) .brand,
body:has(.login-stage) .brand {
align-items: flex-start;
        flex-direction: column;
        gap: 8px;
}

body.omni-page .brand h2,
body.omni-login .brand h2,
body:has(.omni-shell) .brand h2,
body:has(.login-stage) .brand h2 {
font-size: 18px;
        letter-spacing: 2px;
}

body.omni-page .sys-stats,
body.omni-login .sys-stats,
body:has(.omni-shell) .sys-stats,
body:has(.login-stage) .sys-stats {
width: 100%;
}

body.omni-page .btn-logout,
body.omni-login .btn-logout,
body:has(.omni-shell) .btn-logout,
body:has(.login-stage) .btn-logout,
body.omni-page .btn-clear,
body.omni-login .btn-clear,
body:has(.omni-shell) .btn-clear,
body:has(.login-stage) .btn-clear,
body.omni-page .hologram-panel button,
body.omni-login .hologram-panel button,
body:has(.omni-shell) .hologram-panel button,
body:has(.login-stage) .hologram-panel button,
body.omni-page .hologram-panel .btn,
body.omni-login .hologram-panel .btn,
body:has(.omni-shell) .hologram-panel .btn,
body:has(.login-stage) .hologram-panel .btn,
body.omni-page .hologram-panel .btn-primary,
body.omni-login .hologram-panel .btn-primary,
body:has(.omni-shell) .hologram-panel .btn-primary,
body:has(.login-stage) .hologram-panel .btn-primary,
body.omni-page .hologram-panel .btn-danger,
body.omni-login .hologram-panel .btn-danger,
body:has(.omni-shell) .hologram-panel .btn-danger,
body:has(.login-stage) .hologram-panel .btn-danger,
body.omni-page .hologram-panel a[href*="delete"],
body.omni-login .hologram-panel a[href*="delete"],
body:has(.omni-shell) .hologram-panel a[href*="delete"],
body:has(.login-stage) .hologram-panel a[href*="delete"] {
width: 100%;
        justify-content: center;
        text-align: center;
}

body.omni-page .hologram-panel h1,
body.omni-login .hologram-panel h1,
body:has(.omni-shell) .hologram-panel h1,
body:has(.login-stage) .hologram-panel h1,
body.omni-page .hologram-panel h2,
body.omni-login .hologram-panel h2,
body:has(.omni-shell) .hologram-panel h2,
body:has(.login-stage) .hologram-panel h2,
body.omni-page .hologram-panel h3,
body.omni-login .hologram-panel h3,
body:has(.omni-shell) .hologram-panel h3,
body:has(.login-stage) .hologram-panel h3 {
font-size: clamp(20px, 6vw, 26px);
        line-height: 1.25;
        letter-spacing: 1px;
}

body.omni-page .hologram-panel input,
body.omni-login .hologram-panel input,
body:has(.omni-shell) .hologram-panel input,
body:has(.login-stage) .hologram-panel input,
body.omni-page .hologram-panel select,
body.omni-login .hologram-panel select,
body:has(.omni-shell) .hologram-panel select,
body:has(.login-stage) .hologram-panel select,
body.omni-page .hologram-panel textarea,
body.omni-login .hologram-panel textarea,
body:has(.omni-shell) .hologram-panel textarea,
body:has(.login-stage) .hologram-panel textarea,
body.omni-page .input-laser input,
body.omni-login .input-laser input,
body:has(.omni-shell) .input-laser input,
body:has(.login-stage) .input-laser input {
min-height: 44px;
        font-size: 16px;
}

body.omni-page .hologram-panel .form-container,
body.omni-login .hologram-panel .form-container,
body:has(.omni-shell) .hologram-panel .form-container,
body:has(.login-stage) .hologram-panel .form-container,
body.omni-page .hologram-panel .admin-wrap,
body.omni-login .hologram-panel .admin-wrap,
body:has(.omni-shell) .hologram-panel .admin-wrap,
body:has(.login-stage) .hologram-panel .admin-wrap,
body.omni-page .hologram-panel .panel,
body.omni-login .hologram-panel .panel,
body:has(.omni-shell) .hologram-panel .panel,
body:has(.login-stage) .hologram-panel .panel,
body.omni-page .hologram-panel .login-box,
body.omni-login .hologram-panel .login-box,
body:has(.omni-shell) .hologram-panel .login-box,
body:has(.login-stage) .hologram-panel .login-box {
padding: 14px;
        border-radius: 14px;
}

body.omni-page .abuse-search,
body.omni-login .abuse-search,
body:has(.omni-shell) .abuse-search,
body:has(.login-stage) .abuse-search {
flex-direction: column;
}

body.omni-page .abuse-search input[type="text"],
body.omni-login .abuse-search input[type="text"],
body:has(.omni-shell) .abuse-search input[type="text"],
body:has(.login-stage) .abuse-search input[type="text"] {
min-width: 0;
        width: 100%;
}

body.omni-page .abuse-grid,
body.omni-login .abuse-grid,
body:has(.omni-shell) .abuse-grid,
body:has(.login-stage) .abuse-grid {
grid-template-columns: 1fr;
}

body.omni-page .abuse-actions,
body.omni-login .abuse-actions,
body:has(.omni-shell) .abuse-actions,
body:has(.login-stage) .abuse-actions {
flex-direction: column;
}

body.omni-page .abuse-actions select,
body.omni-login .abuse-actions select,
body:has(.omni-shell) .abuse-actions select,
body:has(.login-stage) .abuse-actions select {
min-width: 0;
        width: 100%;
        min-height: 44px;
}

body.omni-page #toastStack,
body.omni-login #toastStack,
body:has(.omni-shell) #toastStack,
body:has(.login-stage) #toastStack {
left: 12px;
        right: 12px;
        bottom: 12px;
}

body.omni-page .toast,
body.omni-login .toast,
body:has(.omni-shell) .toast,
body:has(.login-stage) .toast {
max-width: none;
        width: 100%;
        right: auto;
        bottom: auto;
}
}

@media (max-width: 420px) {
body.omni-page .login-stage,
body.omni-login .login-stage,
body:has(.omni-shell) .login-stage,
body:has(.login-stage) .login-stage,
body.omni-page .omni-main,
body.omni-login .omni-main,
body:has(.omni-shell) .omni-main,
body:has(.login-stage) .omni-main,
body.omni-page .omni-sidebar,
body.omni-login .omni-sidebar,
body:has(.omni-shell) .omni-sidebar,
body:has(.login-stage) .omni-sidebar {
padding-inline: 10px;
}

body.omni-page .nav-tab,
body.omni-login .nav-tab,
body:has(.omni-shell) .nav-tab,
body:has(.login-stage) .nav-tab {
font-size: 12px;
        letter-spacing: 0.5px;
        padding-inline: 12px;
}

body.omni-page .tab-icon,
body.omni-login .tab-icon,
body:has(.omni-shell) .tab-icon,
body:has(.login-stage) .tab-icon {
font-size: 16px;
}

body.omni-page .hologram-panel,
body.omni-login .hologram-panel,
body:has(.omni-shell) .hologram-panel,
body:has(.login-stage) .hologram-panel {
padding: 12px;
}

body.omni-page .abuse-empty,
body.omni-login .abuse-empty,
body:has(.omni-shell) .abuse-empty,
body:has(.login-stage) .abuse-empty {
padding: 24px 12px;
}
}

@media (max-width: 640px) {
body.omni-page #neuralMesh,
body.omni-login #neuralMesh,
body:has(.omni-shell) #neuralMesh,
body:has(.login-stage) #neuralMesh,
body.omni-page .scanline,
body.omni-login .scanline,
body:has(.omni-shell) .scanline,
body:has(.login-stage) .scanline,
body.omni-page .hex-glow,
body.omni-login .hex-glow,
body:has(.omni-shell) .hex-glow,
body:has(.login-stage) .hex-glow,
body.omni-page .laser-line,
body.omni-login .laser-line,
body:has(.omni-shell) .laser-line,
body:has(.login-stage) .laser-line {
display: none !important;
}

body.omni-page .grid-overlay,
body.omni-login .grid-overlay,
body:has(.omni-shell) .grid-overlay,
body:has(.login-stage) .grid-overlay {
background-size: 80px 80px;
        opacity: 0.45;
}

body.omni-page .hex-frame,
body.omni-login .hex-frame,
body:has(.omni-shell) .hex-frame,
body:has(.login-stage) .hex-frame,
body.omni-page .logo-orb,
body.omni-login .logo-orb,
body:has(.omni-shell) .logo-orb,
body:has(.login-stage) .logo-orb,
body.omni-page .status-pulse,
body.omni-login .status-pulse,
body:has(.omni-shell) .status-pulse,
body:has(.login-stage) .status-pulse,
body.omni-page .dot.pulse,
body.omni-login .dot.pulse,
body:has(.omni-shell) .dot.pulse,
body:has(.login-stage) .dot.pulse {
animation: none !important;
}

body.omni-page .omni-sidebar,
body.omni-login .omni-sidebar,
body:has(.omni-shell) .omni-sidebar,
body:has(.login-stage) .omni-sidebar,
body.omni-page .hologram-panel,
body.omni-login .hologram-panel,
body:has(.omni-shell) .hologram-panel,
body:has(.login-stage) .hologram-panel,
body.omni-page .login-card,
body.omni-login .login-card,
body:has(.omni-shell) .login-card,
body:has(.login-stage) .login-card {
backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
}
}

@media (prefers-reduced-motion: reduce) {
body.omni-page *,
body.omni-login *,
body:has(.omni-shell) *,
body:has(.login-stage) *,
body.omni-page *::before,
body.omni-login *::before,
body:has(.omni-shell) *::before,
body:has(.login-stage) *::before,
body.omni-page *::after,
body.omni-login *::after,
body:has(.omni-shell) *::after,
body:has(.login-stage) *::after {
animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
}
}

/* =========================================================
   // ADDED: FINAL MOBILE HEADER ALIGNMENT FIX
   Reason: the username was visually floating too high on mobile because
   "Welcome," and the username were not independently controlled.
========================================================= */

body .marketplace-nav .welcome-label {
    display: inline-flex; /* ADDED */
    align-items: center; /* ADDED */
    line-height: 1; /* ADDED */
}

@media (max-width: 900px) {
    body .marketplace-nav .user-action-row {
        grid-template-columns: minmax(0, 1fr) auto !important; /* CHANGED */
        align-items: center !important; /* CHANGED */
        gap: 8px !important; /* CHANGED */
        padding: 8px !important; /* CHANGED */
    }

    body .marketplace-nav .welcome-text {
        display: flex !important; /* CHANGED */
        flex-direction: column !important; /* CHANGED */
        align-items: flex-start !important; /* CHANGED */
        justify-content: center !important; /* CHANGED */
        min-height: 42px !important; /* ADDED */
        width: auto !important; /* CHANGED */
        max-width: 100% !important; /* CHANGED */
        text-align: left !important; /* CHANGED */
        gap: 3px !important; /* ADDED */
        overflow: hidden !important; /* ADDED */
        white-space: normal !important; /* CHANGED */
    }

    body .marketplace-nav .welcome-label {
        display: block !important; /* CHANGED */
        color: rgba(235, 244, 255, 0.88) !important; /* ADDED */
        font-size: 11px !important; /* ADDED */
        font-weight: 800 !important; /* ADDED */
        line-height: 1 !important; /* ADDED */
    }

    body .marketplace-nav .welcome-link,
    body .marketplace-nav .welcome-link strong {
        display: block !important; /* CHANGED */
        max-width: min(52vw, 190px) !important; /* CHANGED */
        font-size: 12px !important; /* ADDED */
        line-height: 1.05 !important; /* ADDED */
        overflow: hidden !important; /* ADDED */
        text-overflow: ellipsis !important; /* ADDED */
        white-space: nowrap !important; /* ADDED */
    }

    body .marketplace-nav .header-post-cta {
        width: auto !important; /* CHANGED */
        min-width: 126px !important; /* CHANGED */
        min-height: 42px !important; /* CHANGED */
        padding-inline: 14px !important; /* CHANGED */
        font-size: 14px !important; /* CHANGED */
    }
}

@media (max-width: 390px) {
    body .marketplace-nav .header-post-cta {
        min-width: 112px !important; /* CHANGED */
        padding-inline: 10px !important; /* CHANGED */
        font-size: 13px !important; /* CHANGED */
    }

    body .marketplace-nav .welcome-link,
    body .marketplace-nav .welcome-link strong {
        max-width: 48vw !important; /* CHANGED */
    }
}

@media (max-width: 330px) {
    body .marketplace-nav .user-action-row {
        grid-template-columns: 1fr !important; /* CHANGED */
    }

    body .marketplace-nav .header-post-cta {
        width: 100% !important; /* CHANGED */
    }
}

/* =========================================================
   // ADDED: MOBILE-FIRST ULTRA-COMPACT MARKETPLACE LIST CARDS
   Reason:
   - Current phone cards waste vertical space.
   - Keep the newer left-info / right-thumbnail layout.
   - Make each mobile listing short enough to show more posts per screen.
   - This is intentionally LAST so it wins against older mobile/grid rules.
========================================================= */
@media (max-width: 768px) {
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid {
        grid-template-columns: 1fr !important; /* CHANGED: mobile-first single readable list */
        gap: 8px !important; /* CHANGED */
        padding: 10px 8px 24px !important; /* CHANGED */
        width: min(100%, 540px) !important; /* ADDED */
        max-width: 540px !important; /* ADDED */
        margin: 0 auto !important; /* ADDED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card {
        display: grid !important; /* CHANGED */
        grid-template-columns: minmax(0, 1fr) 82px !important; /* CHANGED: smaller right thumbnail */
        grid-template-areas: "info thumb" !important; /* ADDED */
        align-items: center !important; /* CHANGED */
        gap: 9px !important; /* CHANGED */
        min-height: 94px !important; /* CHANGED */
        height: auto !important; /* ADDED */
        padding: 8px 8px 8px 12px !important; /* CHANGED */
        border-radius: 13px !important; /* CHANGED */
        overflow: hidden !important; /* ADDED */
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important; /* CHANGED */
        transform: none !important; /* ADDED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card:hover {
        transform: none !important; /* CHANGED: no hover/tap jump on mobile */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card::before,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card::after {
        display: none !important; /* REMOVED: heavy shine overlay on mobile, wastes paint */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-info {
        grid-area: info !important; /* ADDED */
        display: flex !important; /* ADDED */
        flex-direction: column !important; /* ADDED */
        justify-content: center !important; /* CHANGED */
        align-self: center !important; /* ADDED */
        min-width: 0 !important; /* ADDED */
        min-height: 0 !important; /* ADDED */
        height: auto !important; /* ADDED */
        padding: 0 !important; /* CHANGED */
        gap: 3px !important; /* CHANGED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-info h3,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .listing-title {
        margin: 0 !important; /* ADDED */
        min-height: 0 !important; /* CHANGED */
        font-size: clamp(14.5px, 4vw, 16.5px) !important; /* CHANGED: bigger title without making card tall */
        line-height: 1.08 !important; /* CHANGED */
        font-weight: 950 !important; /* CHANGED */
        letter-spacing: -0.025em !important; /* CHANGED */
        display: -webkit-box !important; /* ADDED */
        -webkit-line-clamp: 2 !important; /* ADDED */
        -webkit-box-orient: vertical !important; /* ADDED */
        overflow: hidden !important; /* ADDED */
        overflow-wrap: anywhere !important; /* ADDED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-seller {
        display: flex !important; /* CHANGED */
        align-items: center !important; /* ADDED */
        min-height: 0 !important; /* CHANGED */
        max-width: 100% !important; /* ADDED */
        gap: 3px !important; /* CHANGED */
        font-size: clamp(8.75px, 2.45vw, 10px) !important; /* CHANGED: smaller user name */
        line-height: 1.05 !important; /* CHANGED */
        font-weight: 650 !important; /* CHANGED */
        opacity: 0.82 !important; /* ADDED */
        overflow: hidden !important; /* ADDED */
        white-space: nowrap !important; /* ADDED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .mini-rank {
        flex: 0 0 auto !important; /* ADDED */
        font-size: 9px !important; /* CHANGED */
        line-height: 1 !important; /* ADDED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .seller-name {
        min-width: 0 !important; /* ADDED */
        max-width: 100% !important; /* ADDED */
        overflow: hidden !important; /* ADDED */
        text-overflow: ellipsis !important; /* ADDED */
        white-space: nowrap !important; /* ADDED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .card-price {
        margin: 0 !important; /* CHANGED */
        padding: 0 !important; /* CHANGED */
        font-size: clamp(15px, 4vw, 17px) !important; /* CHANGED */
        line-height: 1.02 !important; /* CHANGED */
        font-weight: 1000 !important; /* CHANGED */
        letter-spacing: -0.02em !important; /* ADDED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb {
        grid-area: thumb !important; /* ADDED */
        align-self: center !important; /* CHANGED */
        justify-self: end !important; /* ADDED */
        width: 82px !important; /* CHANGED */
        min-width: 82px !important; /* CHANGED */
        max-width: 82px !important; /* ADDED */
        height: 82px !important; /* CHANGED */
        min-height: 82px !important; /* ADDED */
        max-height: 82px !important; /* ADDED */
        aspect-ratio: 1 / 1 !important; /* ADDED */
        border-radius: 11px !important; /* CHANGED */
        overflow: hidden !important; /* ADDED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb img {
        width: 100% !important; /* ADDED */
        height: 100% !important; /* ADDED */
        max-width: none !important; /* ADDED */
        max-height: none !important; /* ADDED */
        object-fit: cover !important; /* ADDED */
        padding: 0 !important; /* CHANGED */
        transform: none !important; /* ADDED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb img[src*="No_Image.png"] {
        object-fit: contain !important; /* CHANGED */
        padding: 10px !important; /* CHANGED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb::after {
        background: linear-gradient(180deg, transparent 68%, rgba(0,0,0,0.40)) !important; /* CHANGED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb .sold-badge,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .sold-badge.selling,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .sold-badge.looking {
        top: 5px !important; /* CHANGED */
        left: 5px !important; /* CHANGED */
        right: auto !important; /* ADDED */
        max-width: calc(100% - 10px) !important; /* ADDED */
        padding: 2px 5px !important; /* CHANGED */
        border-radius: 5px !important; /* CHANGED */
        font-size: 7px !important; /* CHANGED */
        line-height: 1 !important; /* CHANGED */
        letter-spacing: 0.15px !important; /* CHANGED */
        overflow: hidden !important; /* ADDED */
        text-overflow: ellipsis !important; /* ADDED */
        white-space: nowrap !important; /* ADDED */
    }
}

/* // ADDED: slightly larger phones get a small thumbnail bump, still compact. */
@media (min-width: 400px) and (max-width: 768px) {
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card {
        grid-template-columns: minmax(0, 1fr) 88px !important; /* CHANGED */
        min-height: 100px !important; /* CHANGED */
        padding: 9px 9px 9px 12px !important; /* CHANGED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb {
        width: 88px !important; /* CHANGED */
        min-width: 88px !important; /* CHANGED */
        max-width: 88px !important; /* ADDED */
        height: 88px !important; /* CHANGED */
        min-height: 88px !important; /* ADDED */
        max-height: 88px !important; /* ADDED */
    }
}

/* // ADDED: very narrow phones stay readable without becoming tall. */
@media (max-width: 360px) {
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card {
        grid-template-columns: minmax(0, 1fr) 74px !important; /* CHANGED */
        min-height: 88px !important; /* CHANGED */
        gap: 7px !important; /* CHANGED */
        padding: 7px 7px 7px 10px !important; /* CHANGED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb {
        width: 74px !important; /* CHANGED */
        min-width: 74px !important; /* CHANGED */
        max-width: 74px !important; /* ADDED */
        height: 74px !important; /* CHANGED */
        min-height: 74px !important; /* ADDED */
        max-height: 74px !important; /* ADDED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-info h3,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .listing-title {
        font-size: 14px !important; /* CHANGED */
        line-height: 1.08 !important; /* CHANGED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-seller {
        font-size: 8.5px !important; /* CHANGED */
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .card-price {
        font-size: 14.5px !important; /* CHANGED */
    }
}


/* =========================================================
   // ADDED: FINAL HEADER USERNAME + MOBILE CARD REPAIR
   Reason:
   - Username must sit inline beside "Welcome," instead of floating above/below.
   - Desktop user rail must align vertically inside its glass container.
   - Mobile marketplace posts must stay compact: left text, right small thumb.
   This block is intentionally last so it wins over older merged CSS.
========================================================= */

/* CHANGED: Keep Welcome + username as one real inline row on every breakpoint. */
body .marketplace-nav .welcome-text {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

/* CHANGED: The label is no longer stacked above the username. */
body .marketplace-nav .welcome-label {
    display: inline !important;
    flex: 0 0 auto !important;
    color: rgba(235, 244, 255, 0.88) !important;
    font-size: inherit !important;
    font-weight: 800 !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
}

/* CHANGED: Username sits in the empty space between Welcome and Post Ad. */
body .marketplace-nav .welcome-link,
body .marketplace-nav .welcome-link strong {
    display: inline-block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transform: none !important;
    position: static !important;
}

/* CHANGED: The top user/action rail vertically centers its children on desktop. */
body .marketplace-nav .user-action-row {
    align-items: center !important;
    justify-content: start !important;
    min-height: 52px !important;
}

/* CHANGED: Desktop rail alignment; username cannot climb out of the glass container. */
@media (min-width: 901px) {
    body .marketplace-nav .user-action-row {
        display: inline-grid !important;
        grid-template-columns: minmax(0, auto) auto !important;
        gap: 10px !important;
        padding: 7px 8px 7px 12px !important;
    }

    body .marketplace-nav .welcome-text {
        max-width: clamp(190px, 25vw, 350px) !important;
        font-size: clamp(12px, 0.92vw, 13px) !important;
    }
}

/* CHANGED: Mobile keeps Welcome + username on one line at the left, Post Ad on the right. */
@media (max-width: 900px) {
    body .marketplace-nav .user-action-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        justify-content: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 58px !important;
        padding: 8px 8px 8px 10px !important;
    }

    body .marketplace-nav .welcome-text {
        max-width: 100% !important;
        font-size: 12px !important;
    }

    body .marketplace-nav .welcome-link,
    body .marketplace-nav .welcome-link strong {
        max-width: 100% !important;
        font-size: 12px !important;
    }

    body .marketplace-nav .header-post-cta {
        width: auto !important;
        min-width: 126px !important;
        min-height: 42px !important;
        padding-inline: 14px !important;
        font-size: 14px !important;
        align-self: center !important;
    }
}

@media (max-width: 390px) {
    body .marketplace-nav .user-action-row {
        grid-template-columns: minmax(0, 1fr) 112px !important;
        gap: 6px !important;
    }

    body .marketplace-nav .header-post-cta {
        min-width: 112px !important;
        padding-inline: 8px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 330px) {
    body .marketplace-nav .user-action-row {
        grid-template-columns: 1fr !important;
    }

    body .marketplace-nav .header-post-cta {
        width: 100% !important;
    }
}

/* CHANGED: Final mobile compact marketplace cards. */
@media (max-width: 768px) {
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: min(100%, 540px) !important;
        max-width: 540px !important;
        margin: 0 auto !important;
        padding: 10px 8px 24px !important;
        align-items: start !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 82px !important;
        grid-template-areas: "info thumb" !important;
        align-items: center !important;
        gap: 9px !important;
        min-height: 94px !important;
        max-height: 108px !important;
        height: auto !important;
        padding: 8px 8px 8px 12px !important;
        margin: 0 !important;
        border-radius: 13px !important;
        overflow: hidden !important;
        transform: none !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card:hover,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card:hover {
        transform: none !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card::before,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card::after,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card::before,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card::after {
        display: none !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .compact-info,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-info {
        grid-area: info !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-self: center !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        gap: 3px !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .compact-info h3,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .listing-title,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-info h3,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .listing-title {
        margin: 0 !important;
        min-height: 0 !important;
        font-size: clamp(14.5px, 4vw, 16.5px) !important;
        line-height: 1.08 !important;
        font-weight: 950 !important;
        letter-spacing: -0.025em !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        overflow-wrap: anywhere !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .compact-seller,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-seller {
        display: flex !important;
        align-items: center !important;
        min-height: 0 !important;
        max-width: 100% !important;
        gap: 3px !important;
        font-size: clamp(8.75px, 2.45vw, 10px) !important;
        line-height: 1.05 !important;
        font-weight: 650 !important;
        opacity: 0.82 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .mini-rank,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .mini-rank {
        flex: 0 0 auto !important;
        font-size: 9px !important;
        line-height: 1 !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .seller-name,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .seller-name {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .card-price,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .card-price {
        margin: 0 !important;
        padding: 0 !important;
        font-size: clamp(15px, 4vw, 17px) !important;
        line-height: 1.02 !important;
        font-weight: 1000 !important;
        letter-spacing: -0.02em !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .compact-thumb,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb {
        grid-area: thumb !important;
        position: relative !important;
        inset: auto !important;
        align-self: center !important;
        justify-self: end !important;
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        height: 82px !important;
        min-height: 82px !important;
        max-height: 82px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 11px !important;
        overflow: hidden !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .compact-thumb img,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        padding: 0 !important;
        transform: none !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .compact-thumb img[src*="No_Image.png"],
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb img[src*="No_Image.png"] {
        object-fit: contain !important;
        padding: 10px !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .compact-thumb::after,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb::after {
        background: linear-gradient(180deg, transparent 68%, rgba(0,0,0,0.40)) !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .compact-thumb .sold-badge,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .sold-badge.selling,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .sold-badge.looking,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb .sold-badge,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .sold-badge.selling,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .sold-badge.looking {
        position: absolute !important;
        top: 5px !important;
        left: 5px !important;
        right: auto !important;
        transform: none !important;
        max-width: calc(100% - 10px) !important;
        padding: 2px 5px !important;
        border-radius: 5px !important;
        font-size: 7px !important;
        line-height: 1 !important;
        letter-spacing: 0.15px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 400px) and (max-width: 768px) {
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card {
        grid-template-columns: minmax(0, 1fr) 88px !important;
        min-height: 100px !important;
        max-height: 114px !important;
        padding: 9px 9px 9px 12px !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .compact-thumb,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb {
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
        height: 88px !important;
        min-height: 88px !important;
        max-height: 88px !important;
    }
}

@media (max-width: 360px) {
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card {
        grid-template-columns: minmax(0, 1fr) 74px !important;
        min-height: 88px !important;
        max-height: 100px !important;
        gap: 7px !important;
        padding: 7px 7px 7px 10px !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page) section.grid > a.card .compact-thumb,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page) .grid > a.card .compact-thumb {
        width: 74px !important;
        min-width: 74px !important;
        max-width: 74px !important;
        height: 74px !important;
        min-height: 74px !important;
        max-height: 74px !important;
    }
}

/* =========================================================
   LEPANTOSTREET PREMIUM FULL REFRESH — FINAL OVERRIDE LAYER
   ADDED: Full integration from preview lab into real index/profile/myposts/post-ad.
   CHANGED: Keeps existing PHP structure, but fixes header, featured rail, cards, and page polish.
========================================================= */
:root {
    --ls-bg-0: #05060a;
    --ls-bg-1: #0a0f1f;
    --ls-panel: rgba(15, 23, 42, 0.68);
    --ls-panel-strong: rgba(10, 15, 30, 0.82);
    --ls-line: rgba(255, 255, 255, 0.08);
    --ls-line-strong: rgba(255, 255, 255, 0.14);
    --ls-text: #f8fafc;
    --ls-muted: #94a3b8;
    --ls-dim: #64748b;
    --ls-cyan: #22d3ee;
    --ls-cyan-2: #67e8f9;
    --ls-violet: #a78bfa;
    --ls-pink: #ff2d55;
    --ls-orange: #ff7a18;
    --ls-green: #22c55e;
    --ls-green-2: #16f29a;
    --ls-radius-lg: 22px;
    --ls-radius-md: 16px;
    --ls-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --ls-soft-shadow: 0 14px 36px rgba(0, 0, 0, 0.30);
}

/* =========================
   INDEX HEADER — match approved preview feel
========================= */
body .marketplace-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 0 !important;
    padding: 10px clamp(10px, 3vw, 32px) 12px !important;
    border-bottom: 1px solid var(--ls-line) !important;
    background:
        radial-gradient(680px 220px at 12% 0%, rgba(34, 211, 238, 0.13), transparent 68%),
        radial-gradient(720px 260px at 92% 5%, rgba(255, 45, 85, 0.10), transparent 72%),
        linear-gradient(180deg, rgba(5, 6, 10, 0.90), rgba(5, 6, 10, 0.56)) !important;
    backdrop-filter: blur(22px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,.34) !important;
    overflow: visible !important;
}

body .marketplace-header .mobile-header-row {
    display: none !important;
}

body .marketplace-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 9px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 720px !important;
}

body .marketplace-nav .user-action-row {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 50px !important;
    padding: 6px 7px 6px 12px !important;
    border: 1px solid var(--ls-line) !important;
    border-radius: 18px !important;
    background: rgba(5, 8, 18, 0.55) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.20) !important;
}

body .marketplace-nav .welcome-text {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    min-width: 0 !important;
    max-width: clamp(140px, 24vw, 330px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    color: rgba(235, 244, 255, .75) !important;
    font-size: clamp(11px, 3vw, 13px) !important;
    font-weight: 750 !important;
}

body .marketplace-nav .welcome-label {
    flex: 0 0 auto !important;
    color: rgba(235, 244, 255, .76) !important;
}

body .marketplace-nav .welcome-link,
body .marketplace-nav .welcome-link strong {
    display: inline-block !important;
    min-width: 0 !important;
    max-width: clamp(92px, 22vw, 230px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--ls-cyan-2) !important;
    -webkit-text-fill-color: var(--ls-cyan-2) !important;
    font-size: clamp(13px, 3.2vw, 15px) !important;
    font-weight: 950 !important;
    text-decoration: none !important;
    background: none !important;
    vertical-align: bottom !important;
}

body .marketplace-nav .header-post-cta,
body .publish-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    color: #06121a !important;
    -webkit-text-fill-color: #06121a !important;
    font-size: clamp(13px, 3.5vw, 16px) !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
    border: 1px solid rgba(103, 232, 249, .55) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(255,255,255,.65), transparent 36%),
        linear-gradient(135deg, var(--ls-cyan-2), var(--ls-cyan), var(--ls-violet)) !important;
    box-shadow: 0 10px 22px rgba(34,211,238,.22), inset 0 1px 0 rgba(255,255,255,.6) !important;
    transform: none !important;
    transition: filter .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body .marketplace-nav .header-post-cta:hover,
body .publish-action:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.04) !important;
    box-shadow: 0 14px 32px rgba(34,211,238,.30), inset 0 1px 0 rgba(255,255,255,.65) !important;
}

body .desktop-logo {
    justify-self: center !important;
    align-self: center !important;
    transform: none !important;
}

body .desktop-logo img {
    height: clamp(68px, 7vw, 104px) !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 10px 24px rgba(34,211,238,.25)) !important;
}

body .marketplace-nav .nav-buttons {
    display: grid !important;
    grid-template-columns: repeat(6, auto) !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: auto !important;
    max-width: 760px !important;
}

body .marketplace-nav .nav-buttons > a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 35px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border: 1px solid var(--ls-line) !important;
    background: rgba(255,255,255,.045) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055) !important;
    transform: none !important;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

body .marketplace-nav .nav-buttons > a::before,
body .marketplace-nav .nav-buttons > a::after {
    display: none !important;
}

body .marketplace-nav .nav-buttons > a:hover {
    transform: none !important;
    border-color: rgba(34,211,238,.34) !important;
    background: rgba(34,211,238,.10) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(34,211,238,.10) !important;
}

body .marketplace-nav .nav-buttons > a.btn-danger {
    background: linear-gradient(135deg, rgba(255,45,85,.48), rgba(255,122,24,.24)) !important;
    border-color: rgba(255, 122, 24, .25) !important;
}

body .chat-nav-btn,
body .marketplace-nav .nav-buttons > a[href="inbox.php"] {
    padding-right: 24px !important;
}

body .chat-nav-badge,
body .badge-inbox {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--ls-pink), var(--ls-orange)) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 9px !important;
    font-weight: 950 !important;
    pointer-events: none !important;
    border: 0 !important;
    margin: 0 !important;
}

@media (max-width: 720px) {
    body .marketplace-header {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        padding-inline: 8px !important;
    }

    body .desktop-logo {
        order: 1 !important;
        grid-row: 1 !important;
    }

    body .marketplace-nav {
        order: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 420px !important;
        align-items: stretch !important;
    }

    body .marketplace-nav .user-action-row {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        justify-content: stretch !important;
        min-height: 58px !important;
    }

    body .marketplace-nav .nav-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body .marketplace-nav .nav-buttons > a {
        width: 100% !important;
        min-height: 38px !important;
        font-size: 11px !important;
    }

    body .header-right-spacer { display: none !important; }
}

/* =========================
   ANNOUNCEMENT + FEATURED RAILS
========================= */
body .announcement-container {
    cursor: grab !important;
    border-bottom: 1px solid rgba(255,45,85,.28) !important;
    background: rgba(3, 7, 18, .78) !important;
}
body .announcement-container.dragging { cursor: grabbing !important; user-select: none !important; }
body .announcement-container .track,
body .announcement-container .moving-text,
body .announcement-container .announcement-copy {
    white-space: nowrap !important;
}

body .featured-showcase {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 14px clamp(10px, 3vw, 32px) !important;
    background: rgba(5, 6, 10, .62) !important;
    border-bottom: 1px solid var(--ls-line) !important;
    cursor: grab !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
}
body .featured-showcase.dragging { cursor: grabbing !important; user-select: none !important; }
body .featured-track {
    display: flex !important;
    gap: 12px !important;
    width: max-content !important;
    animation: none !important;
    transform: none !important;
}
body .feat-card {
    display: grid !important;
    grid-template-columns: 86px minmax(120px, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: min(76vw, 290px) !important;
    min-height: 96px !important;
    flex: 0 0 auto !important;
    padding: 9px !important;
    border-radius: 18px !important;
    border: 1px solid var(--ls-line) !important;
    background: linear-gradient(145deg, rgba(15, 23, 42, .76), rgba(2, 6, 23, .42)) !important;
    text-decoration: none !important;
    box-shadow: var(--ls-soft-shadow) !important;
    overflow: hidden !important;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease, box-shadow .22s ease !important;
}
body .feat-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(34,211,238,.32) !important;
    box-shadow: 0 18px 46px rgba(34,211,238,.10), var(--ls-soft-shadow) !important;
}
body .feat-thumb {
    position: relative !important;
    width: 86px !important;
    height: 76px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.045) !important;
}
body .feat-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
body .feat-badge-top {
    position: absolute !important;
    left: 6px !important;
    bottom: 6px !important;
    top: auto !important;
    right: auto !important;
    padding: 3px 6px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--ls-pink), var(--ls-orange)) !important;
    color: #fff !important;
    font-size: 8px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    max-width: calc(100% - 12px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
body .feat-info {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 0 !important;
}
body .feat-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: var(--ls-text) !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    white-space: normal !important;
}
body .feat-price {
    color: var(--ls-green-2) !important;
    font-style: normal !important;
    font-weight: 950 !important;
    font-size: 15px !important;
}

/* =========================
   MARKETPLACE CARD — approved compact premium + reversible shine
========================= */
body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid {
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)) !important;
    gap: 14px !important;
    padding: 24px 5% 50px !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card {
    --thumb-size: 108px;
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--thumb-size) !important;
    grid-template-areas: "info thumb" !important;
    align-items: center !important;
    gap: 13px !important;
    min-height: 132px !important;
    padding: 12px !important;
    border-radius: 20px !important;
    border: 1px solid var(--ls-line) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, .10), transparent 42%),
        linear-gradient(145deg, rgba(15,23,42,.72), rgba(2,6,23,.46)) !important;
    box-shadow: var(--ls-soft-shadow) !important;
    overflow: hidden !important;
    isolation: isolate !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
    transition: transform .26s cubic-bezier(.2,.8,.2,1), border-color .26s ease, box-shadow .26s ease, filter .26s ease !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    padding: 1px !important;
    background: linear-gradient(135deg, rgba(103,232,249,.60), transparent 42%, rgba(255,45,85,.42)) !important;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
    -webkit-mask-composite: xor !important;
            mask-composite: exclude !important;
    opacity: .24 !important;
    pointer-events: none !important;
    transition: opacity .26s ease !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card::after {
    content: '' !important;
    position: absolute !important;
    top: -40% !important;
    left: -70% !important;
    width: 60% !important;
    height: 180% !important;
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.05) 30%, rgba(255,255,255,.26) 50%, rgba(103,232,249,.08) 62%, transparent 100%) !important;
    transform: translateX(-130%) rotate(16deg) !important;
    transition: transform .72s cubic-bezier(.2,.8,.2,1) !important;
    pointer-events: none !important;
    z-index: 4 !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card:hover {
    transform: translateY(-6px) scale(1.012) !important;
    border-color: rgba(34,211,238,.35) !important;
    box-shadow: 0 22px 54px rgba(34,211,238,.11), 0 18px 48px rgba(0,0,0,.42) !important;
    filter: brightness(1.035) !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card:hover::before {
    opacity: .82 !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card:hover::after {
    transform: translateX(350%) rotate(16deg) !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .compact-info {
    grid-area: info !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 0 0 0 4px !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .compact-info h3,
body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .listing-title {
    margin: 0 !important;
    min-height: 0 !important;
    color: var(--ls-text) !important;
    font-size: clamp(18px, 1.34vw, 21px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.04em !important;
    font-weight: 950 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-shadow: 0 1px 0 rgba(0,0,0,.42) !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .compact-seller {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    color: #93c5fd !important;
    font-size: clamp(10px, .76vw, 11px) !important;
    line-height: 1.1 !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    opacity: .86 !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .seller-name {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .card-price {
    margin: 2px 0 0 !important;
    padding: 0 !important;
    font-size: clamp(21px, 1.65vw, 25px) !important;
    line-height: 1 !important;
    font-weight: 1000 !important;
    letter-spacing: -.05em !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .compact-thumb {
    grid-area: thumb !important;
    position: relative !important;
    justify-self: end !important;
    align-self: center !important;
    width: var(--thumb-size) !important;
    height: var(--thumb-size) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,.085) !important;
    background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(167,139,250,.06)) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.035) !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .compact-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    padding: 0 !important;
    transition: transform .5s cubic-bezier(.2,.8,.2,1) !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card:hover .compact-thumb img {
    transform: scale(1.06) !important;
}

body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .compact-thumb img[src*="No_Image.png"] {
    object-fit: contain !important;
    padding: 12px !important;
    opacity: .75 !important;
}

@media (max-width: 768px) {
    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: min(100%, 540px) !important;
        max-width: 540px !important;
        margin: 0 auto !important;
        padding: 10px 8px 24px !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card {
        --thumb-size: 82px !important;
        grid-template-columns: minmax(0, 1fr) var(--thumb-size) !important;
        min-height: 94px !important;
        max-height: 108px !important;
        gap: 9px !important;
        padding: 8px 8px 8px 12px !important;
        border-radius: 13px !important;
        transform: none !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card:hover {
        transform: none !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card::before {
        opacity: .20 !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card::after {
        display: none !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .compact-info {
        gap: 3px !important;
        padding: 0 !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .compact-info h3,
    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .listing-title {
        font-size: clamp(14.5px, 4vw, 16.5px) !important;
        line-height: 1.08 !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .compact-seller {
        font-size: clamp(8.75px, 2.45vw, 10px) !important;
        gap: 3px !important;
    }

    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card .card-price {
        font-size: clamp(15px, 4vw, 17px) !important;
    }
}

@media (min-width: 400px) and (max-width: 768px) {
    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card {
        --thumb-size: 88px !important;
        min-height: 100px !important;
        max-height: 114px !important;
    }
}

@media (max-width: 360px) {
    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page) .grid > a.card {
        --thumb-size: 74px !important;
        min-height: 88px !important;
        max-height: 100px !important;
        gap: 7px !important;
        padding: 7px 7px 7px 10px !important;
    }
}

/* =========================
   SHARED PREMIUM PAGE COMPONENTS
========================= */
.section-kicker {
    margin: 0 0 6px !important;
    color: var(--ls-cyan-2) !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
}
.ghost-action,
.ghost-danger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 15px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    color: var(--ls-text) !important;
    -webkit-text-fill-color: var(--ls-text) !important;
    font-weight: 900 !important;
    border: 1px solid var(--ls-line) !important;
    background: rgba(255,255,255,.05) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055) !important;
}
.ghost-action:hover { border-color: rgba(34,211,238,.36) !important; background: rgba(34,211,238,.10) !important; }
.ghost-danger { background: linear-gradient(135deg, rgba(255,45,85,.48), rgba(255,122,24,.24)) !important; }

/* =========================
   MY POSTS — premium dashboard
========================= */
.premium-myposts-page .myposts-shell,
.premium-post-ad-page .post-ad-shell,
.premium-profile-page .profile-shell {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 18px 0 56px;
}
.myposts-commandbar,
.post-ad-commandbar,
.profile-commandbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.myposts-hero-panel,
.post-ad-hero-panel,
.profile-hero-card,
.profile-panel,
.premium-post-form-card,
.post-ad-guide-panel,
.premium-empty-state {
    border: 1px solid var(--ls-line) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(34,211,238,.10), transparent 42%),
        linear-gradient(145deg, rgba(15,23,42,.70), rgba(2,6,23,.42)) !important;
    box-shadow: var(--ls-soft-shadow) !important;
    backdrop-filter: blur(16px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
}
.myposts-hero-panel,
.post-ad-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: clamp(18px, 4vw, 28px);
    margin-bottom: 16px;
}
.myposts-hero-panel h1,
.post-ad-hero-panel h1,
.profile-hero-card h1 {
    margin: 0;
    font-size: clamp(32px, 6vw, 56px);
    line-height: .96;
    letter-spacing: -.06em;
    color: var(--ls-text);
}
.myposts-hero-panel p,
.post-ad-hero-panel p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--ls-muted);
    line-height: 1.58;
}
.myposts-stats-grid,
.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.mypost-stat,
.profile-stat-grid > div {
    min-height: 76px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--ls-line);
    background: rgba(255,255,255,.04);
}
.mypost-stat span,
.profile-stat-grid span {
    display: block;
    color: var(--ls-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.mypost-stat strong,
.profile-stat-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--ls-cyan-2);
    font-size: 28px;
    font-weight: 1000;
    line-height: 1;
}
.premium-myposts-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
.premium-mypost-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 92px !important;
    padding: 10px !important;
    border-radius: 18px !important;
    border: 1px solid var(--ls-line) !important;
    background: linear-gradient(145deg, rgba(15,23,42,.70), rgba(2,6,23,.46)) !important;
    box-shadow: var(--ls-soft-shadow) !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: var(--ls-text) !important;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease, box-shadow .22s ease !important;
}
.premium-mypost-row:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(34,211,238,.35) !important;
    box-shadow: 0 20px 48px rgba(34,211,238,.10), var(--ls-soft-shadow) !important;
}
.mypost-thumb,
.profile-listing-thumb {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--ls-line);
    flex: 0 0 auto;
}
.mypost-thumb img,
.profile-listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.premium-mypost-row .mypost-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    min-width: 0 !important;
}
.premium-mypost-row .mypost-title {
    color: var(--ls-text) !important;
    font-size: clamp(16px, 2vw, 20px) !important;
    line-height: 1.08 !important;
    font-weight: 950 !important;
    letter-spacing: -.035em !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.mypost-meta-line { display: flex; gap: 5px; flex-wrap: wrap; }
.mypost-status {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .06em;
    background: rgba(34,197,94,.8);
}
.mypost-status.sold { background: linear-gradient(135deg, #ef4444, #991b1b); }
.mypost-status.featured { background: linear-gradient(135deg, var(--ls-pink), var(--ls-orange)); }
.premium-mypost-row .mypost-sub {
    font-size: clamp(17px, 2vw, 22px) !important;
    font-weight: 1000 !important;
    white-space: nowrap !important;
}
.mypost-manage-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #06121a;
    background: linear-gradient(135deg, var(--ls-cyan-2), var(--ls-cyan));
    font-size: 11px;
    font-weight: 950;
}
.premium-empty-state {
    padding: 26px !important;
    display: grid;
    gap: 8px;
    color: var(--ls-muted);
}
.premium-empty-state strong { color: var(--ls-text); font-size: 22px; }

@media (min-width: 820px) {
    .myposts-hero-panel,
    .post-ad-hero-panel { grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); align-items: end; }
    .myposts-stats-grid,
    .profile-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .premium-mypost-row { grid-template-columns: 64px minmax(0, 1fr); }
    .premium-mypost-row .mypost-sub,
    .mypost-manage-pill { grid-column: 2; justify-self: start; }
    .mypost-thumb { width: 64px; height: 64px; }
}

/* =========================
   POST AD — premium publisher
========================= */
.post-ad-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.post-ad-guide-panel {
    padding: 14px !important;
    display: grid;
    gap: 10px;
}
.guide-card {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr);
    gap: 2px 12px;
    align-items: start;
    padding: 13px;
    border-radius: 18px;
    border: 1px solid var(--ls-line);
    background: rgba(255,255,255,.04);
}
.guide-card span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #06121a;
    background: linear-gradient(135deg, var(--ls-cyan-2), var(--ls-violet));
    font-weight: 950;
}
.guide-card strong { color: var(--ls-text); }
.guide-card p { margin: 0; color: var(--ls-muted); line-height: 1.45; font-size: 13px; }
.premium-status-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-height: 92px;
    padding: 16px !important;
    border-radius: 20px !important;
}
.premium-status-card strong { color: var(--ls-cyan-2); font-size: 16px; }
.premium-status-card span { color: var(--ls-muted); }
.premium-post-form-card {
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    padding: clamp(16px, 3vw, 26px) !important;
}
.premium-post-form-card form,
.post-form {
    display: grid !important;
    gap: 14px !important;
}
.premium-post-form-card label {
    display: grid;
    gap: 7px;
    color: var(--ls-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .03em;
}
.premium-post-form-card input,
.premium-post-form-card select,
.premium-post-form-card textarea {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    border: 1px solid var(--ls-line) !important;
    background: rgba(2,6,23,.56) !important;
    color: var(--ls-text) !important;
    padding: 0 14px !important;
    outline: none !important;
}
.premium-post-form-card textarea {
    min-height: 150px !important;
    padding: 14px !important;
    resize: vertical;
}
.premium-post-form-card input:focus,
.premium-post-form-card select:focus,
.premium-post-form-card textarea:focus {
    border-color: rgba(34,211,238,.48) !important;
    box-shadow: 0 0 0 4px rgba(34,211,238,.11) !important;
}
.post-field-grid.two,
.price-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}
.premium-feature-toggle {
    position: relative;
    display: grid !important;
    grid-template-columns: auto minmax(0,1fr) !important;
    align-items: center !important;
    gap: 8px 12px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,45,85,.28) !important;
    background: linear-gradient(135deg, rgba(255,45,85,.14), rgba(34,211,238,.06)) !important;
}
.premium-feature-toggle input { width: 20px !important; min-height: 20px !important; }
.premium-feature-toggle span { color: var(--ls-text); font-size: 15px; font-weight: 950; }
.premium-feature-toggle em { grid-column: 2; color: var(--ls-muted); font-style: normal; font-size: 12px; }
.field-hint { color: var(--ls-dim); font-size: 11px; }
.premium-upload-zone {
    padding: 16px;
    border-radius: 20px;
    border: 1px dashed rgba(103,232,249,.36);
    background: rgba(34,211,238,.055);
}
.premium-upload-zone input[type="file"] {
    padding: 12px !important;
    height: auto !important;
    background: rgba(2,6,23,.42) !important;
}
.image-help { margin: 0; color: var(--ls-muted); font-size: 12px; line-height: 1.45; }
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.image-preview-grid span {
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ls-line);
    background: rgba(255,255,255,.04);
}
.image-preview-grid img { width: 100%; height: 100%; object-fit: cover; }
.post-form-actions { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; gap: 10px !important; }
.post-error-card,
.myposts-alert,
.profile-alert {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-weight: 800;
    line-height: 1.4;
}
.post-error-card,
.myposts-alert.error,
.profile-alert.error { background: rgba(239,68,68,.13); border: 1px solid rgba(239,68,68,.30); color: #fecaca; }
.myposts-alert.success,
.profile-alert.success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #86efac; }
@media (min-width: 980px) { .post-ad-layout { grid-template-columns: 330px minmax(0, 1fr); align-items: start; } }
@media (max-width: 560px) { .post-field-grid.two, .price-row, .post-form-actions { grid-template-columns: 1fr !important; } }

/* =========================
   PROFILE — premium public seller display
========================= */
.profile-hero-card {
    display: grid;
    grid-template-columns: 112px minmax(0,1fr);
    gap: 18px;
    align-items: center;
    padding: clamp(18px, 4vw, 30px);
    margin-bottom: 14px;
}
.profile-avatar-wrap { align-self: start; }
.profile-avatar-large,
.profile-avatar-fallback {
    width: 112px !important;
    height: 112px !important;
    border-radius: 28px !important;
    object-fit: cover !important;
    border: 1px solid rgba(103,232,249,.28) !important;
    box-shadow: 0 18px 42px rgba(34,211,238,.16) !important;
}
.profile-avatar-fallback {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #06121a !important;
    background: linear-gradient(135deg, var(--ls-cyan-2), var(--ls-violet)) !important;
    font-size: 44px !important;
    font-weight: 1000 !important;
}
.profile-identity-block { min-width: 0; }
.profile-identity-block h1 { margin: 0; }
.profile-username { margin: 5px 0 0; color: var(--ls-cyan-2); font-weight: 850; }
.profile-bio { max-width: 720px; margin: 12px 0 0; color: #cbd5e1; line-height: 1.58; }
.profile-bio.muted { color: var(--ls-dim); }
.profile-badge-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.profile-soft-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--ls-line);
    background: rgba(255,255,255,.04);
    color: var(--ls-muted);
    font-size: 12px;
    font-weight: 850;
}
.profile-score-panel {
    grid-column: 1 / -1;
    display: grid;
    justify-items: start;
    gap: 5px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--ls-line);
    background: rgba(255,255,255,.04);
}
.profile-score-panel strong { color: var(--ls-green-2); font-size: 34px; line-height: 1; }
.profile-score-panel em { color: var(--ls-muted); font-style: normal; font-size: 12px; font-weight: 850; }
.profile-stat-grid { margin-bottom: 14px; }
.profile-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.profile-panel { padding: clamp(16px, 3vw, 24px) !important; }
.profile-panel h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; color: var(--ls-text); }
.profile-panel p { color: var(--ls-muted); line-height: 1.55; }
.profile-form,
.profile-password-form { display: grid !important; gap: 12px !important; margin-top: 14px !important; }
.profile-form label,
.profile-password-form label { display: grid; gap: 7px; color: var(--ls-muted); font-size: 12px; font-weight: 850; }
.profile-form input,
.profile-form textarea,
.profile-password-form input {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    border: 1px solid var(--ls-line) !important;
    background: rgba(2,6,23,.56) !important;
    color: var(--ls-text) !important;
    padding: 0 14px !important;
}
.profile-form textarea { min-height: 130px !important; padding: 14px !important; resize: vertical; }
.premium-review-list { display: grid; gap: 10px; }
.premium-review-item {
    padding: 14px !important;
    border-radius: 18px !important;
    border: 1px solid var(--ls-line) !important;
    background: rgba(255,255,255,.04) !important;
}
.premium-review-item small { color: var(--ls-muted); }
.review-body { margin-top: 8px; color: #dbeafe; line-height: 1.55; }
.profile-listing-list { display: grid; gap: 10px; }
.premium-profile-listing {
    display: grid !important;
    grid-template-columns: 64px minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px !important;
    border-radius: 18px !important;
    border: 1px solid var(--ls-line) !important;
    background: rgba(255,255,255,.04) !important;
    text-decoration: none !important;
    color: var(--ls-text) !important;
}
.profile-listing-main { display: grid; gap: 4px; min-width: 0; }
.profile-listing-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.profile-listing-main em { color: var(--ls-muted); font-size: 11px; font-style: normal; }
.bot-field {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
@media (min-width: 860px) {
    .profile-hero-card { grid-template-columns: 140px minmax(0,1fr) 220px; }
    .profile-avatar-large,
    .profile-avatar-fallback { width: 140px !important; height: 140px !important; }
    .profile-score-panel { grid-column: auto; justify-items: center; align-self: stretch; align-content: center; }
    .profile-panel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
    .profile-hero-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .profile-badge-row { justify-content: center; }
    .profile-score-panel { justify-items: center; }
    .premium-profile-listing { grid-template-columns: 58px minmax(0,1fr); }
    .premium-profile-listing .mypost-sub { grid-column: 2; justify-self: start; }
}


/* =========================================================
   LEPANTOSTREET FINAL POLISH — HEADER, POST SPACING, MANAGE POST
   ADDED: Requested after premium refresh.
   CHANGED: Fixes mobile username clipping, improves normal post spacing, and styles manage_post.php.
========================================================= */

/* CHANGED: Mobile username must not be clipped. It can wrap cleanly instead of truncating names like Administrator. */
@media (max-width: 720px) {
    body .marketplace-nav .user-action-row {
        grid-template-columns: minmax(0, 1fr) max-content !important;
        gap: 8px !important;
        min-height: 54px !important;
        padding: 7px 8px 7px 12px !important;
        align-items: center !important;
    }

    body .marketplace-nav .welcome-text {
        max-width: none !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.15 !important;
        flex-wrap: wrap !important;
        row-gap: 2px !important;
        font-size: clamp(12px, 3.4vw, 13px) !important;
    }

    body .marketplace-nav .welcome-link,
    body .marketplace-nav .welcome-link strong {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        line-height: 1.08 !important;
        font-size: clamp(13px, 3.75vw, 15px) !important;
    }

    body .marketplace-nav .header-post-cta {
        min-width: 116px !important;
        padding-inline: 12px !important;
    }
}

@media (max-width: 350px) {
    body .marketplace-nav .user-action-row {
        grid-template-columns: 1fr !important;
    }

    body .marketplace-nav .header-post-cta {
        width: 100% !important;
    }
}

/* CHANGED: More breathing room between normal marketplace posts, matching the cleaner preview rhythm. */
body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page):not(.manage-post-page) .grid {
    gap: clamp(16px, 2vw, 24px) !important;
    padding-top: clamp(24px, 3vw, 36px) !important;
}

@media (max-width: 768px) {
    body:not(.view-page):not(.post-ad-page):not(.myposts-page):not(.profile-page):not(.manage-post-page) .grid {
        gap: 12px !important;
        padding: 14px 10px 30px !important;
    }
}

/* CHANGED: Keep compact premium cards off non-marketplace pages. */
body.manage-post-page .grid > a.card,
body.profile-page .grid > a.card,
body.myposts-page .grid > a.card,
body.post-ad-page .grid > a.card {
    transform: none;
}

/* =========================
   MANAGE POST — premium control center
========================= */
.manage-post-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.manage-post-shell {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto;
    padding: 18px 0 44px;
}

.manage-post-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.manage-post-back-btn,
.manage-post-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--ls-line);
    color: var(--ls-text);
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    background: rgba(255,255,255,.045);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.manage-post-back-btn:hover,
.manage-post-view-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(34,211,238,.34);
    background: rgba(34,211,238,.10);
}

.manage-post-hero {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: clamp(14px, 3vw, 24px) !important;
    margin-bottom: 16px;
}

.manage-post-cover {
    position: relative;
    width: 160px;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(103,232,249,.22);
    background: radial-gradient(circle at 25% 10%, rgba(34,211,238,.18), transparent 48%), rgba(255,255,255,.04);
    box-shadow: 0 18px 45px rgba(0,0,0,.34);
}

.manage-post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manage-post-cover-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--ls-muted);
    font-weight: 900;
}

.manage-status-pill {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 10px 24px rgba(0,0,0,.26);
}

.manage-status-pill.is-active { background: linear-gradient(135deg, #22c55e, #16f29a); color: #052e16; }
.manage-status-pill.is-sold { background: linear-gradient(135deg, #ff2d55, #ff7a18); }

.manage-post-hero-main { min-width: 0; }
.manage-post-hero-main h1 {
    margin: 0;
    color: var(--ls-text);
    font-size: clamp(28px, 4vw, 50px);
    line-height: .95;
    letter-spacing: -.07em;
    overflow-wrap: anywhere;
}

.manage-post-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.manage-post-meta-row span,
.manage-mini-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--ls-line);
    background: rgba(255,255,255,.045);
    color: var(--ls-muted);
    font-size: 12px;
    font-weight: 850;
}

.manage-post-meta-row span:first-child {
    color: var(--ls-green-2);
    font-weight: 1000;
}

.manage-post-desc-preview {
    max-width: 720px;
    margin: 12px 0 0;
    color: #cbd5e1;
    line-height: 1.55;
    font-size: 14px;
}

.manage-post-action-stack {
    grid-column: 1 / -1;
    padding-top: 4px;
}

.manage-post-quick-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.manage-action-primary,
.manage-action-danger {
    min-height: 46px !important;
    width: 100% !important;
}

.manage-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.manage-post-editor-panel,
.manage-post-image-panel,
.manage-post-tips-panel {
    padding: clamp(16px, 3vw, 24px) !important;
}

.manage-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.manage-panel-head h2 {
    margin: 0;
    color: var(--ls-text);
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.05em;
    line-height: 1;
}

.manage-panel-head.compact h2 { font-size: 24px; }

.premium-manage-form {
    display: grid !important;
    gap: 14px !important;
}

.premium-manage-form label {
    display: grid;
    gap: 7px;
    color: var(--ls-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .03em;
}

.premium-manage-form input,
.premium-manage-form textarea,
.manage-post-upload-form input[type="file"] {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    border: 1px solid var(--ls-line) !important;
    background: rgba(2,6,23,.56) !important;
    color: var(--ls-text) !important;
    padding: 0 14px !important;
    outline: none !important;
}

.premium-manage-form textarea {
    min-height: 170px !important;
    padding: 14px !important;
    resize: vertical;
}

.premium-manage-form input:focus,
.premium-manage-form textarea:focus {
    border-color: rgba(34,211,238,.48) !important;
    box-shadow: 0 0 0 4px rgba(34,211,238,.11) !important;
}

.manage-post-price-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.manage-post-field-note {
    margin-top: -6px;
    color: var(--ls-dim);
    font-size: 12px;
    line-height: 1.35;
}

.manage-save-btn { min-height: 50px !important; }

.manage-post-side-panel {
    display: grid;
    gap: 16px;
    align-content: start;
}

.manage-post-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.manage-post-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--ls-line);
    aspect-ratio: 1;
}

.manage-post-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .24s ease;
}

.manage-post-image-card:hover img { transform: scale(1.04); }

.manage-post-delete-image-form {
    position: absolute;
    top: 8px;
    right: 8px;
}

.manage-post-delete-image-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2d55, #ff7a18);
    color: #fff;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,.28);
}

.manage-post-empty-media {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 18px;
    border: 1px dashed rgba(103,232,249,.32);
    color: var(--ls-muted);
    background: rgba(34,211,238,.055);
    line-height: 1.45;
}

.manage-post-upload-form {
    display: grid;
    gap: 10px;
}

.manage-upload-zone {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    border: 1px dashed rgba(103,232,249,.36);
    background: rgba(34,211,238,.055);
    color: var(--ls-text);
    cursor: pointer;
}

.manage-upload-zone span { font-weight: 950; }
.manage-upload-zone em { color: var(--ls-muted); font-style: normal; font-size: 12px; }
.manage-upload-zone input { margin-top: 8px; }

.manage-image-preview {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--ls-line);
    background: rgba(255,255,255,.04);
}

.manage-image-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.manage-post-tips-panel ul {
    margin: 10px 0 0 18px;
    color: var(--ls-muted);
    line-height: 1.6;
    font-size: 13px;
}

.manage-post-alert {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-weight: 800;
    line-height: 1.4;
}
.manage-post-alert.success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #86efac; }
.manage-post-alert.error { background: rgba(239,68,68,.13); border: 1px solid rgba(239,68,68,.30); color: #fecaca; }

@media (min-width: 920px) {
    .manage-post-hero {
        grid-template-columns: 180px minmax(0, 1fr) 250px;
    }

    .manage-post-cover {
        width: 180px;
    }

    .manage-post-action-stack {
        grid-column: auto;
    }

    .manage-post-quick-form {
        grid-template-columns: 1fr;
    }

    .manage-post-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
}

@media (max-width: 620px) {
    .manage-post-shell {
        width: min(100% - 18px, 1180px);
        padding-top: 12px;
    }

    .manage-post-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .manage-post-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .manage-post-cover {
        width: min(68vw, 220px);
    }

    .manage-post-meta-row,
    .manage-panel-head {
        justify-content: center;
    }

    .manage-post-price-row,
    .manage-post-quick-form {
        grid-template-columns: 1fr;
    }
}

/* // REMOVED: Superseded oversized normal-post wrapper fix. Reason: replaced by mobile-first progressive grid architecture below. */

/* =========================================================
   // ADDED: MOBILE-FIRST POST GRID ARCHITECTURE — 2026-05
   Reason:
   - Replaces the oversized wrapper experiment with a true bottom-up grid.
   - Mobile starts as a dense single-column stack.
   - Tablet scales to 2 columns.
   - Laptop locks to 3 balanced columns.
   - Wide screens lock to 4 balanced columns.
   - Keeps the cyberpunk glassmorphic card effects and reversible hover shine.
========================================================= */
.marketplace-home {
    --ls-post-shell-mobile: min(100% - 24px, 540px);
    --ls-post-shell-tablet: min(100% - 40px, 1040px);
    --ls-post-shell-laptop: min(100% - 56px, 1320px);
    --ls-post-shell-wide: min(100% - 72px, 1680px);
    --ls-post-gap: 14px;
    --ls-post-radius: 20px;
    --ls-post-thumb: 96px;
}

/* // CHANGED: Base mobile/touch layout is now the source of truth, not a shrunken desktop grid. */
.marketplace-home .marketplace-post-grid,
.marketplace-home .grid.marketplace-post-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: var(--ls-post-gap) !important;
    width: var(--ls-post-shell-mobile) !important;
    max-width: 540px !important;
    margin: 0 auto 42px !important;
    padding: 14px 0 46px !important;
    align-items: stretch !important;
}

/* // CHANGED: Normal listing card uses one unified grid container so text and media stay visually locked. */
.marketplace-home .marketplace-post-grid > a.card {
    --post-thumb-size: var(--ls-post-thumb);
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--post-thumb-size) !important;
    grid-template-areas: "info media" !important;
    align-items: stretch !important;
    gap: 0.72rem !important;
    min-height: 116px !important;
    padding: 0.72rem !important;
    border-radius: var(--ls-post-radius) !important;
    background:
        linear-gradient(145deg, rgba(28,33,48,0.78), rgba(10,14,24,0.88)) !important;
    border: 1px solid rgba(255,255,255,0.085) !important;
    box-shadow:
        0 18px 46px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.055) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
    transform: translateZ(0) !important;
    will-change: transform, box-shadow !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

/* // CHANGED: Reversible glass shine is preserved, but scoped to marketplace post cards only. */
.marketplace-home .marketplace-post-grid > a.card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    padding: 1px !important;
    background: linear-gradient(135deg, rgba(124,92,255,0.78), transparent 36%, transparent 62%, rgba(0,224,255,0.46), rgba(255,92,138,0.60)) !important;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
    -webkit-mask-composite: xor !important;
            mask-composite: exclude !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.34s ease !important;
}

.marketplace-home .marketplace-post-grid > a.card::after {
    content: '' !important;
    position: absolute !important;
    top: -70% !important;
    left: -85% !important;
    width: 70% !important;
    height: 240% !important;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.18) 45%, rgba(255,255,255,0.08) 55%, transparent 100%) !important;
    transform: translateX(-120%) rotate(18deg) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 3 !important;
    transition: transform 0.62s cubic-bezier(.22,1,.36,1), opacity 0.36s ease !important;
}

/* // CHANGED: Media stays in a fixed 1:1 box to eliminate shifting and whitespace dead-zones. */
.marketplace-home .marketplace-post-grid > a.card .compact-thumb {
    grid-area: media !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    align-self: center !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: radial-gradient(circle at 40% 35%, rgba(124,92,255,0.18), rgba(5,6,10,0.96)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.055),
        0 14px 28px rgba(0,0,0,0.30) !important;
    z-index: 2 !important;
}

.marketplace-home .marketplace-post-grid > a.card .compact-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transform: scale(1.001) !important;
    transition: transform 0.48s cubic-bezier(.22,1,.36,1), filter 0.48s ease !important;
}

.marketplace-home .marketplace-post-grid > a.card .compact-thumb img[src*="No_Image.png"] {
    object-fit: contain !important;
    padding: 16px !important;
    opacity: 0.72 !important;
    filter: saturate(1.2) brightness(0.92) !important;
}

.marketplace-home .marketplace-post-grid > a.card .compact-thumb::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.42)),
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.11), transparent 36%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* // CHANGED: Text block becomes a dense vertical stack with no forced dead height. */
.marketplace-home .marketplace-post-grid > a.card .compact-info {
    grid-area: info !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.38rem !important;
    padding: 0.08rem 0 0.08rem 0.08rem !important;
    z-index: 4 !important;
}

.marketplace-home .marketplace-post-grid > a.card .compact-info > * {
    margin: 0 !important;
}

.marketplace-home .marketplace-post-grid > a.card .compact-info h3,
.marketplace-home .marketplace-post-grid > a.card .listing-title {
    color: #f8fafc !important;
    font-size: clamp(1.02rem, 4.2vw, 1.14rem) !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    min-height: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.marketplace-home .marketplace-post-grid > a.card .compact-seller {
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.32rem !important;
    color: #9fb2d7 !important;
    font-size: 0.72rem !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.marketplace-home .marketplace-post-grid > a.card .compact-seller .seller-name,
.marketplace-home .marketplace-post-grid > a.card .compact-seller span:last-child {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.marketplace-home .marketplace-post-grid > a.card .mini-rank {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    font-size: 0.72rem !important;
}

.marketplace-home .marketplace-post-grid > a.card .card-price {
    margin-top: 0.08rem !important;
    padding-top: 0 !important;
    font-size: clamp(1.16rem, 4.6vw, 1.34rem) !important;
    font-weight: 1000 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.marketplace-home .marketplace-post-grid > a.card .compact-thumb .sold-badge {
    top: 7px !important;
    left: 7px !important;
    z-index: 6 !important;
    max-width: calc(100% - 14px) !important;
    min-height: 20px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    font-size: 0.56rem !important;
    line-height: 20px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    backdrop-filter: blur(10px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
}

/* // CHANGED: Hover movement is desktop/pointer-only so touch devices stay stable. */
@media (hover: hover) and (pointer: fine) {
    .marketplace-home .marketplace-post-grid > a.card:hover {
        transform: translate3d(0, -7px, 0) scale(1.012) !important;
        border-color: rgba(124,92,255,0.34) !important;
        box-shadow:
            0 26px 70px rgba(0,0,0,0.46),
            0 0 0 1px rgba(124,92,255,0.22),
            0 0 38px rgba(0,224,255,0.11) !important;
        z-index: 20 !important;
    }

    .marketplace-home .marketplace-post-grid > a.card:hover::before {
        opacity: 1 !important;
    }

    .marketplace-home .marketplace-post-grid > a.card:hover::after {
        transform: translateX(355%) rotate(18deg) !important;
        opacity: 1 !important;
    }

    .marketplace-home .marketplace-post-grid > a.card:hover .compact-thumb img {
        transform: scale(1.075) !important;
        filter: brightness(1.07) saturate(1.09) !important;
    }
}

/* // ADDED: Tablet breakpoint — exactly 2 columns. */
@media (min-width: 768px) {
    .marketplace-home {
        --ls-post-gap: 16px;
        --ls-post-thumb: 102px;
    }

    .marketplace-home .marketplace-post-grid,
    .marketplace-home .grid.marketplace-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: var(--ls-post-shell-tablet) !important;
        max-width: 1040px !important;
        padding-top: 24px !important;
        padding-bottom: 58px !important;
    }

    .marketplace-home .marketplace-post-grid > a.card {
        min-height: 124px !important;
        padding: 0.82rem !important;
        gap: 0.82rem !important;
    }

    .marketplace-home .marketplace-post-grid > a.card .compact-info h3,
    .marketplace-home .marketplace-post-grid > a.card .listing-title {
        font-size: 1.05rem !important;
    }

    .marketplace-home .marketplace-post-grid > a.card .card-price {
        font-size: 1.24rem !important;
    }
}

/* // ADDED: Laptop breakpoint — strict balanced 3-column grid. */
@media (min-width: 1024px) {
    .marketplace-home {
        --ls-post-gap: 18px;
        --ls-post-thumb: 108px;
    }

    .marketplace-home .marketplace-post-grid,
    .marketplace-home .grid.marketplace-post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        width: var(--ls-post-shell-laptop) !important;
        max-width: 1320px !important;
        padding-top: 30px !important;
        padding-bottom: 66px !important;
    }

    .marketplace-home .marketplace-post-grid > a.card {
        min-height: 132px !important;
        padding: 0.9rem !important;
        gap: 0.9rem !important;
    }

    .marketplace-home .marketplace-post-grid > a.card .compact-info h3,
    .marketplace-home .marketplace-post-grid > a.card .listing-title {
        font-size: 1.08rem !important;
        line-height: 1.07 !important;
    }

    .marketplace-home .marketplace-post-grid > a.card .card-price {
        font-size: 1.28rem !important;
    }
}

/* // ADDED: Wide breakpoint — strict high-density 4-column grid. */
@media (min-width: 1440px) {
    .marketplace-home {
        --ls-post-gap: 20px;
        --ls-post-thumb: 112px;
    }

    .marketplace-home .marketplace-post-grid,
    .marketplace-home .grid.marketplace-post-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: var(--ls-post-shell-wide) !important;
        max-width: 1680px !important;
    }

    .marketplace-home .marketplace-post-grid > a.card {
        min-height: 136px !important;
    }
}

/* // ADDED: Very small phone protection. */
@media (max-width: 374px) {
    .marketplace-home {
        --ls-post-thumb: 84px;
    }

    .marketplace-home .marketplace-post-grid,
    .marketplace-home .grid.marketplace-post-grid {
        width: min(100% - 18px, 520px) !important;
        gap: 10px !important;
    }

    .marketplace-home .marketplace-post-grid > a.card {
        padding: 0.62rem !important;
        gap: 0.58rem !important;
        min-height: 104px !important;
    }

    .marketplace-home .marketplace-post-grid > a.card .compact-info h3,
    .marketplace-home .marketplace-post-grid > a.card .listing-title {
        font-size: 0.96rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .marketplace-home .marketplace-post-grid > a.card .card-price {
        font-size: 1.08rem !important;
    }
}

/* // ADDED: Accessibility/performance guard for motion-sensitive users. */
@media (prefers-reduced-motion: reduce) {
    .marketplace-home .marketplace-post-grid > a.card,
    .marketplace-home .marketplace-post-grid > a.card::before,
    .marketplace-home .marketplace-post-grid > a.card::after,
    .marketplace-home .marketplace-post-grid > a.card .compact-thumb img {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .marketplace-home .marketplace-post-grid > a.card:hover {
        transform: none !important;
    }
}


/* =========================================================
   // ADDED: COMMUNITY SUPPORT / CREDITS / BADGES
   Purpose: server-fund transparency, credit wallet, boost UI, supporter recognition.
========================================================= */
.supporter-mini-badge,
.supporter-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0,224,255,.12), rgba(124,92,255,.16));
    border: 1px solid rgba(0,224,255,.22);
    color: #dff8ff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(0,224,255,.10);
}
.supporter-mini-badge em,
.supporter-profile-badge em {
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}
.compact-seller .supporter-mini-badge em { display: none; }
.supporter-profile-badge {
    font-size: 11px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(255,210,122,.13), rgba(124,92,255,.16));
    border-color: rgba(255,210,122,.26);
}
.support-nav-btn::before { background: linear-gradient(135deg, #00E0FF, #7C5CFF, #FF5C8A) !important; }

.support-page {
    min-height: 100vh;
    overflow-x: hidden;
}
.support-shell {
    width: min(100% - 24px, 1180px);
    margin: 0 auto;
    padding: 16px 0 44px;
}
.support-topbar {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 14px;
}
.support-hero h1 {
    font-size: clamp(30px, 9vw, 62px);
    line-height: .96;
    letter-spacing: -1.8px;
    margin: 4px 0 10px;
    background: linear-gradient(135deg, #fff, #dbeafe 45%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.support-hero p {
    color: var(--text-dim);
    line-height: 1.55;
    max-width: 720px;
}
.support-wallet-card {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.055);
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 42px rgba(0,0,0,.25);
}
.support-wallet-card span,
.support-wallet-card em {
    display: block;
    color: var(--text-dim);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.support-wallet-card strong {
    display: block;
    font-size: 48px;
    line-height: 1;
    margin: 8px 0;
    color: #fff;
}
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 14px 0;
}
.support-card {
    padding: 16px;
    border-radius: 22px;
    min-width: 0;
}
.support-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.support-card h2 {
    margin: 4px 0;
    font-size: clamp(24px, 7vw, 38px);
    letter-spacing: -.9px;
}
.support-card-head > strong {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.28);
    color: #86efac;
    font-size: 13px;
}
.support-progress {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    margin: 12px 0;
}
.support-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--gradient-green);
    box-shadow: 0 0 22px rgba(34,197,94,.28);
}
.support-card p,
.support-note {
    color: var(--text-dim);
    line-height: 1.55;
}
.support-gcash-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
    margin: 12px 0;
    border-radius: 16px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.08);
}
.support-gcash-box span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.support-gcash-box strong {
    color: #fff;
    font-size: 18px;
    word-break: break-word;
}
.support-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}
.support-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 900;
}
.support-form input,
.support-form textarea {
    width: 100%;
    min-width: 0;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: rgba(8,10,16,.62);
    color: var(--text);
    padding: 12px 13px;
    font: inherit;
    outline: none;
}
.support-form textarea { min-height: 90px; resize: vertical; }
.support-form .full { grid-column: 1 / -1; }
.support-check {
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px !important;
}
.support-check input { width: auto !important; }
.support-login-cta { margin-top: 12px; }
.boost-price-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 14px 0;
}
.boost-price-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}
.boost-price-list span { color: var(--text-dim); font-weight: 800; }
.boost-price-list strong { color: #86efac; font-size: 18px; }
.support-badge-guide {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}
.support-badge-guide span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 12px;
    font-weight: 900;
}
.support-entry-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.support-entry {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 4px 10px;
    align-items: center;
    padding: 12px;
    border-radius: 15px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.075);
}
.support-entry span { color: var(--text-muted); font-size: 12px; font-weight: 900; }
.support-entry strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-entry em { grid-column: 2; color: var(--text-dim); font-size: 12px; font-style: normal; }
.support-entry b { grid-column: 2; color: #86efac; }
.support-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
}
.support-alert.success { color: #bbf7d0; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); }
.support-alert.error { color: #fecaca; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); }
.support-empty { color: var(--text-dim); padding: 14px; border: 1px dashed var(--border); border-radius: 14px; }
.myposts-boost-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 800;
}
.myposts-boost-prices b,
.credit-stat a {
    color: #86efac;
    text-decoration: none;
}
.credit-stat a {
    display: block;
    font-size: 11px;
    margin-top: 4px;
}
.manage-boost-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(0,224,255,.055);
    border: 1px solid rgba(0,224,255,.18);
}
.manage-boost-box > span,
.manage-boost-box > em,
.manage-buy-credits-link {
    color: var(--text-dim);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}
.manage-boost-box strong { color: #86efac; }
.manage-buy-credits-link { color: #67e8f9; text-decoration: none; }
.manage-boost-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.manage-boost-form select {
    min-width: 0;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(8,10,16,.72);
    color: var(--text);
    padding: 11px;
}
.manage-boost-form button[disabled],
.manage-boost-form select[disabled] {
    opacity: .5;
    cursor: not-allowed;
}
.bot-field {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
@media (min-width: 760px) {
    .support-hero { grid-template-columns: minmax(0, 1fr) 230px; padding: 28px; }
    .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .support-grid-wide { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); }
    .support-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .support-entry { grid-template-columns: 76px minmax(0, 1fr) 140px 120px; }
    .support-entry em,
    .support-entry b { grid-column: auto; }
}
@media (max-width: 480px) {
    .manage-boost-form { grid-template-columns: 1fr; }
    .manage-boost-form button { width: 100%; }
    .support-topbar { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   // ADDED: GCash QR support block
   Reason: Show the payment QR without forcing users to manually type the number.
========================================================= */
.support-gcash-layout {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin: 12px 0;
}
.support-gcash-qr {
    margin: 0;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 38px rgba(0,0,0,.24);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.support-gcash-qr img {
    width: min(100%, 190px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.support-gcash-qr figcaption {
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.support-qr-missing {
    display: block;
    margin-top: 8px;
    color: var(--gold);
    font-size: 12px;
    line-height: 1.45;
}
@media (max-width: 720px) {
    .support-gcash-layout {
        grid-template-columns: 1fr;
    }
    .support-gcash-qr img {
        width: min(100%, 240px);
    }
}

/* =========================================================
   // ADDED: FEATURED RAIL CLICK + LISTING IMAGE SAFETY FIX
   Reason:
   - The featured rail is draggable, but normal clicks must still open posts.
   - Older drag-scroll behavior could steal click events.
   - This layer keeps the cards clickable and disables text selection only while dragging.
========================================================= */

.featured-showcase.js-drag-scroll {
    cursor: grab !important;
    user-select: auto !important;
}

.featured-showcase.js-drag-scroll.is-dragging,
.featured-showcase.js-drag-scroll.dragging {
    cursor: grabbing !important;
    user-select: none !important;
}

.featured-showcase.js-drag-scroll .feat-card,
.featured-showcase.js-drag-scroll .feat-card * {
    pointer-events: auto !important;
}

.featured-showcase.js-drag-scroll .feat-card {
    position: relative !important;
    z-index: 2 !important;
}

/* // ADDED: Broken images should not collapse the detail/gallery frame. */
.main-image-box img,
.compact-thumb img,
.feat-thumb img {
    min-width: 1px;
    min-height: 1px;
}

/* =========================================================
   SUPPORT PAGE TYPOGRAPHY NORMALIZATION
   // ADDED: Fix support.php oversized / over-bold look.
========================================================= */
.support-page {
    font-size: 15px;
    line-height: 1.58;
}

.support-page h1 {
    font-size: clamp(1.75rem, 7vw, 3rem) !important;
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.support-page h2 {
    font-size: clamp(1.15rem, 4.5vw, 1.65rem) !important;
    line-height: 1.18;
    font-weight: 760;
    letter-spacing: -0.025em;
}

.support-page h3,
.support-page h4 {
    font-weight: 700;
}

.support-page p,
.support-page label,
.support-page input,
.support-page textarea,
.support-page select,
.support-page small,
.support-page li,
.support-page em,
.support-page span {
    font-weight: 400;
}

.support-page strong,
.support-page b {
    font-weight: 740;
}

.support-page .support-form label {
    font-size: 0.92rem;
    font-weight: 620;
}

.support-page .support-form input,
.support-page .support-form textarea,
.support-page .support-form select {
    font-size: 1rem;
    font-weight: 400;
}

@media (max-width: 520px) {
    .support-page { font-size: 14px; }
    .support-page h1 { font-size: 2rem !important; }
    .support-page h2 { font-size: 1.25rem !important; }
}

/* =========================================================
   POST-AD FEATURE BOOST DROPDOWN
   // ADDED: Replaces old checkbox feature styling.
========================================================= */
.post-feature-boost-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(0, 224, 255, 0.24);
    background: rgba(0, 224, 255, 0.07);
    margin-bottom: 4px;
}

.post-feature-boost-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.post-feature-boost-head strong {
    color: #facc15;
    font-weight: 850;
}

.post-feature-boost-head span,
.post-feature-boost-note {
    color: var(--text-dim, #a8b3cf);
    font-size: 0.9rem;
    line-height: 1.45;
}

.post-feature-boost-box label {
    display: grid;
    gap: 7px;
    font-weight: 720;
    font-size: 0.9rem;
}

.post-feature-boost-box select {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(8,10,16,0.82);
    color: inherit;
}

.post-feature-boost-note a {
    color: #67e8f9;
    font-weight: 760;
    text-decoration: none;
}
/* =========================================================
   SUPPORT PAGE NORMAL TYPOGRAPHY — FINAL OVERRIDE
   // ADDED: force support.php back to readable normal text.
========================================================= */
body.support-page,
.support-page {
    font-size: 15px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
}
body.support-page .support-shell {
    max-width: 1080px !important;
}
body.support-page .support-hero {
    padding: 18px !important;
    gap: 14px !important;
}
body.support-page .support-hero h1 {
    font-size: clamp(28px, 6vw, 44px) !important;
    line-height: 1.02 !important;
    letter-spacing: -1.1px !important;
    margin-bottom: 8px !important;
    font-weight: 850 !important;
}
body.support-page .support-hero p,
body.support-page .support-card p,
body.support-page .support-note,
body.support-page .support-entry em,
body.support-page .support-empty {
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
}
body.support-page .support-card {
    padding: 14px !important;
    border-radius: 18px !important;
}
body.support-page .support-card h2 {
    font-size: clamp(20px, 4.6vw, 28px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.45px !important;
    font-weight: 760 !important;
}
body.support-page .support-card-head > strong {
    font-size: 12px !important;
    font-weight: 760 !important;
    padding: 6px 9px !important;
}
body.support-page .support-wallet-card {
    padding: 14px !important;
    border-radius: 18px !important;
}
body.support-page .support-wallet-card strong {
    font-size: clamp(30px, 9vw, 40px) !important;
    line-height: 1 !important;
    font-weight: 820 !important;
}
body.support-page .support-wallet-card span,
body.support-page .support-wallet-card em,
body.support-page .support-gcash-box span,
body.support-page .support-form label,
body.support-page .boost-price-list span,
body.support-page .support-entry span {
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: .04em !important;
}
body.support-page .support-gcash-box strong,
body.support-page .boost-price-list strong,
body.support-page .support-entry strong,
body.support-page .support-entry b {
    font-size: 14px !important;
    font-weight: 740 !important;
}
body.support-page .support-form input,
body.support-page .support-form textarea,
body.support-page .support-form select {
    font-size: 15px !important;
    font-weight: 400 !important;
    padding: 10px 12px !important;
}
body.support-page .support-alert {
    font-size: 14px !important;
    font-weight: 650 !important;
}
body.support-page b,
body.support-page strong {
    font-weight: 740;
}
@media (max-width: 560px) {
    body.support-page .support-shell {
        width: min(100% - 18px, 1080px) !important;
        padding-top: 10px !important;
    }
    body.support-page .support-hero h1 {
        font-size: 30px !important;
    }
    body.support-page .support-card h2 {
        font-size: 21px !important;
    }
    body.support-page .support-wallet-card strong {
        font-size: 32px !important;
    }
}


/* FINAL SUPPORT TYPOGRAPHY FORCE + ROOM SETTINGS MODAL SAFETY */
body.support-page .support-hero h1{font-size:clamp(1.8rem,6vw,3rem)!important;line-height:1.05!important;font-weight:850!important}
body.support-page .support-wallet-card strong{font-size:clamp(2rem,9vw,4rem)!important;font-weight:850!important}
body.support-page .support-card h2{font-size:clamp(1.15rem,4.3vw,1.55rem)!important;font-weight:760!important;line-height:1.18!important}
body.support-page .support-card p,body.support-page .support-form label,body.support-page .support-note,body.support-page .support-entry{font-size:.96rem!important;font-weight:400!important;line-height:1.55!important}
body.support-page .support-card strong,body.support-page .boost-price-list strong{font-weight:760!important}
body.support-page .section-kicker{font-size:.74rem!important;font-weight:800!important}
body.support-page .support-form input,body.support-page .support-form textarea,body.support-page .support-form select{font-size:1rem!important;font-weight:400!important}
.room-tools-btn{min-width:38px!important;min-height:38px!important;display:inline-grid!important;place-items:center!important;font-size:22px!important;line-height:1!important;cursor:pointer!important;z-index:5!important}.room-tools-btn[hidden]{display:none!important}.room-settings-modal:not([hidden]){display:grid!important;position:fixed!important;inset:0!important;z-index:99999!important;place-items:center!important;background:rgba(0,0,0,.68)!important;padding:18px!important}.room-settings-dialog{width:min(96vw,460px)!important;max-height:88vh!important;overflow:auto!important}

/* =========================================================
   HEADER MENU DROPDOWN + ABOUT NAV
   // ADDED: Header cleanup. Only Support/About stay visible; the rest lives in Menu.
========================================================= */
.header-compact-nav {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.header-menu-wrap {
    position: relative;
    display: inline-flex;
    z-index: 500;
}

.header-menu-wrap summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.header-menu-wrap summary::-webkit-details-marker {
    display: none;
}

.header-more-btn,
.about-nav-btn {
    white-space: nowrap;
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(9, 13, 28, 0.96);
    box-shadow: 0 24px 70px rgba(0,0,0,0.42);
    backdrop-filter: blur(18px);
    display: grid;
    gap: 5px;
    transform-origin: top right;
    animation: headerMenuIn .14s ease-out;
}

.header-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 13px;
    color: var(--text, #f8fafc);
    text-decoration: none;
    font-weight: 750;
    line-height: 1.15;
}

.header-dropdown-menu a:hover {
    background: rgba(255,255,255,0.10);
}

.header-dropdown-menu a.danger {
    color: #fecaca;
}

.header-dropdown-menu .menu-badge {
    margin-left: auto;
    position: static;
}

@keyframes headerMenuIn {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 680px) {
    .header-compact-nav {
        width: 100%;
        justify-content: center;
    }

    .header-menu-wrap {
        position: static;
    }

    .header-dropdown-menu {
        position: fixed;
        top: auto;
        right: 10px;
        left: 10px;
        margin-top: 52px;
        min-width: 0;
        z-index: 9999;
    }
}
/* =========================================================
   HEADER COMPACT MENU V3
   // ADDED: left compact menu + visible Support/About + unread badges.
========================================================= */
.marketplace-compact-header-v3{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px 14px!important;position:sticky;top:0;z-index:90;backdrop-filter:blur(18px)}
.marketplace-compact-header-v3 .compact-header-main-v3{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-width:0;order:1}.marketplace-compact-header-v3 .desktop-logo{order:2;margin-inline:auto}.marketplace-compact-header-v3 .header-right-spacer{order:3;min-width:160px}.compact-mobile-brand-v3{display:none!important}.compact-menu-wrap-v3{position:relative;display:inline-flex;align-items:center}.compact-menu-btn-v3{position:relative;width:42px;height:38px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.075);color:inherit;display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 26px rgba(0,0,0,.20);transition:transform .16s ease,background .16s ease,border-color .16s ease}.compact-menu-btn-v3:hover{transform:translateY(-1px);background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.25)}.compact-menu-icon-v3{font-size:1.15rem;line-height:1}.compact-menu-badge-v3,.compact-item-badge-v3{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 6px;border-radius:999px;background:#ff365f;color:#fff;font-size:.68rem;font-weight:900;box-shadow:0 7px 18px rgba(255,54,95,.34)}.compact-menu-badge-v3{position:absolute;right:-6px;top:-7px}.compact-top-link-v3{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.075);font-weight:750;font-size:.92rem;color:inherit;text-decoration:none;transition:transform .16s ease,background .16s ease,border-color .16s ease}.compact-top-link-v3:hover{transform:translateY(-1px);background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.24)}.compact-top-link-v3.support{color:#c7f9ff}.compact-top-link-v3.about{background:linear-gradient(135deg,rgba(56,232,255,.16),rgba(139,92,246,.13))}.compact-menu-panel-v3{position:absolute;left:0;top:calc(100% + 10px);width:min(275px,calc(100vw - 24px));padding:8px;border-radius:18px;border:1px solid rgba(255,255,255,.14);background:rgba(10,14,28,.96);box-shadow:0 28px 90px rgba(0,0,0,.48);backdrop-filter:blur(18px);z-index:999;animation:compactMenuIn .16s ease both}.compact-menu-panel-v3[hidden]{display:none!important}.compact-menu-panel-v3 a{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:11px 12px;border-radius:13px;color:#f8fafc;text-decoration:none;font-weight:680;font-size:.94rem;transition:background .15s ease,transform .15s ease}.compact-menu-panel-v3 a:hover{background:rgba(255,255,255,.09);transform:translateX(2px)}.compact-menu-panel-v3 a.danger{color:#fecdd3}.compact-menu-user-v3{padding:11px 12px 10px;margin-bottom:5px;border-radius:14px;background:linear-gradient(135deg,rgba(56,232,255,.12),rgba(139,92,246,.10));border:1px solid rgba(255,255,255,.10)}.compact-menu-user-v3 span{display:block;color:rgba(226,232,240,.72);font-size:.76rem;font-weight:650}.compact-menu-user-v3 strong{display:block;color:#fff;font-size:.94rem;line-height:1.25;margin-top:3px}.compact-item-badge-v3{position:static;margin-left:auto}@keyframes compactMenuIn{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width:760px){.marketplace-compact-header-v3{padding:8px 10px!important}.compact-mobile-brand-v3{display:flex!important;order:0}.marketplace-compact-header-v3 .desktop-logo{display:none!important}.marketplace-compact-header-v3 .header-right-spacer{display:none!important}.marketplace-compact-header-v3 .compact-header-main-v3{order:1;margin-left:auto}.compact-top-link-v3{min-height:36px;padding:7px 10px;font-size:.86rem}.compact-menu-btn-v3{width:39px;height:36px;border-radius:13px}.compact-menu-panel-v3{left:auto;right:0}.mobile-brand img{max-height:38px;width:auto}}
/* =========================================================
   HEADER REPAIR V4 CLEAN
   // ADDED: sane compact header after V3 got ugly.
========================================================= */
.marketplace-header-v4-clean {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    min-height: 64px !important;
}

.marketplace-header-v4-clean .mobile-header-row {
    display: none !important;
}

.marketplace-header-v4-clean .desktop-logo {
    margin-left: auto !important;
}

.marketplace-header-v4-clean .desktop-logo img,
.marketplace-header-v4-clean .mobile-brand img {
    max-height: 44px !important;
    width: auto !important;
}

.marketplace-nav-v4-clean {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 7px !important;
    min-width: 0 !important;
}

.user-action-row-v4-clean {
    min-height: auto !important;
    margin: 0 !important;
}

.nav-buttons-v4-clean {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 0 !important;
}

.header-menu-wrap-v4-clean {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.header-menu-btn-v4-clean {
    width: 38px !important;
    height: 34px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    background: rgba(255,255,255,.075) !important;
    color: inherit !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.header-menu-btn-v4-clean:hover {
    background: rgba(255,255,255,.13) !important;
    transform: translateY(-1px);
}

.header-quick-link-v4-clean {
    min-height: 34px !important;
    padding: 7px 11px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    background: rgba(255,255,255,.075) !important;
    color: inherit !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: .86rem !important;
    font-weight: 720 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.header-quick-link-v4-clean:hover {
    background: rgba(255,255,255,.13) !important;
    transform: translateY(-1px);
}

.header-menu-badge-v4-clean,
.header-item-badge-v4-clean {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #ff365f !important;
    color: #fff !important;
    font-size: .66rem !important;
    font-weight: 900 !important;
}

.header-menu-badge-v4-clean {
    position: absolute !important;
    right: -7px !important;
    top: -7px !important;
}

.header-item-badge-v4-clean {
    margin-left: auto !important;
}

.header-menu-panel-v4-clean {
    position: absolute !important;
    left: 0 !important;
    top: calc(100% + 8px) !important;
    width: min(255px, calc(100vw - 24px)) !important;
    padding: 8px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    background: rgba(10,14,28,.97) !important;
    box-shadow: 0 22px 70px rgba(0,0,0,.45) !important;
    backdrop-filter: blur(16px) !important;
    z-index: 9999 !important;
}

.header-menu-panel-v4-clean[hidden] {
    display: none !important;
}

.header-menu-panel-v4-clean a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 11px !important;
    border-radius: 12px !important;
    color: #f8fafc !important;
    text-decoration: none !important;
    font-size: .92rem !important;
    font-weight: 650 !important;
}

.header-menu-panel-v4-clean a:hover {
    background: rgba(255,255,255,.09) !important;
}

.header-menu-panel-v4-clean a.danger {
    color: #fecdd3 !important;
}

@media (max-width: 760px) {
    .marketplace-header-v4-clean {
        padding: 8px 10px !important;
        min-height: 56px !important;
    }

    .marketplace-header-v4-clean .mobile-header-row {
        display: flex !important;
        order: 1 !important;
        margin-right: auto !important;
    }

    .marketplace-header-v4-clean .desktop-logo {
        display: none !important;
    }

    .marketplace-nav-v4-clean {
        order: 2 !important;
        margin-left: auto !important;
        align-items: flex-end !important;
    }

    .marketplace-nav-v4-clean .welcome-text {
        display: none !important;
    }

    .nav-buttons-v4-clean {
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
    }

    .header-menu-panel-v4-clean {
        left: auto !important;
        right: 0 !important;
    }

    .header-quick-link-v4-clean {
        min-height: 32px !important;
        padding: 6px 9px !important;
        font-size: .8rem !important;
    }

    .header-menu-btn-v4-clean {
        width: 35px !important;
        height: 32px !important;
        min-width: 35px !important;
    }
}
/* =========================================================
   HEADER LOGO SIZE PATCH
   // ADDED: Make Lepanto Street logo/brand larger without breaking header.
========================================================= */
.marketplace-header .logo,
.marketplace-header .brand,
.marketplace-header .site-logo,
.marketplace-header .brand-logo,
.header .logo,
.header .brand,
.header .site-logo,
.header .brand-logo {
    font-size: clamp(1.45rem, 4.6vw, 2.35rem) !important;
    line-height: 1.02 !important;
    font-weight: 950 !important;
    letter-spacing: -0.055em !important;
}

.marketplace-header .logo img,
.marketplace-header .brand img,
.marketplace-header .site-logo img,
.marketplace-header .brand-logo img,
.header .logo img,
.header .brand img,
.header .site-logo img,
.header .brand-logo img {
    width: clamp(48px, 12vw, 76px) !important;
    height: clamp(48px, 12vw, 76px) !important;
    max-width: 76px !important;
    max-height: 76px !important;
    object-fit: contain !important;
}

.marketplace-header .logo small,
.marketplace-header .brand small,
.header .logo small,
.header .brand small {
    font-size: clamp(0.72rem, 2.3vw, 0.92rem) !important;
    letter-spacing: normal !important;
    font-weight: 600 !important;
    opacity: 0.82 !important;
}

@media (max-width: 520px) {
    .marketplace-header .logo,
    .marketplace-header .brand,
    .marketplace-header .site-logo,
    .marketplace-header .brand-logo,
    .header .logo,
    .header .brand,
    .header .site-logo,
    .header .brand-logo {
        font-size: clamp(1.28rem, 7vw, 1.75rem) !important;
        max-width: 58vw !important;
    }

    .marketplace-header .logo img,
    .marketplace-header .brand img,
    .marketplace-header .site-logo img,
    .marketplace-header .brand-logo img,
    .header .logo img,
    .header .brand img,
    .header .site-logo img,
    .header .brand-logo img {
        width: 52px !important;
        height: 52px !important;
    }
}
/* =========================================================
   HEADER MOBILE REPAIR V5
   // CHANGED: Logo + big Post Ad restored. Compact menu no longer dominates.
========================================================= */
.marketplace-header.ls-header-v5 {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px clamp(12px, 3vw, 22px) !important;
    position: sticky;
    top: 0;
    z-index: 50;
}

.ls-header-brand-zone {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
}

.ls-brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    flex: 0 0 auto !important;
}

.ls-brand-logo img {
    display: block !important;
    width: clamp(68px, 11vw, 112px) !important;
    height: auto !important;
    max-height: 74px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,.35));
}

.ls-header-main-zone {
    display: grid !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.ls-user-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.ls-user-row .welcome-text {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.header-post-cta.ls-post-ad-main {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    box-shadow: 0 14px 32px rgba(0, 224, 255, .18), inset 0 1px 0 rgba(255,255,255,.22) !important;
    transform: translateZ(0);
}

.header-post-cta.ls-post-ad-main:hover {
    transform: translateY(-1px) scale(1.015);
}

.ls-quick-nav {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.ls-menu-details {
    position: relative !important;
    flex: 0 0 auto !important;
}

.ls-menu-details summary {
    list-style: none !important;
}

.ls-menu-details summary::-webkit-details-marker {
    display: none !important;
}

.ls-menu-button {
    width: 42px !important;
    height: 38px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    cursor: pointer !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    background: rgba(255,255,255,.07) !important;
    color: inherit !important;
    font-weight: 900 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}

.ls-menu-icon {
    font-size: 1.15rem !important;
    line-height: 1 !important;
}

.ls-menu-badge,
.ls-menu-item-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #ff3b5c !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 18px rgba(255,59,92,.35) !important;
}

.ls-menu-badge {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
}

.ls-menu-panel {
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 10px) !important;
    min-width: 210px !important;
    padding: 8px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    background: rgba(8, 10, 18, .96) !important;
    backdrop-filter: blur(18px) !important;
    box-shadow: 0 22px 55px rgba(0,0,0,.45) !important;
    display: grid !important;
    gap: 5px !important;
    z-index: 99 !important;
}

.ls-menu-panel a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 11px 12px !important;
    border-radius: 13px !important;
    color: inherit !important;
    text-decoration: none !important;
    font-size: .94rem !important;
    font-weight: 700 !important;
}

.ls-menu-panel a:hover {
    background: rgba(0,224,255,.10) !important;
}

.ls-keep-visible {
    min-height: 38px !important;
    padding: 0 13px !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
    font-size: .92rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

.marketplace-header.ls-header-v5 .desktop-logo,
.marketplace-header.ls-header-v5 .mobile-header-row,
.marketplace-header.ls-header-v5 .header-right-spacer,
.marketplace-header.ls-header-v5 .nav-buttons {
    display: none !important;
}

@media (max-width: 680px) {
    .marketplace-header.ls-header-v5 {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        padding: 10px 10px !important;
    }

    .ls-header-brand-zone {
        justify-content: center !important;
    }

    .ls-brand-logo img {
        width: clamp(88px, 34vw, 138px) !important;
        max-height: 78px !important;
    }

    .ls-user-row {
        justify-content: center !important;
        gap: 8px !important;
    }

    .ls-user-row .welcome-text {
        max-width: 45vw !important;
        font-size: .86rem !important;
    }

    .header-post-cta.ls-post-ad-main {
        min-height: 44px !important;
        padding: 0 20px !important;
        font-size: .98rem !important;
    }

    .ls-quick-nav {
        justify-content: center !important;
        gap: 7px !important;
    }

    .ls-menu-button {
        width: 40px !important;
        height: 36px !important;
        min-width: 40px !important;
    }

    .ls-keep-visible {
        min-height: 36px !important;
        padding: 0 10px !important;
        font-size: .86rem !important;
    }

    .ls-menu-panel {
        left: 0 !important;
        right: auto !important;
        min-width: min(250px, 88vw) !important;
    }
}

@media (max-width: 380px) {
    .ls-user-row {
        display: grid !important;
        justify-items: center !important;
    }

    .ls-user-row .welcome-text {
        max-width: 92vw !important;
    }

    .header-post-cta.ls-post-ad-main {
        width: min(260px, 88vw) !important;
    }

    .ls-keep-visible {
        font-size: .82rem !important;
        padding: 0 8px !important;
    }
}

/* =========================================================
   HEADER CLEAN CENTER BRAND V6
   // CHANGED: Single centered brand, compact menu, visible Support/About, restored big Post Ad.
========================================================= */
.marketplace-header.ls-header-clean {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 12px clamp(10px, 3vw, 22px) 13px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
    background:
        radial-gradient(circle at 50% -35%, rgba(0,224,255,.20), transparent 46%),
        linear-gradient(180deg, rgba(8,12,22,.97), rgba(6,8,16,.94)) !important;
    border-bottom: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.35) !important;
    backdrop-filter: blur(16px) !important;
}

.ls-brand-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
}

.ls-brand-wordmark {
    display: inline-grid !important;
    justify-items: center !important;
    gap: 1px !important;
    text-decoration: none !important;
    text-align: center !important;
    line-height: 1 !important;
    transform: translateZ(0) !important;
}

.ls-brand-wordmark:hover {
    transform: translateY(-1px) scale(1.015) !important;
}

.ls-brand-name {
    display: block !important;
    font-size: clamp(2.05rem, 6vw, 4.15rem) !important;
    line-height: .88 !important;
    font-weight: 1000 !important;
    letter-spacing: -0.085em !important;
    color: #fff !important;
    text-shadow: 0 10px 34px rgba(0,0,0,.45) !important;
    white-space: nowrap !important;
}

.ls-brand-name::first-letter {
    color: #46f7ff !important;
}

.ls-brand-tag {
    display: block !important;
    margin-top: 3px !important;
    font-size: clamp(.82rem, 2vw, 1.02rem) !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: rgba(224,235,255,.78) !important;
    letter-spacing: .015em !important;
    text-transform: none !important;
}

.ls-header-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: min(100%, 980px) !important;
    min-width: 0 !important;
}

.ls-menu-details {
    position: relative !important;
    flex: 0 0 auto !important;
}

.ls-menu-details summary {
    list-style: none !important;
}

.ls-menu-details summary::-webkit-details-marker {
    display: none !important;
}

.ls-menu-button,
.ls-nav-chip,
.ls-post-ad-cta {
    border: 1px solid rgba(255,255,255,.13) !important;
    text-decoration: none !important;
    color: #eef6ff !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
}

.ls-menu-button {
    width: 42px !important;
    height: 38px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    cursor: pointer !important;
    background: rgba(255,255,255,.075) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}

.ls-menu-button:hover,
.ls-nav-chip:hover,
.ls-post-ad-cta:hover {
    transform: translateY(-1px) !important;
}

.ls-menu-icon {
    font-size: 1.15rem !important;
    line-height: 1 !important;
}

.ls-menu-badge,
.ls-menu-item-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #ff3b5c !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    box-shadow: 0 8px 18px rgba(255,59,92,.38) !important;
}

.ls-menu-badge {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
}

.ls-menu-panel {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 10px) !important;
    min-width: 220px !important;
    padding: 8px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    background: rgba(8,10,18,.97) !important;
    backdrop-filter: blur(18px) !important;
    box-shadow: 0 22px 55px rgba(0,0,0,.48) !important;
    display: grid !important;
    gap: 5px !important;
    z-index: 100 !important;
}

.ls-menu-panel a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 11px 12px !important;
    border-radius: 13px !important;
    color: inherit !important;
    text-decoration: none !important;
    font-size: .94rem !important;
    font-weight: 740 !important;
}

.ls-menu-panel a:hover {
    background: rgba(0,224,255,.10) !important;
}

.ls-nav-chip {
    min-height: 38px !important;
    padding: 0 13px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    background: rgba(255,255,255,.075) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
    font-size: .92rem !important;
}

.ls-welcome {
    color: rgba(226,235,255,.86) !important;
    font-weight: 700 !important;
    font-size: .92rem !important;
    white-space: nowrap !important;
    max-width: 220px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ls-welcome a {
    color: #fff !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.ls-post-ad-cta {
    min-height: 46px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 1.02rem !important;
    color: #06101a !important;
    background: linear-gradient(135deg, #00e5ff, #7c5cff) !important;
    border-color: rgba(255,255,255,.20) !important;
    box-shadow: 0 18px 38px rgba(0,224,255,.20), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.marketplace-header.ls-header-clean .desktop-logo,
.marketplace-header.ls-header-clean .mobile-header-row,
.marketplace-header.ls-header-clean .header-right-spacer,
.marketplace-header.ls-header-clean .nav-buttons,
.marketplace-header.ls-header-clean .ls-brand-logo,
.marketplace-header.ls-header-clean img {
    display: none !important;
}

@media (max-width: 720px) {
    .marketplace-header.ls-header-clean {
        padding: 11px 9px 12px !important;
        gap: 9px !important;
    }

    .ls-brand-name {
        font-size: clamp(2.25rem, 12vw, 3.55rem) !important;
    }

    .ls-header-actions {
        gap: 7px !important;
    }

    .ls-welcome {
        order: 4 !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        font-size: .82rem !important;
    }

    .ls-post-ad-cta {
        order: 5 !important;
        width: min(330px, 92vw) !important;
        min-height: 48px !important;
        font-size: 1.05rem !important;
        margin-top: 2px !important;
    }

    .ls-nav-chip {
        min-height: 36px !important;
        padding: 0 10px !important;
        font-size: .86rem !important;
    }

    .ls-menu-button {
        width: 40px !important;
        height: 36px !important;
        min-width: 40px !important;
    }
}

@media (max-width: 380px) {
    .ls-brand-name {
        font-size: clamp(2rem, 11vw, 2.85rem) !important;
        letter-spacing: -0.075em !important;
    }

    .ls-brand-tag {
        font-size: .78rem !important;
    }

    .ls-nav-chip {
        padding: 0 8px !important;
        font-size: .8rem !important;
    }
}


/* =========================================================
   HEADER FINAL V7 — CENTER LOGO, LEFT MENU, RIGHT POST AD
   // CHANGED: Real logo.png restored and centered. No text replacement. No buried Post Ad.
========================================================= */
.marketplace-header.ls-header-fixed {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    grid-template-areas: "left logo right" !important;
    align-items: center !important;
    gap: clamp(10px, 2vw, 18px) !important;
    padding: 12px clamp(12px, 3vw, 28px) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background:
        radial-gradient(circle at 50% -40%, rgba(0,224,255,.18), transparent 44%),
        linear-gradient(180deg, rgba(8,12,22,.97), rgba(6,8,16,.94)) !important;
    border-bottom: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.34) !important;
    backdrop-filter: blur(18px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
}

.ls-header-left,
.ls-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.ls-header-left {
    grid-area: left !important;
    justify-self: start !important;
    justify-content: flex-start !important;
}

.ls-header-logo-center {
    grid-area: logo !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    position: relative !important;
}

.ls-header-right {
    grid-area: right !important;
    justify-self: end !important;
    justify-content: flex-end !important;
}

.ls-real-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    position: relative !important;
    transform: translateZ(0) !important;
}

.ls-real-logo-link::before {
    content: '' !important;
    position: absolute !important;
    inset: -18px -28px !important;
    border-radius: 999px !important;
    background: radial-gradient(circle, rgba(0,224,255,.22), rgba(124,92,255,.10) 45%, transparent 72%) !important;
    filter: blur(14px) !important;
    opacity: .82 !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.ls-real-logo-img {
    display: block !important;
    width: clamp(190px, 22vw, 330px) !important;
    max-width: min(42vw, 330px) !important;
    height: auto !important;
    max-height: 86px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 13px 26px rgba(0,0,0,.42)) !important;
}

.ls-menu-details {
    position: relative !important;
    flex: 0 0 auto !important;
}

.ls-menu-details summary {
    list-style: none !important;
}

.ls-menu-details summary::-webkit-details-marker {
    display: none !important;
}

.ls-menu-button,
.ls-nav-chip,
.ls-post-ad-cta {
    border: 1px solid rgba(255,255,255,.13) !important;
    text-decoration: none !important;
    color: #eef6ff !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
}

.ls-menu-button {
    width: 42px !important;
    height: 38px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    cursor: pointer !important;
    background: rgba(255,255,255,.075) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}

.ls-menu-button:hover,
.ls-nav-chip:hover,
.ls-post-ad-cta:hover {
    transform: translateY(-1px) !important;
}

.ls-menu-icon {
    font-size: 1.12rem !important;
    line-height: 1 !important;
}

.ls-menu-badge,
.ls-menu-item-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #ff3b5c !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    box-shadow: 0 8px 18px rgba(255,59,92,.38) !important;
}

.ls-menu-badge {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
}

.ls-menu-panel {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 10px) !important;
    min-width: 220px !important;
    padding: 8px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    background: rgba(8,10,18,.97) !important;
    backdrop-filter: blur(18px) !important;
    box-shadow: 0 22px 55px rgba(0,0,0,.48) !important;
    display: grid !important;
    gap: 5px !important;
    z-index: 120 !important;
}

.ls-menu-panel a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 11px 12px !important;
    border-radius: 13px !important;
    color: inherit !important;
    text-decoration: none !important;
    font-size: .94rem !important;
    font-weight: 740 !important;
}

.ls-menu-panel a:hover {
    background: rgba(0,224,255,.10) !important;
}

.ls-nav-chip {
    min-height: 38px !important;
    padding: 0 13px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    background: rgba(255,255,255,.075) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
    font-size: .92rem !important;
}

.ls-welcome {
    color: rgba(226,235,255,.86) !important;
    font-weight: 700 !important;
    font-size: .92rem !important;
    white-space: nowrap !important;
    max-width: 210px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ls-welcome a {
    color: #fff !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.ls-post-ad-cta {
    min-height: 46px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 1.02rem !important;
    color: #06101a !important;
    background: linear-gradient(135deg, #00e5ff, #7c5cff) !important;
    border-color: rgba(255,255,255,.20) !important;
    box-shadow: 0 18px 38px rgba(0,224,255,.20), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.marketplace-header.ls-header-fixed .desktop-logo,
.marketplace-header.ls-header-fixed .mobile-header-row,
.marketplace-header.ls-header-fixed .header-right-spacer,
.marketplace-header.ls-header-fixed .nav-buttons,
.marketplace-header.ls-header-fixed .ls-brand-wordmark,
.marketplace-header.ls-header-fixed .ls-brand-name,
.marketplace-header.ls-header-fixed .ls-brand-tag {
    display: none !important;
}

@media (max-width: 900px) {
    .marketplace-header.ls-header-fixed {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "logo"
            "right"
            "left" !important;
        gap: 9px !important;
        padding: 10px 10px 12px !important;
    }

    .ls-header-left,
    .ls-header-right {
        justify-self: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    .ls-real-logo-img {
        width: clamp(190px, 58vw, 330px) !important;
        max-width: 88vw !important;
        max-height: 92px !important;
    }

    .ls-welcome {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        font-size: .84rem !important;
    }

    .ls-post-ad-cta {
        width: min(330px, 92vw) !important;
        min-height: 48px !important;
        font-size: 1.05rem !important;
        margin-top: 1px !important;
    }

    .ls-nav-chip {
        min-height: 36px !important;
        padding: 0 10px !important;
        font-size: .86rem !important;
    }

    .ls-menu-button {
        width: 40px !important;
        height: 36px !important;
        min-width: 40px !important;
    }

    .ls-menu-panel {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        min-width: min(250px, 90vw) !important;
    }
}

@media (max-width: 390px) {
    .ls-real-logo-img {
        width: min(250px, 82vw) !important;
    }

    .ls-nav-chip {
        font-size: .82rem !important;
        padding: 0 8px !important;
    }
}


/* =========================================================
   HEADER FINAL V8 — LOGO.PNG ONLY, NO WORDMARK
   // CHANGED: Logo image is centered. No extra LepantoStreet text. Menu stays left. Post Ad stays right/big.
========================================================= */
body.marketplace-home header.header.marketplace-header.ls-header-final-v8 {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    min-height: 86px !important;
    padding: 12px clamp(12px, 3vw, 28px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    background:
        radial-gradient(circle at 50% -35%, rgba(0,224,255,.16), transparent 46%),
        linear-gradient(180deg, rgba(8,12,22,.98), rgba(6,8,16,.96)) !important;
    border-bottom: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.34) !important;
    backdrop-filter: blur(18px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
}

body.marketplace-home header.ls-header-final-v8 .desktop-logo,
body.marketplace-home header.ls-header-final-v8 .mobile-header-row,
body.marketplace-home header.ls-header-final-v8 .header-right-spacer,
body.marketplace-home header.ls-header-final-v8 .nav-buttons,
body.marketplace-home header.ls-header-final-v8 .ls-brand-wordmark,
body.marketplace-home header.ls-header-final-v8 .ls-brand-name,
body.marketplace-home header.ls-header-final-v8 .ls-brand-tag,
body.marketplace-home header.ls-header-final-v8 .logo,
body.marketplace-home header.ls-header-final-v8 .brand,
body.marketplace-home header.ls-header-final-v8 .site-logo,
body.marketplace-home header.ls-header-final-v8 .brand-logo {
    display: none !important;
}

.ls-v8-left,
.ls-v8-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
}

.ls-v8-left { justify-content: flex-start !important; }
.ls-v8-right { justify-content: flex-end !important; }

.ls-v8-logo-center {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.ls-v8-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    position: relative !important;
}

.ls-v8-logo-link::before {
    content: '' !important;
    position: absolute !important;
    inset: -16px -28px !important;
    border-radius: 999px !important;
    background: radial-gradient(circle, rgba(0,224,255,.18), rgba(124,92,255,.10) 50%, transparent 74%) !important;
    filter: blur(14px) !important;
    opacity: .78 !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.ls-v8-logo-img {
    display: block !important;
    width: clamp(210px, 23vw, 340px) !important;
max-height: 82px !important;
    height: auto !important;
    max-height: 64px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,.42)) !important;
}

.ls-v8-menu-details {
    position: relative !important;
    flex: 0 0 auto !important;
}

.ls-v8-menu-details summary { list-style: none !important; }
.ls-v8-menu-details summary::-webkit-details-marker { display: none !important; }

.ls-v8-menu-button,
.ls-v8-chip,
.ls-v8-post-ad {
    border: 1px solid rgba(255,255,255,.13) !important;
    text-decoration: none !important;
    color: #eef6ff !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease !important;
}

.ls-v8-menu-button {
    width: 42px !important;
    height: 38px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    cursor: pointer !important;
    background: rgba(255,255,255,.075) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}

.ls-v8-menu-icon { font-size: 1.12rem !important; line-height: 1 !important; }

.ls-v8-menu-badge,
.ls-v8-item-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #ff3b5c !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    box-shadow: 0 8px 18px rgba(255,59,92,.38) !important;
}

.ls-v8-menu-badge {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
}

.ls-v8-menu-panel {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 10px) !important;
    min-width: 220px !important;
    padding: 8px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    background: rgba(8,10,18,.97) !important;
    backdrop-filter: blur(18px) !important;
    box-shadow: 0 22px 55px rgba(0,0,0,.48) !important;
    display: grid !important;
    gap: 5px !important;
    z-index: 240 !important;
}

.ls-v8-menu-panel a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 11px 12px !important;
    border-radius: 13px !important;
    color: inherit !important;
    text-decoration: none !important;
    font-size: .94rem !important;
    font-weight: 740 !important;
}

.ls-v8-menu-panel a:hover { background: rgba(0,224,255,.10) !important; }

.ls-v8-chip {
    min-height: 38px !important;
    padding: 0 13px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    background: rgba(255,255,255,.075) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
    font-size: .92rem !important;
}

.ls-v8-welcome {
    color: rgba(226,235,255,.86) !important;
    font-weight: 700 !important;
    font-size: .92rem !important;
    white-space: nowrap !important;
    max-width: 210px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ls-v8-welcome a { color: #fff !important; font-weight: 900 !important; text-decoration: none !important; }

.ls-v8-post-ad {
    min-height: 46px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 1.02rem !important;
    color: #06101a !important;
    background: linear-gradient(135deg, #00e5ff, #7c5cff) !important;
    border-color: rgba(255,255,255,.20) !important;
    box-shadow: 0 18px 38px rgba(0,224,255,.20), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.ls-v8-menu-button:hover,
.ls-v8-chip:hover,
.ls-v8-post-ad:hover {
    transform: translateY(-1px) !important;
}

@media (max-width: 980px) {
    body.marketplace-home header.header.marketplace-header.ls-header-final-v8 {
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "logo"
            "right"
            "left" !important;
        justify-items: center !important;
        gap: 9px !important;
        padding: 10px 10px 12px !important;
    }

    .ls-v8-logo-center {
        grid-area: logo !important;
        position: static !important;
        transform: none !important;
    }

    .ls-v8-logo-img {
        width: clamp(190px, 58vw, 315px) !important;
        max-width: 88vw !important;
        max-height: 88px !important;
    }

    .ls-v8-left,
    .ls-v8-right {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .ls-v8-left { grid-area: left !important; }
    .ls-v8-right { grid-area: right !important; }

    .ls-v8-welcome {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        font-size: .84rem !important;
    }

    .ls-v8-post-ad {
        width: min(330px, 92vw) !important;
        min-height: 48px !important;
        font-size: 1.05rem !important;
    }

    .ls-v8-chip {
        min-height: 36px !important;
        padding: 0 10px !important;
        font-size: .86rem !important;
    }

    .ls-v8-menu-button {
        width: 40px !important;
        height: 36px !important;
        min-width: 40px !important;
    }

    .ls-v8-menu-panel {
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: min(250px, 90vw) !important;
    }
}

@media (max-width: 390px) {
    .ls-v8-logo-img { width: min(245px, 84vw) !important; }
    .ls-v8-chip { font-size: .82rem !important; padding: 0 8px !important; }
}

/* =========================================================
   HEADER V8 MOBILE DROPDOWN EDGE FIX
   // ADDED: Keep mobile menu panel inside viewport; icons must remain visible.
========================================================= */
@media (max-width: 980px) {
    .ls-v8-menu-details {
        position: relative !important;
    }

    .ls-v8-menu-panel {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        width: min(280px, calc(100vw - 24px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
        overflow: hidden !important;
    }

    .ls-v8-menu-panel a {
        justify-content: flex-start !important;
        gap: 10px !important;
        white-space: nowrap !important;
    }

    .ls-v8-menu-panel .ls-v8-item-badge {
        margin-left: auto !important;
    }
}

@media (max-width: 420px) {
    .ls-v8-left {
        justify-content: center !important;
        gap: 6px !important;
    }

    .ls-v8-menu-panel {
        width: min(270px, calc(100vw - 18px)) !important;
        max-width: calc(100vw - 18px) !important;
    }

    .ls-v8-menu-panel a {
        padding: 11px 10px !important;
        font-size: .9rem !important;
    }
}


/* =========================================================
   FAIR MARKETPLACE PROMOTION MODEL — 2026-05-21
   CHANGED: Featured is a limited spotlight grid; Boost/Featured badges are visible.
   Reason: badges/ranks are reputation only and must not secretly affect listing order.
   ========================================================= */
body .featured-spotlight {
    width: min(1180px, calc(100% - 24px));
    margin: 18px auto 20px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(15,23,42,.88), rgba(30,41,59,.72));
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
    backdrop-filter: blur(16px);
    overflow: visible;
}

body .featured-spotlight-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

body .featured-spotlight-head span {
    display: block;
    color: #fbbf24;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body .featured-spotlight-head strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    line-height: 1.1;
}

body .featured-spotlight-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #dbeafe;
    font-weight: 800;
    text-decoration: none;
}

body .featured-spotlight .featured-track {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    animation: none !important;
    transform: none !important;
}

body .featured-spotlight .feat-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: initial !important;
    border-radius: 20px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.12);
}

body .featured-spotlight .feat-card:first-child {
    grid-row: span 2;
}

body .featured-spotlight .feat-card:first-child .feat-thumb {
    min-height: 230px;
}

body .promo-badge {
    position: absolute;
    left: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .06em;
    color: #06111f;
    box-shadow: 0 10px 25px rgba(0,0,0,.28);
}

body .promo-badge.boost {
    bottom: 10px;
    background: linear-gradient(135deg, #60a5fa, #34d399);
}

body .promo-badge.featured {
    bottom: 42px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

body .post-status-card small {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.68);
    font-size: .8rem;
}

body .category-simple-head {
    width: min(1180px, calc(100% - 24px));
    margin: 20px auto;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: rgba(15,23,42,.78);
    color: #f8fafc;
}

body .category-simple-head a {
    color: #bfdbfe;
    font-weight: 800;
    text-decoration: none;
}

body .category-simple-head h1 {
    margin: 8px 0 5px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
}

body .category-simple-head p {
    margin: 0;
    color: #94a3b8;
}

@media (max-width: 860px) {
    body .featured-spotlight .featured-track {
        grid-template-columns: 1fr 1fr;
    }

    body .featured-spotlight .feat-card:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 560px) {
    body .featured-spotlight {
        width: min(100% - 18px, 1180px);
        padding: 12px;
        border-radius: 20px;
    }

    body .featured-spotlight-head {
        align-items: flex-start;
        flex-direction: column;
    }

    body .featured-spotlight .featured-track {
        grid-template-columns: 1fr;
    }

    body .featured-spotlight .feat-card:first-child .feat-thumb {
        min-height: 180px;
    }
}

/* ADDED: Small filter banner for View All Featured. */
body .listing-filter-banner {
    width: min(1180px, calc(100% - 24px));
    margin: 12px auto 0;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(251,191,36,.24);
    background: rgba(251,191,36,.10);
    color: #fde68a;
    font-weight: 800;
}
body .listing-filter-banner a { color: #bfdbfe; }

/* =========================================================
   MOBILE MARKETPLACE REWORK V10 — 2026-05-21
   // ADDED: Real mobile layout cleanup after desktop-tested fair boost/featured patch.
   Purpose:
   - keep desktop unchanged
   - make mobile header shorter and less chaotic
   - make Featured Spotlight compact/manual snap-scroll, not a tall wall
   - make listing cards readable row cards instead of cramped tiny tiles
   - prevent horizontal overflow and expensive mobile effects
========================================================= */
@media (max-width: 767px) {
    /* // ADDED: Hard mobile overflow guard. */
    html,
    body,
    body.marketplace-home {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* // CHANGED: V8 header becomes a compact two-row mobile header. */
    body.marketplace-home header.header.marketplace-header.ls-header-final-v8 {
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "logo logo"
            "left right" !important;
        align-items: center !important;
        justify-items: stretch !important;
        gap: 7px !important;
        padding: max(7px, env(safe-area-inset-top)) 9px 8px !important;
        background: linear-gradient(180deg, rgba(5, 8, 17, .98), rgba(8, 13, 26, .94)) !important;
        box-shadow: 0 12px 32px rgba(0,0,0,.38) !important;
    }

    .ls-v8-logo-center {
        grid-area: logo !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        justify-content: center !important;
        pointer-events: auto !important;
    }

    .ls-v8-logo-link::before {
        inset: -10px -20px !important;
        filter: blur(11px) !important;
        opacity: .55 !important;
    }

    .ls-v8-logo-img {
        width: clamp(190px, 63vw, 292px) !important;
        max-width: calc(100vw - 32px) !important;
        max-height: 64px !important;
        object-fit: contain !important;
    }

    .ls-v8-left {
        grid-area: left !important;
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 1px 2px 2px !important;
    }

    .ls-v8-left::-webkit-scrollbar { display: none !important; }

    .ls-v8-right {
        grid-area: right !important;
        width: auto !important;
        min-width: max-content !important;
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }

    /* // REMOVED: welcome text on mobile header. Reason: eats space and pushes buttons off-screen. */
    .ls-v8-welcome {
        display: none !important;
    }

    .ls-v8-menu-button {
        width: 42px !important;
        min-width: 42px !important;
        height: 38px !important;
        border-radius: 13px !important;
    }

    .ls-v8-chip {
        flex: 0 0 auto !important;
        min-height: 38px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        font-size: .82rem !important;
        box-shadow: none !important;
    }

    .ls-v8-post-ad {
        width: auto !important;
        min-width: 98px !important;
        min-height: 40px !important;
        padding: 0 14px !important;
        border-radius: 999px !important;
        font-size: .92rem !important;
        box-shadow: 0 10px 22px rgba(37, 99, 235, .22) !important;
    }

    .ls-v8-menu-panel {
        position: fixed !important;
        left: 9px !important;
        right: 9px !important;
        top: 118px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        transform: none !important;
        padding: 8px !important;
        border-radius: 18px !important;
        z-index: 9999 !important;
        max-height: calc(100svh - 132px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
    }

    .ls-v8-menu-panel a {
        min-height: 44px !important;
        padding: 10px 12px !important;
        font-size: .95rem !important;
        border-radius: 13px !important;
    }

    /* // CHANGED: mobile search becomes a neat sticky-ish command bar below header. */
    .mobile-market-search {
        display: block !important;
        padding: 9px 9px 8px !important;
        background: rgba(7, 11, 22, .94) !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
    }

    .mobile-search-form {
        gap: 7px !important;
    }

    .mobile-search-line {
        gap: 7px !important;
    }

    .mobile-search-form input,
    .mobile-search-form select {
        min-height: 43px !important;
        padding: 10px 12px !important;
        border-radius: 13px !important;
        background: rgba(15, 23, 42, .86) !important;
    }

    .mobile-search-form button {
        min-height: 43px !important;
        padding: 0 13px !important;
        border-radius: 13px !important;
    }

    .mobile-filter-panel {
        border-radius: 13px !important;
        background: rgba(15, 23, 42, .72) !important;
    }

    .mobile-filter-panel summary {
        min-height: 42px !important;
    }

    /* // CHANGED: Featured is limited, but mobile uses horizontal snap so it does not create a tall wall. */
    body .featured-spotlight {
        width: calc(100% - 18px) !important;
        margin: 10px auto 12px !important;
        padding: 11px !important;
        border-radius: 19px !important;
        overflow: hidden !important;
        background: linear-gradient(135deg, rgba(12, 20, 38, .94), rgba(21, 32, 52, .82)) !important;
        box-shadow: 0 16px 42px rgba(0,0,0,.28) !important;
    }

    body .featured-spotlight-head {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    body .featured-spotlight-head span {
        font-size: .64rem !important;
        letter-spacing: .08em !important;
    }

    body .featured-spotlight-head strong {
        font-size: .95rem !important;
        line-height: 1.15 !important;
    }

    body .featured-spotlight-head a {
        flex: 0 0 auto !important;
        min-height: 34px !important;
        padding: 7px 10px !important;
        font-size: .78rem !important;
        white-space: nowrap !important;
    }

    body .featured-spotlight .featured-track {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        overscroll-behavior-x: contain !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 1px 2px 5px !important;
        scrollbar-width: none !important;
    }

    body .featured-spotlight .featured-track::-webkit-scrollbar { display: none !important; }

    body .featured-spotlight .feat-card,
    body .featured-spotlight .feat-card:first-child {
        flex: 0 0 min(76vw, 300px) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        grid-column: auto !important;
        grid-row: auto !important;
        scroll-snap-align: start !important;
        border-radius: 16px !important;
    }

    body .featured-spotlight .feat-card:first-child {
        flex-basis: min(82vw, 326px) !important;
    }

    body .featured-spotlight .feat-thumb,
    body .featured-spotlight .feat-card:first-child .feat-thumb {
        height: 124px !important;
        min-height: 124px !important;
        border-radius: 14px 14px 0 0 !important;
    }

    body .featured-spotlight .feat-info {
        padding: 9px 10px 10px !important;
    }

    body .featured-spotlight .feat-title {
        font-size: .9rem !important;
        line-height: 1.25 !important;
    }

    body .featured-spotlight .feat-price {
        font-size: .96rem !important;
    }

    /* // CHANGED: listings become readable mobile row cards instead of tiny cramped tiles. */
    .grid,
    .grid.marketplace-post-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 9px 34px !important;
        margin: 0 !important;
    }

    .card {
        display: grid !important;
        grid-template-columns: 122px minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 10px !important;
        min-height: 132px !important;
        padding: 8px !important;
        border-radius: 16px !important;
        background: linear-gradient(145deg, rgba(18, 27, 46, .90), rgba(8, 13, 24, .94)) !important;
        border: 1px solid rgba(255,255,255,.11) !important;
        box-shadow: 0 10px 26px rgba(0,0,0,.24) !important;
        animation: none !important;
        transform: none !important;
    }

    .card:hover {
        transform: none !important;
        box-shadow: 0 10px 26px rgba(0,0,0,.24) !important;
    }

    .card::before,
    .card::after {
        display: none !important;
    }

    .compact-thumb {
        width: 122px !important;
        height: 116px !important;
        min-height: 116px !important;
        border-radius: 13px !important;
        align-self: center !important;
    }

    .compact-thumb img[src*="No_Image.png"] {
        padding: 15px !important;
    }

    .compact-info {
        min-width: 0 !important;
        padding: 3px 2px !important;
        gap: 5px !important;
        justify-content: center !important;
    }

    .compact-info h3 {
        font-size: 15px !important;
        line-height: 1.22 !important;
        min-height: 0 !important;
        -webkit-line-clamp: 2 !important;
        letter-spacing: -.01em !important;
    }

    .compact-seller {
        display: flex !important;
        font-size: 11.5px !important;
        line-height: 1.2 !important;
        color: rgba(191, 219, 254, .92) !important;
    }

    .card-price {
        font-size: 16.5px !important;
        line-height: 1.1 !important;
        padding-top: 1px !important;
    }

    .compact-thumb .sold-badge,
    .sold-badge {
        top: 7px !important;
        left: 7px !important;
        max-width: calc(100% - 14px) !important;
        padding: 4px 7px !important;
        border-radius: 999px !important;
        font-size: 8px !important;
        letter-spacing: .04em !important;
    }

    body .promo-badge {
        left: 7px !important;
        padding: 4px 7px !important;
        font-size: 8px !important;
        letter-spacing: .03em !important;
    }

    body .promo-badge.boost { bottom: 7px !important; }
    body .promo-badge.featured { bottom: 31px !important; }

    .listing-empty-state {
        margin: 8px 0 !important;
        padding: 22px 14px !important;
        border-radius: 16px !important;
    }

    /* // REMOVED: expensive mobile paint effects. Reason: smoother scrolling on cheap phones. */
    .glow,
    .noise,
    body::after,
    .card:hover .compact-thumb img {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 390px) {
    .ls-v8-logo-img {
        width: min(238px, 72vw) !important;
        max-height: 58px !important;
    }

    .ls-v8-chip {
        padding: 0 8px !important;
        font-size: .78rem !important;
    }

    .ls-v8-post-ad {
        min-width: 88px !important;
        padding: 0 11px !important;
        font-size: .86rem !important;
    }

    .card {
        grid-template-columns: 106px minmax(0, 1fr) !important;
        min-height: 118px !important;
        gap: 8px !important;
    }

    .compact-thumb {
        width: 106px !important;
        height: 102px !important;
        min-height: 102px !important;
    }

    .compact-info h3 {
        font-size: 14px !important;
    }

    .compact-seller {
        font-size: 10.5px !important;
    }

    .card-price {
        font-size: 15px !important;
    }
}

@media (max-width: 340px) {
    .ls-v8-about {
        display: none !important; /* // REMOVED: ultra-narrow phones need breathing room; About remains in menu. */
    }

    .card {
        grid-template-columns: 96px minmax(0, 1fr) !important;
    }

    .compact-thumb {
        width: 96px !important;
        height: 96px !important;
        min-height: 96px !important;
    }
}

/* =========================================================
   MOBILE FEATURED SPOTLIGHT HOTFIX V11 — 2026-05-21
   // CHANGED: Fixes mobile Featured banner clipping / bad swipe behavior.
   Root cause: older .featured-track rules forced width:max-content and old row-card sizing,
   so the rail could get clipped inside .featured-spotlight instead of scrolling cleanly.
   ========================================================= */
@media (max-width: 767px) {
    body.marketplace-home .featured-spotlight {
        overflow: hidden !important;
        padding: 12px !important;
    }

    body.marketplace-home .featured-spotlight .featured-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 11px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-padding-left: 2px !important;
        overscroll-behavior-x: contain !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 2px 2px 8px !important;
        animation: none !important;
        transform: none !important;
        scrollbar-width: none !important;
    }

    body.marketplace-home .featured-spotlight .featured-track::-webkit-scrollbar {
        display: none !important;
    }

    body.marketplace-home .featured-spotlight .feat-card,
    body.marketplace-home .featured-spotlight .feat-card:first-child {
        flex: 0 0 min(82vw, 330px) !important;
        width: min(82vw, 330px) !important;
        min-width: min(82vw, 330px) !important;
        max-width: min(82vw, 330px) !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 132px auto !important;
        gap: 0 !important;
        align-items: stretch !important;
        padding: 0 !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }

    body.marketplace-home .featured-spotlight .feat-thumb,
    body.marketplace-home .featured-spotlight .feat-card:first-child .feat-thumb {
        width: 100% !important;
        height: 132px !important;
        min-height: 132px !important;
        border-radius: 0 !important;
    }

    body.marketplace-home .featured-spotlight .feat-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.marketplace-home .featured-spotlight .feat-badge-top {
        top: 9px !important;
        left: 9px !important;
        right: auto !important;
        bottom: auto !important;
        max-width: calc(100% - 18px) !important;
        padding: 5px 9px !important;
        border-radius: 999px !important;
        font-size: 9px !important;
        letter-spacing: .05em !important;
    }

    body.marketplace-home .featured-spotlight .feat-info {
        min-width: 0 !important;
        padding: 10px 11px 12px !important;
        display: grid !important;
        gap: 5px !important;
        background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .96)) !important;
    }

    body.marketplace-home .featured-spotlight .feat-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
        font-size: 14px !important;
        line-height: 1.22 !important;
        min-height: 34px !important;
    }

    body.marketplace-home .featured-spotlight .feat-price {
        font-size: 16px !important;
        line-height: 1.1 !important;
    }

    body.marketplace-home .featured-spotlight::after {
        content: "Swipe sideways for more featured posts";
        display: block;
        margin-top: 4px;
        color: rgba(226, 232, 240, .58);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .02em;
        text-align: center;
    }
}

@media (max-width: 390px) {
    body.marketplace-home .featured-spotlight .feat-card,
    body.marketplace-home .featured-spotlight .feat-card:first-child {
        flex-basis: min(86vw, 315px) !important;
        width: min(86vw, 315px) !important;
        min-width: min(86vw, 315px) !important;
        max-width: min(86vw, 315px) !important;
        grid-template-rows: 122px auto !important;
    }

    body.marketplace-home .featured-spotlight .feat-thumb,
    body.marketplace-home .featured-spotlight .feat-card:first-child .feat-thumb {
        height: 122px !important;
        min-height: 122px !important;
    }
}
