/* ========================================
   جودك للصناعة - الأنماط الرئيسية
   Goodak Industry - Main Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;900&display=swap');

:root {
    --blue-deep: #002147;
    --blue-mid: #003366;
    --blue-light: #004488;
    --blue-pale: #e8eef8;
    --orange: #F06400;
    --orange-hover: #D55800;
    --orange-light: #FFF3E8;
    --gray-bg: #F4F6F9;
    --gray-border: #E2E6EA;
    --gray-text: #6C757D;
    --dark: #1A1A2E;
    --white: #FFFFFF;
    --success: #28A745;
    --danger: #DC3545;
    --green: #28A745;
    --green-lt: #E8F5E9;
    --red-lt: #FCE4E4;
    --shadow-sm: 0 2px 8px rgba(0,33,71,0.08);
    --shadow-md: 0 4px 20px rgba(0,33,71,0.12);
    --shadow-lg: 0 8px 40px rgba(0,33,71,0.18);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--white);
    color: var(--dark);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: 'Cairo', sans-serif; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ==============================
   TOP BAR
   ============================== */
.top-bar {
    background: var(--blue-deep);
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    padding: 7px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-right { display: flex; align-items: center; gap: 20px; }
.top-bar-right span { display: flex; align-items: center; gap: 6px; }
.top-bar-right span i { color: var(--orange); }
.top-bar-left { display: flex; gap: 16px; }
.top-bar-left a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.top-bar-left a:hover { color: var(--orange); }

/* ==============================
   MAIN NAVIGATION
   ============================== */
.ms-nav {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo-wrap { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-icon {
    width: 46px; height: 46px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,33,71,0.18);
    border: 2px solid var(--orange);
    position: relative;
}
.logo-icon img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.logo-wrap:hover .logo-icon img { transform: scale(1.12); }
.logo-text { line-height: 1; }
.logo-text .name { font-size: 19px; font-weight: 900; color: var(--blue-deep); white-space: nowrap; }

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-item {
    position: relative;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    display: flex; align-items: center; gap: 5px;
    white-space: nowrap;
}
.nav-item:hover { background: var(--gray-bg); color: var(--orange); }
.nav-item > i { font-size: 10px; color: var(--gray-text); transition: var(--transition); }
.nav-item:hover > i { color: var(--orange); transform: rotate(180deg); }

/* Mega Dropdown */
.nav-item .mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 620px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-border);
    padding: 24px;
    z-index: 2000;
    animation: dropIn 0.2s ease;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-item:hover .mega-menu { display: block; }
.mega-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mega-menu h4 {
    font-size: 12px; font-weight: 700; color: var(--blue-deep);
    padding-bottom: 10px; margin-bottom: 10px;
    border-bottom: 2px solid var(--orange-light);
    display: flex; align-items: center; gap: 6px;
}
.mega-menu h4 i { color: var(--orange); }
.mega-col ul li a {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    color: var(--gray-text);
    transition: var(--transition);
}
.mega-col ul li a:hover { color: var(--orange); padding-right: 6px; }

.user-actions { display: flex; align-items: center; gap: 10px; }
.btn-sell {
    background: var(--orange);
    color: white;
    border: none;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex; align-items: center; gap: 6px;
}
.btn-sell:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(240,100,0,0.3); }
.btn-login {
    background: transparent;
    border: 1.5px solid var(--gray-border);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    display: flex; align-items: center; gap: 6px;
}
.btn-login:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.btn-icon {
    background: var(--gray-bg);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
}
.btn-icon:hover { background: var(--orange-light); color: var(--orange); }
.badge {
    position: absolute; top: 0; left: 0;
    background: var(--orange); color: white;
    font-size: 10px; width: 16px; height: 16px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* Cat Nav Bar */
.cat-nav {
    background: var(--blue-deep);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cat-nav .container { display: flex; align-items: center; gap: 2px; }
.cat-nav-item {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.cat-nav-item:hover, .cat-nav-item.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    background: rgba(255,255,255,0.05);
}
.cat-nav-item i { font-size: 14px; }

/* ==============================
   HERO SECTION
   ============================== */
.hero-section {
    position: relative;
    height: 560px;
    min-height: 480px;
    background: var(--blue-deep);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-section::before { display:none; }
.hero-section::after { display:none; }


/* ── HERO SLIDESHOW ── */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,21,47,.75) 0%, rgba(0,33,71,.55) 60%, rgba(0,0,0,.25) 100%);
}
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    transition: all .35s;
    padding: 0;
}
.hero-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 6px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: .5px;
}
.hero-h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
}
.hero-p {
    font-size: 15px;
    color: rgba(255,255,255,.88);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 32px;
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-stat .num {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}
.hero-stat .lbl {
    font-size: 11px;
    color: rgba(255,255,255,.65);
    font-weight: 600;
}
@keyframes heroSlideDown {
    from { opacity:0; transform: translateY(-20px); }
    to   { opacity:1; transform: translateY(0); }
}
@keyframes heroSlideUp {
    from { opacity:0; transform: translateY(20px); }
    to   { opacity:1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity:0; transform: translateY(16px); }
    to   { opacity:1; transform: translateY(0); }
}

.hero-content {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; color: white;
    padding: 0 20px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(240,100,0,0.2); border: 1px solid rgba(240,100,0,0.4);
    color: #FFB347; padding: 6px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 600; margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.hero-content h1 {
    font-size: 2.6rem; font-weight: 900; line-height: 1.25;
    margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content h1 span { color: var(--orange); }
.hero-content p { font-size: 15px; opacity: 0.85; margin-bottom: 32px; max-width: 560px; }

/* Search Box */
.search-box {
    background: white; border-radius: var(--radius-lg);
    display: flex; align-items: center;
    gap: 0; overflow: hidden;
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
    width: 100%; max-width: 780px;
}
.search-input-wrap {
    flex: 2; display: flex; align-items: center;
    padding: 0 18px; gap: 10px;
    border-left: 1px solid var(--gray-border);
}
.search-input-wrap i { color: var(--gray-text); font-size: 16px; }
.search-input-wrap input {
    border: none; outline: none; padding: 16px 0;
    font-family: 'Cairo', sans-serif; font-size: 14px;
    width: 100%; background: transparent; color: var(--dark);
}
.search-cat-select {
    flex: 1; border: none; outline: none;
    padding: 16px 14px;
    font-family: 'Cairo', sans-serif; font-size: 13px;
    color: var(--gray-text); background: white;
    border-left: 1px solid var(--gray-border);
    cursor: pointer;
}
.search-btn {
    background: var(--orange); color: white;
    border: none; padding: 0 32px; font-size: 15px;
    font-weight: 700; height: 54px;
    transition: var(--transition); display: flex; align-items: center; gap: 8px;
}
.search-btn:hover { background: var(--orange-hover); }

.hero-stats {
    display: flex; gap: 40px; margin-top: 28px;
    position: relative; z-index: 2;
}
.hero-stat { text-align: center; color: white; }
.hero-stat .num { font-size: 24px; font-weight: 900; color: var(--orange); display: block; }
.hero-stat .lbl { font-size: 12px; opacity: 0.8; }

/* ==============================
   SECTION STYLES
   ============================== */
.section { padding: 40px 0; }
.section-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 32px;
}
.section-title-wrap { display: flex; align-items: center; gap: 14px; }
.section-line { width: 4px; height: 32px; background: var(--orange); border-radius: 2px; }
.section-title { font-size: 22px; font-weight: 800; color: var(--blue-deep); }
.section-subtitle { font-size: 13px; color: var(--gray-text); margin-top: 2px; }
.view-all {
    font-size: 13px; font-weight: 700;
    color: var(--orange); display: flex; align-items: center; gap: 6px;
    transition: var(--transition); background: var(--orange-light);
    padding: 8px 16px; border-radius: var(--radius); border: none;
}
.view-all:hover { background: var(--orange); color: white; }

/* ==============================
   CATEGORIES GRID
   ============================== */
.section-cats { background: var(--gray-bg); }
.cats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.cat-card {
    background: var(--white); border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg); padding: 24px 12px;
    text-align: center; cursor: pointer;
    transition: var(--transition); position: relative; overflow: hidden;
}
.cat-card::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--orange);
    transform: scaleX(0); transition: var(--transition);
}
.cat-card:hover { border-color: var(--orange); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card:hover .cat-icon { background: var(--orange); color: white; }
.cat-icon {
    width: 56px; height: 56px; border-radius: 12px;
    background: var(--gray-bg); display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto 12px; font-size: 24px;
    color: var(--blue-deep); transition: var(--transition);
}
.cat-card span { font-size: 13px; font-weight: 700; color: var(--dark); display: block; }
.cat-card small { font-size: 11px; color: var(--gray-text); display: block; margin-top: 4px; }

/* ==============================
   AUCTION CARDS
   ============================== */
.auctions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.auction-card {
    background: var(--white); border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition); position: relative;
}
.auction-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.card-image { position: relative; overflow: hidden; }
.card-image img {
    width: 100%; height: 200px; object-fit: cover;
    transition: transform 0.5s ease;
}
.auction-card:hover .card-image img { transform: scale(1.05); }

