/* ════════════════════════════════════════════════════════════════════════
   INSPECTIFY LAPSTORE — Modern responsive marketplace styles
   ════════════════════════════════════════════════════════════════════════ */

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --accent: #6366f1;
    --violet: #7c3aed;
    --pink: #ec4899;
    --secondary: #64748b;
    --bg-light: #f6f7fb;
    --white: #ffffff;
    --surface: #ffffff;          /* card / panel surface */
    --surface-2: #f8fafc;         /* input / subtle panel */
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;
    --shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    --radius: 14px;
    --radius-sm: 8px;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --border-soft: #f1f5f9;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    --header-bg: #ffffff;
    --footer-bg: #0b1120;
    --footer-border: #1e293b;
}

/* ─── Dark theme overrides ───────────────────────────────────────────── */
html[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --accent: #a5b4fc;
    --violet: #a78bfa;
    --pink: #f472b6;
    --secondary: #94a3b8;
    --bg-light: #0b1020;
    --white: #111827;
    --surface: #151b2e;
    --surface-2: #1e2540;
    --text-dark: #e5e7eb;
    --text-muted: #9ca3af;
    --text-on-accent: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.65);
    --border: #2a3250;
    --border-soft: #222844;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --header-bg: #0f1427;
    --footer-bg: #070a14;
    --footer-border: #1b2239;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; }
html, body { min-height: 100%; }
body { background: var(--bg-light); color: var(--text-dark); line-height: 1.6; transition: background-color .3s ease, color .3s ease; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ─── Header ─────────────────────────────────────────────────────────── */
.header { background: var(--header-bg); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(15,23,42,0.05); transition: background-color .3s ease; }
html[data-theme="dark"] .header { box-shadow: 0 2px 10px rgba(0,0,0,0.45); border-bottom: 1px solid var(--border-soft); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo a { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 800; color: var(--primary); white-space: nowrap; }
.logo em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-menu { display: flex; gap: 22px; }
.nav-menu a { color: var(--text-dark); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-menu a:hover { color: var(--primary); }
.search-bar { flex: 1; position: relative; max-width: 380px; }
.search-bar form { width: 100%; }
.search-bar input { width: 100%; padding: 10px 15px 10px 40px; border-radius: 50px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dark); outline: none; font-size: 0.9rem; }
.search-bar input::placeholder { color: var(--text-muted); opacity: 1; }
.search-bar input:focus { background: var(--surface); border-color: var(--primary); }
.search-bar > i { position: absolute; left: 15px; top: 13px; color: var(--text-muted); pointer-events: none; }

.autocomplete-results { position: absolute; top: 46px; left: 0; right: 0; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 380px; overflow-y: auto; display: none; z-index: 1100; border: 1px solid var(--border); }
.autocomplete-results.show { display: block; }
.ac-item { display: flex; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); align-items: center; cursor: pointer; color: var(--text-dark); }
.ac-item:hover { background: var(--bg-light); }
.ac-item:last-child { border-bottom: 0; }
.ac-thumb { width: 48px; height: 48px; border-radius: 8px; background: var(--bg-light); object-fit: cover; flex-shrink: 0; }
.ac-info { flex: 1; min-width: 0; }
.ac-title { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-sub { font-size: 0.75rem; color: var(--text-muted); }
.ac-price { font-size: 0.9rem; font-weight: 700; color: var(--primary); }

.user-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { background: none; border: none; font-size: 1.1rem; color: var(--primary); cursor: pointer; padding: 6px; }
.icon-btn:hover { color: var(--primary-dark); }

/* ─── Theme toggle button ────────────────────────────────────────────── */
.theme-toggle {
    background: transparent; border: none; cursor: pointer; padding: 0;
    display: inline-flex; align-items: center;
}
.theme-toggle-track {
    position: relative;
    width: 54px; height: 28px;
    background: linear-gradient(135deg, #fde68a 0%, #fdba74 100%);
    border-radius: 50px;
    display: inline-block;
    transition: background .35s ease, box-shadow .25s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.08);
    overflow: hidden;
}
.theme-toggle-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 22px; height: 22px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform .35s cubic-bezier(.4,.2,.2,1), background .35s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    color: #f59e0b;
    font-size: 0.72rem;
}
.theme-toggle .sun-icon { display: inline-block; }
.theme-toggle .moon-icon { display: none; }
html[data-theme="dark"] .theme-toggle-track {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.45), 0 0 8px rgba(124,58,237,0.35);
}
html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(26px);
    background: #e0e7ff;
    color: #6366f1;
}
html[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: inline-block; }
.theme-toggle:hover .theme-toggle-thumb { box-shadow: 0 2px 10px rgba(124,58,237,0.5); }

/* Profile circle + dropdown */
.profile-dropdown { position: relative; }
.profile-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; border: none; cursor: pointer; box-shadow: var(--shadow); overflow: hidden; padding: 0; }
.profile-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.profile-circle.big { width: 50px; height: 50px; font-size: 1.2rem; }
.profile-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; display: none; z-index: 1100; border: 1px solid var(--border); }
.profile-menu.show { display: block; }
.profile-menu-header { display: flex; gap: 12px; padding: 16px; background: var(--bg-light); align-items: center; }
.pm-name { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.pm-email { font-size: 0.78rem; color: var(--text-muted); }
.profile-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 0.9rem; color: var(--text-dark); }
.profile-menu a i { width: 18px; color: var(--text-muted); }
.profile-menu a:hover { background: var(--bg-light); color: var(--primary); }
.profile-menu a:hover i { color: var(--primary); }
.pm-divider { height: 1px; background: var(--border); }
.pm-logout { color: var(--danger) !important; }
.pm-logout i { color: var(--danger) !important; }

.mobile-menu-btn { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--text-dark); }

.btn-primary { background: var(--primary); color: white; padding: 10px 20px; border-radius: var(--radius-sm); border: none; font-weight: 600; cursor: pointer; display: inline-block; text-align: center; font-size: 0.9rem; transition: transform .15s, background .2s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary.btn-full { width: 100%; }
.btn-primary.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-secondary { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 8px; text-align: center; }
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; border: none; padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 8px; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: white; border: none; padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 8px; }
.btn-danger:hover { background: #dc2626; }
.btn-success.small, .btn-danger.small, .btn-secondary.small { padding: 5px 10px; font-size: 0.78rem; }
.btn-filter { height: 42px; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%); color: white; padding: 80px 0 120px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(124,58,237,0.25), transparent 40%), radial-gradient(circle at 80% 90%, rgba(236,72,153,0.2), transparent 45%); pointer-events: none; }
.hero-content { max-width: 720px; margin-bottom: 30px; position: relative; }
.hero h1 { font-size: 3.2rem; line-height: 1.15; margin-bottom: 18px; font-weight: 800; }
.highlight { background: linear-gradient(90deg, #a5b4fc, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search-form { background: rgba(255,255,255,0.08); backdrop-filter: blur(12px); padding: 26px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); margin-top: 20px; position: relative; color: white; }
.form-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; align-items: end; }
.form-group { display: flex; flex-direction: column; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 600; }
.form-group select, .form-group input[type="text"], .form-group input[type="number"], .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="date"], .form-group input[type="tel"] { padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: white; color: var(--text-dark); outline: none; font-size: 0.92rem; width: 100%; }
.form-group textarea { padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); outline: none; font-size: 0.92rem; font-family: inherit; resize: vertical; width: 100%; }
.btn-search { background: var(--gradient); color: white; padding: 12px; border-radius: var(--radius-sm); border: none; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }

