/* Boora - منصة بورة للمعادن والخردة */
/* Clean Light Theme */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    /* === CSS Variable Aliases (for compatibility) === */
    --primary: var(--accent-primary);
    --primary-light: var(--accent-primary-light);
    --primary-dark: var(--accent-primary-dark);
    --secondary: #64748B;
    --bg-secondary: var(--bg-surface);
    --border: var(--border-subtle);
    --border-color: var(--border-default);

    /* === COLOR PALETTE === */

    /* Slate Grays */
    --steel-900: #0F172A;
    --steel-800: #1E293B;
    --steel-700: #334155;
    --steel-600: #475569;
    --steel-500: #64748B;
    --steel-400: #94A3B8;
    --steel-300: #CBD5E1;
    --steel-200: #E2E8F0;
    --steel-100: #F1F5F9;

    /* OLX Black/White Theme */
    --accent-primary: #002f34;
    --accent-primary-light: #406367;
    --accent-primary-dark: #001a1d;
    --accent-secondary: #23e5db;
    --accent-glow: rgba(0, 47, 52, 0.15);

    /* Semantic Colors */
    --success: #22C55E;
    --success-bg: rgba(34, 197, 94, 0.12);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.12);

    /* Metal Type Colors */
    --metal-copper: #B45309;
    --metal-aluminum: #64748B;
    --metal-iron: #475569;
    --metal-brass: #CA8A04;
    --metal-steel: #94A3B8;
    --metal-battery: #DC2626;

    /* === LIGHT MODE (Default) === */
    --bg-base: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-overlay: rgba(0, 0, 0, 0.5);

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-inverse: #FFFFFF;

    --border-subtle: #E2E8F0;
    --border-default: #CBD5E1;
    --border-strong: #94A3B8;

    /* === CLEAN SHADOWS === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-accent: 0 0 15px var(--accent-glow);

    /* === INDUSTRIAL RADIUS (Sharper) === */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 50%;

    /* === GLOVE-FRIENDLY SIZING === */
    --btn-height-sm: 48px;
    --btn-height-md: 56px;
    --btn-height-lg: 64px;
    --btn-height-xl: 72px;

    --input-height-sm: 48px;
    --input-height-md: 56px;
    --input-height-lg: 64px;

    --icon-btn-sm: 48px;
    --icon-btn-md: 56px;
    --icon-btn-lg: 64px;

    /* === SPACING (Increased) === */
    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 28px;
    --space-xl: 40px;
    --space-2xl: 56px;

    /* === TYPOGRAPHY === */
    --font-family: 'Cairo', sans-serif;
    --font-size-xs: 0.8125rem;
    --font-size-sm: 0.9375rem;
    --font-size-base: 1.0625rem;
    --font-size-lg: 1.1875rem;
    --font-size-xl: 1.375rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2.25rem;

    /* === APP DIMENSIONS === */
    --header-height: 52px;
    --bottom-nav-height: 80px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* === DARK MODE === */
[data-theme="dark"] {
    --bg-base: #0F172A;
    --bg-surface: #1E293B;
    --bg-elevated: #334155;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-inverse: #0F172A;

    --border-subtle: #334155;
    --border-default: #475569;
    --border-strong: #64748B;

    --accent-primary: #3B82F6;
    --accent-primary-light: #60A5FA;
    --accent-primary-dark: #1E40AF;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    direction: rtl;
    text-align: right;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    outline: none;
}

input, select, textarea {
    font-family: var(--font-family);
    direction: rtl;
}

/* ===== APP HEADER ===== */
.app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background: var(--bg-surface);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-sm);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-logo-icon {
    font-size: 20px;
    margin-right: 4px;
}

.header-logo-text {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--accent-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    transition: all 0.15s;
    position: relative;
}

.header-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.header-btn:active {
    background: var(--bg-surface);
    box-shadow: var(--shadow-inset);
}

.notification-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    border-radius: var(--radius-full);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    border: 2px solid var(--bg-elevated);
}

