/* ══════════════════════════════════════════════════════
   TickClip — Verified Deals v4.0
   AI Decision Intelligence UI
   ══════════════════════════════════════════════════════ */

/* ── Theme reset scope ────────────────────────────── */
.tcds-page,
.tcds-detail,
.tcds-page *,
.tcds-detail * {
	box-sizing: border-box;
	text-decoration: none;
	border: 0;
	padding: 0;
	margin: 0;
	border-left: 0 !important;
	border-right: 0 !important;
}

.tcds-page a,
.tcds-detail a {
	text-decoration: none !important;
	color: inherit;
}

.tcds-page h1,
.tcds-page h2,
.tcds-page h3,
.tcds-detail h1,
.tcds-detail h3 {
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
	text-transform: none;
	letter-spacing: normal;
}

.tcds-page img,
.tcds-detail img {
	border: none !important;
	box-shadow: none !important;
	max-width: 100%;
}

/* ── Override theme's narrow pillar-post ────────── */
article.pillar-post:has(.tcds-page),
article.pillar-post:has(.tcds-detail) {
	max-width: 1100px !important;
}

article.pillar-post .pillar-post__content:has(.tcds-page),
article.pillar-post .pillar-post__content:has(.tcds-detail) {
	font-size: inherit !important;
	line-height: normal !important;
}


/* ══════════════════════════════════════════════════════
   Page Layout — Intelligence Dashboard
   ══════════════════════════════════════════════════════ */

.tcds-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 80px;
	font-family: system-ui, -apple-system, 'Inter', 'Segoe UI', sans-serif;
	color: #0f172a;
}

/* ── Page header ─────────────────────────────────── */
.tcds-page-header {
	text-align: center;
	padding: 48px 0 40px;
}

.tcds-page-header__title {
	font-size: 28px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	letter-spacing: -0.5px;
	line-height: 1.2 !important;
	margin-bottom: 10px !important;
}

.tcds-page-header__sub {
	font-size: 15px;
	color: #64748b !important;
	max-width: 480px;
	margin: 0 auto !important;
	line-height: 1.6;
}

/* ── Toolbar — minimal filter bar ────────────────── */
.tcds-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 12px;
	margin-bottom: 28px;
}

