/* ============================================================
   Qusaqus.com — Shared Stylesheet
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --border-color: #E0E0E0;
    --border-light: #F0F0F0;
    --link-blue: #0056b3;
    --price-color: #0073BB;
    --danger-red: #d32f2f;
    --text-main: #2D3436;
    --text-muted: #505557;
    --bg-muted: #F8F9FA;
    --hero-gradient: linear-gradient(90deg, #93e187 0%, #008631 100%);
    --hero-dark: #008631;
    --container-width: 1080px;
    --radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --listing-blue: #0073BB;
}

/* --- Reset & Typography --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.4;
    background-color: #FFF;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.drawer-open { overflow: hidden; }

a { color: var(--link-blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; }
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--hero-dark);
    outline-offset: 2px;
}

img { max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.qu-head-header {
    background: #FFF;
    font-size: 14px;
    z-index: 100;
}

.qu-head-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 9px 20px;
}

.qu-head-left {
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.qu-mobile-trigger {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    padding: 12px;
    margin-right: 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-main);
}

.qu-head-logo-text {
    color: #002f87;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none !important;
}

.qu-head-logo-text:hover { text-decoration: underline !important; }

.qu-head-logo-text h1 {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
    color: inherit;
}

.qu-head-separator {
    margin: 0 5px;
    color: var(--text-muted);
}

.qu-head-subtitle {
    font-size: 12px;
    color: #666;
}

.qu-head-menu {
    display: flex;
    list-style: none;
    gap: 18px;
    font-size: 13px;
    align-items: center;
}

.qu-head-link {
    color: #333;
    text-decoration: none;
    padding: 6px 0;
    font-weight: 500;
    transition: color 0.15s ease;
}
.qu-head-link:hover { color: var(--hero-dark); }
.qu-head-link.active { color: var(--hero-dark); font-weight: 600; }
.qu-head-bold { font-weight: 600; color: var(--hero-dark); }

.btn-post-ad {
    color: #002f87 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 0;
    display: inline-block;
    cursor: pointer;
}

.btn-post-ad:hover {
    text-decoration: underline !important;
}

/* --- Mobile Drawer --- */
.qu-drawer-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}

.qu-drawer-overlay.active { opacity: 1; visibility: visible; }

.qu-drawer {
    position: fixed; top: 0; left: -300px;
    width: 300px; height: 100%;
    background: #FFF;
    z-index: 1000;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}

.qu-drawer.active { left: 0; }

.qu-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-muted);
}

.qu-drawer-header h2 { font-size: 16px; font-weight: 700; }

.qu-drawer-close {
    background: none; border: none;
    font-size: 24px; width: 48px; height: 48px;
    cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}

.qu-drawer-body { flex: 1; overflow-y: auto; padding: 0 12px; }

.qu-drawer-list .qu-cat-link {
    color: var(--text-main);
    text-decoration: none;
    display: block;
    width: 100%;
}

.qu-drawer-list { padding: 0 !important; }

/* --- Hero Search Section --- */
.q-hero-wrapper {
    background: var(--hero-gradient);
    padding: 20px 0;
}

.q-hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.q-hero-logo {
    display: flex;
    align-items: center;
    flex: 0 0 180px;
    min-width: 150px;
}

.q-hero-logo-box {
    background: #008631; color: #FFF;
    font-size: 18px; padding: 6px 10px;
    border-radius: 6px; margin-right: 8px;
    font-weight: bold;
}

.q-hero-content-stack { flex: 1; }

.q-hero-form {
    display: flex; flex: 1;
    align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px; border-radius: 6px;
}

.q-hero-search-input {
    flex: 2; padding: 12px 14px;
    border: none; border-radius: 4px;
    font-size: 14px; min-width: 0;
    width: 100%; box-sizing: border-box;
    outline: none; color: var(--text-main);
}

.q-hero-search-select {
    width: 100%; padding: 12px 14px;
    border: none; border-radius: 4px;
    font-size: 14px; background: #FFF;
    color: var(--text-muted); outline: none; cursor: pointer;
    box-sizing: border-box;
}

.q-hero-cat-wrap {
    position: relative; flex: 1;
}