.card-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; gap: 4px;
}
.badge-auction { background: var(--blue-deep); color: white; }
.badge-live { background: #E74C3C; color: white; animation: pulse 1.5s infinite; }
.badge-used { background: rgba(0,0,0,0.6); color: white; }
.badge-new { background: var(--success); color: white; }
@keyframes pulse {
    0%, 100% { opacity: 1; } 50% { opacity: 0.7; }
}

.card-wishlist {
    position: absolute; top: 12px; left: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none; display: flex; align-items: center; justify-content: center;
    color: var(--gray-text); font-size: 14px;
    transition: var(--transition); cursor: pointer;
}
.card-wishlist:hover { background: white; color: #E74C3C; }

.card-body { padding: 16px; }
.card-cat { font-size: 11px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.card-meta { display: flex; gap: 12px; margin-bottom: 12px; }
.card-meta span { font-size: 12px; color: var(--gray-text); display: flex; align-items: center; gap: 4px; }
.card-meta span i { color: var(--blue-deep); font-size: 11px; }

.timer-box {
    background: var(--blue-deep); border-radius: var(--radius);
    padding: 10px 14px; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: space-between;
}
.timer-label { font-size: 11px; color: rgba(255,255,255,0.7); }
.timer {
    font-size: 16px; font-weight: 700; color: var(--orange);
    font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.timer.ended { color: #999; }

.bid-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bid-label { font-size: 11px; color: var(--gray-text); }
.bid-price { font-size: 20px; font-weight: 900; color: var(--blue-deep); }
.bid-currency { font-size: 13px; }
.bid-count { font-size: 12px; color: var(--gray-text); display: flex; align-items: center; gap: 4px; }
.bid-count i { color: var(--orange); }

.btn-bid {
    width: 100%; padding: 12px;
    background: var(--orange); color: white; border: none;
    border-radius: var(--radius); font-size: 14px; font-weight: 700;
    transition: var(--transition); display: flex; align-items: center;
    justify-content: center; gap: 8px;
}
.btn-bid:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(240,100,0,0.3); }
.btn-buy {
    width: 100%; padding: 12px;
    background: var(--blue-deep); color: white; border: none;
    border-radius: var(--radius); font-size: 14px; font-weight: 700;
    transition: var(--transition); display: flex; align-items: center;
    justify-content: center; gap: 8px;
}
.btn-buy:hover { background: var(--blue-light); transform: translateY(-1px); }

/* ==============================
   PRODUCT CARDS
   ============================== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product-card {
    background: var(--white); border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card .card-image img { height: 180px; object-fit: cover; width: 100%; }
.product-card .card-body { padding: 14px; }
.product-price { font-size: 22px; font-weight: 900; color: var(--orange); margin-bottom: 12px; }
.product-price small { font-size: 13px; }
.product-status { display: flex; gap: 8px; margin-bottom: 12px; }
.status-pill {
    padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.pill-used { background: #FFF3E8; color: var(--orange); }
.pill-new { background: #E8F5E9; color: var(--success); }

/* ==============================
   BANNER / PROMO
   ============================== */
.promo-banner {
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-light) 100%);
    border-radius: var(--radius-lg); padding: 50px 60px;
    display: flex; align-items: center; justify-content: space-between;
    overflow: hidden; position: relative;
}
.promo-banner::before {
    content: ''; position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(240,100,0,0.2), transparent);
    top: -100px; left: -100px; border-radius: 50%;
}
.promo-text { color: white; position: relative; z-index: 1; }
.promo-text h2 { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.promo-text p { opacity: 0.8; max-width: 400px; }
.promo-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-white { background: white; color: var(--blue-deep); border: none; padding: 12px 28px; border-radius: var(--radius); font-weight: 700; font-size: 14px; transition: var(--transition); }
.btn-white:hover { background: var(--orange); color: white; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); padding: 12px 28px; border-radius: var(--radius); font-weight: 700; font-size: 14px; transition: var(--transition); }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }
.promo-image { position: relative; z-index: 1; }
.promo-image img { height: 160px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4)); }
.promo-stats { display: flex; gap: 30px; margin-top: 0; }
.promo-stat { text-align: center; color: white; }
.promo-stat .n { font-size: 28px; font-weight: 900; color: var(--orange); display: block; }
.promo-stat .l { font-size: 12px; opacity: 0.7; }

