:root {
  --primary-accent: #22c55e;      /* Fresh Bright Green */
  --cyber-accent: #eab308;        /* Vibrant Yellow */
  --branding-accent: #eab308;     /* Vibrant Yellow */
  --hover-accent: #fde047;        /* Lighter yellow for button hover */
  --bg-dark-navy: #000000;        /* True Black background */
  --card-bg: rgba(12, 12, 12, 0.95); /* Deep black card surface */
  --border-color: #1f2937;        /* Clean dark border */
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-sub: #d1d5db;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark-navy);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

/* =========================
   HEADER
========================= */

.market-header {
    min-height: 75px;
    height: auto;
    background-color: #000000;
    border-bottom: 1px solid var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(16px, 4vw, 40px);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--branding-accent);
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--primary-accent);
}

.brand > span {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-main);
}

.brand small {
    margin-top: 2px;
    color: var(--branding-accent);
    font-size: 9px;
    letter-spacing: 2px;
}


.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.main-nav a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--branding-accent);
}

.nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--branding-accent);
    color: #000000;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover {
    background: var(--hover-accent);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: #0a0a0a;
    cursor: pointer;
    color: var(--branding-accent);
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--branding-accent);
}


/* =========================
   MAIN LAYOUT
========================= */

main {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    min-height: calc(100vh - 75px);
    flex: 1;
}


/* =========================
   SIDEBAR
========================= */

aside {
    background: #050505;
    border-right: 1px solid var(--border-color);
    padding: 28px 22px;
}

aside h2 {
    font-size: 20px;
    margin-top: 0;
    color: var(--text-main);
    line-height: 1.3;
}

aside h2 span {
    color: var(--branding-accent);
}

.sidebar-intro {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0 0 15px;
}

aside h3 {
    color: var(--branding-accent);
    font-size: 13px;
    margin-top: 28px;
    letter-spacing: 0.5px;
}

aside ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 6px;
}

aside li {
    padding: 0;
}

.category-filter {
    display: block;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--text-sub);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-filter:hover,
.category-filter.active {
    color: var(--hover-accent);
    background: #121820;
    border-color: var(--border-color);
}


/* =========================
   MARKETPLACE CONTENT & HERO
========================= */

.marketplace-content {
    min-width: 0;
    padding: 28px clamp(18px, 3vw, 38px) 48px;
    background-color: var(--bg-dark-navy);
}

.marketplace-hero {
    display: flex;
    min-height: 225px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 42px);
    margin-bottom: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: radial-gradient(ellipse at 90% 20%, rgba(234,179,8,.15), transparent 42%), linear-gradient(125deg, #0c1218, #05080c 72%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.eyebrow {
    margin: 0 0 10px;
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* =========================================
   REPORT FRAUD MODAL STYLES
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #111827;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.close-btn:hover {
  color: #111827;
}

/* Form Fields */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group select,
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background-color: #f9fafb;
  box-sizing: border-box;
}

.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #eab308;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}

.help-text {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* Modal Footer & Buttons */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================================
   MY FRAUD REPORTS STYLES
   ========================================= */
#myReportsContainer {
  max-width: 800px;
  margin: 0 auto;
}

.report-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.report-card strong {
  color: #111827;
  font-size: 15px;
}

.report-reason {
  font-size: 14px;
  color: #4b5563;
  margin: 6px 0;
}

.report-desc {
  font-size: 14px;
  color: #1f2937;
  line-height: 1.5;
  margin: 8px 0;
}

.report-date {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
}

/* Status Badges */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending {
  background-color: #fef3c7;
  color: #d97706;
}