.q-hero-cat-dropdown {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #FFF; border: 1px solid var(--border-color);
    border-radius: 0 0 4px 4px; max-height: 220px; overflow-y: auto;
    z-index: 200; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.q-hero-cat-option {
    padding: 8px 12px; font-size: 13px; cursor: pointer;
    color: var(--text-main); border-bottom: 1px solid var(--border-light);
}
.q-hero-cat-option:last-child { border-bottom: none; }
.q-hero-cat-option:hover { background: #e8f5e9; color: var(--hero-dark); }

.q-hero-search-btn {
    background: #008631; color: #FFF !important;
    padding: 12px 18px; border: none; border-radius: 4px;
    cursor: pointer; font-size: 14px; font-weight: 700;
    white-space: nowrap;
}

.q-hero-search-btn:hover { background: #006b28; }

/* --- Categories Bar --- */
.qu-categories-bar {
    border-bottom: 1px solid var(--border-color);
    padding: 4px 0;
    position: relative; z-index: 95;
}

.qu-hero-quick-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.qu-quick-icons-container {
    display: flex; gap: 2px; flex: 1;
    overflow-x: auto; scrollbar-width: none; align-items: center;
}
.qu-quick-icons-container::-webkit-scrollbar { display: none; }

.qu-quick-icon-wrapper {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.2s ease;
    user-select: none; border-radius: 4px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.qu-quick-icon { font-size: 14px; }
.qu-quick-icon-wrapper:hover { transform: translateY(-2px) scale(1.1); background: var(--bg-muted); }

.qu-view-all-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-muted); border: 1px solid var(--border-color);
    color: var(--text-main); font-size: 11px; font-weight: 700;
    padding: 8px 16px; border-radius: 20px;
    cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}

.qu-view-all-btn:hover { background: #EEE; }
.qu-view-all-btn .arrow { font-size: 8px; transition: transform 0.3s ease; }
.qu-view-all-btn.expanded .arrow { transform: rotate(180deg); }

.qu-hero-categories-expanded {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: 0; overflow: hidden; background: #FFF;
    transition: max-height 0.25s ease-out;
    z-index: 110; border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.qu-hero-categories-expanded.expanded { max-height: 300px; padding-bottom: 15px; }

.qu-hero-cat-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 2px 8px; padding-top: 8px;
}

.qu-hero-cat-item {
    display: flex; align-items: center; gap: 4px;
    padding: 8px; border-radius: 4px;
    color: var(--text-main); font-size: 12px;
    transition: background 0.15s ease;
    text-decoration: none !important; white-space: nowrap;
}

.qu-hero-cat-item:hover { background: var(--bg-muted); }
.qu-hero-cat-item .icon { font-size: 14px; }
.qu-hero-cat-item .name { font-weight: 500; }
.qu-hero-cat-item .count { color: var(--text-muted); font-size: 11px; margin-left: 2px; }

/* --- Main Layout (2-column homepage) --- */
.qu-main-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 20px;
    margin-top: 20px;
}

.qu-main-layout-full {
    display: block;
    margin-top: 20px;
}

.qu-main-box {
    margin-bottom: 12px;
    background: #FFF; border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.qu-sidebar-box {
    padding: 12px;
}

.qu-main-heading {
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px; padding-bottom: 6px;
    color: #222; font-weight: 700;
    display: flex; align-items: center; justify-content: space-between;
}

.qu-main-list { list-style: none; }

.qu-main-list-item {
    padding: 10px 0; font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center;
    color: var(--text-main);
}

.qu-main-list-item:last-child { border-bottom: none; }

.qu-safety-icon { width: 22px; text-align: center; margin-right: 8px; font-size: 14px; }

/* --- Card Grid --- */
.qu-grid-highlights {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}

.qu-grid-highlights-3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}

.qu-masonry-card {
    border: 1px solid #CCC;
    background: #FFF; border-radius: 6px;
    overflow: hidden; transition: all 0.2s ease;
    position: relative;
}

.qu-masonry-card:hover {
    border-color: var(--hero-dark);
}

.qu-staggered-image { position: relative; height: 85px; }
.qu-staggered-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.qu-card-badge {
    position: absolute; top: 6px; left: 6px;
    background: rgba(0,0,0,0.7); color: #FFF;
    font-size: 9px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
    text-transform: uppercase;
}

.qu-price-badge {
    top: auto; left: auto;
    bottom: 4px; right: 4px;
    background: rgba(0,0,0,0.6);
    font-size: 9px;
    padding: 2px 5px;
}

.qu-staggered-content { padding: 5px 6px; }

.qu-staggered-title {
    font-size: 12px; margin-bottom: 2px;
    max-height: 30px; overflow: hidden;
    line-height: 1.25; font-weight: 600;
}

.qu-staggered-title a { color: inherit; text-decoration: none; }
.qu-staggered-title a:hover { color: var(--hero-dark); }

.qu-staggered-price { font-weight: 700; color: var(--price-color); font-size: 13px; }
.qu-staggered-date { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* --- Announcement Row --- */
.qu-announcement-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 8px; border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
    text-decoration: none !important;
}

.qu-announcement-row:hover { background-color: var(--bg-muted); }

.qu-ann-main { display: flex; align-items: center; gap: 12px; flex: 1; }

.qu-ann-badge-icon {
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; background: var(--bg-muted);
    width: 28px; height: 28px; border-radius: 4px;
    border: 1px solid var(--border-color);
}

.qu-ann-title { font-size: 14px; color: var(--text-main); font-weight: 500; }
.qu-ann-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.qu-main-box-muted { background-color: var(--bg-muted); border: 1px solid var(--border-color); }

/* --- Intro Box with Language Tabs --- */
.qu-intro-box {
    margin-bottom: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.qu-intro-tabs {
    display: flex;
}
.qu-intro-tab {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: var(--bg-muted);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border-bottom: 1px solid var(--border-color);
}
.qu-intro-tab:first-child {
    border-right: 1px solid var(--border-color);
}
.qu-intro-tab:hover {
    background: #e8f5e9;
}
.qu-intro-tab:focus {
    outline: none;
}
.qu-intro-tab:focus-visible {
    outline: 2px solid var(--hero-dark);
    outline-offset: -2px;
}
.qu-intro-tab.active {
    background: #FFF;
    color: var(--hero-dark);
    border-bottom-color: transparent;
}
.qu-intro-body {
    padding: 12px;
    background: #FFF;
    text-align: center;
}
.qu-intro-icon {
    font-size: 20px;
    margin-bottom: 8px;
}
.qu-intro-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}
.qu-intro-content {
    display: none;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
}
.qu-intro-content.active {
    display: block;
}
.qu-intro-content p {
    margin: 0;
}

.qu-main-listing-img {
    width: 100%; height: 130px; object-fit: cover;
    border-radius: 4px; margin-bottom: 8px;
    border: 1px solid var(--border-light);
}

.btn-sidebar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; background: #FFF;
    border: 1px solid var(--border-color); border-radius: 6px;
    font-size: 13px; font-weight: 600; margin-bottom: 8px;
    color: var(--text-main); transition: all 0.2s ease;
    text-decoration: none !important; cursor: pointer;
}