.tcds-toolbar__search {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.tcds-toolbar__search-icon {
	color: #94a3b8;
	flex-shrink: 0;
}

.tcds-toolbar__input {
	flex: 1;
	border: none !important;
	background: transparent !important;
	font-size: 14px;
	color: #0f172a !important;
	outline: none !important;
	font-family: inherit;
	padding: 6px 0 !important;
	min-width: 0;
}
.tcds-toolbar__input::placeholder { color: #94a3b8; }

.tcds-toolbar__sep {
	width: 1px;
	height: 24px;
	background: #e8ecf1;
	flex-shrink: 0;
}

.tcds-toolbar__filters {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

/* ── Dropdown filters ────────────────────────────── */
.tcds-dropdown {
	position: relative;
}

.tcds-dropdown__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	font-size: 13px;
	font-weight: 500;
	color: #475569 !important;
	cursor: pointer;
	transition: all 0.15s;
	font-family: inherit;
	white-space: nowrap;
}
.tcds-dropdown__btn:hover { background: #f1f5f9 !important; border-color: #cbd5e1 !important; }
.tcds-dropdown__btn.has-selection { background: #eff6ff !important; border-color: #93c5fd !important; color: #2563eb !important; }

.tcds-dropdown__menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.08);
	z-index: 100;
	overflow: hidden;
	max-height: 320px;
	overflow-y: auto;
}

.tcds-dropdown.open .tcds-dropdown__menu { display: block; }

.tcds-dropdown__item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 16px !important;
	font-size: 13px;
	font-weight: 500;
	color: #334155 !important;
	background: transparent !important;
	cursor: pointer;
	transition: background 0.1s;
	font-family: inherit;
	text-align: left;
	border-bottom: 1px solid #f8fafc !important;
}
.tcds-dropdown__item:last-child { border-bottom: none !important; }
.tcds-dropdown__item:hover { background: #f8fafc !important; }
.tcds-dropdown__item.active { color: #2563eb !important; font-weight: 600; background: #eff6ff !important; }
.tcds-dropdown__logo { width: 16px; height: 16px; border-radius: 3px !important; }
.tcds-dropdown__count { margin-left: auto; font-size: 11px; color: #94a3b8; font-weight: 400; }

/* ── Promo toggle button ─────────────────────────── */
.tcds-toolbar__toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 14px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	font-size: 13px;
	font-weight: 500;
	color: #475569 !important;
	cursor: pointer;
	transition: all 0.15s;
	font-family: inherit;
	white-space: nowrap;
}
.tcds-toolbar__toggle:hover { background: #f1f5f9 !important; }
.tcds-toolbar__toggle.active {
	background: #fefce8 !important;
	border-color: #fbbf24 !important;
	color: #92400e !important;
}

/* ── Active filter chips ─────────────────────────── */
.tcds-active-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.tcds-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px !important;
	font-size: 12px;
	font-weight: 600;
	color: #2563eb !important;
	background: #eff6ff !important;
	border: 1px solid #93c5fd !important;
	border-radius: 100px !important;
	cursor: pointer;
	transition: all 0.15s;
	font-family: inherit;
}
.tcds-chip:hover { background: #dbeafe !important; }
.tcds-chip--clear {
	color: #64748b !important;
	background: #f1f5f9 !important;
	border-color: #cbd5e1 !important;
}


/* ══════════════════════════════════════════════════════
   Grid — 2 columns for decision cards
   ══════════════════════════════════════════════════════ */

.tcds-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

/* ── Empty state ────────────────────────────────── */
.tcds-empty {
	text-align: center;
	padding: 60px 20px;
	color: #94a3b8;
	font-size: 15px;
}


/* ══════════════════════════════════════════════════════
   Decision Card — AI Insight Card
   ══════════════════════════════════════════════════════ */

.tcds-card {
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	display: flex;
	flex-direction: column;
}

.tcds-card:hover {
	box-shadow: 0 8px 30px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}

/* ── Verdict header strip ───────────────────────── */
.tcds-card__verdict-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px !important;
	border-bottom: 1px solid #f1f5f9 !important;
}

.tcds-card__verdict-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 4px 10px !important;
	border-radius: 6px !important;
	text-transform: uppercase;
}

.tcds-card__verdict-badge--tick {
	background: #ecfdf5;
	color: #047857 !important;
}
.tcds-card__verdict-badge--clip {
	background: #fffbeb;
	color: #b45309 !important;
}
.tcds-card__verdict-badge--skip {
	background: #fef2f2;
	color: #b91c1c !important;
}

.tcds-card__verdict-label {
	font-size: 13px;
	font-weight: 600;
	color: #475569 !important;
}

.tcds-card__confidence {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8 !important;
}

.tcds-card__confidence-bar {
	width: 48px;
	height: 4px;
	background: #f1f5f9;
	border-radius: 2px;
	overflow: hidden;
}

.tcds-card__confidence-fill {
	height: 100%;
	border-radius: 2px;
	transition: width 0.6s ease;
}

.tcds-card__confidence-fill--high { background: #059669; }
.tcds-card__confidence-fill--med  { background: #d97706; }
.tcds-card__confidence-fill--low  { background: #dc2626; }

/* ── Card body — product + intelligence ─────────── */
.tcds-card__body {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 16px;
	padding: 18px !important;
	flex: 1;
}

.tcds-card__thumb {
	width: 100px;
	height: 100px;
	background: #f8fafc;
	border-radius: 10px !important;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tcds-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6px;
}

.tcds-card__thumb--placeholder {
	font-size: 40px;
	line-height: 1;
}

.tcds-card__thumb--store img {
	padding: 16px;
	opacity: 0.8;
}

.tcds-card__info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.tcds-card__retailer {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tcds-card__retailer-logo {
	width: 14px;
	height: 14px;
	border-radius: 3px !important;
}

.tcds-card__retailer-name {
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8 !important;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.tcds-card__title {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.35 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Price intelligence panel ──────────────────── */
.tcds-card__prices {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 4px;
}

.tcds-card__price-current {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a !important;
	letter-spacing: -0.5px;
}

.tcds-card__price-was {
	font-size: 13px;
	font-weight: 500;
	color: #94a3b8 !important;
	text-decoration: line-through !important;
}

.tcds-card__price-pct {
	font-size: 12px;
	font-weight: 700;
	color: #059669 !important;
	background: #ecfdf5;
	padding: 2px 7px !important;
	border-radius: 4px !important;
}

/* ── Reason snippet ────────────────────────────── */
.tcds-card__reason {
	font-size: 12px;
	color: #64748b !important;
	line-height: 1.4;
	margin-top: 2px;
}

/* ── Card footer — actions ──────────────────────── */
.tcds-card__footer {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px !important;
	border-top: 1px solid #f1f5f9 !important;
}

/* User signals — replaces voting */
.tcds-card__signals {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: #94a3b8 !important;
	flex: 1;
}

.tcds-card__signal {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.tcds-card__signal svg {
	width: 14px;
	height: 14px;
}

.tcds-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 7px 16px !important;
	font-size: 13px;
	font-weight: 600;
	color: #fff !important;
	background: #0f172a !important;
	border-radius: 8px !important;
	cursor: pointer;
	transition: all 0.15s;
	font-family: inherit;
	white-space: nowrap;
	border: none !important;
}
.tcds-card__cta:hover {
	background: #1e293b !important;
	transform: translateY(-1px);
}

.tcds-card__cta--promo {
	background: transparent !important;
	color: #92400e !important;
	border: 1px solid #fbbf24 !important;
	padding: 6px 12px !important;
	font-size: 12px;
}
.tcds-card__cta--promo:hover { background: #fefce8 !important; }

/* ── Promo code on card ────────────────────────── */
.tcds-card__promo {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 18px 14px !important;
}

.tcds-card__promo-code {
	font-size: 12px;
	font-weight: 700;
	font-family: 'SF Mono', 'Fira Code', monospace;
	color: #92400e !important;
	background: #fffbeb !important;
	padding: 4px 10px !important;
	border-radius: 5px !important;
	border: 1px dashed #fde68a !important;
	letter-spacing: 0.8px;
	cursor: pointer;
	transition: all 0.15s;
}
.tcds-card__promo-code:hover { background: #fef3c7 !important; }
.tcds-card__promo-code.tcds-copied { background: #ecfdf5 !important; border-color: #059669 !important; color: #065f46 !important; }

.tcds-card__promo-copy {
	font-size: 11px;
	font-weight: 600;
	color: #92400e !important;
	background: transparent !important;
	border: none !important;
	cursor: pointer;
	padding: 2px 6px !important;
	font-family: inherit;
}


/* ══════════════════════════════════════════════════════
   Legacy classes — compatibility with detail page
   ══════════════════════════════════════════════════════ */

/* ── Legacy vote bar (still used on card clicks → detail page) ── */
.tcds-card-votes { display: none; }

/* ── Legacy CTA ──────────────────────────────────── */
.tcds-card-cta { display: none; }

/* ── ISO CTA ─────────────────────────────────────── */
.tcds-iso-cta {
	text-align: center;
	padding: 40px 24px;
	margin-top: 32px;
	background: #f8fafc;
	border: 1px solid #e8ecf1;
	border-radius: 14px;
}

.tcds-iso-cta p {
	font-size: 15px;
	color: #475569 !important;
	margin-bottom: 12px;
}

.tcds-iso-cta__link {
	font-size: 14px;
	font-weight: 700;
	color: #3b82f6 !important;
}
.tcds-iso-cta__link:hover { text-decoration: underline !important; }

/* ── Legacy filter tabs (keep for pages shortcode) ── */
.tcds-tabs {
	display: flex;
	gap: 4px;
	padding: 0 0 16px;
	border-bottom: 1px solid #e8ecf1 !important;
	margin-bottom: 20px;
	overflow-x: auto;
	scrollbar-width: none;
}
.tcds-tabs::-webkit-scrollbar { display: none; }
.tcds-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px !important;
	font-size: 13px;
	font-weight: 600;
	color: #64748b !important;
	background: transparent !important;
	border: 1px solid transparent !important;
	border-radius: 8px !important;
	cursor: pointer;
	transition: all 0.15s;
	white-space: nowrap;
	font-family: inherit;
}
.tcds-tab:hover { background: #f8fafc !important; }
.tcds-tab.active {
	color: #0f172a !important;
	background: #f1f5f9 !important;
	border-color: #e2e8f0 !important;
}

/* ── Offer cards (store-wide / event / brand) ──── */
.tcds-offer-card {
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.tcds-offer-card:hover {
	box-shadow: 0 8px 30px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}

.tcds-offer-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px !important;
	background: linear-gradient(135deg, var(--offer-from, #6366f1), var(--offer-to, #4f46e5));
}

.tcds-offer-header-logo {
	width: 48px;
	height: 48px;
	border-radius: 10px !important;
	background: rgba(255,255,255,0.2);
	object-fit: contain;
	padding: 8px;
}

.tcds-offer-header-text {
	flex: 1;
	color: #fff !important;
}

.tcds-offer-header-retailer {
	font-size: 16px;
	font-weight: 800;
	color: #fff !important;
}

.tcds-offer-header-scope {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.8;
	color: rgba(255,255,255,0.9) !important;
}

.tcds-offer-badge {
	font-size: 14px;
	font-weight: 800;
	background: rgba(255,255,255,0.2);
	color: #fff !important;
	padding: 5px 12px !important;
	border-radius: 8px !important;
}

.tcds-offer-body {
	padding: 18px !important;
}

.tcds-offer-desc {
	font-size: 14px;
	color: #475569 !important;
	line-height: 1.5;
	margin-bottom: 12px;
}

.tcds-offer-title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.3 !important;
	margin-bottom: 8px !important;
}

.tcds-offer-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px !important;
	border-top: 1px solid #f1f5f9 !important;
}


/* ══════════════════════════════════════════════════════
   Shared: promo code + pills
   ══════════════════════════════════════════════════════ */

.tcds-promo-code {
	font-size: 13px;
	font-weight: 800;
	font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
	color: #92400e !important;
	background: #fef3c7 !important;
	padding: 4px 12px !important;
	border-radius: 6px !important;
	border: 1px dashed #fbbf24 !important;
	letter-spacing: 1px;
	user-select: all;
	cursor: pointer;
	transition: all 0.2s;
}

.tcds-promo-code:hover {
	background: #fde68a !important;
	border-color: #f59e0b !important;
}

.tcds-promo-code.tcds-copied {
	background: #d1fae5 !important;
	border-color: #059669 !important;
	color: #065f46 !important;
}

.tcds-copy-btn {
	padding: 5px 14px !important;
	font-size: 12px;
	font-weight: 700;
	color: #92400e !important;
	background: #fef3c7 !important;
	border: 1px solid #fbbf24 !important;
	border-radius: 6px !important;
	cursor: pointer;
	transition: all 0.15s;
	font-family: inherit;
	line-height: 1.3;
}
.tcds-copy-btn:hover { background: #fde68a !important; }

.tcds-pill {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px !important;
	border-radius: 100px !important;
	background: #f1f5f9;
	color: #475569 !important;
	white-space: nowrap;
}
.tcds-pill--green { background: #d1fae5; color: #065f46 !important; }
.tcds-pill--red   { background: #fee2e2; color: #991b1b !important; }
.tcds-pill--amber { background: #fef3c7; color: #92400e !important; }


/* ══════════════════════════════════════════════════════
   Single Deal — AI Decision Report v4.0
   ══════════════════════════════════════════════════════ */

.tcds-detail {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 20px 80px;
	font-family: system-ui, -apple-system, 'Inter', 'Segoe UI', sans-serif;
	color: #0f172a;
}

/* ── Breadcrumb ──────────────────────────────────── */
.tcds-breadcrumb {
	padding: 20px 0;
	font-size: 12px;
	color: #94a3b8;
	letter-spacing: 0.2px;
}
.tcds-breadcrumb a { color: #64748b !important; }
.tcds-breadcrumb a:hover { color: #0f172a !important; }
.tcds-breadcrumb-sep { margin: 0 6px; color: #cbd5e1; }

/* ── Hero: Product identity ─────────────────────── */
.tcds-report-hero {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 32px;
	align-items: start;
	padding: 32px 0 40px;
	border-bottom: 1px solid #f1f5f9 !important;
}

.tcds-report-hero__image {
	position: relative;
	background: #f8fafc;
	border-radius: 14px !important;
	border: 1px solid #e8ecf1 !important;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
}

.tcds-report-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 16px;
}

.tcds-report-hero__image--store {
	background: #f8fafc !important;
}

.tcds-report-hero__store-logo {
	max-width: 120px !important;
	max-height: 120px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	padding: 20px !important;
	filter: none !important;
}

.tcds-report-hero__placeholder {
	font-size: 64px;
	opacity: 0.25;
}

.tcds-report-hero__info {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 4px;
}

.tcds-report-hero__retailer {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tcds-report-hero__retailer-logo {
	width: 20px;
	height: 20px;
	border-radius: 4px !important;
	object-fit: contain;
}

.tcds-report-hero__retailer-name {
	font-size: 12px !important;
	font-weight: 700;
	color: #94a3b8 !important;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.tcds-report-hero__title {
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.3 !important;
	letter-spacing: -0.3px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tcds-report-hero__scope {
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8 !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ── Verdict panel ───────────────────────────────── */
.tcds-report-verdict {
	padding: 32px 0;
	border-bottom: 1px solid #f1f5f9 !important;
}

.tcds-report-verdict__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 24px !important;
	border-radius: 10px !important;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.5px;
	color: #fff !important;
}

.tcds-report-verdict__badge--tick { background: #059669 !important; }
.tcds-report-verdict__badge--clip { background: #d97706 !important; }
.tcds-report-verdict__badge--skip { background: #dc2626 !important; }

.tcds-report-verdict__badge-icon { font-size: 20px; }

.tcds-report-verdict__action {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	opacity: 0.85;
	letter-spacing: 0.3px;
}

.tcds-report-verdict__row {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.tcds-report-verdict__store-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 8px !important;
	font-size: 13px;
	font-weight: 600;
	color: #334155 !important;
	background: #fff !important;
	text-decoration: none !important;
	transition: border-color 0.15s, color 0.15s;
	white-space: nowrap;
}

.tcds-report-verdict__store-btn:hover {
	border-color: #3b82f6 !important;
	color: #3b82f6 !important;
}

.tcds-report-verdict__confidence {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.tcds-report-verdict__confidence-label {
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8 !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.tcds-report-verdict__confidence-bar {
	flex: 1;
	height: 6px;
	background: #f1f5f9;
	border-radius: 100px !important;
	overflow: hidden;
	max-width: 240px;
}

.tcds-report-verdict__confidence-fill {
	height: 100%;
	border-radius: 100px !important;
	transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.tcds-report-verdict__confidence-fill--high { background: #059669; }
.tcds-report-verdict__confidence-fill--med  { background: #d97706; }
.tcds-report-verdict__confidence-fill--low  { background: #dc2626; }

.tcds-report-verdict__confidence-pct {
	font-size: 14px;
	font-weight: 800;
	color: #0f172a !important;
	min-width: 36px;
}

/* ── Analysis sections — shared panel style ────── */
.tcds-report-section {
	padding: 28px 0;
	border-bottom: 1px solid #f1f5f9 !important;
}

.tcds-report-section:last-of-type {
	border-bottom: none !important;
}

.tcds-report-section__header {
	font-size: 11px !important;
	font-weight: 700 !important;
	color: #94a3b8 !important;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	margin-bottom: 16px !important;
}

/* ── Section 1: Price Intelligence ────────────────── */
.tcds-report-prices {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	background: #f8fafc;
	border-radius: 12px !important;
	border: 1px solid #e8ecf1 !important;
	overflow: hidden;
}

.tcds-report-prices__item {
	padding: 18px 20px !important;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tcds-report-prices__item + .tcds-report-prices__item {
	border-left: 1px solid #e8ecf1 !important;
}

.tcds-report-prices__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #94a3b8 !important;
}

.tcds-report-prices__value {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a !important;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.tcds-report-prices__value--current {
	color: #059669 !important;
}

.tcds-report-prices__value--was {
	color: #94a3b8 !important;
	text-decoration: line-through !important;
	font-size: 18px;
}

.tcds-report-prices__pct {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #059669 !important;
	background: #ecfdf5;
	padding: 2px 8px !important;
	border-radius: 6px !important;
}

/* ── Section 2: Deal Integrity (PriceDam) ─────────── */
.tcds-report-integrity {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tcds-report-integrity__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #334155 !important;
}

.tcds-report-integrity__icon {
	width: 20px;
	height: 20px;
	border-radius: 50% !important;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 800;
	margin-top: 1px;
}

.tcds-report-integrity__icon--pass {
	background: #ecfdf5;
	color: #059669 !important;
}

.tcds-report-integrity__icon--warn {
	background: #fffbeb;
	color: #d97706 !important;
}

.tcds-report-integrity__icon--fail {
	background: #fef2f2;
	color: #dc2626 !important;
}

/* ── Section 3: Why — reasoning ───────────────────── */
.tcds-report-reasons {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tcds-report-reasons li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: #334155 !important;
	padding: 0 !important;
}

.tcds-report-reasons li::before {
	content: '';
	width: 6px;
	height: 6px;
	background: #cbd5e1;
	border-radius: 50% !important;
	flex-shrink: 0;
	margin-top: 7px;
}

/* ── Section 4: Market Context ────────────────────── */
.tcds-report-context {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	background: #f8fafc;
	border-radius: 12px !important;
	border: 1px solid #e8ecf1 !important;
	overflow: hidden;
}

.tcds-report-context__item {
	padding: 14px 18px !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tcds-report-context__item:nth-child(odd) {
	border-right: 1px solid #e8ecf1 !important;
}

.tcds-report-context__item:nth-child(n+3) {
	border-top: 1px solid #e8ecf1 !important;
}

.tcds-report-context__key {
	font-size: 12px;
	font-weight: 600;
	color: #64748b !important;
}

.tcds-report-context__val {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a !important;
}

/* ── Section 5: Market Sentiment ──────────────────── */
.tcds-report-sentiment {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #475569 !important;
}

.tcds-report-sentiment__count {
	font-weight: 700;
	color: #0f172a !important;
}

/* ── Promo code ───────────────────────────────────── */
.tcds-report-promo {
	background: #fefce8 !important;
	border: 1px solid #fde68a !important;
	border-radius: 10px !important;
	padding: 14px 18px !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tcds-report-promo__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #92400e !important;
}

.tcds-report-promo__code {
	font-family: 'SF Mono', SFMono-Regular, Menlo, monospace;
	font-size: 15px;
	font-weight: 700;
	color: #78350f !important;
	background: #fff !important;
	border: 1.5px dashed #fbbf24 !important;
	padding: 6px 16px !important;
	border-radius: 6px !important;
	cursor: pointer;
	transition: all 0.15s;
	letter-spacing: 1px;
}

.tcds-report-promo__code:hover {
	background: #fef3c7 !important;
}

.tcds-report-promo__code.tcds-copied {
	background: #ecfdf5 !important;
	border-color: #059669 !important;
	color: #065f46 !important;
}

/* ── CTA panel ────────────────────────────────────── */
.tcds-report-cta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px 0;
}

.tcds-report-cta__primary,
a.tcds-report-cta__primary,
a.tcds-report-cta__primary:visited {
	display: block;
	text-align: center;
	padding: 15px 24px !important;
	font-size: 15px;
	font-weight: 700;
	border-radius: 10px !important;
	background: #0f172a !important;
	color: #fff !important;
	text-decoration: none !important;
	transition: all 0.2s;
	cursor: pointer;
	border: none !important;
	font-family: inherit;
	letter-spacing: 0.2px;
}

a.tcds-report-cta__primary:hover {
	background: #1e293b !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 20px rgba(15,23,42,0.15);
}

.tcds-report-cta__secondary,
a.tcds-report-cta__secondary,
a.tcds-report-cta__secondary:visited {
	display: block;
	text-align: center;
	padding: 13px 24px !important;
	font-size: 14px;
	font-weight: 600;
	border-radius: 10px !important;
	background: #fff !important;
	color: #475569 !important;
	border: 1.5px solid #e2e8f0 !important;
	text-decoration: none !important;
	transition: all 0.2s;
	cursor: pointer;
	font-family: inherit;
}

a.tcds-report-cta__secondary:hover {
	background: #f8fafc !important;
	border-color: #cbd5e1 !important;
	color: #0f172a !important;
}

/* ── Price Alert CTA ──────────────────────────────── */
.tcds-report-alert {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border-radius: 10px !important;
	background: #f8fafc;
	border: 1px solid #e8ecf1 !important;
	flex-wrap: wrap;
}

.tcds-report-alert--clip {
	background: #fffbeb;
	border-color: #fde68a !important;
}

.tcds-report-alert--skip {
	background: #fef2f2;
	border-color: #fecaca !important;
}

.tcds-report-alert__icon {
	width: 36px;
	height: 36px;
	background: #f1f5f9;
	color: #64748b;
	border-radius: 8px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tcds-report-alert__body {
	flex: 1;
	min-width: 140px;
}

.tcds-report-alert__body strong {
	display: block;
	font-size: 13px;
	color: #0f172a;
	margin-bottom: 2px;
}

.tcds-report-alert__body p {
	font-size: 12px;
	color: #64748b !important;
	margin: 0 !important;
	line-height: 1.4;
}

/* ── Share row ────────────────────────────────────── */
.tcds-report-share {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 0;
}

.tcds-report-share__label {
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8 !important;
	margin-right: 4px;
}

.tcds-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px !important;
	font-size: 11px;
	font-weight: 600;
	border-radius: 6px !important;
	cursor: pointer;
	transition: all 0.15s;
	font-family: inherit;
	border: 1px solid #e8ecf1 !important;
	background: #fff !important;
	color: #64748b !important;
}

.tcds-share-btn:hover { background: #f8fafc !important; color: #0f172a !important; }
.tcds-share-btn--copy { color: #475569 !important; }
.tcds-share-btn--x { color: #0f172a !important; }
.tcds-share-btn--fb { color: #1877f2 !important; }
.tcds-share-btn--wa { color: #25d366 !important; }

/* ── Footer ───────────────────────────────────────── */
.tcds-detail-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #f1f5f9 !important;
}

.tcds-detail-back {
	font-size: 12px;
	color: #94a3b8 !important;
	font-weight: 500;
}
.tcds-detail-back:hover { color: #0f172a !important; }

.tcds-detail-delete {
	padding: 6px 14px !important;
	font-size: 11px;
	font-weight: 600;
	color: #dc2626 !important;
	background: #fff !important;
	border: 1px solid #fecaca !important;
	border-radius: 6px !important;
	cursor: pointer;
	transition: all 0.2s;
	font-family: inherit;
}
.tcds-detail-delete:hover {
	background: #fef2f2 !important;
	border-color: #dc2626 !important;
}

/* ── Legacy button classes (used by alert CTA) ───── */
.tcds-btn,
a.tcds-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px !important;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px !important;
	text-decoration: none !important;
	transition: all 0.2s;
	cursor: pointer;
	border: none !important;
	font-family: inherit;
	line-height: 1.3;
}

.tcds-btn--secondary,
a.tcds-btn--secondary,
a.tcds-btn--secondary:visited {
	background: #fff !important;
	color: #475569 !important;
	border: 1.5px solid #e2e8f0 !important;
}
.tcds-btn--secondary:hover,
a.tcds-btn--secondary:hover {
	background: #f8fafc !important;
	border-color: #cbd5e1 !important;
	color: #0f172a !important;
}


/* ══════════════════════════════════════════════════════
   Pagination
   ══════════════════════════════════════════════════════ */

.tcds-pagination {
	margin: 40px 0 20px;
	display: flex;
	justify-content: center;
}

.tcds-pagination ul {
	list-style: none !important;
	display: flex;
	gap: 6px;
	padding: 0 !important;
	margin: 0 !important;
	flex-wrap: wrap;
	justify-content: center;
}

.tcds-pagination li {
	margin: 0 !important;
	padding: 0 !important;
}

.tcds-pagination a,
.tcds-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none !important;
	transition: all 0.15s ease;
}

.tcds-pagination a {
	background: #fff;
	color: #374151;
	border: 1px solid #e5e7eb;
}

.tcds-pagination a:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
	color: #111827;
}

.tcds-pagination span.current {
	background: #3b82f6;
	color: #fff;
	border: 1px solid #3b82f6;
	font-weight: 600;
}

.tcds-pagination .dots {
	background: transparent;
	border: none;
	color: #9ca3af;
}

.tcds-pagination .prev,
.tcds-pagination .next {
	font-weight: 600;
}


/* ══════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
	.tcds-grid { grid-template-columns: 1fr; }
	.tcds-card__body { grid-template-columns: 80px 1fr; gap: 12px; }
	.tcds-card__thumb { width: 80px; height: 80px; }
	/* Detail page responsive */
	.tcds-report-hero {
		grid-template-columns: 140px 1fr;
		gap: 20px;
	}
	.tcds-report-hero__title { font-size: 18px !important; }
	.tcds-report-prices { grid-template-columns: 1fr; }
	.tcds-report-prices__item + .tcds-report-prices__item {
		border-left: none !important;
		border-top: 1px solid #e8ecf1 !important;
	}
	.tcds-report-context { grid-template-columns: 1fr; }
	.tcds-report-context__item:nth-child(odd) { border-right: none !important; }
	.tcds-report-context__item:nth-child(n+2) { border-top: 1px solid #e8ecf1 !important; }
}

@media (max-width: 640px) {
	.tcds-page-header { padding: 32px 0 28px; }
	.tcds-page-header__title { font-size: 22px !important; }
	.tcds-card__body { grid-template-columns: 1fr; }
	.tcds-card__thumb { width: 100%; height: 140px; }
	.tcds-card__verdict-bar { flex-wrap: wrap; gap: 6px; }
	.tcds-card__confidence { margin-left: 0; }
	/* Detail page mobile */
	.tcds-report-hero {
		grid-template-columns: 1fr;
		gap: 16px;
		text-align: center;
	}
	.tcds-report-hero__image { max-width: 200px; margin: 0 auto; }
	.tcds-report-hero__retailer { justify-content: center; }
	.tcds-report-verdict { text-align: center; }
	.tcds-report-verdict__confidence { justify-content: center; }
	.tcds-report-share { justify-content: center; flex-wrap: wrap; }
	.tcds-report-alert { flex-direction: column; text-align: center; }
	.tcds-detail-footer { flex-direction: column; gap: 10px; align-items: center; }
	/* Toolbar stacks on mobile */
	.tcds-toolbar {
		flex-direction: column;
		gap: 8px;
		padding: 12px;
	}
	.tcds-toolbar__sep { display: none; }
	.tcds-toolbar__filters {
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 6px;
	}
	.tcds-toolbar__filters::-webkit-scrollbar { display: none; }
	.tcds-dropdown__menu { right: auto; left: 0; }
}