/* ==============================
   TRUST BAR
   ============================== */
.trust-bar { background: var(--gray-bg); border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); padding: 28px 0; }
.trust-bar .container { display: flex; justify-content: space-around; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--blue-deep); display: flex;
    align-items: center; justify-content: center;
    color: var(--orange); font-size: 20px;
}
.trust-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--dark); }
.trust-text span { font-size: 12px; color: var(--gray-text); }
.trust-divider { width: 1px; height: 50px; background: var(--gray-border); }

/* ==============================
   FOOTER
   ============================== */
footer {
    background: #0D1B2E;
    color: rgba(255,255,255,0.75);
    padding: 70px 0 0;
    margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-brand .logo-light { font-size: 24px; font-weight: 900; color: white; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-light span { color: var(--orange); }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.08); display: flex;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); font-size: 14px;
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--orange); color: white; }

.footer-col h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul li a::before { content: '›'; color: var(--orange); font-size: 16px; }
.footer-col ul li a:hover { color: var(--orange); }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.footer-contact li i { color: var(--orange); margin-top: 3px; min-width: 14px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom a:hover { color: var(--orange); }
.footer-legal { display: flex; gap: 20px; }

/* ==============================
   PAGE HEADER (Inner Pages)
   ============================== */
.page-header {
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
    padding: 40px 0;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(240,100,0,0.15), transparent);
    border-radius: 50%;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: 28px; font-weight: 900; }
.page-header .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: 0.75; margin-top: 8px; }
.page-header .breadcrumb i { font-size: 10px; }

/* ==============================
   FILTERS SIDEBAR
   ============================== */
.page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 40px 0; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
.filter-box {
    background: var(--white); border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.filter-box-header {
    padding: 14px 18px;
    background: var(--blue-deep); color: white;
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: space-between;
}
.filter-box-header i { color: var(--orange); }
.filter-box-body { padding: 16px 18px; }

.filter-cat-list { }
.filter-cat-list li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; font-size: 13px; color: var(--dark);
    border-bottom: 1px solid var(--gray-border); transition: var(--transition);
}
.filter-cat-list li:last-child a { border-bottom: none; }
.filter-cat-list li a:hover { color: var(--orange); }
.filter-cat-list li a .count { background: var(--gray-bg); color: var(--gray-text); font-size: 11px; padding: 2px 8px; border-radius: 10px; }

.filter-range { margin-top: 8px; }
.range-inputs { display: flex; gap: 8px; margin-top: 10px; }
.range-input {
    flex: 1; padding: 8px 10px; border: 1px solid var(--gray-border);
    border-radius: var(--radius); font-family: 'Cairo', sans-serif;
    font-size: 13px; outline: none; text-align: center;
}
.range-input:focus { border-color: var(--orange); }

.filter-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-size: 13px; }
.filter-check input { width: 15px; height: 15px; accent-color: var(--orange); cursor: pointer; }

.btn-filter-apply {
    width: 100%; padding: 11px;
    background: var(--orange); color: white; border: none;
    border-radius: var(--radius); font-size: 14px; font-weight: 700;
    transition: var(--transition); margin-top: 12px;
}
.btn-filter-apply:hover { background: var(--orange-hover); }
.btn-filter-reset {
    width: 100%; padding: 9px;
    background: transparent; color: var(--gray-text);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius); font-size: 13px;
    transition: var(--transition); margin-top: 6px;
}
.btn-filter-reset:hover { border-color: var(--dark); color: var(--dark); }

/* ==============================
   PAGE CONTENT (listing)
   ============================== */
.page-content { }
.page-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: var(--white);
    border: 1px solid var(--gray-border); border-radius: var(--radius);
    margin-bottom: 20px;
}
.toolbar-left { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray-text); }
.toolbar-left strong { color: var(--dark); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select {
    border: 1px solid var(--gray-border); border-radius: var(--radius);
    padding: 7px 12px; font-family: 'Cairo', sans-serif;
    font-size: 13px; outline: none; color: var(--dark);
}
.view-btn {
    width: 34px; height: 34px; border: 1px solid var(--gray-border);
    border-radius: var(--radius); background: white;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-text); transition: var(--transition);
}
.view-btn.active, .view-btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: white; }

.auctions-grid-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.products-grid-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ==============================
   LOGIN / REGISTER PAGE
   ============================== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--blue-deep) 0%, #001433 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
    position: relative; overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(240,100,0,0.15), transparent);
    top: -200px; right: -200px; border-radius: 50%;
}
.auth-container {
    width: 100%; max-width: 900px;
    background: white; border-radius: 20px;
    overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    display: grid; grid-template-columns: 1fr 1fr;
    position: relative; z-index: 1;
}
.auth-side {
    background: linear-gradient(160deg, var(--blue-mid), var(--blue-deep));
    padding: 60px 40px;
    display: flex; flex-direction: column; justify-content: center;
    color: white; position: relative; overflow: hidden;
}
.auth-side::before {
    content: '';
    position: absolute; bottom: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(240,100,0,0.25), transparent);
    border-radius: 50%;
}
.auth-side h2 { font-size: 26px; font-weight: 900; margin-bottom: 14px; position: relative; z-index: 1; }
.auth-side p { font-size: 14px; opacity: 0.8; line-height: 1.8; position: relative; z-index: 1; margin-bottom: 30px; }
.auth-side-features { position: relative; z-index: 1; }
.auth-side-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.auth-side-features li i { color: var(--orange); font-size: 16px; }

.auth-form-wrap { padding: 50px 40px; }
.auth-tabs {
    display: flex; gap: 4px; margin-bottom: 32px;
    background: var(--gray-bg); border-radius: var(--radius);
    padding: 4px;
}
.auth-tab {
    flex: 1; padding: 10px; text-align: center;
    font-size: 14px; font-weight: 700; color: var(--gray-text);
    cursor: pointer; border-radius: 6px; transition: var(--transition);
    background: transparent; border: none;
}
.auth-tab.active { background: white; color: var(--blue-deep); box-shadow: var(--shadow-sm); }