.badge-under_review {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.badge-resolved {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-dismissed {
  background-color: #f3f4f6;
  color: #4b5563;
}

/* Admin Resolution Box */
.resolution-box {
  background-color: #f9fafb;
  border-left: 4px solid #eab308;
  padding: 12px 16px;
  margin-top: 14px;
  border-radius: 0 8px 8px 0;
}

.resolution-box strong {
  display: block;
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 4px;
}

.resolution-box p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -1.5px;
    line-height: 1.12;
    color: var(--text-main);
}

.hero-copy h1 span {
    color: var(--branding-accent);
}

.hero-copy > p:not(.eyebrow) {
    color: var(--text-muted);
    max-width: 420px;
    margin: 14px 0 20px;
    font-size: 14px;
}

.hero-link {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: #000000;
    background: var(--branding-accent);
    border-radius: 7px;
    padding: 11px 15px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: background 0.2s ease;
}

.hero-link:hover {
    background: var(--hover-accent);
}

.hero-art {
    width: 210px;
    height: 170px;
    flex: 0 0 210px;
    position: relative;
    display: grid;
    place-items: center;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(234, 179, 8, 0.32);
    border-radius: 50%;
    transform: rotate(-25deg);
}

.orbit-one { width: 200px; height: 150px; }
.orbit-two { width: 150px; height: 200px; }

.hero-symbol {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    border-radius: 80px;
    transform: rotate(-8deg);
    color: #000000;
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(145deg, var(--hover-accent), var(--branding-accent));
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}
.money{
    width: 150px;
    height: 150px;
    border-radius: 80px;
}
.hero-tag {
    position: absolute;
    right: -2px;
    bottom: 2px;
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--branding-accent);
    background: #0a0e14;
    font-size: 10px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 21px;
    color: var(--text-main);
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

.listing-count {
    color: var(--text-sub);
    white-space: nowrap;
    font-size: 12px;
    background: #0c1218;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
}


/* =========================
   SEARCH & FILTERS
========================= */

.market-search {
    margin: 0 0 25px;
}

.market-search-form {
    display: flex;
    gap: 10px;
    width: min(100%, 680px);
    margin: 0 auto 16px;
    padding: 8px;
    border: 1px solid var(--branding-accent);
    border-radius: 12px;
    background: #050505;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.market-search-form input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    outline: none;
    background: #000000;
    color: var(--text-main);
    font: inherit;
    font-size: 14px;
}

.market-search-form input::placeholder {
    color: var(--text-muted);
}

.market-search-form input:focus {
    border-color: var(--branding-accent);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}

.market-search-form button {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 7px;
    background: var(--branding-accent);
    color: #000000;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.market-search-form button:hover {
    background: var(--hover-accent);
}

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

.search-filters select {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: #0a0a0a;
    color: var(--text-sub);
    font: inherit;
    font-size: 13px;
    outline: none;
}

.search-filters select:focus {
    border-color: var(--branding-accent);
}


/* =========================
   PRODUCT GRID & CARDS
========================= */

.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    position: relative;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--branding-accent);
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.15);
}

.product-card > a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
}

.product-card > a img {
    display: block;
    width: 100%;
    height: 175px;
    object-fit: cover;
    background: #000000;
    padding: 4px;
}

.product-card > a:hover h3 {
    color: var(--hover-accent);
}

.product-card h3 {
    margin: 12px 12px 8px;
    min-height: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    color: var(--text-main);
}

.product-card .price {
    margin: 5px 12px 8px;
    color: var(--primary-accent);
    font-size: 19px;
    font-weight: 700;
}

.product-card p:not(.price) {
    margin: 4px 12px;
    color: var(--text-sub);
    font-size: 13px;
}

.product-card small {
    display: block;
    margin: 8px 12px 14px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.product-card .market-add-cart {
    display: block;
    width: calc(100% - 24px);
    margin: auto 12px 12px;
    padding: 11px 8px;
    border: 1px solid var(--branding-accent);
    border-radius: 7px;
    background: var(--branding-accent);
    color: #000000;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-card .market-add-cart:hover {
    background: var(--hover-accent);
    transform: translateY(-1px);
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background-color: #ef4444;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}


/* =========================
   ACCOUNT DROPDOWN MENU
========================= */

.account-menu {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

/* Three-bar styling for account button */
.hamburger-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 16px;
    height: 12px;
}

.hamburger-bars span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--branding-accent);
    border-radius: 1px;
}

