/* Boora - منصة بورة للمعادن والخردة */
/* Clean Light Theme */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    /* === 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;

    /* Warm Orange Accent */
    --accent-primary: #EA580C;
    --accent-primary-light: #F97316;
    --accent-primary-dark: #C2410C;
    --accent-glow: rgba(234, 88, 12, 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: #EA580C;
    --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: 64px;
    --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: #F97316;
    --accent-primary-light: #FB923C;
    --accent-primary-dark: #EA580C;

    --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-md);
    z-index: 1000;
    border-bottom: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.header-logo-text {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--accent-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-btn {
    width: var(--icon-btn-md);
    height: var(--icon-btn-md);
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    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: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    background: var(--danger);
    border-radius: var(--radius-full);
    font-size: 12px;
    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: var(--accent-primary);
    background: var(--accent-glow);
}

.nav-item-icon {
    font-size: 28px;
}

.nav-item-add {
    width: 72px;
    height: 72px;
    background: var(--accent-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: 32px;
    font-weight: 700;
    margin-top: -24px;
    border: 3px solid var(--bg-surface);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    transition: all 0.15s;
}

.nav-item-add:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-sm);
}

/* ===== 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-lg) var(--space-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.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 WIDGETS ===== */
.prices-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.prices-scroll::-webkit-scrollbar {
    display: none;
}

.price-card {
    min-width: 160px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-subtle);
    border-bottom-width: 4px;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    transition: all 0.15s;
}

.price-card:hover {
    border-color: var(--accent-primary);
}

.price-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.price-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.price-card-icon.iron { background: rgba(71, 85, 105, 0.15); color: var(--metal-iron); }
.price-card-icon.aluminum { background: rgba(100, 116, 139, 0.15); color: var(--metal-aluminum); }
.price-card-icon.copper { background: rgba(234, 88, 12, 0.15); color: var(--metal-copper); }
.price-card-icon.steel { background: rgba(148, 163, 184, 0.15); color: var(--metal-steel); }
.price-card-icon.battery { background: var(--danger-bg); color: var(--metal-battery); }

.price-card-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.price-card-value {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--accent-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.price-card-unit {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.price-card-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-top: var(--space-xs);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.price-card-change.up {
    color: var(--success);
    background: var(--success-bg);
}

.price-card-change.down {
    color: var(--danger);
    background: var(--danger-bg);
}

/* ===== 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;
}

/* ===== 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;
}

.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;
}

/* 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 {
    width: 120px;
    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-transporter {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
}

.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);
}

/* ===== TRANSPORTER CARDS ===== */
.transporter-card {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-md);
}

.transporter-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.transporter-info {
    flex: 1;
}

.transporter-name {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: var(--font-size-base);
}

.transporter-type {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.transporter-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin: var(--space-sm) 0;
}

.transporter-price {
    font-weight: 800;
    font-size: var(--font-size-lg);
    color: var(--accent-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%;
    padding-top: 75%;
    background: var(--steel-200);
}

.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;
}

/* ===== 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;
}

/* ===== METAL GUIDE CARDS ===== */
.guide-card {
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-md);
}

.guide-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--steel-200);
}

.guide-card-content {
    padding: var(--space-lg);
}

.guide-card-title {
    font-size: var(--font-size-lg);
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.guide-card-desc {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.guide-card-price {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 2px solid var(--border-subtle);
}

/* ===== 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; }

.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); }

/* ===== 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);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }

    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