.btn-sidebar:hover { background: var(--bg-muted); }

/* --- Listing Detail Page --- */
.listing-breadcrumb {
    padding: 8px 0; font-size: 11px; color: #06c;
}
.listing-breadcrumb span { color: var(--text-muted); margin: 0 3px; }
.listing-breadcrumb a { color: #06c; }

.listing-title {
    font-size: 1.188rem; font-weight: 700;
    color: #06c; margin-bottom: 16px; line-height: 1.22;
}

.listing-grid {
    display: grid; grid-template-columns: 1fr 30%;
    gap: 20px; margin-bottom: 20px;
}

.listing-main-card {
    border-top: 1px solid #f2f3f5; padding-top: 10px;
}

.gallery-viewport {
    background: #fafafa;
    height: 300px; display: flex;
    align-items: center; justify-content: center;
    overflow: hidden; margin-bottom: 10px;
    border: 1px solid #eee; border-radius: 4px;
}

.gallery-viewport img { max-width: 100%; max-height: 100%; object-fit: contain; }

.gallery-thumbnails {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px; margin-bottom: 16px;
}

.thumb-box {
    width: 100%; height: 60px;
    border: 1px solid #eee; border-radius: 4px;
    cursor: pointer; overflow: hidden; transition: opacity 0.2s ease;
}
.thumb-box.active { border: 2px solid #007cba; }
.thumb-box:hover { opacity: 0.8; }
.thumb-box img { width: 100%; height: 100%; object-fit: cover; }

.listing-description {
    font-size: 14px; color: #333; line-height: 1.22;
    margin-bottom: 0; padding: 20px 0;
    white-space: pre-line;
}

.listing-meta-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr auto;
    border-top: 1px solid #eee;
    padding: 10px; margin-top: 10px; gap: 10px;
}

.meta-item { display: flex; flex-direction: column; gap: 5px; }
.meta-item h4 {
    font-size: 12px; font-weight: 600;
    color: #666; margin-bottom: 0;
}
.meta-item p { font-size: 13px; font-weight: 500; color: #333; }
.meta-price { color: #039; font-weight: 700 !important; }

.share-icons { display: flex; gap: 8px; align-items: center; }
.share-btn {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; text-decoration: none; transition: background 0.15s ease, transform 0.15s ease;
    background: #f3f4f6; border: none;
}
.share-btn:hover { background: #e6e8eb; transform: translateY(-1px); }

/* Info Cards (listing sidebar) */
.info-card {
    border: 1px solid #c3d2dc; border-radius: 4px;
    overflow: hidden; margin-bottom: 20px; background: #fff;
}

.info-card-header {
    background: #fff; padding: 10px;
    border-bottom: 1px solid #c3d2dc;
}
.info-card-header h3 { font-size: 1rem; color: #06c; font-weight: 700; line-height: 1.22; }

.info-card-body { padding: 10px; background: #fff; }

.info-row {
    display: grid; grid-template-columns: 30% 1fr;
    margin-bottom: 4px; font-size: 0.9rem;
}

.info-label { color: #555; padding-right: 8px; }
.info-value { font-weight: 700; color: #06c; }

.info-link {
    display: block; margin-top: 4px;
    font-size: 13px; color: #06c; font-weight: 600;
    text-decoration: none; padding-right: 3px;
}
.info-link::before { content: "\00BB "; }
.info-link:hover { text-decoration: underline; }

.guide-list { list-style: none; font-size: 13px; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.guide-list li {
    position: relative; padding-left: 15px;
    line-height: 1.22;
}
.guide-list li::before {
    content: "\00BB"; position: absolute; left: 0;
    color: #000; font-weight: bold;
}

/* --- Footer --- */
#footer {
    margin-top: auto;
}

.qu-footer {
    margin-top: 300px; padding: 40px 0 20px;
    border-top: 3px solid var(--hero-dark);
    background: #fdfdfd;
    border-bottom: 10px solid var(--hero-dark);
}

.qu-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px; margin-bottom: 40px;
}

.qu-footer-col h2 {
    font-size: 14px; font-weight: 700; margin-bottom: 15px;
    color: #000; text-transform: uppercase; letter-spacing: 0.5px;
}

.qu-footer-links { list-style: none; font-size: 13px; }
.qu-footer-links li { padding: 4px 0; }
.qu-footer-links a { color: var(--text-muted); }
.qu-footer-links a:hover { color: var(--hero-dark); }

.qu-footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.qu-footer-copy { font-size: 12px; color: #000; font-weight: 700; }

/* --- Pagination --- */
.qu-pagination {
    display: flex; gap: 4px; justify-content: center;
    padding: 20px 0; flex-wrap: wrap;
}

.qu-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 10px; border: 1px solid var(--border-color);
    border-radius: 4px; font-size: 13px; font-weight: 500;
    color: var(--text-main); background: #FFF;
    text-decoration: none !important; transition: all 0.15s ease;
}

.qu-page-btn:hover { background: var(--bg-muted); border-color: var(--hero-dark); }
.qu-page-btn.active { background: var(--hero-dark); color: #FFF; border-color: var(--hero-dark); }
.qu-page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.qu-page-dots { display: inline-flex; align-items: center; padding: 0 6px; color: var(--text-muted); }

/* --- Toast Notification --- */
.qu-toast {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px);
    padding: 12px 24px; border-radius: 6px;
    font-size: 14px; font-weight: 500;
    z-index: 9999; transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.qu-toast-show { transform: translateX(-50%) translateY(0); }
.qu-toast-success { background: #2e7d32; color: #FFF; }
.qu-toast-error { background: #c62828; color: #FFF; }
.qu-toast-info { background: #1565c0; color: #FFF; }

/* --- Forms --- */
.qu-form-group {
    margin-bottom: 18px;
}

.qu-form-group label {
    display: block; font-size: 13px; font-weight: 600;
    margin-bottom: 6px; color: var(--text-main);
}

.qu-form-group label .required { color: var(--danger-red); }

.qu-input, .qu-select, .qu-textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px; font-size: 14px;
    font-family: inherit; color: var(--text-main);
    background: #FFF; transition: border-color 0.2s ease;
}

.qu-input:focus, .qu-select:focus, .qu-textarea:focus {
    border-color: var(--hero-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,134,49,0.1);
}

.qu-input.error, .qu-select.error, .qu-textarea.error {
    border-color: var(--danger-red);
}

.qu-textarea { resize: vertical; min-height: 100px; }

.qu-form-error {
    font-size: 12px; color: var(--danger-red);
    margin-top: 4px;
}

.qu-form-hint {
    font-size: 11px; color: var(--text-muted);
    margin-top: 4px;
}

.qu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 6px;
    font-size: 14px; font-weight: 700;
    font-family: inherit; cursor: pointer;
    transition: all 0.2s ease; border: none;
    text-decoration: none !important;
}

.qu-btn-primary { background: var(--hero-dark); color: #FFF; }
.qu-btn-primary:hover { background: #006b28; }

.qu-btn-secondary { background: #FFF; color: var(--text-main); border: 1px solid var(--border-color); }
.qu-btn-secondary:hover { background: var(--bg-muted); }

.qu-btn-danger { background: #c62828; color: #FFF; }
.qu-btn-danger:hover { background: #a31c1c; }

.qu-btn-sm { padding: 8px 14px; font-size: 12px; }
.qu-btn-block { width: 100%; }

.qu-btn:disabled {
    opacity: 0.5; cursor: not-allowed;
}

/* --- Auth / Two-Column Forms --- */
.qu-auth-page {
    max-width: var(--container-width); margin: 0 auto; padding: 60px 20px 40px;
    display: flex; align-items: flex-start; justify-content: center; min-height: 60vh;
}

.qu-auth-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.qu-auth-card {
    padding: 30px;
    background: #FFF;
}

.qu-auth-card h2 {
    font-size: 22px; margin-bottom: 6px; color: var(--text-main);
}

.qu-auth-card .qu-auth-subtitle {
    font-size: 14px; color: var(--text-muted);
    margin-bottom: 24px;
}

.qu-auth-links {
    margin-top: 20px; text-align: center;
    font-size: 13px; color: var(--text-muted);
}

.qu-auth-info {
    background: var(--hero-gradient);
    color: #FFF; padding: 40px 30px;
    display: flex; flex-direction: column;
    justify-content: center;
}

.qu-auth-info h3 {
    font-size: 20px; font-weight: 700;
    margin-bottom: 20px;
}

.qu-auth-info-list {
    list-style: none; padding: 0; margin: 0 0 20px;
}

.qu-auth-info-list li {
    padding: 10px 0;
    font-size: 14px; line-height: 1.5;
    display: flex; align-items: flex-start; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.qu-auth-info-list li:last-child { border-bottom: none; }

.qu-auth-info-list .info-icon {
    font-size: 18px; flex-shrink: 0; margin-top: 1px;
}

.qu-auth-info-footer {
    margin-top: auto; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 12px; opacity: 0.85;
}

/* --- Dashboard Layout --- */
.qu-dash-layout {
    display: grid; grid-template-columns: 220px 1fr;
    gap: 25px; margin-top: 20px; margin-bottom: 40px;
}

.dash-sidebar {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #FFF; overflow: hidden;
}

.dash-sidebar-header {
    padding: 15px; border-bottom: 1px solid var(--border-light);
    background: var(--bg-muted);
}

.dash-sidebar-header h2 { font-size: 16px; font-weight: 700; }

.dash-sidebar-menu {
    list-style: none; padding: 8px 0;
}

.dash-sidebar-menu li a {
    display: block; padding: 10px 15px;
    font-size: 13px; color: var(--text-main);
    text-decoration: none; transition: background 0.15s ease;
}

.dash-sidebar-menu li a:hover { background: var(--bg-muted); }
.dash-sidebar-menu li.active a {
    background: #e8f5e9; color: var(--hero-dark);
    font-weight: 700; border-left: 3px solid var(--hero-dark);
}

.dash-sidebar-action { padding: 15px; }

.qu-dash-content {
    min-width: 0;
}

.qu-dash-content h2 {
    font-size: 20px; font-weight: 700;
    margin-bottom: 20px;
}

/* --- Tabs --- */
.qu-tabs {
    display: flex; gap: 0; border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.qu-tab {
    padding: 10px 20px; font-size: 13px; font-weight: 600;
    color: var(--text-muted); cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: all 0.2s ease;
    background: none; border-top: none; border-left: none; border-right: none;
    font-family: inherit;
}

.qu-tab:hover { color: var(--text-main); }
.qu-tab.active { color: var(--hero-dark); border-bottom-color: var(--hero-dark); }

/* --- Static Pages --- */
.qu-static-page {
    max-width: var(--container-width); margin: 0 auto; padding: 0 20px 30px;
}
.qu-static-page h1 { font-size: 22px; margin-bottom: 8px; }
.qu-static-page h2 { font-size: 17px; margin-top: 20px; margin-bottom: 10px; color: var(--text-main); }
.qu-static-page h3 { font-size: 15px; margin-top: 14px; margin-bottom: 6px; }
.qu-static-page p { font-size: 14px; line-height: 1.6; margin-bottom: 10px; color: #444; }
.qu-static-page ul, .qu-static-page ol { padding-left: 20px; margin-bottom: 10px; }
.qu-static-page li { font-size: 14px; line-height: 1.6; margin-bottom: 4px; color: #444; }
.qu-section { margin-bottom: 20px; }
.qu-intro-text { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.qu-how-it-works {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.qu-step {
    text-align: center; padding: 20px 12px;
    background: var(--bg-muted); border-radius: var(--radius);
}
.qu-step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--hero-dark); color: #fff;
    font-weight: 700; font-size: 16px; margin-bottom: 10px;
}
.qu-step h3 { margin-top: 0; margin-bottom: 8px; font-size: 15px; }
.qu-step p { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 0; }

.qu-stats {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.qu-stat-item {
    text-align: center; padding: 20px 30px;
    background: var(--bg-muted); border-radius: var(--radius); min-width: 140px;
}
.qu-stat-number { display: block; font-size: 28px; font-weight: 700; color: var(--hero-dark); }
.qu-stat-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.qu-contact-info { margin-top: 12px; }
.qu-contact-info p { margin-bottom: 6px; }

@media (max-width: 768px) {
    .qu-how-it-works { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .qu-how-it-works { grid-template-columns: 1fr; }
}

/* --- Category / Search Results Layout --- */
.qu-results-layout {
    display: grid; grid-template-columns: 1fr 240px;
    gap: 20px; margin-top: 20px; margin-bottom: 40px;
}

.qu-results-sidebar {
    align-self: start;
}

.qu-filter-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 15px;
    margin-bottom: 15px; background: #FFF;
}

.qu-filter-box h3 {
    font-size: 14px; font-weight: 700; margin-bottom: 10px;
    color: var(--text-main);
}

.qu-filter-link {
    display: block; padding: 6px 0; font-size: 13px;
    color: var(--text-main); text-decoration: none;
}
.qu-filter-link:hover { color: var(--hero-dark); }
.qu-filter-link.active { color: var(--hero-dark); font-weight: 700; }

.qu-results-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 15px; flex-wrap: wrap; gap: 10px;
}

.qu-results-count { font-size: 14px; color: var(--text-muted); }

.qu-sort-select {
    padding: 8px 12px; border: 1px solid var(--border-color);
    border-radius: 4px; font-size: 13px; background: #FFF;
}

.qu-results-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}

.qu-results-list .qu-announcement-row { border: 1px solid var(--border-light); border-radius: 4px; margin-bottom: 4px; }

/* --- Post Ad Wizard --- */

/* Horizontal progress bar */
.qu-wizard-progress {
    display: flex; align-items: center; justify-content: center;
    gap: 0; padding: 15px 0; margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.qu-wizard-step {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-muted);
}
.qu-wizard-step.active { color: var(--hero-dark); font-weight: 700; }
.qu-wizard-step.completed { color: var(--hero-dark); }

.qu-wizard-step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
    border: 2px solid var(--border-color); color: var(--text-muted);
    background: #FFF; flex-shrink: 0;
}
.qu-wizard-step.active .qu-wizard-step-dot {
    background: var(--hero-dark); color: #FFF; border-color: var(--hero-dark);
}
.qu-wizard-step.completed .qu-wizard-step-dot {
    background: #c8e6c9; color: var(--hero-dark); border-color: var(--hero-dark);
}

.qu-wizard-step-label { white-space: nowrap; }
.qu-wizard-step-line {
    width: 40px; height: 2px; background: var(--border-color);
    margin: 0 8px; flex-shrink: 0;
}

/* Two-column layout for wizard (content left, sidebar right) */
.qu-wizard-layout {
    display: grid; grid-template-columns: 1fr 260px;
    gap: 20px; margin-bottom: 40px;
}

.qu-wizard-content { min-width: 0; }

/* Category sidebar nav (step 1 left panel) */
.qu-wizard-cat-sidebar {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #FFF; overflow: hidden;
    align-self: start;
    max-height: 70vh; overflow-y: auto;
}

.qu-cat-nav { list-style: none; }

.qu-cat-nav li a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; color: var(--text-main);
    text-decoration: none; font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.qu-cat-nav li a:hover { background: var(--bg-muted); }
.qu-cat-nav li.active a {
    background: #e8f5e9; color: var(--hero-dark);
    font-weight: 700; border-left: 3px solid var(--hero-dark);
}
.qu-cat-nav li:last-child a { border-bottom: none; }
.qu-cat-nav-icon { font-size: 16px; flex-shrink: 0; }

/* Prompt shown before selecting a category */
.qu-cat-prompt {
    display: flex; align-items: center; justify-content: center;
    height: 200px; color: var(--text-muted);
    font-size: 15px; text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
}

/* Form + tips sidebar layout (content left, sidebar right) */
.qu-wizard-form-layout {
    display: grid; grid-template-columns: 1fr 260px;
    gap: 25px; margin-bottom: 40px;
}

.qu-wizard-tips {
    align-self: start;
}

.qu-tips-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px; margin-bottom: 12px;
    background: #FFF;
}
.qu-tips-box h3 {
    font-size: 13px; font-weight: 700;
    margin-bottom: 10px; color: var(--text-main);
}
.qu-tips-box ul {
    list-style: none; padding: 0; margin: 0;
}
.qu-tips-box ul li {
    font-size: 12px; color: var(--text-muted);
    padding: 4px 0; padding-left: 14px;
    position: relative; line-height: 1.5;
}
.qu-tips-box ul li::before {
    content: "\2022"; position: absolute; left: 0;
    color: var(--hero-dark); font-weight: bold;
}
.qu-tips-box-highlight {
    background: #f0faf0; border-color: var(--hero-dark);
}
.qu-tips-box-highlight ul li::before {
    content: none;
}
.qu-tips-box-highlight ul li {
    padding-left: 0;
}

/* Post-ad category grid selection (3-section stacked boxes) */
.qu-cat-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: #FFF;
    overflow: hidden;
}

.qu-cat-section-label {
    font-size: 12px; font-weight: 700;
    color: var(--text-main); padding: 10px 15px;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.qu-cat-grid-select {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 15px;
}

.qu-cat-grid-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px; background: #FFF;
    cursor: pointer; transition: all 0.15s ease;
    text-decoration: none !important;
    color: var(--text-main); font-size: 13px;
}
.qu-cat-grid-item:hover {
    border-color: var(--hero-dark); background: #f0faf0;
}
.qu-cat-grid-item.selected {
    border-color: var(--hero-dark); background: #e8f5e9;
    color: var(--hero-dark); font-weight: 600;
    box-shadow: 0 0 0 1px var(--hero-dark);
}
.qu-cat-grid-item .cat-icon { font-size: 18px; flex-shrink: 0; }

/* Image upload area */
.qu-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius); padding: 40px;
    text-align: center; cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.qu-upload-area:hover, .qu-upload-area.dragover {
    border-color: var(--hero-dark); background: #f0faf0;
}
.qu-upload-area p { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

.qu-upload-previews {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 10px; margin-top: 15px;
}
.qu-upload-preview {
    position: relative; height: 80px; border-radius: 4px;
    overflow: hidden; border: 1px solid var(--border-light);
}
.qu-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.qu-upload-preview .remove-btn {
    position: absolute; top: 2px; right: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: #FFF;
    border: none; cursor: pointer; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}

/* Ad type selection */
.qu-ad-type-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
}
.qu-ad-type-card {
    border: 2px solid var(--border-color); border-radius: var(--radius);
    padding: 20px; text-align: center; cursor: pointer;
    transition: all 0.2s ease;
}
.qu-ad-type-card:hover { border-color: var(--hero-dark); }
.qu-ad-type-card.selected { border-color: var(--hero-dark); background: #f0faf0; }
.qu-ad-type-card h3 { font-size: 16px; margin-bottom: 6px; }
.qu-ad-type-card .price { font-size: 22px; font-weight: 700; color: var(--hero-dark); margin-bottom: 8px; }
.qu-ad-type-card ul { list-style: none; font-size: 12px; color: var(--text-muted); text-align: left; }
.qu-ad-type-card ul li { padding: 3px 0; }

/* --- Messaging --- */
.qu-msg-layout {
    display: grid; grid-template-columns: 300px 1fr;
    border: 1px solid var(--border-color); border-radius: var(--radius);
    overflow: hidden; min-height: 500px;
}

.qu-msg-list {
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.qu-msg-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border-bottom: 1px solid var(--border-light);
    cursor: pointer; text-decoration: none; color: var(--text-main);
    transition: background 0.15s;
}
.qu-msg-item:hover, .qu-msg-item.active { background: var(--bg-muted); }
.qu-msg-item.unread { font-weight: 700; }
.qu-msg-item .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; display: flex;
    align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: var(--hero-dark);
    flex-shrink: 0; border: 2px solid var(--hero-dark);
}
.qu-msg-item .msg-info { flex: 1; min-width: 0; }
.qu-msg-item .msg-name { font-size: 13px; }
.qu-msg-item .msg-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qu-msg-item .msg-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.qu-msg-thread { display: flex; flex-direction: column; }
.qu-msg-thread-header {
    padding: 12px 15px; border-bottom: 1px solid var(--border-color);
    font-weight: 700; font-size: 14px; background: var(--bg-muted);
}
.qu-msg-thread-body { flex: 1; overflow-y: auto; padding: 15px; }
.qu-msg-bubble {
    max-width: 70%; padding: 10px 14px; border-radius: 12px;
    margin-bottom: 10px; font-size: 14px; line-height: 1.4;
}
.qu-msg-bubble.sent { background: #e8f5e9; margin-left: auto; border-bottom-right-radius: 4px; }
.qu-msg-bubble.received { background: var(--bg-muted); border-bottom-left-radius: 4px; }
.qu-msg-bubble .msg-timestamp { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

.qu-msg-compose {
    padding: 12px; border-top: 1px solid var(--border-color);
    display: flex; gap: 10px;
}
.qu-msg-compose input {
    flex: 1; padding: 10px 12px; border: 1px solid var(--border-color);
    border-radius: 20px; font-size: 14px; font-family: inherit;
}
.qu-msg-compose button {
    padding: 10px 20px; background: var(--hero-dark); color: #FFF;
    border: none; border-radius: 20px; font-weight: 700;
    cursor: pointer; font-family: inherit;
}

/* --- Pricing Cards --- */
.qu-pricing-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin: 16px 0;
}
.qu-pricing-card {
    border: 1px solid var(--border-color); border-radius: var(--radius);
    overflow: hidden; text-align: center; transition: all 0.2s ease;
}
.qu-pricing-card.featured { border-color: var(--hero-dark); border-width: 2px; }
.qu-pricing-card-header { padding: 14px 12px; background: var(--bg-muted); }
.qu-pricing-card.featured .qu-pricing-card-header { background: var(--hero-dark); color: #FFF; }
.qu-pricing-card-header h3 { font-size: 16px; margin: 0; }
.qu-pricing-price { font-size: 24px; font-weight: 700; margin-top: 4px; }
.qu-pricing-period { font-size: 12px; color: var(--text-muted); }
.qu-pricing-card.featured .qu-pricing-period { color: rgba(255,255,255,0.8); }
.qu-pricing-card-body { padding: 12px; }
.qu-pricing-card-body ul { list-style: none; text-align: left; margin: 0; padding: 0; }
.qu-pricing-card-body ul li { padding: 4px 0; font-size: 13px; line-height: 1.3; border-bottom: 1px solid var(--border-light); }
.qu-pricing-card-body ul li:last-child { border-bottom: none; }

/* --- Comparison Table --- */
.qu-comparison-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0; }
.qu-comparison-table th, .qu-comparison-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-light); }
.qu-comparison-table th { background: var(--bg-muted); font-weight: 600; }
.qu-comparison-table th:not(:first-child), .qu-comparison-table td:not(:first-child) { text-align: center; }
.qu-comparison-table tbody tr:hover { background: #fafafa; }

/* --- User Profile (public) --- */
.qu-profile-layout {
    display: grid; grid-template-columns: 240px 1fr;
    gap: 24px; margin-bottom: 40px;
}
.qu-profile-sidebar { position: sticky; top: 20px; align-self: start; }
.qu-profile-card {
    background: #fff; border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 24px; text-align: center;
}
.qu-profile-avatar {
    width: 90px; height: 90px; border-radius: 50%;
    background: var(--bg-muted); display: flex;
    align-items: center; justify-content: center;
    font-size: 36px; font-weight: 700; color: var(--hero-dark);
    margin: 0 auto 12px; overflow: hidden;
}
.qu-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.qu-profile-name { font-size: 20px; margin-bottom: 2px; }
.qu-profile-company { font-size: 13px; color: var(--hero-dark); font-weight: 600; margin-bottom: 4px; }
.qu-profile-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.qu-profile-rating { margin-bottom: 16px; font-size: 16px; }
.qu-profile-stats {
    display: flex; justify-content: center; gap: 0;
    border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
    padding: 12px 0; margin-bottom: 16px;
}
.qu-profile-stat {
    flex: 1; text-align: center;
    border-right: 1px solid var(--border-light);
}
.qu-profile-stat:last-child { border-right: none; }
.qu-profile-stat-num { display: block; font-size: 18px; font-weight: 700; color: var(--text-main); }
.qu-profile-stat-label { display: block; font-size: 11px; color: var(--text-muted); }
.qu-profile-actions { display: flex; flex-direction: column; gap: 8px; }

.qu-profile-section {
    background: #fff; border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 20px; margin-top: 16px;
}
.qu-profile-section:first-child, .qu-profile-content > .qu-profile-section:first-child { margin-top: 0; }
.qu-profile-section h3 { font-size: 16px; margin-bottom: 12px; }
.qu-profile-section h4 { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

.qu-profile-social-link {
    display: block; font-size: 13px; padding: 6px 0;
    color: var(--link-blue); text-decoration: none;
    border-bottom: 1px solid var(--border-light);
}
.qu-profile-social-link:last-child { border-bottom: none; }
.qu-profile-social-link:hover { color: var(--hero-dark); }

.qu-review-item {
    padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.qu-review-item:last-child { border-bottom: none; }
.qu-review-header { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.qu-review-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-muted); display: flex;
    align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: var(--hero-dark);
    flex-shrink: 0; overflow: hidden;
}
.qu-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.qu-review-text { font-size: 13px; line-height: 1.5; color: #444; margin: 0; }
.qu-profile-content .qu-results-grid { grid-template-columns: repeat(4, 1fr); }

/* Legacy compat */
.qu-user-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--bg-muted); display: flex;
    align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700; color: var(--hero-dark);
    flex-shrink: 0;
}

/* --- Report Form --- */
.qu-report-summary {
    display: flex; gap: 15px; padding: 15px;
    border: 1px solid var(--border-color); border-radius: var(--radius);
    margin-bottom: 20px; background: var(--bg-muted);
}

.qu-report-summary img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 4px;
}

/* --- Help Center --- */
.qu-help-layout {
    display: grid; grid-template-columns: 1fr 260px;
    gap: 25px;
}

.qu-help-intro-box {
    background: var(--hero-gradient); color: #FFF;
    padding: 20px; border-radius: var(--radius);
    margin-bottom: 15px;
}
.qu-help-intro-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.qu-help-intro-box p { font-size: 13px; line-height: 1.6; margin: 0; opacity: 0.95; }

.qu-accordion { border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.qu-accordion-item { border-bottom: 1px solid var(--border-light); }
.qu-accordion-item:last-child { border-bottom: none; }
.qu-accordion-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 15px; cursor: pointer; font-size: 14px; font-weight: 600;
    background: #FFF; transition: background 0.15s;
}
.qu-accordion-header:hover { background: var(--bg-muted); }
.qu-accordion-header .arrow { transition: transform 0.2s; font-size: 12px; }
.qu-accordion-item.open .qu-accordion-header .arrow { transform: rotate(180deg); }
.qu-accordion-body {
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease-out;
}
.qu-accordion-item.open .qu-accordion-body { max-height: 500px; }
.qu-accordion-body-inner { padding: 0 15px 14px; font-size: 14px; line-height: 1.6; color: #444; }

/* --- Loading Spinner --- */
.qu-loading {
    display: flex; align-items: center; justify-content: center;
    padding: 40px; color: var(--text-muted); font-size: 14px;
}

.qu-spinner {
    width: 24px; height: 24px; border: 3px solid var(--border-color);
    border-top-color: var(--hero-dark); border-radius: 50%;
    animation: qu-spin 0.6s linear infinite; margin-right: 10px;
}

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

/* --- Empty State --- */
.qu-empty {
    text-align: center; padding: 50px 20px; color: var(--text-muted);
}
.qu-empty .qu-empty-icon { font-size: 48px; margin-bottom: 15px; }
.qu-empty h3 { font-size: 18px; color: var(--text-main); margin-bottom: 8px; }
.qu-empty p { font-size: 14px; }

/* --- Table --- */
.qu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.qu-table th, .qu-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.qu-table th {
    background: var(--bg-muted);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.qu-table tr:hover { background: #fafafa; }
.qu-table img { display: block; }

/* --- Modal --- */
.qu-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.qu-modal-content {
    background: #fff;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}
.qu-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}
.qu-modal-header h3 { margin: 0; font-size: 16px; }
.qu-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.qu-modal-close:hover { color: var(--text-main); }
.qu-modal-body { padding: 20px; }

/* --- Responsive --- */
@media (max-width: 1000px) {
    .qu-main-layout { grid-template-columns: 1fr; gap: 15px; }
    .qu-main-sidebar { display: none; }
    .qu-main-aside { display: none; }
    .qu-grid-highlights { grid-template-columns: repeat(3, 1fr); }
    .qu-results-grid { grid-template-columns: repeat(3, 1fr); }
    .qu-mobile-trigger { display: block; }
    .qu-footer-grid { grid-template-columns: 1fr 1fr; }
    .qu-hero-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .qu-hero-categories-expanded { position: relative; top: 0; box-shadow: none; border-bottom: none; }
    .qu-results-layout { grid-template-columns: 1fr; }
    .qu-results-sidebar { display: none; }
    .qu-dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .qu-wizard-layout { grid-template-columns: 1fr; }
    .qu-wizard-sidebar { position: static; }
    .qu-msg-layout { grid-template-columns: 1fr; }
    .qu-msg-list { display: none; }
    .qu-msg-list.show { display: block; }
    .qu-help-layout { grid-template-columns: 1fr; }
    .qu-pricing-cards { grid-template-columns: 1fr; }
    .qu-ad-type-cards { grid-template-columns: 1fr; }
    .qu-cat-grid-select { grid-template-columns: repeat(3, 1fr); }
    .qu-wizard-layout { grid-template-columns: 1fr; }
    .qu-wizard-cat-sidebar { max-height: none; }
    .qu-wizard-form-layout { grid-template-columns: 1fr; }
    .qu-wizard-tips { display: none; }
    .qu-wizard-progress { flex-wrap: wrap; gap: 4px; }
    .qu-wizard-step-line { width: 20px; }
}

@media (max-width: 768px) {
    .qu-head-container { justify-content: flex-start; gap: 10px; }
    .qu-head-left { width: 100%; justify-content: space-between; }
    .qu-head-subtitle { display: none; }
    .qu-head-separator { display: none; }
    .qu-head-menu { display: none; }

    .q-hero-container { flex-direction: column; align-items: stretch; }
    .q-hero-logo { justify-content: center; margin-bottom: 10px; flex: none; }
    .q-hero-form {
        flex-direction: column; background: transparent;
        padding: 0; width: 100%; gap: 8px;
    }

    .q-hero-search-input,
    .q-hero-search-select,
    .q-hero-search-btn,
    .q-hero-cat-wrap {
        width: 100% !important; border-radius: 6px !important;
        padding: 12px 15px !important;
        box-sizing: border-box !important;
    }

    .qu-hero-quick-strip { flex-wrap: wrap; }
    .qu-hero-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .qu-grid-highlights { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .qu-grid-highlights-3 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .q-hero-logo-box { font-size: 20px; padding: 6px 10px; }

    .qu-auth-layout { grid-template-columns: 1fr; }
    .qu-auth-info { padding: 25px; }

    .listing-grid { grid-template-columns: 1fr; }
    .listing-meta-bar { grid-template-columns: 1fr; }
    .gallery-viewport { height: 250px; }
    .qu-results-grid { grid-template-columns: 1fr 1fr; }
    .qu-upload-previews { grid-template-columns: repeat(3, 1fr); }
    .qu-user-header { flex-direction: column; text-align: center; }
    .qu-profile-layout { grid-template-columns: 1fr; }
    .qu-profile-sidebar { position: static; }
    .qu-cat-grid-select { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .qu-hero-cat-grid { grid-template-columns: 1fr 1fr; }
    .qu-grid-highlights { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
    .qu-results-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
    .qu-profile-content .qu-results-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
    .qu-grid-highlights-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 6px !important; }
    .qu-upload-previews { grid-template-columns: repeat(2, 1fr); }
    .qu-allcat-grid { grid-template-columns: 1fr; }
    .qu-masonry-card { border-radius: 4px; }
}

/* ── All Categories Page ──────────────────────────────── */
.qu-allcat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
}
.qu-allcat-block {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 10px;
    break-inside: avoid;
}
.qu-allcat-heading {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qu-allcat-heading a {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.qu-allcat-heading a:hover { color: var(--hero-dark); }
.qu-allcat-icon { font-size: 14px; }
.qu-allcat-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 10px;
}
.qu-allcat-subs {
    list-style: none;
    margin: 0;
    padding: 0;
}
.qu-allcat-subs li {
    border-top: 1px solid var(--border-light);
}
.qu-allcat-sub {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 0 4px 18px;
    color: var(--text-main);
    font-size: 11px;
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qu-allcat-sub:hover { color: var(--hero-dark); }

@media (max-width: 1100px) {
    .qu-allcat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .qu-allcat-grid { grid-template-columns: 1fr; }
}