.auth-form { display: none; }
.auth-form.active { display: block; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-input {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius); outline: none;
    font-family: 'Cairo', sans-serif; font-size: 14px;
    transition: var(--transition); background: var(--gray-bg);
}
.form-input:focus { border-color: var(--orange); background: white; box-shadow: 0 0 0 3px rgba(240,100,0,0.1); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 42px; }
.input-icon-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-text); font-size: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn-auth {
    width: 100%; padding: 14px;
    background: var(--orange); color: white; border: none;
    border-radius: var(--radius); font-size: 16px; font-weight: 700;
    transition: var(--transition); margin-top: 8px;
}
.btn-auth:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,100,0,0.35); }

.form-divider { text-align: center; color: var(--gray-text); font-size: 13px; margin: 20px 0; position: relative; }
.form-divider::before, .form-divider::after {
    content: ''; position: absolute; top: 50%; width: 40%; height: 1px;
    background: var(--gray-border);
}
.form-divider::before { right: 0; }
.form-divider::after { left: 0; }

.social-auth { display: flex; gap: 10px; }
.btn-social {
    flex: 1; padding: 11px; border: 1.5px solid var(--gray-border);
    border-radius: var(--radius); background: white;
    font-size: 13px; font-weight: 600; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-social:hover { border-color: var(--blue-deep); background: var(--gray-bg); }

/* ==============================
   DASHBOARD
   ============================== */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 30px 0 60px; min-height: 80vh; }

.dash-sidebar {
    background: var(--white); border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg); overflow: hidden;
    height: fit-content; position: sticky; top: 80px;
}
.dash-user {
    padding: 24px; background: var(--blue-deep);
    text-align: center; color: white;
}
.dash-avatar {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--orange); margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 900; color: white;
    border: 3px solid rgba(255,255,255,0.3);
}
.dash-user h3 { font-size: 16px; font-weight: 700; }
.dash-user span { font-size: 12px; opacity: 0.7; }
.dash-verified {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.15); padding: 4px 10px;
    border-radius: 20px; font-size: 11px; margin-top: 8px; color: #7DFFB3;
}
.dash-nav { padding: 12px; }
.dash-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; color: var(--gray-text);
    cursor: pointer; transition: var(--transition); margin-bottom: 4px;
    border: none; background: none; width: 100%; text-align: right;
}
.dash-nav-item i { width: 18px; text-align: center; }
.dash-nav-item:hover { background: var(--gray-bg); color: var(--dark); }
.dash-nav-item.active { background: var(--orange-light); color: var(--orange); }
.dash-nav-item .nav-badge {
    margin-right: auto; background: var(--orange); color: white;
    font-size: 10px; padding: 2px 7px; border-radius: 10px;
}