.header-spacer {
    height: var(--header-height);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: var(--bg-surface);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid var(--border-subtle);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    font-weight: 600;
    transition: color 0.15s;
    min-width: 72px;
    min-height: 64px;
    border-radius: var(--radius);
}

.nav-item.active {
    color: #23e5db;
    background: rgba(35, 229, 219, 0.1);
}

.nav-item-icon {
    font-size: 28px;
}

.nav-item-add {
    width: 72px;
    height: 72px;
    background: #23e5db;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002f34;
    font-size: 32px;
    font-weight: 700;
    margin-top: -24px;
    border: 3px solid var(--bg-surface);
    box-shadow: var(--shadow-lg);
    transition: all 0.15s;
}

.nav-item-add:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-sm);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 47, 52, 0.6) 0%, rgba(0, 26, 29, 0.6) 100%),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    color: var(--text-inverse);
}

.hero-content {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.hero-icon {
    font-size: 64px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.hero-text {
    text-align: right;
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-surface);
    color: var(--accent-primary);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:active {
    transform: scale(0.96);
}

.btn-hero-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    color: var(--text-inverse);
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-hero-secondary:active {
    transform: scale(0.96);
    background: rgba(255,255,255,0.25);
}

.btn-icon {
    font-size: 18px;
}

/* ===== SEARCH BAR ===== */
.search-container {
    padding: var(--space-md);
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border-subtle);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
    min-height: var(--input-height-md);
    transition: border-color 0.15s;
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--font-size-base);
    background: transparent;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box-icon {
    color: var(--text-muted);
    font-size: 24px;
}

.search-box-voice {
    width: 44px;
    height: 44px;
    background: var(--accent-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: 20px;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-sm) var(--space-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    font-size: var(--font-size-sm);
    color: var(--accent-primary);
    font-weight: 600;
}

/* ===== PRICE TICKER (Compact Strip) ===== */
.prices-ticker-container {
    overflow: hidden;
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 4px 0;
}

.prices-ticker {
    display: flex;
    gap: var(--space-md);
    animation: ticker-scroll 6s linear infinite;
    will-change: transform;
    width: max-content;
}

/* RTL direction - scroll from left to right */
@keyframes ticker-scroll {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.prices-ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-icon {
    font-size: 14px;
}

.ticker-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 11px;
}

.ticker-price {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 12px;
}

.ticker-change {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 2px;
}

.ticker-change.up {
    color: var(--success);
    background: var(--success-bg);
}

.ticker-change.down {
    color: var(--danger);
    background: var(--danger-bg);
}

.ticker-change.stable {
    color: var(--text-muted);
    background: var(--bg-surface);
}

.ticker-divider {
    width: 1px;
    height: 14px;
    background: var(--border-subtle);
    margin: 0 4px;
}

/* ===== CATEGORIES GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.category-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.15s;
}

.category-item:active .category-icon {
    transform: scale(0.95);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent);
}

.category-name {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 600;
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
    cursor: pointer;
}

.category-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.category-dropdown.active .category-arrow {
    transform: rotate(180deg);
}

.category-dropdown.active .category-icon {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent);
}

.category-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-top: 8px;
    padding: 8px 0;
}

.category-submenu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: background 0.15s ease;
}

.submenu-item:hover {
    background: var(--bg-base);
}

.submenu-item:active {
    background: var(--accent-glow);
}

.submenu-all {
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
    color: var(--accent-primary);
}

.submenu-icon {
    font-size: 18px;
}

/* ===== LISTING CARDS ===== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.listing-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    border-bottom-width: 4px;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.listing-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    transform: translateY(-2px);
}

.listing-card:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.listing-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: var(--steel-200);
    overflow: hidden;
}

.listing-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card image navigation arrows */
.card-img-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.card-img-arrow:hover { opacity: 1; }
.card-img-arrow-left { left: 6px; }
.card-img-arrow-right { right: 6px; }

.card-img-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}
.card-img-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.card-img-dot.active {
    background: #fff;
}

.listing-card-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--bg-overlay);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--border-default);
}

