* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #007BFF; --blue-light: #3395FF; --blue-dark: #0056B3;
  --blue-xlight: #E6F2FF; --blue-soft: #CCE5FF; --blue-mid: #99CCFF;
  --dark: #0F172A; --dark2: #1E293B;
  --cream: #F8FAFC; --cream2: #F1F5F9;
  --white: #FFFFFF; --gray: #64748B; --gray2: #475569; --gray3: #CBD5E1;
  --text-dark: #0F172A; --gold: #C9A84C; --gold-light: #E8C97A;
  --red: #EF4444; --green: #16A34A;
}
body { font-family: 'Cairo', sans-serif; background: var(--cream); color: var(--text-dark); overflow-x: hidden; }

/* ====== NAV ====== */
nav { position: sticky; top: 0; z-index: 999; background: var(--white); border-bottom: 1px solid var(--blue-soft); box-shadow: 0 2px 16px rgba(0,123,255,0.05); transition: all 0.3s; }
.nav-inner { max-width: 1500px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--gray2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--blue); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform 0.2s; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); font-weight: 700; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-login-btn { border: 1.5px solid var(--blue); color: var(--blue); padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 700; font-family: 'Cairo', sans-serif; background: none; cursor: pointer; transition: all 0.2s; }
.nav-login-btn:hover { background: var(--blue-xlight); }
.nav-cta { background: var(--blue); color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-family: 'Cairo', sans-serif; transition: all 0.2s; }
.nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; color: var(--blue); cursor: pointer; padding: 4px; }
.hamburger { width: 22px; height: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; height: 2px; background: var(--blue); border-radius: 2px; }
.mobile-nav { position: fixed; top: 72px; inset-x: 0; background: var(--white); border-top: 2px solid var(--blue-soft); z-index: 998; padding: 24px; display: none; flex-direction: column; gap: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--gray2); text-decoration: none; font-size: 16px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--blue-soft); display: block; }
.mobile-nav a:hover { color: var(--blue); }
@media(max-width:1024px) { .nav-links { display: none; } .menu-toggle { display: block; } }