.stats { display: flex; justify-content: space-around; margin-top: 50px; text-align: center; flex-wrap: wrap; gap: 20px; position: relative; }
.stat { flex: 1; min-width: 160px; }
.stat-number { font-size: 2.4rem; font-weight: 800; background: linear-gradient(90deg, #a5b4fc, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 0.88rem; opacity: 0.8; margin-top: 4px; }

/* ─── Section header ─────────────────────────────────────────────────── */
.section-header { text-align: center; margin: 50px 0 30px; }
.section-header h1, .section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text-muted); }
.section-h { font-size: 1.5rem; margin: 30px 0 20px; font-weight: 700; }
.section-h.center { text-align: center; }
.page-section { padding: 40px 0; }

/* ─── Product card ───────────────────────────────────────────────────── */
.products-grid, .laptops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 22px; margin-top: 10px; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; position: relative; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card.is-sold { opacity: .62; filter: grayscale(.4); }
.card-link { color: inherit; display: block; }
.product-image { position: relative; height: 190px; background: var(--bg-light); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.image-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: calc(100% - 20px); }
.condition-badge { padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.trusted-badge { padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: .3px; display: inline-flex; align-items: center; gap: 5px; background: #dbeafe; color: #1e40af; border: 1px solid rgba(59, 130, 246, .3); white-space: nowrap; }
.trusted-badge i { font-size: 0.9em; }
html[data-theme="dark"] .trusted-badge { background: rgba(59, 130, 246, .18); color: #93c5fd; border-color: rgba(147, 197, 253, .35); }
.condition-New, .condition-LikeNew { background: #dcfce7; color: #166534; }
.condition-Used, .condition-Good { background: #fef9c3; color: #854d0e; }
.condition-ForParts, .condition-Fair { background: #fee2e2; color: #991b1b; }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-title { font-size: 1rem; margin-bottom: 8px; font-weight: 700; display: flex; align-items: center; gap: 6px; line-height: 1.3; color: var(--text-dark); }
.trusted-tick { color: #3b82f6; font-size: 0.9em; }
html[data-theme="dark"] .trusted-tick { color: #60a5fa; }
.product-price { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; }
.current-price { font-size: 1.25rem; font-weight: 800; color: var(--text-dark); }
.predicted-range { font-size: 0.78rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; background: var(--border-soft); padding: 4px 10px; border-radius: 50px; margin-top: 2px; width: fit-content; }
.predicted-range i { color: var(--primary); }
.predicted-range.big { font-size: 0.92rem; margin: 10px auto 4px; padding: 6px 14px; }

.product-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.spec-item { background: var(--border-soft); font-size: 0.72rem; padding: 3px 8px; border-radius: 5px; color: var(--secondary); display: inline-flex; gap: 4px; align-items: center; }
.card-footer { padding: 10px 16px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); }
.seller-tag { font-size: 0.78rem; color: var(--text-muted); display: inline-flex; gap: 6px; align-items: center; text-decoration: none; transition: color .15s; }
a.seller-tag:hover { color: var(--primary); text-decoration: underline; }
.fav-btn { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-muted); padding: 4px; transition: transform .15s; }
.fav-btn:hover { transform: scale(1.15); color: var(--pink); }
.fav-btn.is-fav { color: var(--pink); }
.fav-btn.is-fav i { color: var(--pink); }

.sold-banner { position: absolute; top: 12px; right: 12px; background: var(--success); color: white; font-weight: 800; font-size: 0.75rem; padding: 4px 12px; border-radius: 6px; letter-spacing: 1px; z-index: 2; }
.sold-banner.big { position: static; display: inline-block; margin-top: 10px; padding: 6px 18px; font-size: 0.9rem; }

.results-count { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.no-results { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--text-muted); background: var(--surface); border-radius: var(--radius); }

/* ─── Filters bar (Ads index) ─────────────────────────────────────────── */
.laptops-filters { background: var(--surface); padding: 20px; border-radius: var(--radius); display: flex; gap: 16px; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; border: 1px solid var(--border); }
.filter-group { flex: 1; min-width: 140px; }
.filter-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.filter-group select, .filter-group input { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); outline: none; font-size: 0.9rem; background: var(--surface); color: var(--text-dark); }
.filter-group select:focus, .filter-group input:focus { border-color: var(--primary); }

/* ─── Ad details ─────────────────────────────────────────────────────── */
.breadcrumbs { padding: 20px 0; font-size: 0.88rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--primary); }
.product-detail-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; margin-bottom: 60px; }
.gallery-main { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 15px; display: flex; align-items: center; justify-content: center; aspect-ratio: 16/10; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 15px; }
.thumb-strip { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 4px; }
.thumb { width: 78px; height: 78px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; }
.thumb:hover { border-color: var(--primary); }

.product-info-header { margin-bottom: 25px; }
.product-detail-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 5px; color: var(--text-dark); }
.product-specs-brief { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 12px; }
.icon-primary { color: var(--primary); }
.inspection-box, .description-box { background: var(--surface); padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 20px; }
.inspection-box h3, .description-box h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: var(--text-dark); }
.inspection-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 8px; }
.report-item { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-light); border: 1px solid var(--border-soft); }
.report-item span { color: var(--text-muted); }
.report-item strong { color: var(--text-dark); text-align: right; word-break: break-word; }
.report-extra-h { margin: 22px 0 12px; font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.description-text { color: var(--text-dark); line-height: 1.8; white-space: pre-wrap; }
html[data-theme="dark"] .description-text { color: #cbd5e1; }

.product-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; height: fit-content; }
.sidebar-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.price-header { padding: 25px; text-align: center; border-bottom: 1px solid var(--border-soft); }
.price-text { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin: 12px 0 4px; }
.contact-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.btn-phone { background: var(--success); color: white; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 14px; border-radius: var(--radius-sm); border: none; cursor: pointer; width: 100%; font-weight: 600; text-decoration: none; }
.btn-phone:hover { background: #059669; }
.phone-info { text-align: left; }
.phone-number { display: block; font-weight: 700; }
.phone-label { display: block; font-size: 0.7rem; opacity: 0.9; }
.btn-message { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); padding: 14px; border-radius: var(--radius-sm); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.btn-message:hover { background: var(--primary); color: white; }
.section-title { background: var(--surface-2); padding: 12px; text-align: center; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1px; }
.seller-info-body { padding: 20px; }
.seller-profile { display: flex; align-items: center; gap: 15px; }
.seller-avatar { width: 52px; height: 52px; background: var(--gradient); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; flex-shrink: 0; overflow: hidden; }
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-name { font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 6px; }
.member-since { font-size: 0.8rem; color: var(--text-muted); }
.safety-tip { font-size: 0.82rem; color: var(--text-muted); text-align: center; padding: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.safety-tip i { color: var(--warning); margin-right: 5px; }

.auth-gate-container { text-align: center; padding: 10px 0; }
.login-prompt-card { padding: 20px; text-align: center; }
.lock-icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 12px; display: block; }
.prompt-text { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }

/* ─── Auth forms ─────────────────────────────────────────────────────── */
.signin-section { padding: 60px 0; min-height: 80vh; display: flex; align-items: center; }
.signin-container { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 900px; margin: 0 auto; border: 1px solid var(--border); }
.signin-image { background: var(--gradient); color: white; padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.signin-image h2 { font-size: 2rem; margin-bottom: 15px; font-weight: 800; }
.signin-perks { list-style: none; margin-top: 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.signin-perks li { display: flex; gap: 10px; align-items: center; font-size: 0.95rem; opacity: 0.9; }
.signin-perks i { color: #a5f3fc; }
.signin-form { padding: 3rem; }
.form-header h2 { font-size: 1.7rem; margin-bottom: 5px; font-weight: 800; color: var(--text-dark); }
.subtitle { color: var(--text-muted); margin-bottom: 24px; }
.auth-form .form-group { margin-bottom: 1.2rem; display: flex; flex-direction: column; }
.auth-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form input[type="tel"],
.auth-form input[type="date"],
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--surface-2);
    color: var(--text-dark);
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    text-overflow: ellipsis;
}
.auth-form input::placeholder,
.auth-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus { border-color: var(--primary); background: var(--surface); }
.auth-form input:disabled { background: var(--border-soft); color: var(--text-muted); cursor: not-allowed; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-with-icon input { width: 100%; padding: 11px 15px 11px 42px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; background: var(--surface-2); color: var(--text-dark); outline: none; box-sizing: border-box; }
.input-with-icon input::placeholder { color: var(--text-muted); opacity: 1; text-overflow: ellipsis; overflow: hidden; }
.password-wrap { position: relative; }
.eye-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px 8px; font-size: 0.95rem; }
.eye-toggle:hover { color: var(--primary); }
.btn-primary-form { width: 100%; background: var(--gradient); color: white; border: none; padding: 13px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-size: 1rem; margin-top: 10px; }
.btn-primary-form:hover { opacity: 0.92; }
.forgot-pass { display: block; text-align: right; font-size: 0.85rem; color: var(--primary); margin-top: -8px; margin-bottom: 16px; }
.link-primary { color: var(--primary); font-weight: 600; }
.auth-foot { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-top: 16px; }
.auth-foot.tiny { font-size: 0.78rem; opacity: .8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.signup-section { padding: 2.5rem 0; display: flex; justify-content: center; align-items: center; min-height: 90vh; }
.signup-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 620px; padding: 2.5rem; }
.signup-card h2 { font-size: 1.7rem; margin-bottom: 0.25rem; text-align: center; font-weight: 800; color: var(--text-dark); }

.reset-section { padding: 60px 20px; min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.reset-card { background: var(--surface); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 460px; width: 100%; border: 1px solid var(--border); text-align: center; }
.icon-box { width: 68px; height: 68px; background: var(--gradient); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 18px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--text-muted); font-size: 0.88rem; }
.back-link:hover { color: var(--primary); }

.text-danger { color: var(--danger); font-size: 0.85rem; display: block; margin-top: 4px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 500; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #854d0e; border: 1px solid #fde68a; }
html[data-theme="dark"] .alert-success { background: #052e1f; color: #86efac; border-color: #064e3b; }
html[data-theme="dark"] .alert-danger  { background: #3f1212; color: #fca5a5; border-color: #7f1d1d; }
html[data-theme="dark"] .alert-warning { background: #3a2a07; color: #fde68a; border-color: #78501a; }

/* ─── Profile (sidebar + content) ────────────────────────────────────── */
.profile-shell { display: grid; grid-template-columns: 260px 1fr; gap: 30px; margin: 30px auto; }
.profile-sidebar { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); height: fit-content; overflow: hidden; position: sticky; top: 90px; }
.ps-header { padding: 20px; background: var(--gradient); color: white; display: flex; gap: 12px; align-items: center; }
.ps-name { font-weight: 700; font-size: 0.96rem; }
.ps-email { font-size: 0.78rem; opacity: 0.85; word-break: break-all; }
.ps-nav { display: flex; flex-direction: column; padding: 8px 0; }
.ps-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--text-dark); font-size: 0.92rem; transition: background .15s; }
.ps-nav a i { width: 18px; color: var(--text-muted); }
.ps-nav a:hover { background: var(--bg-light); color: var(--primary); }
.ps-nav a:hover i { color: var(--primary); }
.ps-nav a.active { background: var(--surface-2); color: var(--primary); font-weight: 600; border-left: 3px solid var(--primary); padding-left: 15px; }
.ps-nav a.active i { color: var(--primary); }
.ps-nav a.logout { color: var(--danger); }
.ps-nav a.logout i { color: var(--danger); }
.profile-content { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 28px 32px; min-height: 400px; }
.profile-content h2 { font-size: 1.6rem; margin-bottom: 4px; font-weight: 800; color: var(--text-dark); }
.trusted-banner { margin: 20px 0; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--primary); font-size: 0.92rem; display: flex; gap: 10px; align-items: center; border-left: 4px solid var(--primary); }
.trusted-banner.muted { background: var(--bg-light); color: var(--text-muted); border-left-color: var(--secondary); }

/* Avatar upload card on profile page */
.avatar-card {
    display: flex; gap: 20px; align-items: center;
    padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface-2); margin: 20px 0 24px;
    flex-wrap: wrap;
}
.avatar-preview { flex-shrink: 0; }
.avatar-preview img {
    width: 90px; height: 90px; border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow);
}
.avatar-preview .profile-circle.xl { margin: 0; }
.avatar-body { flex: 1; min-width: 220px; }
.avatar-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--text-dark); }
.avatar-body p { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 12px; }
.avatar-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.avatar-form .file-name { font-size: 0.82rem; color: var(--text-muted); flex: 1; min-width: 100px; word-break: break-all; }
.avatar-form .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* My Ads list */
.myads-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.myad-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; background: var(--surface-2); border: 1px solid var(--border); padding: 16px; border-radius: var(--radius); align-items: center; }
.myad-row.is-sold { opacity: .6; filter: grayscale(.5); }
.myad-img img { width: 100%; height: 90px; border-radius: var(--radius-sm); object-fit: cover; }
.myad-title { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; color: var(--text-dark); }
.sold-pill { background: var(--success); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; }
.myad-meta { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }
.myad-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-top: 6px; }
.myad-actions { display: flex; flex-direction: column; gap: 6px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; color: var(--border); margin-bottom: 16px; display: block; }