.listing-card-badge.copper { background: var(--metal-copper); color: white; }
.listing-card-badge.aluminum { background: var(--metal-aluminum); color: var(--steel-900); }
.listing-card-badge.iron { background: var(--metal-iron); color: white; }

.listing-card-favorite {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    width: 40px;
    height: 40px;
    background: var(--bg-overlay);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--border-default);
}

.listing-card-content {
    padding: var(--space-md);
}

.listing-card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.listing-card-price {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: var(--space-xs);
}

.listing-card-negotiable {
    font-size: var(--font-size-xs);
    color: var(--success);
    font-weight: 600;
}

.listing-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

.listing-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card action buttons (Call & WhatsApp) */
.listing-card-actions {
    display: flex;
    gap: 8px;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
}

.listing-card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1.5px solid;
    background: transparent;
}

.listing-card-btn svg {
    flex-shrink: 0;
}

.listing-card-btn-call {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--bg-surface);
}

.listing-card-btn-call:hover {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.listing-card-btn-whatsapp {
    color: #25D366;
    border-color: #25D366;
    background: var(--bg-surface);
}

.listing-card-btn-whatsapp:hover {
    background: #25D366;
    color: #fff;
}

/* Full width listing card */
.listing-card-full {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-bottom-width: 4px;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-md);
}

.listing-card-full-image {
    position: relative;
    width: 160px;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--steel-200);
}

.listing-card-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card-full-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.badge-verified {
    background: var(--success-bg);
    color: var(--success);
}