/* ====== HERO BANNER ====== */
.auction-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--blue-dark) 100%); padding: 48px 24px 56px; position: relative; overflow: hidden; }
.auction-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 34px 34px; }
.auction-hero-glow { position: absolute; top: -80px; right: 5%; width: 500px; height: 500px; background: radial-gradient(ellipse, rgba(0,123,255,0.2), transparent); pointer-events: none; }
.auction-hero-inner { max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.hero-live-badge { display: flex; align-items: center; gap: 8px; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.35); padding: 8px 18px; border-radius: 100px; }
.live-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: ldot 1.2s ease infinite; }
@keyframes ldot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-live-text { color: #fff; font-size: 13px; font-weight: 800; }
.hero-title { font-size: clamp(26px, 4vw, 42px); font-weight: 900; color: #fff; margin-bottom: 10px; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.65); max-width: 560px; line-height: 1.8; margin-bottom: 28px; }
/* search bar داخل الهيرو */
.hero-search-bar { display: flex; gap: 10px; max-width: 680px; flex-wrap: wrap; }
.hsb-input { flex: 1; background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 12px 18px; font-size: 14px; font-family: 'Cairo', sans-serif; color: #fff; outline: none; transition: all 0.2s; min-width: 200px; }
.hsb-input::placeholder { color: rgba(255,255,255,0.4); }
.hsb-input:focus { border-color: var(--blue-light); background: rgba(255,255,255,0.15); }
.hsb-btn { background: var(--blue); color: #fff; border: none; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Cairo', sans-serif; white-space: nowrap; transition: all 0.2s; }
.hsb-btn:hover { background: var(--blue-light); }
/* stats counters */
.hero-counts { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.hc-val { font-size: 30px; font-weight: 900; color: #fff; }
.hc-lbl { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 600; margin-top: 2px; }

/* ====== BREADCRUMB ====== */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--blue-soft); padding: 12px 24px; }
.breadcrumb-inner { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); }
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--gray3); }

/* ====== TYPE TABS ====== */
.type-tabs-bar { background: var(--white); border-bottom: 1px solid var(--blue-soft); position: sticky; top: 72px; z-index: 90; }
.type-tabs-inner { max-width: 1500px; margin: 0 auto; padding: 0 24px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.type-tabs-inner::-webkit-scrollbar { display: none; }
.ttab { padding: 15px 22px; font-size: 13px; font-weight: 700; color: var(--gray); cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap; background: none; border-top: none; border-right: none; border-left: none; font-family: 'Cairo', sans-serif; transition: all 0.2s; display: flex; align-items: center; gap: 7px; }
.ttab-count { background: var(--cream2); color: var(--gray); padding: 2px 8px; border-radius: 100px; font-size: 11px; transition: all 0.2s; }
.ttab.active { color: var(--blue); border-bottom-color: var(--blue); }
.ttab.active .ttab-count { background: var(--blue); color: #fff; }
.ttab:hover:not(.active) { color: var(--text-dark); }

/* ====== PAGE LAYOUT ====== */
.page-layout { max-width: 1500px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; }
@media(max-width:1100px) { .page-layout { grid-template-columns: 250px 1fr; } }
@media(max-width:900px) { .page-layout { grid-template-columns: 1fr; } }

/* ====== SIDEBAR ====== */
.sidebar { background: var(--white); border-radius: 16px; border: 1px solid var(--blue-soft); overflow: hidden; position: sticky; top: 134px; }
.sidebar-header { background: var(--blue); padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-header h3 { color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.clear-btn { background: rgba(255,255,255,0.15); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'Cairo', sans-serif; transition: all 0.2s; }
.clear-btn:hover { background: rgba(255,255,255,0.25); }
.filter-section { padding: 16px 18px; border-bottom: 1px solid var(--blue-soft); }
.filter-section:last-child { border-bottom: none; }
.filter-title { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.filter-arrow { color: var(--blue); font-size: 10px; transition: transform 0.2s; }
.filter-title.collapsed .filter-arrow { transform: rotate(-90deg); }
.check-list { display: flex; flex-direction: column; gap: 7px; }
.check-item { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 6px 8px; border-radius: 8px; transition: background 0.15s; }
.check-item:hover { background: var(--blue-xlight); }
.check-item input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
.check-label { font-size: 12px; color: var(--gray2); flex: 1; font-weight: 500; }
.check-count { font-size: 10px; color: var(--gray); background: var(--cream2); padding: 2px 7px; border-radius: 100px; font-weight: 700; }
.check-item input:checked ~ .check-label { color: var(--blue); font-weight: 700; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.radio-item { display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 7px 10px; border: 1.5px solid var(--blue-soft); border-radius: 8px; transition: all 0.15s; }
.radio-item:hover, .radio-item.sel { border-color: var(--blue); background: var(--blue-xlight); }
.radio-item input { accent-color: var(--blue); }
.radio-label { font-size: 12px; color: var(--gray2); font-weight: 600; }
.radio-item.sel .radio-label { color: var(--blue); font-weight: 700; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pi-wrap { display: flex; flex-direction: column; gap: 4px; }
.pi-wrap label { font-size: 11px; color: var(--gray); font-weight: 600; }
.pi-wrap input { border: 1.5px solid var(--blue-soft); border-radius: 8px; padding: 8px 10px; font-size: 12px; font-family: 'Cairo', sans-serif; color: var(--text-dark); background: var(--cream); outline: none; width: 100%; }
.pi-wrap input:focus { border-color: var(--blue); }
input[type=range] { width: 100%; accent-color: var(--blue); margin: 4px 0; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--cream2); border: 1px solid var(--blue-soft); color: var(--gray2); padding: 4px 11px; border-radius: 100px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.tag-chip:hover, .tag-chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.apply-btn { width: 100%; background: var(--blue); color: #fff; border: none; padding: 12px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Cairo', sans-serif; transition: all 0.2s; margin-top: 2px; }
.apply-btn:hover { background: var(--blue-light); }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--blue-soft); border-radius: 4px; }

/* ====== MAIN CONTENT ====== */
.results-bar { background: var(--white); border: 1px solid var(--blue-soft); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.results-info { font-size: 13px; color: var(--gray); font-weight: 500; }
.results-info strong { color: var(--text-dark); font-weight: 800; }
.results-info span { color: var(--blue); font-weight: 700; }
.results-controls { display: flex; align-items: center; gap: 8px; }
.sort-sel { border: 1.5px solid var(--blue-soft); border-radius: 8px; padding: 7px 13px; font-size: 12px; font-family: 'Cairo', sans-serif; color: var(--text-dark); background: var(--cream); outline: none; cursor: pointer; font-weight: 600; }
.sort-sel:focus { border-color: var(--blue); }
.view-btns { display: flex; gap: 4px; }
.vbtn { width: 32px; height: 32px; border: 1.5px solid var(--blue-soft); border-radius: 7px; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gray); transition: all 0.2s; }
.vbtn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
/* active filters */
.active-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.af-lbl { font-size: 12px; color: var(--gray); font-weight: 600; flex-shrink: 0; }
.af-chip { display: flex; align-items: center; gap: 5px; background: var(--white); border: 1.5px solid var(--blue); color: var(--blue); padding: 4px 11px; border-radius: 100px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.af-chip:hover { background: var(--blue); color: #fff; }

/* ====== AUCTION CARDS GRID ====== */
.auctions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.auctions-grid.list-view { grid-template-columns: 1fr; }

/* CARD */
.auc-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--blue-soft); transition: all 0.3s; cursor: pointer; position: relative; }
.auc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,123,255,0.1); border-color: var(--blue); }
.auc-card.live-now { border: 2px solid var(--red); }
.auc-card.featured { border: 2px solid var(--blue); }
/* ribbon */
.card-ribbon { position: absolute; top: 0; left: 0; font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 0 0 10px 0; z-index: 2; }
.ribbon-live { background: var(--red); color: #fff; }
.ribbon-soon { background: var(--gold); color: #fff; }
.ribbon-feat { background: var(--blue); color: #fff; }
.ribbon-closed { background: var(--gray); color: #fff; }

/* CARD IMAGE */
.auc-img { height: 200px; position: relative; overflow: hidden; flex-shrink: 0; }
.auc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.auc-card:hover .auc-img img { transform: scale(1.04); }
.img-badges-r { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.img-badges-l { position: absolute; top: 36px; left: 0; display: flex; flex-direction: column; gap: 6px; }
.img-badges-l .ibadge { border-radius: 0 6px 6px 0; }
.ibadge { padding: 4px 10px; border-radius: 100px; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.ib-red { background: var(--red); color: #fff; animation: liveBlink 1.4s infinite; }
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.ib-blue { background: rgba(0,123,255,0.85); color: #fff; }
.ib-dark { background: rgba(15,23,42,0.8); color: #fff; }
.ib-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #fff; }
.auc-save { position: absolute; bottom: 12px; left: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.2s; }
.auc-save:hover { background: #fff; transform: scale(1.1); }

/* countdown inside image */
.img-countdown { position: absolute; bottom: 12px; right: 12px; background: rgba(15,23,42,0.85); color: #fff; padding: 5px 11px; border-radius: 8px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.img-countdown.live-cd { color: #FCA5A5; }

/* CARD BODY */
.auc-body { padding: 16px; }
.auc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 7px; }
.auc-type { font-size: 10px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 0.4px; background: var(--blue-xlight); padding: 3px 8px; border-radius: 4px; }
.auc-id { font-size: 10px; color: var(--gray); font-weight: 500; }
.auc-title { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.auc-location { font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 4px; margin-bottom: 10px; font-weight: 500; }
.auc-specs { display: flex; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--blue-soft); border-bottom: 1px solid var(--blue-soft); margin-bottom: 12px; }
.auc-spec { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--gray2); font-weight: 600; }
/* price row */
.auc-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
.auc-price-label { font-size: 10px; color: var(--gray); font-weight: 600; margin-bottom: 2px; }
.auc-price { font-size: 19px; font-weight: 900; color: var(--text-dark); }
.auc-price sub { font-size: 11px; font-weight: 500; color: var(--gray); }
.auc-bids { text-align: left; }
.auc-bids-val { font-size: 17px; font-weight: 900; color: var(--blue); }
.auc-bids-lbl { font-size: 10px; color: var(--gray); font-weight: 600; }
/* actions */
.auc-actions { display: flex; gap: 8px; }
.auc-btn { flex: 1; padding: 9px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'Cairo', sans-serif; transition: all 0.2s; border: none; display: flex; align-items: center; justify-content: center; gap: 5px; }
.abtn-bid { background: var(--blue); color: #fff; }
.abtn-bid:hover { background: var(--blue-light); }
.abtn-info { background: var(--blue-xlight); color: var(--blue-dark); border: 1.5px solid var(--blue-soft); }
.abtn-info:hover { background: var(--blue-soft); }
.abtn-reg { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #fff; }
.abtn-reg:hover { filter: brightness(1.08); }
.abtn-closed { background: var(--cream2); color: var(--gray); cursor: not-allowed; opacity: 0.7; }
.auc-wa { background: #25D366; color: #fff; padding: 9px 12px; border-radius: 8px; font-size: 15px; cursor: pointer; border: none; transition: all 0.2s; flex-shrink: 0; }
.auc-wa:hover { background: #20BA5C; }

/* LIST VIEW */
.auctions-grid.list-view .auc-card { display: grid; grid-template-columns: 260px 1fr; }
.auctions-grid.list-view .auc-img { height: auto; min-height: 180px; }
@media(max-width:700px) {
  .auctions-grid.list-view .auc-card { grid-template-columns: 1fr; }
  .auctions-grid.list-view .auc-img { height: 180px; }
}

/* ====== PAGINATION ====== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; padding-bottom: 40px; }
.pg-btn { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--blue-soft); background: var(--white); color: var(--gray2); font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Cairo', sans-serif; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.pg-btn:hover { border-color: var(--blue); color: var(--blue); }
.pg-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ====== MOBILE FILTER ====== */
.mobile-filter-btn { display: none; position: fixed; bottom: 24px; right: 24px; background: var(--blue); color: #fff; border: none; padding: 13px 20px; border-radius: 100px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Cairo', sans-serif; box-shadow: 0 4px 20px rgba(0,123,255,0.35); z-index: 980; align-items: center; gap: 8px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 985; }
@media(max-width:900px) {
  .mobile-filter-btn { display: flex; }
  .sidebar { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; overflow-y: auto; z-index: 990; border-radius: 0; transition: right 0.3s; border-right: none; }
  .sidebar.open { right: 0; }
  .sidebar-overlay.show { display: block; }
}

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.auc-card { animation: fadeUp 0.4s ease both; }