/* Settings grid */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.settings-card { background: var(--surface-2); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.settings-card h3 { font-size: 1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; color: var(--text-dark); }
.settings-card p { color: var(--text-muted); font-size: 0.88rem; flex: 1; }

/* ─── Trusted Sellers page ───────────────────────────────────────────── */
.trusted-hero { background: var(--gradient); color: white; padding: 70px 0; text-align: center; }
.trusted-hero h1 { font-size: 2.4rem; margin-bottom: 8px; font-weight: 800; }
.trusted-hero p { opacity: 0.92; max-width: 620px; margin: 0 auto; }
.trusted-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.trusted-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 22px; text-align: center; text-decoration: none; color: inherit; display: block; transition: transform 0.18s, box-shadow 0.18s; }
.trusted-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.trusted-card .profile-circle { margin: 0 auto 12px; }
.trusted-name { font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-dark); }
.trusted-handle { font-size: 0.82rem; color: var(--text-muted); }
.trusted-meta { font-size: 0.78rem; color: var(--text-muted); margin: 6px 0 8px; }
.trusted-phone { font-size: 0.82rem; color: var(--primary); display: inline-flex; align-items: center; gap: 5px; }

/* Seller profile page */
.seller-profile-hero { background: var(--gradient); padding: 50px 0; color: white; }
.seller-profile-header { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.profile-circle.xl { width: 90px; height: 90px; font-size: 2.4rem; flex-shrink: 0; }
.seller-profile-info h1 { font-size: 1.9rem; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seller-profile-info h1 .trusted-tick { font-size: 1.3rem; color: #bae6fd; }
.seller-profile-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; opacity: 0.92; font-size: 0.9rem; }
.seller-profile-meta span { display: flex; align-items: center; gap: 6px; }
.seller-profile-meta a { color: white; text-decoration: underline; }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.plan-card { background: var(--surface); border-radius: var(--radius); padding: 26px; border: 2px solid var(--border); position: relative; display: flex; flex-direction: column; gap: 10px; }
.plan-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: white; font-size: 0.72rem; padding: 4px 12px; border-radius: 50px; font-weight: 700; letter-spacing: 1px; }
.plan-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.plan-perks { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.plan-perks li { font-size: 0.88rem; display: flex; gap: 10px; align-items: center; color: var(--text-dark); }
.plan-perks i { color: var(--success); }

/* Become form */
.become-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.payment-card, .form-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 26px; }
.payment-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--text-dark); }
.payment-methods { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.payment-methods li { background: var(--bg-light); padding: 8px 14px; border-radius: 50px; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 8px; color: var(--text-dark); }
.payment-account { background: var(--bg-light); border-radius: var(--radius-sm); padding: 16px; margin-top: 14px; }
.payment-account > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.92rem; }
.payment-account span { color: var(--text-muted); }
.payment-account strong { font-weight: 700; color: var(--text-dark); }
.hint { margin-top: 14px; padding: 14px; background: #fef9c3; color: #713f12; border-radius: var(--radius-sm); font-size: 0.88rem; }
html[data-theme="dark"] .hint { background: #3f2d05; color: #fde68a; }

/* ─── Admin dashboard ────────────────────────────────────────────────── */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat-card { background: var(--surface); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-lbl { color: var(--text-muted); font-size: 0.85rem; }
.admin-table { width: 100%; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 0.88rem; color: var(--text-dark); }
.admin-table th { background: var(--bg-light); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.76rem; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table code { background: var(--bg-light); padding: 2px 6px; border-radius: 4px; font-size: 0.82rem; color: var(--text-dark); }
.action-cell { display: flex; gap: 6px; }
.status-pill { padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.status-pending { background: #fef3c7; color: #854d0e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }

.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg-item { background: var(--surface); border: 1px solid var(--border); padding: 16px 20px; border-radius: var(--radius); }
.msg-item.unread { border-left: 4px solid var(--primary); background: var(--surface-2); }
.msg-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; color: var(--text-dark); }
.msg-meta { color: var(--text-muted); font-size: 0.82rem; }
.msg-subject { font-weight: 700; margin: 6px 0; color: var(--text-dark); }
.msg-body { color: var(--text-dark); font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; }
html[data-theme="dark"] .msg-body { color: #cbd5e1; }

/* ─── Contact ─────────────────────────────────────────────────────────── */
.contact-hero { background: var(--gradient); color: white; padding: 60px 0; text-align: center; }
.contact-hero h2 { font-size: 2.2rem; margin-bottom: 10px; font-weight: 800; }
.contact-section { padding: 50px 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; }
.contact-form-card { background: var(--surface); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-form-card .form-group { margin-bottom: 18px; }
.contact-form-card input, .contact-form-card textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.94rem; font-family: inherit; outline: none; background: var(--surface-2); color: var(--text-dark); box-sizing: border-box; }
.contact-form-card input::placeholder, .contact-form-card textarea::placeholder { color: var(--text-muted); opacity: 1; }
.btn-submit { background: var(--gradient); color: white; border: none; padding: 13px 30px; border-radius: var(--radius-sm); font-weight: 700; width: 100%; cursor: pointer; font-size: 1rem; }
.info-card { background: var(--surface); padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; color: var(--text-dark); }
.info-item:last-child { margin-bottom: 0; }
.info-item i { font-size: 1.2rem; color: var(--primary); margin-top: 4px; }

/* ─── Terms ──────────────────────────────────────────────────────────── */
.terms-section { padding: 40px 0; }
.terms-content { background: var(--surface); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--border); color: var(--text-dark); }
.terms-intro { margin-bottom: 2rem; padding: 1.2rem; background: var(--surface-2); border-radius: var(--radius-sm); border-left: 4px solid var(--primary); }
.terms-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.8rem 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--border); }
.terms-content ul { margin: 0.8rem 0; padding-left: 1.5rem; }
.terms-content ul li { margin-bottom: 0.6rem; color: var(--text-dark); }
.terms-agreement { margin-top: 2rem; padding: 1.2rem; background: #dcfce7; border-radius: var(--radius-sm); border-left: 4px solid var(--success); color: #166534; }
html[data-theme="dark"] .terms-agreement { background: #052e1f; color: #86efac; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer { background: var(--footer-bg); color: #cbd5e1; padding: 60px 0 20px; margin-top: 60px; }
.footer h3 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; margin-bottom: 30px; }
.footer-section h3, .footer-section h4 { margin-bottom: 14px; color: white; }
.footer-section p { color: #94a3b8; font-size: 0.92rem; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 8px; font-size: 0.92rem; color: #94a3b8; display: flex; gap: 8px; align-items: center; }
.footer-section ul li i { color: var(--accent); width: 16px; font-size: 0.85rem; }
.footer-section a { color: #94a3b8; }
.footer-section a:hover { color: white; }
.social-links { display: flex; gap: 14px; margin-top: 16px; }
.social-links a { font-size: 1.25rem; color: #94a3b8; }
.newsletter-input { width: 100%; padding: 10px; border-radius: 6px; border: none; margin-top: 10px; background: #1e293b; color: white; box-sizing: border-box; }
.newsletter-input::placeholder { color: #94a3b8; opacity: 1; }
.footer-bottom { text-align: center; padding-top: 18px; border-top: 1px solid var(--footer-border); color: #64748b; font-size: 0.88rem; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.4rem; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .signin-container { grid-template-columns: 1fr; }
    .signin-image { display: none; }
    .profile-shell { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; }
    .become-grid { grid-template-columns: 1fr; }
    .myad-row { grid-template-columns: 90px 1fr; }
    .myad-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); padding: 12px 20px; gap: 12px; border-top: 1px solid var(--border); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
    .search-bar { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2rem; }
    .laptops-filters { flex-direction: column; align-items: stretch; }
    .form-row { grid-template-columns: 1fr; }
    .admin-table { display: block; overflow-x: auto; }
}
@media (max-width: 600px) {
    .hero { padding: 60px 0 80px; }
    .form-grid { grid-template-columns: 1fr; }
    .stats { flex-direction: column; gap: 20px; margin-top: 30px; }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
    .products-grid, .laptops-grid { grid-template-columns: 1fr; }
    .profile-content { padding: 20px; }
    .signin-form, .signup-card { padding: 2rem 1.5rem; }
    .nav-wrapper { gap: 12px; }
    .logo a { font-size: 1.1rem; }
}

/* =============================================================
   Floating + Sell button + walkthrough modal
   ============================================================= */
/* Pinned variant: stays anchored below the nav regardless of scroll */
.sell-btn-float {
    position: fixed;
    top: 84px;
    right: 24px;
    z-index: 90;
}
@media (max-width: 768px) {
    .sell-btn-float { top: auto; bottom: 20px; right: 16px; }
}

.sell-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: .2px;
    cursor: pointer;
    border: 0;
    color: #fff;
    background: linear-gradient(120deg, #4F46E5, #7C3AED 55%, #EC4899);
    box-shadow: 0 6px 18px -8px rgba(124, 58, 237, .55);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    white-space: nowrap;
}
.sell-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(124, 58, 237, .65); filter: brightness(1.06); }
.sell-btn:active { transform: translateY(0); }
.sell-btn i { font-size: 0.85em; }
@media (max-width: 560px) {
    .sell-btn span { display: none; }
    .sell-btn { padding: 8px 10px; }
}

/* ── Modal shell ─────────────────────────────────────────────── */
.sell-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}
.sell-modal.is-open { display: flex; }
.sell-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 28, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: sellFade .2s ease;
}
.sell-modal-card {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: var(--surface);
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45);
    padding: 28px 28px 22px;
    animation: sellRise .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes sellFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes sellRise { from { opacity: 0; transform: translateY(10px) scale(.98) } to { opacity: 1; transform: translateY(0) scale(1) } }

.sell-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color .18s, background .18s, transform .18s;
}
.sell-modal-close:hover { color: var(--text-dark); transform: rotate(90deg); }

.sell-modal-head { text-align: center; padding: 4px 8px 18px; }
.sell-modal-badge {
    width: 52px; height: 52px;
    border-radius: 16px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #4F46E5, #7C3AED 50%, #EC4899);
    box-shadow: 0 12px 28px -10px rgba(124, 58, 237, .55);
}
.sell-modal-head h2 { margin: 0 0 6px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; color: var(--text-dark); }
.sell-modal-head p { margin: 0 auto; color: var(--text-muted); font-size: 0.95rem; max-width: 46ch; line-height: 1.5; }

/* ── Steps ───────────────────────────────────────────────────── */
.sell-steps { list-style: none; padding: 0; margin: 4px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.sell-step {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-light);
}
.sell-step-num {
    flex: 0 0 36px;
    width: 36px; height: 36px;
    border-radius: 999px;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    box-shadow: 0 6px 16px -8px rgba(124, 58, 237, .6);
}
.sell-step-body { flex: 1; min-width: 0; }
.sell-step-body h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.sell-step-body p { margin: 0 0 10px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.sell-step-body p:last-child { margin-bottom: 0; }
.sell-step-body code {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--text-dark);
}
.sell-step-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    background: linear-gradient(120deg, #4F46E5, #7C3AED 55%, #EC4899);
    text-decoration: none;
    box-shadow: 0 6px 16px -8px rgba(124, 58, 237, .55);
    transition: transform .18s, filter .18s;
}
.sell-step-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.sell-step-sub { margin-top: 10px !important; font-size: 0.82rem !important; }

.sell-hint {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(79, 70, 229, .08);
    border: 1px solid rgba(79, 70, 229, .22);
    color: var(--text-muted);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sell-hint i { color: #4F46E5; }

/* Mock "PC inspect beta" folder tile */
.sell-folder-mock {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    margin-top: 4px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px dashed var(--border);
    min-width: 130px;
}
.sell-folder-icon i {
    font-size: 2.1rem;
    color: #f5b301;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15));
}
.sell-folder-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.sell-modal-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.sell-modal-foot .btn-primary,
.sell-modal-foot .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 560px) {
    .sell-modal { padding: 16px 10px; }
    .sell-modal-card { padding: 22px 18px 18px; border-radius: 16px; }
    .sell-step { padding: 14px; }
    .sell-modal-foot { flex-direction: column-reverse; }
    .sell-modal-foot .btn-primary, .sell-modal-foot .btn-secondary { width: 100%; justify-content: center; }
}

/* lock page scroll when modal is open */
body.sell-modal-open { overflow: hidden; }
body.premium-modal-open { overflow: hidden; }

/* ─── Premium (Mark-as-premium) UI on MyAds ──────────────────────────── */
.premium-banner {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(99,102,241,.08));
    border: 1px solid rgba(59,130,246,.28);
    border-left: 4px solid #3b82f6;
    border-radius: var(--radius-sm);
    color: var(--text-dark); font-size: .92rem;
}
.premium-banner i { color: #3b82f6; font-size: 1.1rem; }
.premium-banner-warn {
    background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(234,88,12,.08));
    border-color: rgba(245,158,11,.32);
    border-left-color: #f59e0b;
}
.premium-banner-warn i { color: #f59e0b; }
.premium-banner a { color: var(--primary); font-weight: 600; margin-left: 4px; }

.premium-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; margin-left: 8px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff; border-radius: 999px;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .02em;
    vertical-align: middle;
}
.premium-pill i { font-size: .72rem; }

.btn-premium {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    border: none; color: #fff;
    box-shadow: 0 2px 8px rgba(59,130,246,.35);
}
.btn-premium:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Premium confirm modal */
.premium-modal {
    position: fixed; inset: 0;
    display: none;
    align-items: center; justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.premium-modal.is-open { display: flex; }
.premium-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.58);
    backdrop-filter: blur(3px);
}
.premium-modal-card {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh; overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    color: var(--text-dark);
}
.premium-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer;
    display: grid; place-items: center;
    transition: background .15s, color .15s;
}
.premium-modal-close:hover { background: var(--border-soft); color: var(--text-dark); }
.premium-modal-head { text-align: center; margin-bottom: 20px; }
.premium-modal-badge {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: grid; place-items: center; color: #fff;
    font-size: 1.6rem; margin: 0 auto 14px;
    box-shadow: 0 8px 20px rgba(59,130,246,.35);
}
.premium-modal-head h2 { margin: 0 0 8px; font-size: 1.4rem; }
.premium-modal-head p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.premium-modal-body { margin: 18px 0; }
.premium-target {
    padding: 10px 14px; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-weight: 600; margin-bottom: 10px; word-break: break-word;
}
.premium-slot-info {
    text-align: center; color: var(--text-muted);
    font-size: .85rem; margin-bottom: 14px;
}
.premium-slot-info #premiumRemaining { color: #3b82f6; font-weight: 700; font-size: 1rem; }
.premium-benefits {
    list-style: none; padding: 0; margin: 0 0 14px;
    display: grid; gap: 8px;
}
.premium-benefits li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .88rem; color: var(--text-dark);
}
.premium-benefits li i { color: #3b82f6; margin-top: 3px; }
.premium-last-warn {
    padding: 12px 14px;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.3);
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-sm);
    font-size: .85rem; color: var(--text-dark);
}
.premium-last-warn i { color: #f59e0b; margin-right: 6px; }
.premium-modal-foot {
    display: flex; gap: 10px; justify-content: flex-end;
    padding-top: 14px; border-top: 1px solid var(--border);
    margin: 0;
}
@media (max-width: 500px) {
    .premium-modal-card { padding: 22px 18px; border-radius: 16px; }
    .premium-modal-foot { flex-direction: column-reverse; }
    .premium-modal-foot .btn-primary, .premium-modal-foot .btn-secondary { width: 100%; justify-content: center; }
}

/* ─── Seller profile contact hint ─────────────────────────────────────── */
.seller-profile-contact-hint {
    margin-top: 14px; padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .85rem; line-height: 1.5;
    max-width: 620px;
}
.seller-profile-contact-hint i { color: var(--primary); margin-right: 6px; }

/* ─── Safety page ─────────────────────────────────────────────────────── */
.safety-hero {
    padding: 70px 0 56px;
    background:
        radial-gradient(80% 120% at 20% 10%, rgba(79,70,229,.18), transparent 60%),
        radial-gradient(80% 120% at 90% 20%, rgba(236,72,153,.14), transparent 55%),
        var(--surface-2);
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    text-align: center;
}
.safety-hero-inner { max-width: 780px; margin: 0 auto; }
.safety-hero .badge-safety {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--primary); font-size: .82rem; font-weight: 600;
    margin-bottom: 16px;
}
.safety-hero h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin: 0 0 14px; color: var(--text-dark);
    line-height: 1.15;
}
.safety-hero h1 em { font-style: normal; color: var(--primary); }
.safety-hero p {
    margin: 0 auto; max-width: 640px;
    color: var(--text-muted); font-size: 1.05rem; line-height: 1.6;
}