.account-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #0a0a0a;
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.account-toggle:hover {
    border-color: var(--branding-accent);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 245px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #0a0a0a;
    color: var(--text-main);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.account-dropdown[hidden] {
    display: none !important;
}

.account-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.account-group + .account-group {
    border-top: 1px solid var(--border-color);
}

.account-group strong {
    margin-bottom: 5px;
    color: var(--branding-accent);
}

.account-group a {
    padding: 9px;
    border-radius: 7px;
    color: var(--text-sub);
    text-decoration: none;
}

.account-group a:hover {
    background: #161e28;
    color: var(--branding-accent);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 5px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.no-results {
    padding: 25px;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    text-align: center;
}

[hidden] {
    display: none !important;
}


/* ==========================================
   RESPONSIVE MARKETPLACE & MOBILE TWEAKS
========================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 38px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #0a0a0a;
    cursor: pointer;
    color: var(--branding-accent);
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--branding-accent);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Three-bar mobile category dropdown trigger header styles */
.mobile-category-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--branding-accent);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 1100px) {
    main { 
        grid-template-columns: 190px minmax(0, 1fr); 
    }
    .products { 
        grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }
    .search-filters { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    }
}

@media (max-width: 850px) {
    .market-header {
        position: relative;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .mobile-menu-toggle {
        display: flex;
        border-color: var(--branding-accent);
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a,
    .main-nav .nav-cta {
        width: 100%;
    }

    /* Keep account menu inline at top right next to hamburger */
    .account-menu {
        display: inline-block;
        width: auto;
    }

    .account-toggle {
        padding: 8px 12px;
        font-size: 13px;
        background: #0a0a0a;
        border-color: var(--border-color);
        color: var(--branding-accent);
        font-weight: 700;
    }

    .account-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 230px;
        background: #0a0a0a;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
        z-index: 1000;
    }

    main { 
        grid-template-columns: 1fr; 
    }

    aside { 
        border-right: 0; 
        border-bottom: 1px solid var(--border-color); 
        padding: 14px 16px; 
    }

    /* Transform categories into a mobile dropdown layout */
    .mobile-category-toggle {
        display: flex;
    }

    aside h3 {
        display: none;
    }

    aside ul {
        display: none;
        margin-top: 8px;
        flex-direction: column;
        gap: 4px;
        background: #030303;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 8px;
    }

    aside ul.mobile-open {
        display: flex;
    }

    .category-filter {
        width: 100%;
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 6px;
    }

    /* Smaller search bar on mobile screens */
    .market-search {
        margin: 0 0 15px;
    }

    .market-search-form {
        max-width: 100%;
        padding: 4px;
        gap: 6px;
        border-radius: 8px;
    }

    .market-search-form input {
        min-height: 36px;
        font-size: 12px;
        padding: 0 10px;
    }

    .market-search-form button {
        min-height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }

    /* Tiny mobile-optimized filter dropdowns */
    .search-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .search-filters select {
        min-height: 32px;
        padding: 4px 6px;
        font-size: 11px;
        border-radius: 6px;
    }

    /* Reduced product image sizes for small screens */
    .product-card > a img {
        height: 110px; 
    }

    .product-card h3 {
        font-size: 12px;
        margin: 8px 8px 4px;
    }

    .product-card .price {
        font-size: 15px;
        margin: 2px 8px 4px;
    }

    .product-card p:not(.price) {
        font-size: 11px;
        margin: 2px 8px;
    }

    .product-card small {
        font-size: 10px;
        margin: 4px 8px 8px;
    }

    .product-card .market-add-cart {
        padding: 8px 6px;
        font-size: 11px;
        margin: auto 8px 8px;
        width: calc(100% - 16px);
    }

    .products { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
        gap: 10px; 
    }

    .marketplace-content { 
        padding: 20px 16px 35px; 
    }
}

@media (max-width: 480px) {
    .marketplace-hero { 
        padding: 20px 16px; 
    }
    .hero-art { 
        display: none; 
    }
    .hero-copy h1 { 
        font-size: 26px; 
    }
    .search-filters { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    }
    .products { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
        gap: 8px;
    }
}

/* ==========================================
   JOMBA MARKETPLACE — RESPONSIVE UI FIX
   Add this at the END of home.css
========================================== */

/* Prevent layout overflow */
html {
    width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--branding-accent);
    outline-offset: 3px;
}

/* ==========================================
   HEADER
========================================== */