.badge-pro {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.badge-top {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.badge-urgent {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ===== BUTTONS (GLOVE-FRIENDLY) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: var(--btn-height-md);
    padding: 0 var(--space-lg);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
    border-color: var(--accent-primary-dark);
}

.btn-primary:hover {
    background: var(--accent-primary-light);
    box-shadow: var(--shadow-accent);
}

.btn-primary:active {
    background: var(--accent-primary-dark);
    box-shadow: var(--shadow-inset);
    transform: translateY(2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
}

.btn-secondary:active {
    box-shadow: var(--shadow-inset);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:active {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-primary);
    box-shadow: none;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: #DC2626;
}

.btn-icon {
    width: var(--icon-btn-md);
    height: var(--icon-btn-md);
    min-height: var(--icon-btn-md);
    padding: 0;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    min-height: var(--btn-height-sm);
    padding: 0 var(--space-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    min-height: var(--btn-height-lg);
    padding: 0 var(--space-xl);
    font-size: var(--font-size-lg);
}

.btn-xl {
    min-height: var(--btn-height-xl);
    padding: 0 var(--space-xl);
    font-size: var(--font-size-xl);
}

/* ===== FORMS (GLOVE-FRIENDLY) ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.form-input {
    width: 100%;
    min-height: var(--input-height-md);
    padding: var(--space-md) var(--space-md);
    border: 2px solid var(--border-default);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: all 0.15s;
}

.form-input:hover {
    border-color: var(--border-strong);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input-lg {
    min-height: var(--input-height-lg);
    font-size: var(--font-size-lg);
}

.form-select {
    width: 100%;
    min-height: var(--input-height-md);
    padding: var(--space-md);
    border: 2px solid var(--border-default);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    background: var(--bg-surface);
    color: var(--text-primary);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left var(--space-md) center;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Toggle Switch (Larger) */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--btn-height-md);
}

.toggle {
    position: relative;
    width: 64px;
    height: 36px;
    background: var(--border-default);
    border-radius: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle.active {
    background: var(--success);
}

.toggle-knob {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: var(--radius-full);
    transition: transform 0.3s;
    box-shadow: var(--shadow-sm);
}

.toggle.active .toggle-knob {
    transform: translateX(-28px);
}

/* Checkbox & Radio (Larger) */
.form-checkbox,
.form-radio {
    width: 28px;
    height: 28px;
    accent-color: var(--accent-primary);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-subtle);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

/* ===== SELLER CARD ===== */
.seller-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.seller-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: 28px;
    flex-shrink: 0;
}

.seller-info {
    flex: 1;
}

.seller-name {
    font-weight: 700;
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.seller-meta {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ===== REQUEST CARDS ===== */
.request-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-subtle);
    border-right: 4px solid var(--accent-primary);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-md);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.request-title {
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.request-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.request-detail {
    font-size: var(--font-size-sm);
}

.request-detail-label {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.request-detail-value {
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== PRICE TABLE ===== */
.price-table {
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.price-row {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    min-height: 72px;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-left: var(--space-md);
}

.price-row-info {
    flex: 1;
}

.price-row-name {
    font-weight: 700;
    font-size: var(--font-size-base);
}

.price-row-unit {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.price-row-value {
    text-align: left;
}

.price-row-current {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--accent-primary);
}

.price-row-change {
    font-size: var(--font-size-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-row-change.up { color: var(--success); }
.price-row-change.down { color: var(--danger); }

/* ===== CHAT ===== */
.chat-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    min-height: 80px;
}

.chat-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: 24px;
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.chat-preview {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-meta {
    text-align: left;
}

.chat-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.chat-unread {
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    color: var(--text-inverse);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-xs);
}

/* ===== NOTIFICATIONS ===== */
.notification-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    min-height: 72px;
}

.notification-item.unread {
    border-color: var(--accent-primary);
    background: rgba(255, 107, 0, 0.05);
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.notification-icon.price { background: var(--success-bg); color: var(--success); }
.notification-icon.message { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.notification-icon.listing { background: var(--accent-glow); color: var(--accent-primary); }
.notification-icon.system { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.notification-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.notification-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ===== PROFILE ===== */
.profile-header {
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border-subtle);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--text-inverse);
    margin: 0 auto var(--space-md);
    border: 4px solid var(--accent-primary-dark);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.profile-name {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--accent-primary);
}

.profile-stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.profile-tabs {
    display: flex;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border-subtle);
}

.profile-tab {
    flex: 1;
    padding: var(--space-md);
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    min-height: var(--btn-height-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* ===== WIZARD STEPS ===== */
.wizard-progress {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-surface);
}

.wizard-step {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 2px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
}

.wizard-step.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary-dark);
    color: var(--text-inverse);
}

.wizard-step.completed {
    background: var(--success);
    border-color: #16A34A;
    color: white;
}

.wizard-step::after {
    content: '';
    position: absolute;
    left: -24px;
    width: 16px;
    height: 3px;
    background: var(--border-default);
}

.wizard-step:first-child::after {
    display: none;
}

.wizard-step.completed::after,
.wizard-step.active::after {
    background: var(--accent-primary);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    min-height: var(--btn-height-sm);
    background: var(--bg-elevated);
    border: 2px solid var(--border-default);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-chip.active {
    background: var(--accent-primary);
    color: var(--text-inverse);
    border-color: var(--accent-primary-dark);
}

/* ===== IMAGE GALLERY ===== */
.image-gallery {
    position: relative;
    width: 100%;
    height: 350px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--steel-200);
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.image-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery-dots {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
}

.image-gallery-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: var(--radius-full);
}

.image-gallery-dot.active {
    background: white;
    width: 28px;
}

/* Gallery navigation arrows (listing detail) */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.gallery-arrow:active { background: rgba(0,0,0,0.8); }
.gallery-arrow-left { left: 8px; }
.gallery-arrow-right { right: 8px; }

.gallery-counter {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    z-index: 3;
}

/* ===== UPLOAD AREA ===== */
.upload-area {
    border: 3px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    background: var(--bg-surface);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    font-size: 56px;
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}

.upload-text {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-base);
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.upload-preview-item {
    position: relative;
    padding-top: 100%;
    background: var(--steel-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.upload-preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-remove {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    background: var(--danger);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: var(--space-lg);
    color: var(--text-muted);
}

.empty-state-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.empty-state-text {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* ===== ACTION BAR (Fixed Bottom) ===== */
.action-bar {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    right: 0;
    left: 0;
    background: var(--bg-surface);
    border-top: 2px solid var(--border-subtle);
    padding: var(--space-md);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: var(--space-md);
}

.action-bar .btn {
    flex: 1;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.theme-toggle-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
}

.theme-toggle-icon {
    font-size: 24px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--accent-primary); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

.bg-primary { background-color: var(--accent-primary); }
.bg-surface { background-color: var(--bg-surface); }
.bg-elevated { background-color: var(--bg-elevated); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

.hidden { display: none; }

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Validation States */
.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-bg);
}

.form-error-message {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
}

/* Rating Stars */
.rating-star {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s;
}

.rating-star.filled,
.rating-star:hover {
    color: var(--accent-primary);
}

.star.filled { color: var(--accent-primary); }
.star.half { color: var(--accent-primary); opacity: 0.6; }
.star.empty { color: var(--text-muted); }

/* Rating Picker */
.rating-picker {
    display: flex;
    gap: 4px;
    direction: ltr;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ===== CATEGORY HORIZONTAL SCROLL SECTIONS (OLX Style) ===== */
.category-listings-section {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.category-section-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: all 0.15s;
}

.see-all-btn:hover {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

/* Horizontal Scroll Container */
.listings-horizontal {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--space-sm) 0;
    margin: 0 calc(-1 * var(--space-md));
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.listings-horizontal::-webkit-scrollbar {
    display: none;
}

/* Horizontal Card (fixed width for 5 per row on desktop) */
.listing-card-horizontal {
    flex: 0 0 calc((100% - 4 * var(--space-md)) / 5);
    min-width: 180px;
    max-width: 220px;
    scroll-snap-align: start;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.listing-card-horizontal:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.listing-card-horizontal .listing-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: var(--steel-200);
    overflow: hidden;
}

.listing-card-horizontal .listing-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Note: Horizontal card content styles moved to CATEGORY-SPECIFIC CARD INFO section */

/* Empty state for horizontal sections */
.listings-horizontal-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* ===== CATEGORY-SPECIFIC CARD INFO ===== */
/* Card info line for category-specific data (year/km, condition, etc.) */
.listing-card-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
}

.listing-card-info-divider {
    color: var(--border-default);
    font-weight: 400;
}

/* Weight/quantity badge style for metals */
.listing-card-weight {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-base);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    font-weight: 600;
}

/* Horizontal card layout adjustments */
.listing-card-horizontal .listing-card-content {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm);
}

.listing-card-horizontal .listing-card-price {
    font-size: var(--font-size-base);
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.listing-card-horizontal .listing-card-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.listing-card-horizontal .listing-card-info,
.listing-card-horizontal .listing-card-weight {
    margin-top: 2px;
    margin-bottom: 4px;
}

.listing-card-horizontal .listing-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid var(--border-subtle);
}

.listing-card-horizontal .listing-card-location {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ===== HORIZONTAL REQUEST CARDS ===== */
/* Horizontal scroll container for requests */
.requests-horizontal {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--space-sm) 0;
    margin: 0 calc(-1 * var(--space-md));
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.requests-horizontal::-webkit-scrollbar {
    display: none;
}

/* Horizontal request card */
.request-card-horizontal {
    flex: 0 0 180px;
    min-width: 180px;
    max-width: 220px;
    scroll-snap-align: start;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-subtle);
    padding: var(--space-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.request-card-horizontal:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.request-card-horizontal .request-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.request-card-horizontal .request-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.request-card-horizontal .request-budget {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.request-card-horizontal .request-location {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== SINGLE-PAGE LISTING FORM ===== */
.single-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-md);
    padding-bottom: 120px;
}

/* Form Progress Bar */
.form-progress-bar {
    background: var(--bg-surface);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: var(--header-height);
    z-index: 10;
}

.form-progress-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-progress-track {
    flex: 1;
    height: 8px;
    background: var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
}

.form-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.form-progress-text {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-muted);
    min-width: 45px;
    text-align: left;
}

/* Form Section Cards */
.form-section {
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.form-section.valid {
    border-color: var(--success);
}

.form-section.invalid {
    border-color: var(--danger);
}

.form-section.focused {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.form-section-icon {
    font-size: 24px;
}

.form-section-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    flex: 1;
}

.form-section-status {
    font-size: 18px;
}

.form-section-content {
    padding: var(--space-md);
}

/* Category Grid (2x2 compact) */
.category-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.category-card-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 90px;
}

.category-card-compact:hover {
    border-color: var(--border-default);
}

.category-card-compact.selected {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.category-card-compact .category-icon {
    font-size: 28px;
    width: auto;
    height: auto;
    background: none;
    border: none;
    box-shadow: none;
}

.category-card-compact .category-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Subcategory Pills (inline) */
.subcategory-pills-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.subcategory-pill-sm {
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: all 0.2s ease;
}

.subcategory-pill-sm:hover {
    border-color: var(--border-default);
}

.subcategory-pill-sm.selected {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
}

/* Photo Upload Inline */
.photo-upload-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.photo-upload-area {
    width: 100px;
    height: 100px;
    border: 2px dashed var(--border-default);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-upload-area:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.photo-upload-area .upload-icon {
    font-size: 28px;
    margin-bottom: 0;
    color: var(--text-muted);
}

.photo-upload-area .upload-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.photo-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-count {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* OTP Inline Verification */
.otp-inline {
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius);
    margin-top: var(--space-md);
}

.otp-inline.verified {
    background: var(--success-bg);
    border: 1px solid var(--success);
}

.otp-inline-inputs {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    margin: var(--space-md) 0;
}

.otp-inline-inputs .otp-input {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid var(--border-default);
    border-radius: var(--radius);
    background: var(--bg-surface);
}

.otp-inline-inputs .otp-input:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--success);
    font-weight: 600;
    padding: var(--space-sm);
}

/* Sticky Submit Footer */
.sticky-submit {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 2px solid var(--border-subtle);
    padding: var(--space-md);
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.sticky-submit-inner {
    max-width: 600px;
    margin: 0 auto;
}

.submit-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.submit-summary .completed {
    color: var(--success);
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    min-height: var(--btn-height-lg);
    background: var(--accent-primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
    background: var(--accent-primary-light);
}

.submit-btn:disabled {
    background: var(--border-default);
    color: var(--text-muted);
    cursor: not-allowed;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--text-inverse);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Form Row for inline fields */
.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-sm);
}

.form-row-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

/* Form field with inline label */
.form-field {
    margin-bottom: var(--space-md);
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field .form-label {
    margin-bottom: var(--space-xs);
}

/* Required field indicator */
.required::after {
    content: ' *';
    color: var(--danger);
}

/* Compact form group */
.form-group-compact {
    margin-bottom: var(--space-sm);
}

/* Desktop styles for single-page form */
@media (min-width: 768px) {
    .single-form-container {
        max-width: 700px;
        padding: var(--space-lg);
    }

    .category-grid-compact {
        grid-template-columns: repeat(4, 1fr);
    }

    .photo-upload-area,
    .photo-preview-item {
        width: 120px;
        height: 120px;
    }

    .form-section-content {
        padding: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .single-form-container {
        max-width: 800px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== QUICK SEARCH BOX ===== */
.quick-search-wrapper {
    position: relative;
    margin-bottom: var(--space-md);
}

.quick-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-elevated);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 10px 10px 10px 16px;
    gap: 10px;
    min-height: 60px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.quick-search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.quick-search-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.quick-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    background: transparent;
    color: var(--text-primary);
    min-width: 0;
}

.quick-search-box input::placeholder {
    color: var(--text-muted);
    font-size: 15px;
}

.quick-search-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    background: var(--accent-primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.quick-search-btn:hover {
    background: #1fd1c7;
}

/* Autocomplete suggestions */
.quick-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--bg-elevated);
    border: 2px solid var(--border-default);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 260px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.quick-search-suggestions.visible {
    display: block;
}

.quick-search-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid var(--border-subtle);
}

.quick-search-suggestion:last-child {
    border-bottom: none;
}

.quick-search-suggestion:hover,
.quick-search-suggestion.highlighted {
    background: var(--accent-secondary);
}

.quick-search-suggestion-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.quick-search-suggestion-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
}

.quick-search-suggestion-category {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Divider between search and wizard */
.search-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    color: var(--text-muted);
    font-size: 13px;
}

.search-divider::before,
.search-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

/* ===== GUIDED SEARCH WIZARD ===== */
.guided-search-container {
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.guided-search-step {
    margin-bottom: var(--space-md);
    animation: fadeInStep 0.3s ease;
}

.guided-search-step:last-child {
    margin-bottom: 0;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guided-search-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.guided-search-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding-bottom: var(--space-xs);
}

/* On mobile, use horizontal scroll instead of wrap */
@media (max-width: 767px) {
    .guided-search-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .guided-search-pills::-webkit-scrollbar {
        display: none;
    }
}

.guided-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.guided-search-pill:hover {
    border-color: var(--border-default);
    background: var(--bg-base);
}

.guided-search-pill.selected {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-inverse);
}

.guided-search-btn {
    width: 100%;
    min-height: var(--btn-height-md);
    background: var(--accent-secondary);
    color: var(--accent-primary);
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all 0.15s ease;
    box-shadow: var(--shadow-md);
}

.guided-search-btn:hover {
    background: #1fd1c7;
    box-shadow: var(--shadow-lg);
}

.guided-search-btn:active {
    transform: scale(0.98);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        margin: 0 auto;
    }

    .categories-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .listing-card-horizontal {
        flex: 0 0 calc((100% - 4 * var(--space-md)) / 5);
        min-width: 200px;
        max-width: 240px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }

    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .listing-card-horizontal {
        flex: 0 0 calc((100% - 4 * var(--space-md)) / 5);
        min-width: 220px;
        max-width: 280px;
    }
}

/* Stack form-row-equal vertically on mobile */
@media (max-width: 767px) {
    .form-row-equal {
        grid-template-columns: 1fr;
    }
}

/* ===== PROFESSIONAL FOOTER ===== */
.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-xl) var(--space-md);
    margin-bottom: 80px; /* Space for bottom nav */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.footer-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.footer-title {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-sm);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-link {
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

/* ============================================
   PROMOTIONAL BUSINESS STRIP
   ============================================ */

.promo-strip {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 var(--space-md) 0;
    scrollbar-width: none;
}

.promo-strip::-webkit-scrollbar {
    display: none;
}

.promo-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.promo-img {
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-elevated);
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.promo-badge--en {
    right: auto;
    left: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.promo-body {
    padding: var(--space-sm) var(--space-md) var(--space-md);
}

.promo-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.promo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.promo-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .promo-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary-light);
}

.promo-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.promo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.promo-rating {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.promo-cta:hover {
    background: var(--accent-primary-light);
    transform: scale(1.05);
}

[data-theme="dark"] .promo-cta {
    background: var(--accent-primary);
    color: #fff;
}

/* Desktop: slightly wider cards */
@media (min-width: 768px) {
    .promo-card {
        flex: 0 0 300px;
    }
    .promo-img {
        height: 160px;
    }
}

/* Mobile: hero buttons stack vertically */
@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 0 var(--space-md);
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 16px;
        font-size: 15px;
        width: 100%;
    }
    .hero-content {
        gap: var(--space-md);
    }
    .hero-icon {
        font-size: 48px;
    }
    .hero-title {
        font-size: 20px;
    }
}