.dash-content { display: flex; flex-direction: column; gap: 24px; }
.dash-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
    background: var(--white); border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg); padding: 20px;
    display: flex; align-items: center; gap: 16px;
}
.stat-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.stat-icon.blue { background: #EBF3FF; color: var(--blue-mid); }
.stat-icon.orange { background: var(--orange-light); color: var(--orange); }
.stat-icon.green { background: #E8F5E9; color: var(--success); }
.stat-icon.red { background: #FFEBEE; color: var(--danger); }
.stat-info .value { font-size: 24px; font-weight: 900; color: var(--dark); display: block; }
.stat-info .label { font-size: 12px; color: var(--gray-text); }

.dash-section {
    background: var(--white); border: 1px solid var(--gray-border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.dash-section-header {
    padding: 16px 20px; border-bottom: 1px solid var(--gray-border);
    display: flex; align-items: center; justify-content: space-between;
}
.dash-section-header h3 { font-size: 15px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.dash-section-header h3 i { color: var(--orange); }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { padding: 12px 16px; text-align: right; font-size: 12px; font-weight: 700; color: var(--gray-text); text-transform: uppercase; background: var(--gray-bg); }
.dash-table td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid var(--gray-border); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--gray-bg); }
.status-badge {
    padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
    display: inline-block;
}
.status-active { background: #E8F5E9; color: var(--success); }
.status-pending { background: #FFF8E1; color: #F57F17; }
.status-ended { background: #FFEBEE; color: var(--danger); }
.status-completed { background: #E8F5E9; color: var(--success); }

/* ==============================
   PAGINATION
   ============================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 40px 0; }
.page-btn {
    width: 38px; height: 38px; border: 1.5px solid var(--gray-border);
    border-radius: var(--radius); background: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--dark);
    cursor: pointer; transition: var(--transition);
}
.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-btn.active { background: var(--orange); border-color: var(--orange); color: white; }

/* ==============================
   LANGUAGE TOGGLE BUTTON
   ============================== */
.btn-lang {
    background: transparent;
    border: 1.5px solid var(--gray-border);
    padding: 8px 14px; border-radius: var(--radius);
    font-size: 13px; font-weight: 700; color: var(--dark);
    transition: var(--transition); cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    font-family: 'Cairo', sans-serif;
}
.btn-lang:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.btn-lang .lang-flag { font-size: 16px; }

/* Search sell button */
.search-sell-btn {
    background: var(--blue-deep); color: white;
    border: none; padding: 0 24px; font-size: 14px;
    font-weight: 700; height: 54px; white-space: nowrap;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: var(--transition); display: flex; align-items: center; gap: 7px;
    font-family: 'Cairo', sans-serif; cursor: pointer;
}
.search-sell-btn:hover { background: var(--orange); }

/* ==============================
   HERO ANIMATIONS
   ============================== */
@keyframes heroSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes heroPanBg {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-section .hero-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    animation: heroPanBg 8s ease forwards;
}
.hero-badge { animation: heroSlideDown 0.7s 0.2s both ease; }
.hero-h1   { animation: heroSlideUp  0.7s 0.4s both ease; }
.hero-p    { animation: heroSlideUp  0.7s 0.55s both ease; }
.hero-search-wrap { animation: heroFadeIn 0.7s 0.7s both ease; }
.hero-stats { animation: heroSlideUp 0.7s 0.9s both ease; }
.hero-stat { animation: countUp 0.5s both ease; }
.hero-stat:nth-child(1) { animation-delay: 1s; }
.hero-stat:nth-child(2) { animation-delay: 1.1s; }
.hero-stat:nth-child(3) { animation-delay: 1.2s; }
.hero-stat:nth-child(4) { animation-delay: 1.3s; }

/* Card entrance animation */
.auction-card, .product-card, .cat-card {
    animation: none; /* controlled by AOS */
}

/* Floating animation for trust icons */
.trust-icon { animation: floatUp 3s ease-in-out infinite; }
.trust-item:nth-child(1) .trust-icon { animation-delay: 0s; }
.trust-item:nth-child(3) .trust-icon { animation-delay: 0.5s; }
.trust-item:nth-child(5) .trust-icon { animation-delay: 1s; }
.trust-item:nth-child(7) .trust-icon { animation-delay: 1.5s; }

/* ==============================
   FOOTER COPYRIGHT CENTERED
   ============================== */
.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
    flex-direction: column;
    gap: 10px;
}
.footer-legal { justify-content: center; }
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue-deep); }
.text-gray { color: var(--gray-text); }
.bg-gray { background: var(--gray-bg); }
.mt-auto { margin-top: auto; }
.gap-2 { gap: 8px; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .cats-grid { grid-template-columns: repeat(4, 1fr); }
    .auctions-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .nav-menu { display: none; }
    .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.8rem; }
    .search-box { flex-direction: column; padding: 16px; gap: 12px; }
    .search-input-wrap, .search-cat-select, .search-btn { width: 100%; border: 1px solid var(--gray-border); border-radius: var(--radius) !important; }
    .search-btn { height: 48px; justify-content: center; }
    .cats-grid { grid-template-columns: repeat(3, 1fr); }
    .auctions-grid, .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .auth-container { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .dash-layout { grid-template-columns: 1fr; }
    .page-layout { grid-template-columns: 1fr; }
    .promo-banner { flex-direction: column; text-align: center; padding: 40px 30px; }
    .hero-stats { gap: 20px; }
}

@media (max-width: 480px) {
    .cats-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { display: none; }
}

/* ============================================================
   GUDIC v2 — Extended Styles
   ============================================================ */

/* ── AUTH ─────────────────────────────────────────────────── */
.auth-page { background: linear-gradient(135deg, #002147 0%, #003366 50%, #004488 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-wrap { display: flex; width: 100%; max-width: 940px; min-height: 560px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.4); }
.auth-side { background: linear-gradient(160deg, #002147, #004488); width: 340px; flex-shrink: 0; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; color: #fff; position: relative; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; width: 280px; height: 280px; background: rgba(240,100,0,0.15); border-radius: 50%; top: -80px; left: -80px; }
.auth-side::after { content: ''; position: absolute; width: 180px; height: 180px; background: rgba(255,255,255,0.05); border-radius: 50%; bottom: -50px; right: -50px; }
.auth-side-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; position: relative; z-index: 1; }
.auth-side-logo img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 2px solid var(--orange); }
.auth-side-logo span { font-size: 18px; font-weight: 900; }
.auth-side h2 { font-size: 28px; font-weight: 900; line-height: 1.3; margin-bottom: 14px; position: relative; z-index: 1; }
.auth-side h2 span { color: var(--orange); }
.auth-side p { font-size: 14px; opacity: 0.75; line-height: 1.8; position: relative; z-index: 1; margin-bottom: 32px; }
.auth-features { position: relative; z-index: 1; }
.auth-feat { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; opacity: 0.85; }
.auth-feat i { width: 32px; height: 32px; background: rgba(240,100,0,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 14px; flex-shrink: 0; }
.auth-form-side { flex: 1; padding: 48px 44px; overflow-y: auto; }
.auth-tabs { display: flex; border-bottom: 2px solid var(--gray-border); margin-bottom: 28px; }
.auth-tab { flex: 1; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 10px; font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700; color: var(--gray-text); cursor: pointer; transition: var(--transition); }
.auth-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.auth-form-block { display: none; }
.auth-form-block.active { display: block; }
.auth-title { font-size: 22px; font-weight: 900; color: var(--blue-deep); margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: var(--gray-text); margin-bottom: 28px; }
.field-group { margin-bottom: 18px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: #333; margin-bottom: 6px; }
.field-label .req { color: var(--orange); }
.field-input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--gray-border); border-radius: var(--radius); font-size: 14px; font-family: 'Cairo', sans-serif; outline: none; transition: var(--transition); color: var(--dark); box-sizing: border-box; }
.field-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,100,0,0.1); }
.phone-field { display: flex; border: 1.5px solid var(--gray-border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.phone-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,100,0,0.1); }
.phone-code { padding: 13px 14px; background: var(--gray-bg); border-left: 1px solid var(--gray-border); font-weight: 700; font-size: 13px; color: #555; white-space: nowrap; }
.phone-num { flex: 1; border: none; padding: 13px 14px; font-size: 14px; font-family: 'Cairo', sans-serif; outline: none; }
.otp-row { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.otp-digit { width: 48px; height: 56px; border: 2px solid var(--gray-border); border-radius: var(--radius); font-size: 24px; font-weight: 900; text-align: center; outline: none; font-family: 'Cairo', sans-serif; transition: var(--transition); }
.otp-digit:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,100,0,0.1); }
.btn-submit { width: 100%; background: linear-gradient(135deg, var(--orange), #D55800); color: #fff; border: none; border-radius: var(--radius); padding: 14px; font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 900; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,100,0,0.35); }
.btn-submit:disabled { background: var(--gray-light); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-submit-blue { background: linear-gradient(135deg, var(--blue-deep), var(--blue-light)); }
.btn-submit-blue:hover { box-shadow: 0 6px 20px rgba(0,33,71,0.35); }
.auth-msg { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.auth-msg.ok { background: #e8f5e9; color: #155724; border: 1px solid #c3e6cb; }
.auth-msg.err { background: #fce4e4; color: #721c24; border: 1px solid #f5c6cb; }
.auth-msg.info { background: #e8f0fb; color: var(--blue-deep); border: 1px solid #c5d8f5; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--gray-text); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-border); }
.otp-step { display: none; }
.otp-step.active { display: block; }

/* ── DASHBOARD ────────────────────────────────────────────── */
.dash-layout { display: flex; gap: 0; min-height: calc(100vh - 120px); }
.dash-sidebar { width: 250px; flex-shrink: 0; background: #fff; border-left: 1px solid var(--gray-border); padding: 24px 0; }
.dash-user { padding: 0 20px 24px; border-bottom: 1px solid var(--gray-border); margin-bottom: 16px; text-align: center; }
.dash-user h3 { font-size: 15px; font-weight: 800; color: var(--blue-deep); margin-bottom: 3px; }
.dash-user span { font-size: 12px; color: var(--gray-text); }
.dash-verified { display: inline-flex; align-items: center; gap: 5px; background: var(--green-lt); color: var(--green); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-top: 8px; }
.dash-nav { padding: 0 12px; }
.dash-nav-item { width: 100%; text-align: right; background: none; border: none; border-radius: var(--radius); padding: 11px 14px; font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 600; color: var(--gray-text); cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 10px; margin-bottom: 3px; text-decoration: none; }
.dash-nav-item:hover { background: var(--gray-bg); color: var(--dark); }
.dash-nav-item.active { background: var(--orange-lt); color: var(--orange); font-weight: 700; }
.dash-nav-item i { width: 18px; text-align: center; font-size: 14px; }
.dash-content { flex: 1; padding: 28px; background: var(--gray-bg); min-width: 0; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-section { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.dash-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-border); }
.dash-section-header h3 { font-size: 16px; font-weight: 800; color: var(--blue-deep); display: flex; align-items: center; gap: 8px; }

/* ── PAGE HEADER ──────────────────────────────────────────── */
.page-header { background: linear-gradient(135deg, var(--blue-deep), var(--blue-light)); color: #fff; padding: 40px 0; }
.page-header h1 { font-size: 28px; font-weight: 900; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.page-header h1 i { color: var(--orange); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: 0.75; }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb i { font-size: 10px; }

/* ── PAGE LAYOUT ──────────────────────────────────────────── */
.page-layout { display: flex; gap: 24px; padding: 28px 0 60px; }
.sidebar { width: 260px; flex-shrink: 0; }
.main-col { flex: 1; min-width: 0; }
.filter-box { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--gray-border); overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.filter-box-header { background: var(--blue-deep); color: #fff; padding: 14px 18px; font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.filter-box-body { padding: 16px 18px; }
.filter-cat-list li { border-bottom: 1px solid var(--gray-border); }
.filter-cat-list li:last-child { border-bottom: none; }
.filter-cat-list li a { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; color: var(--dark); transition: var(--transition); }
.filter-cat-list li a:hover { color: var(--orange); padding-right: 6px; }
.filter-cat-list .count { background: var(--gray-bg); color: var(--gray-text); padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.range-inputs { display: flex; gap: 8px; }
.range-input { flex: 1; padding: 9px 12px; border: 1.5px solid var(--gray-border); border-radius: var(--radius); font-size: 13px; font-family: 'Cairo', sans-serif; outline: none; width: 100%; }
.range-input:focus { border-color: var(--orange); }

/* Sort bar */
.sort-bar { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px 18px; border: 1px solid var(--gray-border); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.sort-count { font-size: 13px; color: var(--gray-text); font-weight: 600; }
.sort-count strong { color: var(--dark); }
.sort-select { border: 1.5px solid var(--gray-border); border-radius: var(--radius); padding: 7px 12px; font-size: 13px; font-family: 'Cairo', sans-serif; outline: none; cursor: pointer; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 56px; color: var(--gray-border); display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 800; color: #444; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--gray-text); }

/* Loading */
.loading-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px; gap: 16px; }
.loading-spinner { width: 44px; height: 44px; border: 4px solid var(--gray-border); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PRODUCT DETAIL PAGE ─────────────────────────────────── */
.product-page { padding: 28px 0 60px; }
.product-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 420px; background: var(--gray-bg); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.92); border: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-md); font-size: 16px; color: var(--dark); transition: var(--transition); }
.gallery-nav:hover { background: #fff; box-shadow: var(--shadow-lg); }
.gallery-nav.prev { right: 14px; }
.gallery-nav.next { left: 14px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 78px; height: 62px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.gallery-thumb.active { border-color: var(--orange); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; bottom: 14px; left: 14px; background: rgba(0,0,0,0.65); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* Product info card */
.prod-info-card { background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-border); margin-top: 20px; }
.prod-info-title { font-size: 14px; font-weight: 800; color: var(--blue-deep); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--orange-lt); }
.detail-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--gray-border); font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-row i { width: 18px; color: var(--orange); font-size: 14px; flex-shrink: 0; }
.detail-label { color: var(--gray-text); font-weight: 600; min-width: 110px; }
.detail-value { font-weight: 700; color: var(--dark); }

/* Sticky sidebar */
.product-sidebar { position: sticky; top: 20px; }
.action-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--gray-border); }
.action-card-header { background: linear-gradient(135deg, var(--blue-deep), var(--blue-light)); padding: 20px 22px; color: #fff; }
.price-main { font-size: 36px; font-weight: 900; color: var(--orange); line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.price-main small { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.7); }
.price-label { font-size: 12px; opacity: 0.75; margin-bottom: 8px; }
.auction-status-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-top: 10px; }
.timer-display { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 16px 0; }
.timer-unit-box { background: rgba(0,0,0,0.3); border-radius: var(--radius); padding: 10px 6px; text-align: center; }
.timer-num { display: block; font-size: 24px; font-weight: 900; line-height: 1; }
.timer-lbl { font-size: 10px; opacity: 0.65; margin-top: 3px; }
.timer-sep { display: flex; align-items: center; font-size: 20px; font-weight: 900; padding-top: 8px; opacity: 0.6; }
.action-card-body { padding: 20px 22px; }
.bid-section { margin-bottom: 16px; }
.bid-amount-wrap { display: flex; align-items: center; border: 2px solid var(--gray-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; transition: var(--transition); }
.bid-amount-wrap:focus-within { border-color: var(--orange); }
.bid-currency-label { padding: 12px 14px; background: var(--gray-bg); font-weight: 700; color: #555; font-size: 13px; border-left: 1px solid var(--gray-border); white-space: nowrap; }
.bid-input { flex: 1; border: none; padding: 12px 14px; font-size: 18px; font-weight: 800; font-family: 'Cairo', sans-serif; outline: none; color: var(--dark); }
.btn-place-bid { width: 100%; background: linear-gradient(135deg, var(--orange), #D55800); color: #fff; border: none; border-radius: var(--radius); padding: 14px; font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); margin-bottom: 10px; }
.btn-place-bid:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,100,0,0.4); }
.btn-place-bid:disabled { background: var(--gray-light); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-buy-now { width: 100%; background: linear-gradient(135deg, var(--green), #1e7e34); color: #fff; border: none; border-radius: var(--radius); padding: 14px; font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); margin-bottom: 10px; }
.btn-buy-now:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(40,167,69,0.4); }
.btn-contact { width: 100%; background: #fff; color: var(--blue-deep); border: 2px solid var(--blue-deep); border-radius: var(--radius); padding: 12px; font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); }
.btn-contact:hover { background: var(--blue-deep); color: #fff; }
.bids-history { background: var(--gray-bg); border-radius: var(--radius); padding: 14px; max-height: 220px; overflow-y: auto; }
.bid-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-border); font-size: 12px; }
.bid-row:last-child { border-bottom: none; }
.bid-row-amount { font-weight: 900; color: var(--orange); font-size: 14px; }
.bid-row-rank { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; flex-shrink: 0; }
.rank-1 { background: #FFD700; color: #7a5c00; }
.rank-2 { background: #C0C0C0; color: #555; }
.rank-3 { background: #CD7F32; color: #5c3a00; }
.rank-other { background: var(--gray-border); color: var(--gray-text); }
.seller-card { background: var(--blue-pale); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.seller-avatar { width: 48px; height: 48px; background: var(--blue-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 900; flex-shrink: 0; }
.seller-name { font-size: 14px; font-weight: 800; color: var(--blue-deep); }
.seller-meta { font-size: 12px; color: var(--gray-text); }
.trust-seals { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.trust-seal { display: inline-flex; align-items: center; gap: 5px; background: var(--gray-bg); border: 1px solid var(--gray-border); padding: 5px 10px; border-radius: 20px; font-size: 11px; color: var(--gray-text); font-weight: 600; }
.trust-seal i { color: var(--orange); }

/* ── SELL FORM ────────────────────────────────────────────── */
.sell-wrapper { max-width: 780px; margin: 32px auto 60px; padding: 0 20px; }
.sell-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.sell-card-header { background: linear-gradient(135deg, var(--blue-deep), var(--blue-light)); padding: 28px 32px; display: flex; align-items: center; gap: 18px; color: #fff; }
.sell-header-icon { width: 56px; height: 56px; background: rgba(255,255,255,0.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.sell-card-body { padding: 32px; }
.sp-label { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 7px; display: block; }
.sp-label .req { color: var(--orange); }
.sp-input, .sp-select, .sp-textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--gray-border); border-radius: 10px; font-size: 14px; font-family: 'Cairo', sans-serif; outline: none; box-sizing: border-box; transition: border-color 0.2s; color: #222; }
.sp-input:focus, .sp-select:focus, .sp-textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,100,0,0.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
#upload-zone { border: 2px dashed #d0d7e2; border-radius: 12px; padding: 36px 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: #fafbfc; }
#upload-zone:hover, #upload-zone.drag-over { border-color: var(--orange); background: #fff8f4; }
#upload-zone input[type="file"] { display: none; }
.upload-icon { font-size: 40px; color: #ccc; display: block; margin-bottom: 10px; }
#sp-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.preview-item { position: relative; width: 90px; height: 75px; border-radius: 10px; overflow: hidden; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; border: 2px solid #ddd; border-radius: 10px; }
.remove-img { position: absolute; top: -5px; right: -5px; background: var(--danger); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sp-feedback { padding: 13px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; display: none; }
.sp-feedback.ok { background: #e8f5e9; color: #28a745; border: 1px solid #c3e6cb; }
.sp-feedback.err { background: #fce4e4; color: var(--danger); border: 1px solid #f5c6cb; }
#sp-progress-wrap { margin: 16px 0; display: none; }
.sp-progress-track { background: #e9ecef; border-radius: 20px; height: 8px; overflow: hidden; }
#sp-progress-fill { background: linear-gradient(90deg, var(--orange), #ff9500); height: 8px; border-radius: 20px; width: 0%; transition: width 0.3s; }
.btn-submit-sell { width: 100%; background: linear-gradient(135deg, var(--orange), #ff8c00); color: #fff; border: none; border-radius: 12px; padding: 15px; font-size: 16px; font-weight: 900; font-family: 'Cairo', sans-serif; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 16px rgba(240,100,0,0.35); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-submit-sell:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(240,100,0,0.45); }
.btn-submit-sell:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.step-hint { display: flex; align-items: flex-start; gap: 10px; background: #f0f5ff; border-radius: 10px; padding: 14px 16px; margin-bottom: 24px; font-size: 13px; color: var(--blue-deep); }
.auction-fields { display: none; background: #f0f5ff; border-radius: 10px; padding: 18px; border: 1px solid #c5d8f5; }
.auction-fields.show { display: block; }

/* ── TOAST ────────────────────────────────────────────────── */
#toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--blue-deep); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; max-width: 320px; }
.toast.success { background: var(--green); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--yellow); color: var(--dark); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,33,71,0.65); backdrop-filter: blur(4px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 500px; box-shadow: var(--shadow-xl); animation: modalIn 0.25s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-hdr { padding: 18px 22px; border-bottom: 1px solid var(--gray-border); display: flex; align-items: center; justify-content: space-between; }
.modal-hdr h3 { font-size: 16px; font-weight: 800; color: var(--blue-deep); }
.modal-x { background: var(--gray-bg); border: none; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--gray-text); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-x:hover { background: var(--red-lt); color: var(--danger); }
.modal-body { padding: 22px; }
.modal-footer { padding: 16px 22px; border-top: 1px solid var(--gray-border); display: flex; gap: 10px; justify-content: flex-end; }

/* ── NAV AUTH STATE ───────────────────────────────────────── */
.nav-user-btn { display: flex; align-items: center; gap: 8px; background: var(--gray-bg); border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 7px 14px; cursor: pointer; transition: var(--transition); }
.nav-user-btn:hover { border-color: var(--orange); }
.nav-avatar { width: 30px; height: 30px; background: var(--blue-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 900; }

/* ── GREEN STATUS BADGES ──────────────────────────────────── */
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-pending  { background: #fff8e1; color: #f59e0b; }
.badge-approved { background: var(--green-lt); color: var(--green); }
.badge-rejected { background: var(--red-lt); color: var(--danger); }
.badge-auction  { background: var(--blue-pale); color: var(--blue-light); }
.badge-product  { background: var(--orange-lt); color: var(--orange); }

/* ── PULSE ANIMATION ──────────────────────────────────────── */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.pulse { animation: pulse 1.2s ease infinite; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-sidebar { position: static; }
  .gallery-main { height: 300px; }
}
@media (max-width: 768px) {
  .auth-wrap { flex-direction: column; max-width: 440px; }
  .auth-side { width: 100%; padding: 32px; }
  .auth-features { display: none; }
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; }
  .page-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .auctions-grid, .products-grid { grid-template-columns: repeat(2,1fr); }
  .cats-grid { grid-template-columns: repeat(3,1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .promo-banner { flex-direction: column; }
  .promo-stats { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 480px) {
  .auctions-grid, .products-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2,1fr); }
  .hero-h1 { font-size: 1.7rem; }
}

/* ── LOGIN TO BID PROMPT ────────────────────────────────────── */
.login-bid-prompt {
  background: var(--blue-pale);
  border: 2px dashed var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 12px;
}
.btn-login-bid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.btn-login-bid:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,33,71,0.35); color: #fff; }

/* ── ADMIN EDIT FORM FIELD ──────────────────────────────────── */
.ep-field { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border, #e5e7eb); border-radius: 8px; font-family: 'Cairo', sans-serif; font-size: 13px; outline: none; transition: border-color .2s; }
.ep-field:focus { border-color: var(--orange); }

/* ── BID MIN NOTE ───────────────────────────────────────────── */
#bid-min-note { display: flex; align-items: center; gap: 6px; }

/* ── PRODUCT PAGE BREADCRUMB ────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-text); flex-wrap: wrap; }
.breadcrumb a { color: var(--orange); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── UTILITY BAR ── */
.utility-bar{background:linear-gradient(90deg,#f8f9fb,#eef1f6);padding:8px 0;font-family:'Cairo',sans-serif;font-size:12px;border-bottom:1px solid #e2e6ed;}
.ub-link{color:#555;text-decoration:none;display:flex;align-items:center;gap:5px;transition:var(--transition);font-weight:600;}
.ub-link:hover{color:var(--orange);}
.ub-link i{font-size:11px;color:var(--orange);}

@media(max-width:768px){
  .hero-section{height:420px!important;min-height:360px!important;}
  .hero-h1{font-size:1.8rem!important;}
  .nav-menu,.btn-sell{display:none!important;}
  .auctions-grid,.products-grid{grid-template-columns:1fr!important;}
  .cats-grid{grid-template-columns:repeat(3,1fr)!important;}
  .footer-grid{grid-template-columns:1fr!important;}
  .promo-banner{flex-direction:column!important;text-align:center!important;}
  .search-box{flex-direction:column;gap:8px;}
  .search-cat-select,.search-btn,.search-sell-btn{width:100%!important;}
}
@media(max-width:480px){
  .hero-section{height:360px!important;}
  .hero-h1{font-size:1.4rem!important;}
  .cats-grid{grid-template-columns:repeat(2,1fr)!important;}
  .cat-nav-item{padding:10px 12px!important;font-size:12px!important;}
}

/* ══════════════════════════════════════════════════════════
   🔧 GLOBAL CLICKABILITY FIX — applies everywhere
   Force all decorative overlays to be click-transparent
══════════════════════════════════════════════════════════ */

/* Hero / Slideshow overlays */
.hero-slide::after,
.hero-slide::before,
.slide-overlay,
.slide-overlay::after,
.slide-overlay::before,
.hero-section::before,
.hero-section::after { pointer-events: none !important; }

/* Card decorative pseudo-elements */
.cat-card::before,
.cat-card::after,
.auction-card::before,
.auction-card::after,
.product-card::before,
.product-card::after,
.pcard::before,
.pcard::after,
.acard::before,
.acard::after,
.promo-banner::before,
.promo-banner::after,
.promo-text::before,
.section::before,
.section::after,
.section-cats::before,
.section-cats::after,
.cats-grid::before,
.cats-grid::after { pointer-events: none !important; }

/* Section & hero pattern backgrounds */
.page-hero::before,
.page-hero::after,
.about-hero::before,
.about-hero::after,
.blog-hero::before,
.blog-hero::after,
.legal-hero::before,
.legal-hero::after,
.faq-hero::before,
.faq-hero::after,
.cta-box::before,
.cta-box::after,
.auth-side::before,
.auth-side::after { pointer-events: none !important; }

/* Navbar link hover overlay — was eating clicks */
.navl a::after,
.navl a::before { pointer-events: none !important; }

/* Reveal must never hide interactive elements */
.reveal { opacity: 1 !important; transform: none !important; visibility: visible !important; pointer-events: auto !important; }
.reveal.visible { opacity: 1 !important; }

/* Cards as <a> tags — strip default anchor styling, keep them block */
a.cat-card,
a.auction-card,
a.product-card,
a.pcard,
a.acard,
a.blog-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}
a.cat-card *,
a.auction-card *,
a.product-card *,
a.pcard *,
a.acard *,
a.blog-card * { text-decoration: none !important; }

/* Buttons and interactive overlays inside card-anchors keep their clicks */
.card-wishlist,
.btn-bid-wrap,
.btn-buy-wrap,
.btn-bid,
.btn-buy { position: relative; z-index: 3; }

/* Wrap-style "button" spans inside card <a> tags */
.btn-bid-wrap, .btn-buy-wrap {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; margin-top: 14px;
  background: linear-gradient(135deg, var(--orange), #d55800);
  color: #fff; border-radius: 10px;
  font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 800;
  cursor: pointer; transition: all .22s;
  box-shadow: 0 4px 14px rgba(240,100,0,.32);
  user-select: none; border: none;
}
.btn-bid-wrap:hover, .btn-buy-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(240,100,0,.45);
  background: linear-gradient(135deg, #d55800, #b84600);
}
.btn-buy-wrap {
  background: linear-gradient(135deg, var(--blue-deep), #1e4fa3);
  box-shadow: 0 4px 14px rgba(0,33,71,.32);
}
.btn-buy-wrap:hover {
  background: linear-gradient(135deg, #1e4fa3, #0f2e6d);
  box-shadow: 0 8px 22px rgba(0,33,71,.45);
}
html, body { max-width: 100vw; overflow-x: hidden; }
.nav, .hdr, .topbar { width: 100%; max-width: 100vw; }
#toast-wrap { pointer-events: none; position: fixed !important; top: 20px !important; right: 20px !important; left: auto !important; bottom: auto !important; width: auto !important; height: auto !important; z-index: 9999; }
#toast-wrap .toast { pointer-events: auto; }
