/* =========================================================================
   Veftor — components (loaded after main.css, uses its tokens)
   ========================================================================= */

/* ---- Utilities ------------------------------------------------------ */
.muted { color: var(--slate-light); }
.mb-0 { margin-bottom: 0 !important; }
.gap-12 { gap: 12px; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.pre-wrap { white-space: pre-wrap; }
.strong { font-weight: 650; color: var(--ink); }
.narrow { max-width: 820px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 650; }
.skip-link:focus { left: 12px; }
.link { color: var(--gold-dark); font-weight: 600; }
.link:hover { text-decoration: underline; }
.link-sm { color: var(--gold-dark); font-weight: 600; font-size: 0.88rem; }
.link-sm:hover { text-decoration: underline; }
.h-sm { font-size: 1.12rem; margin-bottom: 14px; }
.num { text-align: right; }
.neg { color: var(--danger); }
.pos { color: var(--success); }
.show-sm { display: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; background: var(--gold-tint); padding: 2px 6px; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
:focus-visible { outline: 3px solid rgba(217, 164, 65, 0.55); outline-offset: 2px; }
.card + .card { margin-top: 20px; }
.card { margin-bottom: 0; }
.card.unread { border-left: 4px solid var(--gold); }
.w50 { width: 50%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }

/* ---- Buttons & forms extras ---------------------------------------- */
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a93826; }
.btn-danger-text { color: var(--danger) !important; }
.btn-google { gap: 10px; background: #fff; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.form-card-wide { max-width: 640px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.field legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--ink); padding: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--slate); cursor: pointer; margin: 6px 0; }
.check input { margin-top: 4px; accent-color: var(--gold-dark); width: 16px; height: 16px; flex: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 14px; }
.toggle-row { padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.toggle-row .hint { font-size: 0.82rem; color: var(--slate-light); }
.radio-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 8px; cursor: pointer; font-size: 0.93rem; background: #fff; }
.radio-row span { margin-left: auto; font-weight: 650; color: var(--ink); }
.radio-row:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); }
.radio-row input { accent-color: var(--gold-dark); }
.radio-card span strong { display: block; color: var(--ink); margin-bottom: 3px; }
.radio-card .hint { display: block; font-size: 0.82rem; color: var(--slate-light); line-height: 1.45; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.role-grid-2 { grid-template-columns: repeat(2, 1fr); }
.inline-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-form input { max-width: 170px; padding: 8px 10px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--slate-light); font-size: 0.85rem; }
.or-line::before, .or-line::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.char-count { font-size: 0.78rem; color: var(--slate-light); text-align: right; margin-top: 4px; }
.char-count.over { color: var(--danger); font-weight: 650; }

/* ---- Alerts, badges, tags, pills ------------------------------------ */
.alert-info { background: #eef1fb; color: #2f3b6b; }
.alert a { font-weight: 650; text-decoration: underline; }
.flash-wrap { margin-bottom: 18px; }
.badge-info { background: #e8ecfb; color: #34408a; }
.pill-neutral { background: rgba(20, 18, 31, 0.06); color: var(--slate); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #f1eee8; color: var(--slate); font-size: 0.78rem; font-weight: 600; border: 1px solid transparent; }
a.tag:hover { border-color: var(--gold); color: var(--ink); }
.tag-verified { background: var(--success-tint); color: var(--success); }
.tag-warn { background: var(--warn-tint); color: var(--warn); }
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: #d9d4ca; }

/* ---- Public page scaffolding ---------------------------------------- */
.page-head { background: linear-gradient(180deg, #f3efe7 0%, var(--paper) 100%); padding: 44px 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; color: var(--slate-light); margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold-dark); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { margin: 0 auto; }
.band { background: #f3efe7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-cta { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 32px; margin: 36px 0; }
.band-cta h2, .band-cta h3 { color: #fff; }
.band-cta p { color: rgba(255, 255, 255, 0.72); }
.hero-sm { padding: 64px 0 56px !important; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero-points li { color: rgba(255, 255, 255, 0.8); padding-left: 28px; position: relative; }
.hero-points li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; font-weight: 550; color: var(--slate); transition: all .15s ease; }
.chip:hover, .chip.on { border-color: var(--gold); color: var(--ink); background: var(--gold-tint); }
.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-m); }
.empty-sm { padding: 28px 16px; border: 0; background: transparent; }
.empty p { margin: 0 auto 16px; }
.list-check { list-style: none; padding: 0; }
.list-check li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.list-check li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.big-404 { font-family: 'Sora', sans-serif; font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--gold); opacity: 0.9; margin-bottom: 12px; }
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--gold-dark); line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; }
.compare { width: 100%; background: #fff; border-radius: var(--radius-m); overflow: hidden; }
.compare th, .compare td { text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no { color: var(--slate-light); }
.searchbar { display: flex; gap: 8px; max-width: 560px; margin-top: 16px; }
.searchbar input { flex: 1; }

/* ---- Homepage demo & strips ---------------------------------------- */
.order-demo { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow-lift); color: #fff; }
.order-demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.order-demo-rows { display: grid; gap: 10px; }
.od-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: rgba(255, 255, 255, 0.04); border-radius: var(--radius-s); font-size: 0.9rem; }
.od-line span:first-child { color: rgba(255, 255, 255, 0.6); }
.order-demo-article { margin-top: 14px; padding: 14px; border-radius: var(--radius-s); background: #fff; color: var(--slate); font-size: 0.85rem; line-height: 1.55; }
.od-anchor { color: #1a56db; text-decoration: underline; font-weight: 600; }
.od-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.od-vector { position: absolute; pointer-events: none; opacity: 0.12; }
.tool-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; transition: transform .15s ease, box-shadow .15s ease; }
.tool-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-mini strong { display: block; color: var(--ink); margin: 6px 0 4px; }
.tool-mini small { color: var(--slate-light); font-size: 0.84rem; line-height: 1.45; display: block; }
.publisher-band { background: var(--ink); color: #fff; }
.publisher-band h2, .publisher-band h3 { color: #fff; }
.publisher-band p { color: rgba(255, 255, 255, 0.7); }
.publisher-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }

/* ---- Marketplace ----------------------------------------------------- */
.market { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filters .field { margin-bottom: 14px; }
.filters .form-row-2 { gap: 10px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.results-bar p { margin: 0; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.sort-form select { padding: 8px 12px; }
.listing-sub { font-size: 0.84rem; color: var(--slate-light); margin-top: 2px; }
.listing-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.saved-item { display: grid; gap: 10px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager .btn { min-width: 40px; }
.pager span { align-self: center; color: var(--slate-light); padding: 0 4px; }

/* ---- Listing detail -------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.detail-grid-dash { grid-template-columns: 1fr 340px; }
.detail-grid-dash aside .card + .card { margin-top: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; }
.metric-box b { display: block; font-family: 'Sora', sans-serif; font-size: 1.3rem; color: var(--ink); }
.metric-box span { font-size: 0.8rem; color: var(--slate-light); }
.price-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.order-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; position: sticky; top: 90px; box-shadow: var(--shadow); }
.order-total { background: var(--paper); border-radius: var(--radius-s); padding: 14px; margin: 16px 0 12px; display: grid; gap: 4px; }
.order-total strong { font-family: 'Sora', sans-serif; font-size: 1.35rem; }
.publisher-mini { display: grid; gap: 2px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.review:last-child { border-bottom: 0; }
.prose { color: var(--slate); font-size: 1.04rem; line-height: 1.75; }
.prose h2 { margin-top: 1.7em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.2rem; }
.prose p, .prose li { max-width: none; }
.prose a { color: var(--gold-dark); text-decoration: underline; font-weight: 550; }
.prose img { border-radius: var(--radius-m); margin: 1.2em 0; }
.prose table { margin: 1em 0; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1.2em 0; padding: 4px 18px; color: var(--ink); background: var(--gold-tint); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.prose-sm { font-size: 0.95rem; line-height: 1.65; color: var(--slate); }
.post-cover { width: 100%; height: auto; border-radius: var(--radius-l); margin: 28px 0; aspect-ratio: 1200 / 630; object-fit: cover; }

/* ---- Orders: summary, thread, actions -------------------------------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 18px 0 0; font-size: 0.93rem; }
.kv dt { color: var(--slate-light); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; }
.brief { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; }
.brief summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.brief-body { margin-top: 10px; font-size: 0.92rem; color: var(--slate); max-height: 420px; overflow: auto; }
.order-summary { margin-bottom: 20px; }
.thread { display: grid; gap: 12px; max-height: 560px; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 82%; background: #f4f2ee; border-radius: 14px 14px 14px 4px; padding: 12px 14px; }
.msg-mine { margin-left: auto; background: var(--gold-tint); border-radius: 14px 14px 4px 14px; }
.msg-meta { font-size: 0.78rem; color: var(--slate-light); margin-bottom: 4px; }
.msg-body { font-size: 0.93rem; color: var(--ink); overflow-wrap: anywhere; }
.msg-system { max-width: 100%; background: transparent; border: 1px dashed var(--line); text-align: center; font-size: 0.84rem; border-radius: var(--radius-s); }
.msg-system .msg-body { color: var(--slate); }
.msg-system time { font-size: 0.74rem; color: var(--slate-light); }
.thread-form { margin-top: 16px; display: grid; gap: 10px; }
.action-box { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.action-box summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--slate); }
.action-box form { display: grid; gap: 10px; margin-top: 10px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 10px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 1.9rem; color: #d9d4ca; cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }
.ledger-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.86rem; }
.ledger-mini li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }

/* ---- Dashboard shell ------------------------------------------------ */
.dash-body { background: var(--paper); }
.dash-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-side-head { display: flex; justify-content: space-between; align-items: center; }
.dash-close, .dash-menu-btn { display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; color: inherit; }
.dash-close { color: #fff; border-color: var(--line-dark); }
.dash-overlay { display: none; }
.dash-logout { display: block; margin-top: 18px; padding: 11px 14px; color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; }
.dash-logout:hover { color: #fff; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 4px; margin: 0 4px 16px; }
.mode-switch a { text-align: center; padding: 9px 6px; border-radius: 9px; font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.65); margin: 0; justify-content: center; }
.mode-switch a.on, .mode-switch a.active { background: #fff; color: var(--ink); }
.nav-count { margin-left: auto; background: var(--gold); color: var(--ink); font-size: 0.7rem; font-weight: 750; border-radius: 999px; padding: 2px 8px; }
.dash-nav a.active .nav-count { background: var(--ink); color: #fff; }
.group-label { display: block; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: #fff; font-size: 1.05rem; }
.bell-dot { position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; font-size: 0.66rem; font-weight: 750; border-radius: 999px; padding: 2px 6px; min-width: 18px; text-align: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.impersonate-bar { background: var(--warn-tint); border: 1px solid var(--gold); color: var(--ink); border-radius: var(--radius-m); padding: 10px 16px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.92rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-grid .stat-card { display: grid; gap: 4px; transition: border-color .15s ease, transform .15s ease; }
a.stat-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.stat-card > span { font-size: 0.82rem; color: var(--slate-light); }
.stat-card > b { font-family: 'Sora', sans-serif; font-size: 1.55rem; color: var(--ink); line-height: 1.2; }
.stat-card > small { font-size: 0.78rem; color: var(--slate-light); }
.stat-alert { border-color: var(--gold); background: linear-gradient(180deg, #fffaf0, #fff); box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.15); }
.money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 16px; }
.money-grid > div { background: var(--paper); border-radius: var(--radius-s); padding: 14px; display: grid; gap: 2px; }
.money-grid span { font-size: 0.8rem; color: var(--slate-light); }
.money-grid b { font-family: 'Sora', sans-serif; font-size: 1.2rem; }
.money-grid small { font-size: 0.74rem; color: var(--slate-light); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mini-stats div { background: var(--paper); border-radius: var(--radius-s); padding: 12px; text-align: center; }
.mini-stats b { display: block; font-family: 'Sora', sans-serif; font-size: 1.3rem; }
.mini-stats span { font-size: 0.78rem; color: var(--slate-light); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.bars-30 { gap: 3px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bar span { width: 100%; max-width: 46px; background: linear-gradient(180deg, var(--gold), var(--gold-dark)); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bar small { font-size: 0.7rem; color: var(--slate-light); }
.bars-30 .bar small { font-size: 0.6rem; }
.getting-started { border: 1px solid var(--gold); background: linear-gradient(180deg, #fffaf0, #fff); margin-bottom: 22px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: step; display: grid; gap: 12px; }
.checklist li { counter-increment: step; position: relative; padding-left: 44px; display: grid; gap: 2px; min-height: 30px; }
.checklist li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.checklist li.done::before { content: '✓'; background: var(--success); }
.checklist li > a, .checklist li > .strong { font-weight: 650; color: var(--ink); }
.checklist li > a:hover { color: var(--gold-dark); }
.checklist li > span:not(.strong) { font-size: 0.86rem; color: var(--slate-light); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 0.9rem; color: var(--slate); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--gold); }
.tab-panel { padding-top: 8px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select, .toolbar input { width: auto; }
.table { width: 100%; font-size: 0.92rem; }
.table-compact th, .table-compact td { padding: 8px 10px; font-size: 0.86rem; }
.table td.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.table td.actions form { margin: 0; }
.table .row-bad td { background: var(--danger-tint); }
.quick-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.review-checklist { margin-top: 14px; padding: 12px 14px; background: var(--paper); border-radius: var(--radius-s); font-size: 0.88rem; color: var(--slate); }
.copy-box { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: var(--radius-s); padding: 10px 12px; margin: 10px 0 14px; }
.copy-box code { background: transparent; color: #f3d69b; flex: 1; overflow-wrap: anywhere; font-size: 0.84rem; }
.copy-box .btn { background: #fff; }
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.notif-list li:last-child { border-bottom: 0; }
.notif-list li a { color: var(--ink); font-weight: 550; flex: 1; min-width: 200px; }
.notif-list li a:hover { color: var(--gold-dark); }
.notif-list time { font-size: 0.8rem; color: var(--slate-light); white-space: nowrap; }
.notif-list li.unread a { font-weight: 700; }
.notif-list li.unread::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---- Blog ------------------------------------------------------------ */
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.blog-card-img { display: block; aspect-ratio: 1200 / 630; background: linear-gradient(135deg, var(--ink), var(--ink-3)); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.blog-card-body .tag { justify-self: start; }
.blog-card-body h2, .blog-card-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.blog-card-body h2 a:hover, .blog-card-body h3 a:hover { color: var(--gold-dark); }
.blog-card-body p { font-size: 0.9rem; margin: 0; }
.blog-date { font-size: 0.8rem; color: var(--slate-light); }

/* ---- Tools ----------------------------------------------------------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tool-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; display: grid; gap: 6px; align-content: start; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tool-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); }
.tool-tile strong { color: var(--ink); }
.tool-tile small { color: var(--slate-light); font-size: 0.84rem; line-height: 1.45; }
.tool-tile-ai { background: linear-gradient(180deg, #fffaf0, #fff); }
.tool-ico { font-size: 1.5rem; }
.tool-card { margin-bottom: 20px; }
.tool-form, .tool-client { display: grid; gap: 4px; }
.tool-form .btn { justify-self: start; margin-top: 6px; }
.tool-out { margin-top: 12px; }
.tool-result { margin-bottom: 20px; }
.tool-result .table th { width: 30%; }
.ai-output { background: var(--paper); border-radius: var(--radius-s); padding: 18px 20px; }
.code-out { position: relative; background: var(--ink); border-radius: var(--radius-s); padding: 16px; margin-bottom: 12px; }
.code-out pre { margin: 0; color: #f3d69b; font-size: 0.84rem; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-out .btn { position: absolute; top: 10px; right: 10px; background: #fff; }
.score-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--gold) calc(var(--p) * 1%), #efe9df 0); }
.score-ring b { font-family: 'Sora', sans-serif; font-size: 2rem; color: var(--ink); line-height: 1; }
.score-ring span { font-size: 0.72rem; color: var(--slate-light); }
.serp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; font-family: Arial, sans-serif; max-width: 640px; }
.serp-url { font-size: 0.82rem; color: #202124; margin-bottom: 4px; }
.serp-title { font-size: 1.25rem; color: #1a0dab; line-height: 1.3; margin-bottom: 4px; }
.serp-desc { font-size: 0.88rem; color: #4d5156; line-height: 1.5; }
.redirect-chain { display: grid; gap: 10px; padding-left: 1.3em; }
.finder-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.finder-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--paper); border-radius: var(--radius-s); flex-wrap: wrap; }

/* ---- Auth ------------------------------------------------------------ */
.auth-body { background: radial-gradient(ellipse at top, #231f36 0%, var(--ink) 60%); min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 18px; }
.auth-logo { margin-bottom: 26px; }
.auth-title { font-size: 1.6rem; text-align: center; margin-bottom: 6px; }
.auth-foot { margin-top: 22px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.5); text-align: center; }
.auth-foot a { color: rgba(255, 255, 255, 0.75); }
.form-card { width: 100%; }

/* ---- Footer extras --------------------------------------------------- */
.footer-news { margin-top: 10px; }
.footer-news-label { font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 8px; display: block; }
.footer-news-row { display: flex; gap: 8px; }
.footer-news-row input { flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06); border-color: var(--line-dark); color: #fff; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Mobile navigation ---------------------------------------------- */
.nav-mobile-cta { display: none; }

@media (max-width: 1100px) {
  .tool-strip { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .detail-grid-dash { grid-template-columns: 1fr; }
  .order-box { position: static; }
}
@media (max-width: 900px) {
  .show-sm { display: initial; }
  .hide-sm { display: none !important; }
  .market { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-4 { grid-template-columns: repeat(2, 1fr); }
  .role-grid, .role-grid-2 { grid-template-columns: 1fr; }
  .publisher-grid { grid-template-columns: 1fr; gap: 28px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .msg { max-width: 94%; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 10px 24px 22px; border-top: 1px solid var(--line-dark); box-shadow: var(--shadow-lift); z-index: 60; }
  .nav-links.open a { padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links.open .nav-mobile-cta { display: grid; gap: 10px; padding-top: 16px; }
  .nav-links.open .nav-mobile-cta a { border: 0; padding: 12px 18px; }
  .nav { position: sticky; }
  .nav-cta .btn { display: none; }
  .dash-menu-btn, .dash-close { display: inline-flex; align-items: center; justify-content: center; }
  .dash-side { height: auto; }
  .dash-side.open { inset: 0 18% 0 0; max-width: 320px; height: 100vh; box-shadow: var(--shadow-lift); }
  .dash-overlay.show { display: block; position: fixed; inset: 0; background: rgba(20, 18, 31, 0.5); z-index: 40; }
  .dash-main { padding: 20px 16px 48px; }
  .dash-title { font-size: 1.35rem; }
  .bars { gap: 6px; height: 140px; }
  .band-cta { padding: 24px; }
}
@media (max-width: 560px) {
  .tool-strip { grid-template-columns: 1fr; }
  .metric-grid, .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card > b { font-size: 1.2rem; }
  .form-row-4 { grid-template-columns: 1fr 1fr; }
  .card { padding: 18px; }
  .page-head { padding: 30px 0 20px; }
  .section { padding: 52px 0; }
  .container { padding: 0 18px; }
  .copy-box { flex-direction: column; align-items: stretch; }
  .bars-30 .bar small { display: none; }
  .toolbar input[type=search] { max-width: none; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .nav, .footer, .dash-side, .dash-topbar, .btn { display: none !important; }
  .dash { display: block; }
}