.safety-flow { padding: 60px 20px; }
.safety-flow .section-header { text-align: center; margin-bottom: 36px; }
.safety-flow .section-header h2 { color: var(--text-dark); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.safety-flow .section-header p { color: var(--text-muted); }

.safety-steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 16px;
    max-width: 820px; margin-inline: auto;
}
.safety-step {
    display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.safety-step:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.08); }
.safety-step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; font-weight: 800; font-size: 1.1rem;
    display: grid; place-items: center;
}
.safety-step-body h3 { margin: 0 0 6px; color: var(--text-dark); font-size: 1.1rem; }
.safety-step-body p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: .94rem; }

.safety-band {
    padding: 56px 0;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.safety-band-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.safety-pillar {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: transform .2s, border-color .2s;
}
.safety-pillar:hover { transform: translateY(-3px); border-color: var(--primary); }
.safety-pillar-icon {
    width: 54px; height: 54px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; display: grid; place-items: center;
    font-size: 1.3rem; margin: 0 auto 14px;
    box-shadow: 0 8px 18px rgba(79,70,229,.28);
}
.safety-pillar h3 { margin: 0 0 8px; color: var(--text-dark); font-size: 1.05rem; }
.safety-pillar p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: .9rem; }

.safety-checklist { padding: 60px 20px; }
.safety-checklist .section-header { text-align: center; margin-bottom: 34px; }
.safety-checklist .section-header h2 { color: var(--text-dark); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.safety-checklist .section-header p { color: var(--text-muted); }
.safety-check-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.safety-check {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.safety-check > i {
    flex: 0 0 auto;
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(79,70,229,.12);
    color: var(--primary);
    display: grid; place-items: center;
    font-size: 1rem;
}
.safety-check h4 { margin: 0 0 4px; color: var(--text-dark); font-size: 1rem; }
.safety-check p { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.55; }
.safety-check code {
    background: var(--border-soft);
    padding: 1px 6px; border-radius: 4px;
    font-size: .82em; color: var(--text-dark);
}

.safety-redflags {
    padding: 56px 0;
    background:
        radial-gradient(80% 120% at 80% 10%, rgba(239,68,68,.12), transparent 55%),
        var(--surface-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.safety-redflags .section-header { text-align: center; margin-bottom: 28px; }
.safety-redflags .section-header h2 { color: var(--text-dark); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.safety-redflags .section-header p { color: var(--text-muted); }
.safety-redflag-list {
    list-style: none; padding: 0; margin: 0 auto;
    max-width: 780px; display: grid; gap: 12px;
}
.safety-redflag-list li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-sm);
    color: var(--text-dark); font-size: .92rem; line-height: 1.55;
}
.safety-redflag-list li i { color: var(--danger); margin-top: 3px; flex: 0 0 auto; }

.safety-reporting { padding: 60px 20px; }
.safety-report-card {
    display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center;
    max-width: 820px; margin: 0 auto;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.safety-report-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; display: grid; place-items: center; font-size: 1.3rem;
}
.safety-report-card h3 { margin: 0 0 6px; color: var(--text-dark); font-size: 1.15rem; }
.safety-report-card p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: .94rem; }
.safety-report-card a { color: var(--primary); font-weight: 600; }

@media (max-width: 640px) {
    .safety-step { grid-template-columns: 44px 1fr; padding: 18px; gap: 14px; }
    .safety-step-num { width: 36px; height: 36px; font-size: .95rem; }
    .safety-report-card { grid-template-columns: 1fr; text-align: center; }
    .safety-report-icon { margin: 0 auto; }
}

/* =========================================================
   Admin console — sidebar shell, header, search, tables, pills
   ========================================================= */
.admin-shell{
    display:grid; grid-template-columns:260px 1fr; gap:24px;
    max-width:1400px; margin:24px auto; padding:0 16px; align-items:start;
}
.admin-sidebar{
    position:sticky; top:90px;
    background:var(--surface,#fff);
    border:1px solid var(--border,#e5e7eb);
    border-radius:14px; padding:14px;
    box-shadow:0 2px 10px rgba(0,0,0,.04);
}
.admin-sidebar .admin-brand{
    display:flex; align-items:center; gap:10px;
    padding:10px 10px 14px; border-bottom:1px solid var(--border,#e5e7eb);
    margin-bottom:10px; font-weight:700; color:var(--text-dark,#111827);
    font-size:15px; letter-spacing:.3px;
}
.admin-sidebar .admin-brand i{ color:var(--brand,#2563eb); font-size:18px; }
.admin-sidebar nav{ display:flex; flex-direction:column; gap:4px; }
.admin-sidebar nav a{
    display:flex; align-items:center; gap:10px;
    padding:10px 12px; border-radius:10px;
    color:var(--text-muted,#4b5563); text-decoration:none;
    font-weight:500; font-size:14px; transition:all .15s ease;
}
.admin-sidebar nav a i{ width:18px; text-align:center; color:var(--text-muted,#6b7280); }
.admin-sidebar nav a:hover{ background:var(--surface-alt,#f3f4f6); color:var(--text-dark,#111827); }
.admin-sidebar nav a.active{ background:rgba(37,99,235,.1); color:var(--brand,#2563eb); }
.admin-sidebar nav a.active i{ color:var(--brand,#2563eb); }
.admin-sidebar nav a .badge{
    margin-left:auto; background:var(--danger,#ef4444); color:#fff;
    border-radius:999px; padding:2px 8px; font-size:11px; font-weight:700;
}
.admin-sidebar .sidebar-divider{ height:1px; background:var(--border,#e5e7eb); margin:10px 4px; }
.admin-sidebar nav a.sidebar-logout{ color:var(--danger,#ef4444); }
.admin-sidebar nav a.sidebar-logout i{ color:var(--danger,#ef4444); }

.admin-main{ min-width:0; }
.admin-header{
    display:flex; align-items:flex-end; justify-content:space-between;
    gap:16px; margin-bottom:20px; flex-wrap:wrap;
}
.admin-header h1{ font-size:26px; font-weight:700; margin:0 0 4px; color:var(--text-dark,#111827); }
.admin-header p{ color:var(--text-muted,#6b7280); margin:0; font-size:14px; }

.admin-area-chip{
    display:inline-flex; align-items:center; gap:8px;
    background:rgba(37,99,235,.1); color:var(--brand,#2563eb);
    padding:6px 12px; border-radius:999px; font-weight:600; font-size:13px;
}

.admin-stats{
    display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:12px; margin-bottom:24px;
}
.stat-card{
    background:var(--surface,#fff);
    border:1px solid var(--border,#e5e7eb);
    border-radius:12px; padding:14px 16px;
    box-shadow:0 1px 3px rgba(0,0,0,.04);
    transition:transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover{ transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,.07); }
.stat-card .stat-label{
    font-size:12px; text-transform:uppercase; letter-spacing:.6px;
    color:var(--text-muted,#6b7280); font-weight:600;
    display:flex; align-items:center; gap:6px;
}
.stat-card .stat-value{
    font-size:28px; font-weight:700; color:var(--text-dark,#111827);
    margin-top:6px; line-height:1.1;
}
.stat-card.warn .stat-value{ color:var(--warning,#f59e0b); }
.stat-card.danger .stat-value{ color:var(--danger,#ef4444); }
.stat-card.ok .stat-value{ color:var(--success,#10b981); }

.admin-quick{ margin-bottom:28px; }
.admin-quick h2{ font-size:15px; font-weight:600; margin:0 0 10px; color:var(--text-muted,#4b5563); }
.admin-quick-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; }
.quick-btn{
    display:flex; align-items:center; gap:10px;
    padding:12px 14px; border-radius:10px;
    background:var(--surface,#fff); border:1px solid var(--border,#e5e7eb);
    color:var(--text-dark,#111827); text-decoration:none; font-weight:500;
    transition:all .15s ease;
}
.quick-btn:hover{ border-color:var(--brand,#2563eb); background:rgba(37,99,235,.04); }
.quick-btn i{ font-size:16px; color:var(--brand,#2563eb); width:20px; text-align:center; }

.admin-snippet{
    background:var(--surface,#fff); border:1px solid var(--border,#e5e7eb);
    border-radius:12px; padding:14px; margin-bottom:20px;
}
.admin-snippet h3{ font-size:14px; margin:0 0 10px; color:var(--text-muted,#4b5563); }

.admin-search{ display:flex; gap:10px; margin-bottom:16px; align-items:stretch; flex-wrap:wrap; }
.admin-search-input{
    flex:1; min-width:260px; position:relative;
    display:flex; align-items:center;
    background:var(--surface,#fff); border:1px solid var(--border,#e5e7eb);
    border-radius:10px; padding:0 12px;
}
.admin-search-input i{ color:var(--text-muted,#6b7280); }
.admin-search-input input{
    flex:1; border:none; outline:none; background:transparent;
    padding:10px; font-size:14px; color:var(--text-dark,#111827);
}
.admin-result-meta{ color:var(--text-muted,#6b7280); font-size:13px; margin-bottom:12px; }

.admin-table{
    width:100%; border-collapse:separate; border-spacing:0;
    background:var(--surface,#fff); border:1px solid var(--border,#e5e7eb);
    border-radius:12px; overflow:hidden;
}
.admin-table th{
    text-align:left; padding:12px 14px;
    background:var(--surface-alt,#f9fafb);
    font-size:12px; text-transform:uppercase; letter-spacing:.5px;
    color:var(--text-muted,#6b7280); font-weight:600;
    border-bottom:1px solid var(--border,#e5e7eb);
}
.admin-table td{
    padding:12px 14px; border-bottom:1px solid var(--border,#f3f4f6);
    font-size:14px; color:var(--text-dark,#111827); vertical-align:middle;
}
.admin-table tr:last-child td{ border-bottom:none; }
.admin-table tr.is-blocked-row td{ background:rgba(239,68,68,.04); }
.action-cell{ white-space:nowrap; display:flex; gap:6px; flex-wrap:wrap; }

.u-name{ display:flex; align-items:center; gap:10px; }
.u-ava{
    width:36px; height:36px; border-radius:50%;
    background:var(--brand,#2563eb); color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-weight:700; font-size:14px; overflow:hidden; flex-shrink:0;
}
.u-ava img{ width:100%; height:100%; object-fit:cover; }
.u-display{ font-weight:600; color:var(--text-dark,#111827); }
.u-muted{ color:var(--text-muted,#6b7280); font-size:12px; }

.status-pill{
    display:inline-flex; align-items:center; gap:4px;
    padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600;
    background:var(--surface-alt,#f3f4f6); color:var(--text-muted,#4b5563);
}
.status-pill.status-pending{ background:rgba(245,158,11,.12); color:#b45309; }
.status-pill.status-approved,.status-pill.status-active{ background:rgba(16,185,129,.12); color:#047857; }
.status-pill.status-rejected,.status-pill.status-blocked{ background:rgba(239,68,68,.12); color:#b91c1c; }
.status-pill.status-trusted{ background:rgba(37,99,235,.12); color:#1d4ed8; }
.status-pill.status-open{ background:rgba(245,158,11,.12); color:#b45309; }
.status-pill.status-dismissed{ background:rgba(107,114,128,.12); color:#374151; }
.status-pill.status-actioned{ background:rgba(239,68,68,.12); color:#b91c1c; }

.btn-success{ background:var(--success,#10b981); color:#fff; border:none; padding:8px 14px; border-radius:8px; cursor:pointer; font-weight:600; }
.btn-success.small{ padding:6px 10px; font-size:12px; }
.btn-success:hover{ filter:brightness(1.08); }
.btn-danger{ background:var(--danger,#ef4444); color:#fff; border:none; padding:8px 14px; border-radius:8px; cursor:pointer; font-weight:600; }
.btn-danger.small{ padding:6px 10px; font-size:12px; }
.btn-danger:hover{ filter:brightness(1.08); }
.btn-secondary.small{ padding:6px 10px; font-size:12px; }
.btn-link-danger{ background:none; border:none; color:var(--danger,#ef4444); cursor:pointer; font-size:12px; padding:4px 0; }
.btn-link-danger:hover{ text-decoration:underline; }

.report-list{ display:flex; flex-direction:column; gap:12px; }
.report-card{
    background:var(--surface,#fff); border:1px solid var(--border,#e5e7eb);
    border-radius:12px; padding:16px;
}
.report-card.status-open{ border-left:4px solid var(--warning,#f59e0b); }
.report-card.status-dismissed{ border-left:4px solid #9ca3af; opacity:.8; }
.report-card.status-actioned{ border-left:4px solid var(--danger,#ef4444); }
.report-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:10px; flex-wrap:wrap; }
.report-parties{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:14px; }
.report-who{ color:var(--text-muted,#6b7280); }
.report-seller{ color:var(--brand,#2563eb); text-decoration:none; font-weight:600; }
.report-seller:hover{ text-decoration:underline; }
.report-sep{ color:var(--text-muted,#9ca3af); font-size:12px; }
.report-time{ font-size:12px; color:var(--text-muted,#9ca3af); margin-top:2px; }
.report-comment{
    margin:10px 0; padding:10px 14px; background:var(--surface-alt,#f9fafb);
    border-left:3px solid var(--border,#d1d5db);
    font-style:italic; color:var(--text-dark,#111827); border-radius:0 6px 6px 0;
}
.report-ad{ font-size:13px; margin-bottom:8px; }
.report-ad a{ color:var(--brand,#2563eb); text-decoration:none; }
.report-actions{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.report-reviewed{ font-size:12px; color:var(--text-muted,#6b7280); margin-top:8px; }

.msg-list{ display:flex; flex-direction:column; gap:10px; }
.msg-item{ background:var(--surface,#fff); border:1px solid var(--border,#e5e7eb); border-radius:10px; padding:14px; }
.msg-item.unread{ border-left:4px solid var(--brand,#2563eb); background:rgba(37,99,235,.03); }
.msg-head{ display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:4px; }
.msg-meta{ color:var(--text-muted,#6b7280); font-size:12px; }
.msg-subject{ font-weight:600; margin-bottom:6px; color:var(--text-dark,#111827); }
.msg-body{ color:var(--text-muted,#4b5563); margin:0 0 10px; line-height:1.5; white-space:pre-wrap; }

/* Seller profile: comments + report */
.comments-section .section-header h2 i{ color:var(--brand,#2563eb); margin-right:6px; }
.comment-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.comment-item{
    background:var(--surface,#fff); border:1px solid var(--border,#e5e7eb);
    border-radius:10px; padding:12px 14px;
    display:flex; flex-direction:column; gap:6px; position:relative;
}
.comment-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.comment-author{ color:var(--brand,#2563eb); font-weight:600; text-decoration:none; display:inline-flex; align-items:center; gap:6px; font-size:14px; }
.comment-author:hover{ text-decoration:underline; }
.comment-time{ font-size:12px; color:var(--text-muted,#9ca3af); }
.comment-body{ margin:0; color:var(--text-dark,#111827); line-height:1.5; white-space:pre-wrap; }
.comment-delete-form{ margin-top:4px; }
.comment-form{
    margin-top:18px; background:var(--surface,#fff);
    border:1px solid var(--border,#e5e7eb); border-radius:12px; padding:14px;
    display:flex; flex-direction:column; gap:10px;
}
.comment-form label{ font-weight:600; color:var(--text-dark,#111827); font-size:14px; }
.comment-form textarea, .report-form textarea{
    width:100%; resize:vertical; padding:10px 12px;
    border:1px solid var(--border,#d1d5db); border-radius:8px;
    background:var(--surface,#fff); color:var(--text-dark,#111827);
    font-family:inherit; font-size:14px; line-height:1.5;
}
.comment-form textarea:focus, .report-form textarea:focus{
    outline:none; border-color:var(--brand,#2563eb); box-shadow:0 0 0 3px rgba(37,99,235,.15);
}
.comment-form-actions, .report-form-actions{
    display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
}

.report-section{ margin-top:20px; }
.report-toggle{ background:var(--surface,#fff); border:1px solid var(--border,#e5e7eb); border-radius:12px; padding:4px 14px; }
.report-toggle summary{
    cursor:pointer; padding:12px 0; font-weight:600;
    color:var(--danger,#ef4444); list-style:none;
    display:flex; align-items:center; gap:8px;
}
.report-toggle summary::-webkit-details-marker{ display:none; }
.report-toggle[open]{ padding-bottom:14px; }
.report-form{ display:flex; flex-direction:column; gap:10px; padding-top:6px; }
.report-form label{ font-weight:600; color:var(--text-dark,#111827); font-size:14px; }

.flash{ padding:10px 14px; border-radius:8px; margin-bottom:14px; display:flex; align-items:center; gap:8px; font-size:14px; }
.flash-success{ background:rgba(16,185,129,.12); color:#047857; border:1px solid rgba(16,185,129,.3); }
.flash-error{ background:rgba(239,68,68,.12); color:#b91c1c; border:1px solid rgba(239,68,68,.3); }

@media (max-width: 900px){
    .admin-shell{ grid-template-columns:1fr; }
    .admin-sidebar{ position:static; }
    .admin-sidebar nav{ flex-direction:row; flex-wrap:wrap; gap:6px; }
    .admin-sidebar nav a{ flex:1 1 auto; min-width:130px; }
}

html[data-theme="dark"] .admin-sidebar,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .admin-table,
html[data-theme="dark"] .admin-search-input,
html[data-theme="dark"] .admin-snippet,
html[data-theme="dark"] .quick-btn,
html[data-theme="dark"] .report-card,
html[data-theme="dark"] .msg-item,
html[data-theme="dark"] .comment-item,
html[data-theme="dark"] .comment-form,
html[data-theme="dark"] .report-toggle{
    background:#1f2937; border-color:#374151;
}
html[data-theme="dark"] .admin-sidebar nav a{ color:#d1d5db; }
html[data-theme="dark"] .admin-sidebar nav a:hover{ background:#374151; color:#fff; }
html[data-theme="dark"] .admin-table th{ background:#111827; color:#9ca3af; border-color:#374151; }
html[data-theme="dark"] .admin-table td{ color:#e5e7eb; border-color:#374151; }
html[data-theme="dark"] .admin-table tr.is-blocked-row td{ background:rgba(239,68,68,.08); }
html[data-theme="dark"] .stat-card .stat-value,
html[data-theme="dark"] .u-display,
html[data-theme="dark"] .msg-subject,
html[data-theme="dark"] .comment-body,
html[data-theme="dark"] .report-comment{ color:#f3f4f6; }
html[data-theme="dark"] .report-comment{ background:#111827; border-left-color:#4b5563; }
html[data-theme="dark"] .comment-form textarea,
html[data-theme="dark"] .report-form textarea,
html[data-theme="dark"] .admin-search-input input{ background:#111827; color:#f3f4f6; border-color:#374151; }

/* =========================================================
   Brand logo swap (header + homepage CTA lockup)
   Default theme is dark (<html data-theme="dark">) — show dark variant.
   When data-theme is "light" (or absent via the layout script setting
   dark as default), we show the light-bg variant.
   ========================================================= */
.brand-link{
    display:inline-flex; align-items:center; gap:0;
    line-height:0; text-decoration:none;
}
.brand-logo{
    height:64px; width:auto; display:block;
    /* horizontal svg viewBox is 460x140 → aspect ~3.29:1 */
}
@media (max-width: 1200px){
    .brand-logo{ height:58px; }
}
@media (max-width: 1000px){
    .brand-logo{ height:50px; }
}
@media (max-width: 720px){
    .brand-logo{ height:42px; }
}

/* Single-line nav bar: balanced width so logo + sign-in sit comfortably
   inset from the screen edges, nothing wraps, bar stays compact. */
.header .container{ max-width:1240px; padding:0 32px; }
.header .nav-wrapper{ gap:18px; padding:6px 0; align-items:center; }
.header .nav-menu{ gap:18px; flex-wrap:nowrap; }
.header .nav-menu a{ white-space:nowrap; }
.header .search-bar{ flex:0 1 240px; max-width:240px; }
.header .user-actions{ gap:10px; flex-shrink:0; }
.header .user-actions .btn-primary{ white-space:nowrap; padding:8px 20px; }

/* Light theme: show the "light-bg" logo (dark strokes on light surface),
   hide the "dark-bg" one. */
.brand-logo-dark{ display:none; }
.brand-logo-light{ display:block; }

/* Dark theme: flip */
html[data-theme="dark"] .brand-logo-light{ display:none; }
html[data-theme="dark"] .brand-logo-dark{ display:block; }

/* Homepage CTA brand lockup — same swap rules, larger size, centered */
.cta-brand{
    display:flex; justify-content:center; align-items:center;
    margin:0 auto 18px; line-height:0;
}
.brand-lockup{
    height:72px; width:auto; max-width:90%;
    display:block;
    filter:drop-shadow(0 4px 20px rgba(0,0,0,.12));
}
.brand-lockup-dark{ display:none; }
.brand-lockup-light{ display:block; }
html[data-theme="dark"] .brand-lockup-light{ display:none; }
html[data-theme="dark"] .brand-lockup-dark{ display:block; }

@media (max-width: 720px){
    .brand-lockup{ height:52px; }
}