.market-header {
    width: 100%;
    min-width: 0;
    gap: 16px;
    padding: 12px clamp(12px, 3vw, 36px);
}

.brand {
    min-width: 0;
}

.brand img {
    flex-shrink: 0;
}

.header-right-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    min-width: 0;
}

.main-nav {
    min-width: 0;
}

.main-nav a {
    white-space: nowrap;
}

/* ==========================================
   ACCOUNT BUTTON AND DROPDOWN
========================================== */

.account-menu {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    z-index: 1001;
}

.account-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #303030;
    border-radius: 10px;
    background: #0b0b0b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.account-toggle:hover,
.account-toggle[aria-expanded="true"] {
    background: #151515;
    border-color: var(--branding-accent);
}

.account-toggle > span:last-child {
    color: var(--branding-accent);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.account-toggle[aria-expanded="true"] > span:last-child {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: auto;
    width: 260px;
    max-width: calc(100vw - 24px);
    max-height: min(70vh, 480px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #292929;
    border-radius: 14px;
    background: #101010;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    z-index: 1002;
    overscroll-behavior: contain;
    animation: accountMenuIn 0.16s ease-out;
}

.account-dropdown[hidden],
#guestOptions[hidden],
#loggedInOptions[hidden] {
    display: none !important;
}

@keyframes accountMenuIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

.account-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
}

.account-group strong {
    display: block;
    margin-bottom: 5px;
    color: var(--branding-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.account-group a,
.account-group button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #e5e5e5;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.account-group a:hover,
.account-group button:hover {
    background: #1c211a;
    color: var(--branding-accent);
}

.account-group + .account-group {
    border-top: 1px solid #292929;
}

.account-group #logoutButton {
    min-height: 42px;
    margin-top: 5px;
    padding: 10px 11px !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #f87171 !important;
    font-size: 13px;
    font-weight: 700;
}

.account-group #logoutButton:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* ==========================================
   SEARCH BAR — DESKTOP AND MOBILE
========================================== */

.market-search {
    width: 100%;
    min-width: 0;
    margin-bottom: 26px;
}

.market-search-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 820px;
    min-width: 0;
    margin: 0 auto 16px;
    padding: 6px;
    border: 1px solid #5b4b09;
    border-radius: 12px;
    background: #080808;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.market-search-form input {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #101010;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.market-search-form input::placeholder {
    color: #a1a1aa;
    font-size: 13px;
    opacity: 1;
}

.market-search-form input:focus {
    border-color: var(--branding-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.12);
}

.market-search-form button {
    flex: 0 0 auto;
    min-width: 92px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--branding-accent);
    color: #080808;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.market-search-form button:hover {
    background: var(--hover-accent);
}

.market-search-form button:active {
    transform: scale(0.98);
}

/* ==========================================
   SEARCH FILTERS
========================================== */

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

.search-filters select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid #303030;
    border-radius: 8px;
    background: #0c0c0c;
    color: #e5e5e5;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}

.search-filters select:focus {
    border-color: var(--branding-accent);
    outline: none;
}

/* ==========================================
   CONTENT AND PRODUCT GRID
========================================== */

main {
    min-width: 0;
}

.marketplace-content {
    min-width: 0;
    width: 100%;
}

.marketplace-hero {
    min-width: 0;
}

.hero-copy {
    min-width: 0;
}

.section-heading {
    flex-wrap: wrap;
    align-items: center;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.product-card {
    min-width: 0;
    height: 100%;
}

.product-card > a img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}

.product-card h3,
.product-card p,
.product-card small {
    overflow-wrap: anywhere;
}

.product-card .market-add-cart {
    min-height: 42px;
}

/* ==========================================
   TABLETS AND SMALL LAPTOPS
========================================== */

