/* BID shared app styles. Reused by index, auth, account and admin pages. */
:root {
  --navy: #071b42; --blue: #0755c9; --red: #e21d3b; --ink: #13213c; --muted: #6c7890;
  --line: #e5eaf2; --soft: #f4f7fb; --white: #fff; --ok: #12805c; --warn: #b7791f;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f7f9fc; font-family: "DM Sans", system-ui, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.topline { height: 5px; background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 66%, var(--blue) 66%); }
header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav { max-width: 1240px; margin: auto; min-height: 76px; padding: 10px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: "Space Grotesk", system-ui, sans-serif; font-size: 21px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; font-size: 15px; border-radius: 10px 3px 10px 3px; background: var(--red); box-shadow: 7px 7px 0 #dbe7fa; }
.brand small { display: block; color: var(--red); font-family: "DM Sans", sans-serif; font-size: 9px; letter-spacing: .16em; }
.main-nav { display: flex; gap: 22px; margin-right: auto; flex-wrap: wrap; }
.main-nav a { color: #66738a; font-size: 14px; text-decoration: none; }
.main-nav a:hover { color: var(--blue); }
.actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.demo-indicator { padding: 5px 8px; border: 1px solid #e9c774; border-radius: 5px; color: #855c08; background: #fff8e5; font-size: 9px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.link-btn { border: 0; background: none; color: var(--navy); font-weight: 700; cursor: pointer; text-decoration: none; }
.primary { border: 0; color: #fff; background: var(--red); border-radius: 8px; padding: 12px 17px; font-weight: 700; cursor: pointer; box-shadow: 0 7px 18px #e21d3b2e; text-decoration: none; display: inline-block; }
.primary:hover { background: #bf1230; }
.primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.ghost { border: 1px solid var(--line); color: var(--muted); background: #fff; border-radius: 8px; padding: 11px 15px; cursor: pointer; text-decoration: none; display: inline-block; }
.hero { background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.hero:after { content: ""; position: absolute; inset: 0 0 0 55%; background: linear-gradient(135deg, transparent, #0d3672); transform: skewX(-18deg); transform-origin: bottom; }
.hero-inner { max-width: 1240px; margin: auto; min-height: 300px; padding: 56px 24px; position: relative; z-index: 1; }
.hero-kicker { color: #ffb3be; letter-spacing: .13em; font-size: 12px; font-weight: 700; }
.hero h1 { max-width: 640px; margin: 14px 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(32px, 5vw, 58px); line-height: 1.04; letter-spacing: -.04em; }
.hero h1 span { color: #ff596f; }
.hero-copy { max-width: 620px; color: #c9d5ec; line-height: 1.65; font-size: 15px; }
.hero-actions { display: flex; align-items: center; gap: 9px; margin-top: 24px; flex-wrap: wrap; }.hero-ghost { color: #fff; border-color: #536789; background: transparent; }.proposal-link { color: #ffb3be; font-size: 11px; font-weight: 700; }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stat { border-left: 2px solid var(--red); padding-left: 12px; }
.hero-stat strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 21px; }
.hero-stat small { color: #9eafd0; font-size: 11px; }
main { max-width: 1240px; margin: auto; padding: 30px 24px 70px; }
.eyebrow { color: var(--red); font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-family: "Space Grotesk", sans-serif; font-size: 27px; margin-top: 5px; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.mode { padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: #fff; display: flex; gap: 15px; align-items: flex-start; }
.mode-icon { display: grid; place-items: center; min-width: 39px; height: 39px; color: #fff; border-radius: 10px; font-size: 19px; background: var(--blue); }.mode-icon.live { background: var(--red); }.mode-icon.direct { background: var(--ok); }
.mode h3 { font-family: "Space Grotesk", sans-serif; font-size: 16px; }
.mode p { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 5px; }
.mode-link { display: inline-block; color: var(--blue); font-size: 11px; font-weight: 800; margin-top: 10px; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; flex-wrap: wrap; }
.search { display: flex; align-items: center; flex: 1; max-width: 365px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 0 13px; }
.search span { color: var(--muted); font-size: 21px; }
.search input { width: 100%; border: 0; outline: 0; padding: 12px 8px; color: var(--ink); background: none; }
.sort { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 12px; color: var(--muted); }
.categories { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: thin; max-width: 100%; }
.cat { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: #5e6c84; border-radius: 30px; padding: 9px 15px; cursor: pointer; font-size: 12px; font-weight: 600; }
.cat.active, .cat:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.listing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card, .direct-card { border: 1px solid var(--line); overflow: hidden; border-radius: 12px; background: #fff; transition: .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #102e6314; }
.card-image, .direct-card-image { position: relative; background: #e9eef5; overflow: hidden; aspect-ratio: 4 / 3; }
.card-image img, .direct-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.badge { position: absolute; top: 11px; left: 11px; padding: 5px 8px; border-radius: 5px; color: #fff; background: var(--red); font-size: 10px; font-weight: 700; }
.badge.blue { background: var(--blue); }
.badge.live-badge { background: var(--red); }.badge.open-badge { background: var(--blue); }.direct-card-body { position: relative; }.direct-card-body .direct-badge { position: static; display: inline-block; width: fit-content; background: var(--ok); }
.badge.ok { background: var(--ok); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3, .direct-card h3 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: "Space Grotesk", sans-serif; font-size: 15px; }
.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; gap: 8px; }
.price-row { display: flex; justify-content: space-between; align-items: end; margin-top: auto; gap: 8px; min-height: 46px; }
.price-row small { display: block; color: var(--muted); font-size: 10px; }
.price { color: var(--navy); font-family: "Space Grotesk", sans-serif; font-size: 19px; font-weight: 700; }
.card-action { border: 0; background: #edf4ff; color: var(--blue); border-radius: 6px; padding: 8px 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
.card-action:hover { background: var(--blue); color: #fff; }
.card-action.win { background: var(--red); color: #fff; }
.empty { grid-column: 1/-1; text-align: center; padding: 50px; color: var(--muted); background: #fff; border: 1px dashed #c9d2e2; border-radius: 12px; }
.trust-section { max-width: 1240px; margin: 0 auto 38px; padding: 28px 24px 32px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }.trust-inner h2 { margin: 5px 0 16px; font-family: "Space Grotesk", sans-serif; font-size: 27px; }.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.trust-grid article { padding: 14px; border-left: 3px solid var(--blue); background: var(--soft); }.trust-grid strong, .trust-grid span { display: block; }.trust-grid strong { font-size: 12px; }.trust-grid span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 20px; flex-wrap: wrap; }
.pagination button { min-width: 34px; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 6px; padding: 8px 10px; cursor: pointer; font-size: 11px; }
.pagination button.active, .pagination button:hover { border-color: var(--blue); color: #fff; background: var(--blue); }
.pagination button:disabled { cursor: not-allowed; opacity: .45; }
.direct-section { max-width: 1240px; margin: 0 auto 38px; padding: 26px 24px 31px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.direct-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.direct-head h2 { margin-top: 5px; font-family: "Space Grotesk", sans-serif; font-size: 27px; }
.direct-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.direct-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.direct-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.direct-price { color: var(--red); font-family: "Space Grotesk", sans-serif; font-size: 19px; font-weight: 700; }
.buy-button { width: 100%; border: 0; color: #fff; background: var(--blue); border-radius: 6px; padding: 10px; font-size: 12px; font-weight: 700; cursor: pointer; margin-top: auto; }
.buy-button:hover { background: var(--navy); }
.buy-button:disabled { background: #94a3bc; cursor: not-allowed; }
footer { background: var(--navy); color: #aebbd3; padding: 28px 24px; font-size: 12px; }
.footer-inner { max-width: 1240px; margin: auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer strong { color: #fff; font-family: "Space Grotesk", sans-serif; }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(480px, calc(100% - 28px)); box-shadow: 0 25px 80px #071b4266; color: var(--ink); }
dialog::backdrop { background: #071b4285; backdrop-filter: blur(3px); }
.modal { padding: 26px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; gap: 12px; }
.modal-head h2 { font-family: "Space Grotesk", sans-serif; }
.close { border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-info { display: flex; gap: 13px; padding: 14px; background: var(--soft); border-radius: 8px; margin-bottom: 19px; }
.modal-info img { width: 75px; height: 55px; object-fit: cover; border-radius: 5px; }
.modal-info strong { display: block; font-size: 14px; }
.modal-info small { color: var(--muted); }
.field { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.field input, .field select { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 7px; padding: 12px; outline: none; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--blue); }
.modal-actions, .staff-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.payment-note { color: #6b7890; font-size: 11px; line-height: 1.5; margin-top: 10px; }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 340px; color: #fff; background: var(--navy); border-left: 4px solid var(--red); border-radius: 8px; padding: 14px 16px; font-size: 13px; box-shadow: 0 10px 30px #071b4240; transform: translateY(120px); opacity: 0; transition: .25s; z-index: 30; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-left-color: #ffb020; }
.toast.ok { border-left-color: #46e0a0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.form-field.full { grid-column: 1/-1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 7px; outline: 0; padding: 11px; color: var(--ink); background: #fff; }
.form-field textarea { min-height: 82px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-field .err { color: var(--red); font-weight: 500; margin-top: 4px; display: block; }
.required { color: var(--red); }
.form-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 6px 0 20px; }
.staff-form { padding: 26px; }
.staff-form h2 { font-family: "Space Grotesk", sans-serif; margin-top: 4px; }
.boss-list { max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.boss-row { display: grid; grid-template-columns: 1fr 140px; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.boss-row:last-child { border-bottom: 0; }
.boss-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.boss-row input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px; color: var(--ink); }
.capture-box { display: flex; align-items: center; gap: 13px; grid-column: 1/-1; padding: 11px; background: var(--soft); border: 1px dashed #bdc9dc; border-radius: 8px; flex-wrap: wrap; }
.capture-preview { width: 92px; height: 68px; display: grid; place-items: center; overflow: hidden; border-radius: 5px; color: #8994a8; background: #e5ebf3; font-size: 11px; text-align: center; }
.capture-preview img { width: 100%; height: 100%; object-fit: cover; }
.capture-box small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 3px; }
.news-section { margin: 0 auto 38px; padding: 28px 24px 34px; max-width: 1240px; background: #fff; border-top: 4px solid var(--red); }
.news-masthead { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid #17233a; padding-bottom: 13px; margin-bottom: 13px; flex-wrap: wrap; }
.news-masthead h2 { color: #111827; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 43px); letter-spacing: -.04em; }
.news-masthead h2 span { color: var(--red); }
.news-masthead p { color: #707886; font-size: 11px; text-align: right; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); gap: 25px; }
.news-lead { display: grid; grid-template-columns: 1.03fr 1fr; gap: 20px; border-bottom: 1px solid #dfe2e8; padding-bottom: 20px; }
.news-lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-kicker { color: var(--red); font-size: 10px; letter-spacing: .09em; font-weight: 700; text-transform: uppercase; }
.news-lead h3 { color: #111827; font-family: Georgia, serif; font-size: clamp(22px, 3vw, 32px); line-height: 1.1; margin: 9px 0; }
.news-lead p { color: #6b7280; font-size: 12px; line-height: 1.55; }
.news-byline { color: #9299a5; font-size: 10px; margin-top: 15px; }
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 18px; }
.news-item { display: grid; grid-template-columns: 92px 1fr; gap: 11px; min-width: 0; }
.news-item img { width: 92px; aspect-ratio: 4 / 3; object-fit: cover; }
.news-item h4 { color: #172033; font-family: Georgia, serif; font-size: 15px; line-height: 1.15; margin: 4px 0; }
.news-item small { color: #9097a4; font-size: 10px; }
.news-sidebar { border-left: 1px solid #e1e4e9; padding-left: 20px; }
.news-sidebar h3 { padding-bottom: 10px; border-bottom: 3px solid var(--red); font-family: Georgia, serif; font-size: 20px; }
.trend { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid #e5e7eb; }
.trend strong { color: var(--red); font-family: Georgia, serif; font-size: 22px; }
.trend a { color: #1e293b; font-family: Georgia, serif; font-size: 14px; line-height: 1.25; text-decoration: none; }
.rss-source { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0 0; color: #7b8491; font-size: 10px; }
.rss-source a { color: var(--blue); font-weight: 700; }
.notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 13px; border: 1px solid var(--line); background: #fff; }
.notice.ok { border-color: #b7e6d2; background: #f0fbf6; color: #0d6b4b; }
.notice.error { border-color: #f3c4cd; background: #fdf1f3; color: #a4122c; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 22px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; }
.listing-toolbar { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 10px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.listing-toolbar .form-field { gap: 5px; }
.listing-toolbar input, .listing-toolbar select { min-width: 0; }
.listing-create-dialog { width: min(860px, calc(100% - 24px)); max-height: min(900px, calc(100vh - 24px)); padding: 0; border: 0; border-radius: 14px; background: transparent; }.listing-create-dialog::backdrop { background: #071b4285; backdrop-filter: blur(3px); }.listing-create-dialog > .panel { margin: 0; max-height: calc(100vh - 24px); overflow-y: auto; }.camera-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 7px; }.camera-actions small { color: var(--muted); font-weight: 400; }
.neuralops-section { background: #111a2b; color: #fff; padding: 72px 24px; }
.neuralops-inner { max-width: 1160px; margin: 0 auto; }
.neuralops-section .eyebrow { color: #8de9f4; }
.neuralops-section h2 { max-width: 680px; margin: 8px 0 12px; color: #fff; font-size: clamp(30px, 4vw, 54px); line-height: 1; letter-spacing: -.055em; }
.neuralops-intro { max-width: 680px; color: #b9c5d7; font-size: 17px; }
.neuralops-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; margin: 34px 0 24px; }
.neuralops-flow > div { padding: 18px; border: 1px solid #33425e; border-radius: 12px; background: #18243a; }
.neuralops-flow strong, .neuralops-flow small { display: block; }.neuralops-flow small { margin-top: 5px; color: #aebbd0; font-size: 11px; }.neuralops-flow > span { color: #8de9f4; font-size: 25px; }
.neuralops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.neuralops-grid article { padding: 22px; border: 1px solid #33425e; border-radius: 12px; background: #151f33; }.neuralops-grid span { color: #8de9f4; font-weight: 800; font-size: 12px; }.neuralops-grid h3 { margin: 8px 0 5px; color: #fff; }.neuralops-grid p { margin: 0; color: #b9c5d7; font-size: 13px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; padding: 5px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; position: sticky; top: 8px; z-index: 4; }
.admin-tab { border: 0; border-radius: 7px; padding: 10px 14px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.admin-tab:hover, .admin-tab.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px #102e6314; }
.admin-section[hidden] { display: none; }
.ops-alert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.ops-alert { display: grid; gap: 4px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.ops-alert strong { color: var(--red); font-family: 'Space Grotesk', sans-serif; font-size: 28px; line-height: 1; }
.ops-alert span, .ops-alert a { font-size: 12px; }.ops-alert span { color: var(--muted); }.ops-alert a { color: var(--blue); font-weight: 700; margin-top: 5px; }
.ops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.ops-grid h4 { margin: 0 0 10px; font-size: 14px; }.ops-list { display: grid; gap: 7px; }.ops-list > a, .ops-list > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 11px; }.ops-list > a:hover { border-color: var(--blue); }.ops-list b { color: var(--navy); }.ops-list span { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }.ops-list small { color: var(--red); font-weight: 700; }
.admin-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.chart-card { margin-bottom: 0; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.chart-head h3 { margin-top: 3px; }
.chart-head > strong { color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: 24px; }
.bar-chart { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 24px; align-items: center; gap: 8px; font-size: 11px; }
.bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.bar-row > b { color: var(--navy); text-align: right; }
.bar-track { height: 9px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.bar-track i { display: block; height: 100%; min-width: 5px; border-radius: inherit; background: var(--blue); }
.bar-track i.order-bar { background: var(--red); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; background: var(--soft); color: var(--muted); }
.pill.active { background: #e5f6ee; color: #0d6b4b; }
.pill.ended, .pill.withdrawn, .pill.cancelled { background: #fdecef; color: #a4122c; }
.pill.sold, .pill.paid { background: #eaf1ff; color: #12409c; }
.pill.draft, .pill.pending { background: #fdf3e2; color: #8a5a00; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.auth-wrap { max-width: 440px; margin: 48px auto; padding: 0 20px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 18px 50px #102e6312; }
.auth-card h1 { font-family: "Space Grotesk", sans-serif; font-size: 26px; margin: 6px 0 4px; }
.auth-card p.sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--soft); padding: 5px; border-radius: 10px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 7px; cursor: pointer; font-weight: 700; color: var(--muted); font-size: 13px; }
.tabs button.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px #102e6314; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat-card strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 26px; color: var(--navy); }
.stat-card small { color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.edit-images { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.edit-thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.edit-thumb img { width: 84px; height: 63px; object-fit: cover; border-radius: 5px; }
.edit-thumb input { margin: 0; }

@media (max-width: 1000px) {
  .listing-grid, .direct-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .listing-toolbar { grid-template-columns: repeat(2, 1fr); }
  .admin-charts { grid-template-columns: 1fr; }
  .ops-alert-grid, .ops-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { border-left: 0; border-top: 1px solid #e1e4e9; padding: 20px 0 0; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .nav { padding: 10px 16px; }
  .hero-inner { padding: 40px 18px; }
  main { padding: 24px 16px 55px; }
  .mode-grid, .form-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-field.full, .capture-box { grid-column: auto; }
  .listing-grid, .direct-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .direct-section, .news-section { border-radius: 0; }
  .news-masthead { flex-direction: column; align-items: start; gap: 6px; }
  .news-masthead p { text-align: left; }
  .news-lead { grid-template-columns: 1fr; }
  .listing-toolbar { grid-template-columns: 1fr; }
  .news-list { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .neuralops-flow, .neuralops-grid { grid-template-columns: 1fr; }
  .neuralops-flow > span { transform: rotate(90deg); justify-self: center; }
  .footer-inner { flex-direction: column; }
}