@media (max-width: 1100px) {
    main {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .search-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketplace-content {
        padding-right: 22px;
        padding-left: 22px;
    }

    .marketplace-hero {
        gap: 12px;
    }

    .hero-art {
        flex-basis: 160px;
        width: 160px;
    }
}

/* ==========================================
   MOBILE NAVIGATION AND LAYOUT
========================================== */

@media (max-width: 850px) {
    .market-header {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
    }

    .brand {
        gap: 8px;
        flex: 0 1 auto;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .brand > span {
        font-size: clamp(14px, 3.5vw, 18px);
        letter-spacing: 1px;
    }

    .brand small {
        font-size: 8px;
        letter-spacing: 1.3px;
    }

    .header-right-actions {
        gap: 7px;
        flex: 0 0 auto;
    }

    .account-toggle {
        min-height: 40px;
        gap: 7px;
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 9px;
    }

    .hamburger-bars {
        flex-shrink: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        border: 1px solid #353535;
        border-radius: 9px;
        background: #0c0c0c;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        margin: 0;
        border-radius: 2px;
        background: var(--branding-accent);
    }

    .main-nav {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 12px;
        margin-top: 3px;
        border-top: 1px solid #252525;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a,
    .main-nav .nav-cta {
        display: flex;
        width: 100%;
        min-height: 42px;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 12px;
        white-space: normal;
    }

    .main-nav .nav-cta {
        justify-content: center;
    }

    /* Keep dropdown attached to the account button */
    .account-dropdown {
        top: calc(100% + 8px);
        right: 0;
        width: 250px;
        max-width: min(280px, calc(100vw - 24px));
        max-height: min(65vh, 420px);
        border-radius: 12px;
    }

    main {
        grid-template-columns: minmax(0, 1fr);
    }

    aside {
        min-width: 0;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    aside h2 {
        margin-bottom: 7px;
        font-size: 19px;
    }

    .sidebar-intro {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .mobile-category-toggle {
        display: flex;
        min-height: 42px;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 9px;
    }

    aside h3 {
        display: none;
    }

    aside ul {
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        padding: 8px;
        margin-top: 8px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        background: #080808;
    }

    aside ul.mobile-open {
        display: grid;
    }

    .category-filter {
        min-height: 40px;
        padding: 9px;
        font-size: 12px;
    }

    .marketplace-content {
        padding: 20px 16px 35px;
    }

    .marketplace-hero {
        min-height: 190px;
        padding: 24px;
        margin-bottom: 26px;
        border-radius: 14px;
    }

    .hero-copy h1 {
        font-size: clamp(27px, 5vw, 38px);
    }

    .hero-art {
        flex: 0 0 130px;
        width: 130px;
        height: 140px;
    }

    .hero-symbol {
        width: 72px;
        height: 72px;
        font-size: 44px;
    }

    .orbit-one {
        width: 120px;
        height: 95px;
    }

    .orbit-two {
        width: 95px;
        height: 120px;
    }

    .hero-tag {
        right: -3px;
        font-size: 9px;
    }

    /* Mobile search: comfortable height and width */
    .market-search {
        margin-bottom: 20px;
    }

    .market-search-form {
        width: 100%;
        max-width: none;
        gap: 7px;
        padding: 5px;
        margin-bottom: 12px;
        border-radius: 11px;
    }

    .market-search-form input {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        min-height: 44px;
        padding: 0 10px;
        font-size: 14px;
    }

    .market-search-form input::placeholder {
        font-size: 12px;
        letter-spacing: 0;
    }

    .market-search-form button {
        min-width: 76px;
        min-height: 44px;
        padding: 0 13px;
        font-size: 12px;
    }

    .search-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .search-filters select {
        min-height: 42px;
        padding: 8px;
        font-size: 12px;
    }

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

    .product-card > a img {
        height: clamp(110px, 24vw, 180px);
    }

    .product-card h3 {
        margin: 9px 9px 5px;
        font-size: 13px;
        line-height: 1.4;
    }

    .product-card .price {
        margin: 5px 9px;
        font-size: 16px;
    }

    .product-card p:not(.price) {
        margin: 4px 9px;
        font-size: 12px;
    }

    .product-card small {
        margin: 6px 9px 10px;
        font-size: 11px;
    }

    .product-card .market-add-cart {
        width: calc(100% - 18px);
        min-height: 40px;
        margin: auto 9px 9px;
        padding: 8px 5px;
        font-size: 12px;
    }
}

/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 480px) {
    .market-header {
        gap: 8px;
        padding: 9px 10px;
    }

    .brand {
        gap: 6px;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .brand > span {
        font-size: 13px;
        letter-spacing: 0.6px;
    }

    .brand small {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .header-right-actions {
        gap: 6px;
    }

    .account-toggle {
        min-height: 38px;
        gap: 6px;
        padding: 7px 8px;
        font-size: 11px;
    }

    .hamburger-bars {
        width: 14px;
        height: 11px;
    }

    .mobile-menu-toggle {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .account-dropdown {
        width: 245px;
        max-width: calc(100vw - 20px);
        max-height: 65vh;
        padding: 6px;
    }

    .account-group {
        padding: 8px;
    }

    .marketplace-content {
        padding: 16px 12px 28px;
    }

    .marketplace-hero {
        min-height: auto;
        padding: 23px 17px;
        margin-bottom: 23px;
    }

    .hero-art {
        display: none;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .hero-copy h1 {
        font-size: clamp(25px, 7vw, 31px);
        letter-spacing: -0.8px;
    }

    .hero-copy > p:not(.eyebrow) {
        font-size: 13px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 8px;
    }

    .section-heading h2 {
        font-size: 18px;
    }

    .section-heading p {
        font-size: 11px;
    }

    .listing-count {
        padding: 5px 8px;
        font-size: 11px;
    }

    .market-search-form {
        gap: 5px;
        padding: 4px;
    }

    .market-search-form input {
        min-height: 44px;
        padding: 0 8px;
        font-size: 14px;
    }

    .market-search-form input::placeholder {
        font-size: 11px;
    }

    .market-search-form button {
        min-width: 66px;
        min-height: 44px;
        padding: 0 10px;
        font-size: 12px;
    }

    .search-filters {
        gap: 7px;
    }

    .search-filters select {
        min-height: 42px;
        padding: 7px 5px;
        font-size: 11px;
    }

    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-card > a img {
        height: clamp(100px, 32vw, 145px);
        padding: 3px;
    }

    .product-card h3 {
        margin: 8px 7px 4px;
        font-size: 12px;
    }

    .product-card .price {
        margin: 4px 7px;
        font-size: 14px;
    }

    .product-card p:not(.price) {
        margin: 3px 7px;
        font-size: 11px;
    }

    .product-card small {
        margin: 5px 7px 8px;
        font-size: 10px;
    }

    .product-card .market-add-cart {
        width: calc(100% - 14px);
        min-height: 38px;
        margin: auto 7px 7px;
        padding: 7px 3px;
        font-size: 11px;
    }

    .no-results {
        padding: 18px 12px;
        font-size: 13px;
    }
}

/* ==========================================
   VERY NARROW PHONES
========================================== */

@media (max-width: 350px) {
    .market-header {
        padding-right: 8px;
        padding-left: 8px;
    }

    .brand img {
        width: 28px;
        height: 28px;
    }

    .brand > span {
        font-size: 11px;
    }

    .brand small {
        font-size: 6px;
    }

    .account-toggle {
        gap: 5px;
        padding: 7px 6px;
    }

    .account-toggle > span:last-child {
        display: none;
    }

    .header-right-actions {
        gap: 5px;
    }

    .mobile-menu-toggle {
        flex-basis: 35px;
        width: 35px;
        height: 36px;
    }

    .marketplace-content {
        padding-right: 9px;
        padding-left: 9px;
    }

    .market-search-form input::placeholder {
        font-size: 10px;
    }

    .market-search-form button {
        min-width: 58px;
        padding: 0 7px;
        font-size: 11px;
    }

    .search-filters select {
        font-size: 10px;
    }

    .products {
        gap: 7px;
    }
}

/* ==========================================
   REDUCE ANIMATION FOR ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   FORCE POST NEW ITEM & ACCOUNT SIDE-BY-SIDE ON ALL SCREENS
========================================== */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right-actions #newItemBtn {
    display: inline-flex !important;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .header-right-actions {
        gap: 5px;
    }

    .account-toggle {
        padding: 6px 8px;
        font-size: 11px;
    }

    .header-right-actions #newItemBtn {
        padding: 6px 8px;
        font-size: 10px;
    }
}