/* TopVaper Polls - front-end */

.tvp-poll, .tvp-results, .tvp-notice {
	max-width: 960px;
	margin: 0 auto;
}

.tvp-question {
	text-align: center;
	margin: 0 0 6px;
}
.tvp-desc {
	text-align: center;
	color: var(--smoke, #555);
	margin: 0 0 4px;
}
.tvp-deadline {
	text-align: center;
	font-size: 0.9em;
	color: var(--smoke, #888);
	margin: 0 0 20px;
}

/* Option cards - 2 columns on phones, scales up */
.tvp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	margin: 0 0 20px;
}

.tvp-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 14px 10px;
	background: var(--surface, #fff);
	border: 2px solid var(--line, #e3e3e3);
	border-radius: 12px;
	cursor: pointer;
	font: inherit;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tvp-card:hover {
	border-color: var(--smoke, #b9b9b9);
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0,0,0,.07);
}
.tvp-card:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}
.tvp-card.tvp-selected {
	border-color: var(--mist, #1a1a1a);
	box-shadow: 0 0 0 1px var(--mist, #1a1a1a);
}
.tvp-card-img {
	width: 100%;
	max-width: 130px;
	height: auto;
	display: block;
}
.tvp-card-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.tvp-chip {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid var(--chip-border, rgba(0,0,0,.18));
	flex: 0 0 auto;
	display: inline-block;
}
.tvp-card-label {
	font-weight: 600;
	font-size: 0.95em;
	color: var(--fog, #1a1a1a);
}

.tvp-submit {
	display: block;
	margin: 0 auto;
	padding: 13px 44px;
	font-size: 1.05em;
	font-weight: 700;
	color: var(--btn-text, #fff);
	background: var(--mist, #1a1a1a);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: opacity .15s ease;
}
.tvp-submit:disabled {
	opacity: .35;
	cursor: not-allowed;
}
.tvp-submit:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

.tvp-msg {
	text-align: center;
	min-height: 1.4em;
	margin-top: 12px;
	font-weight: 600;
}
.tvp-msg.tvp-error { color: #b32d2e; }
.tvp-msg.tvp-ok    { color: #1a7f37; }

.tvp-notice {
	padding: 18px 20px;
	background: var(--surface, #f6f7f7);
	border-left: 4px solid var(--mist, #1a1a1a);
	border-radius: 6px;
	margin-bottom: 20px;
}

/* Results bars */
.tvp-results-title { margin: 0 0 2px; }
.tvp-results-total { color: var(--smoke, #777); margin: 0 0 16px; }

.tvp-bar-row {
	display: grid;
	grid-template-columns: minmax(120px, 200px) 1fr 90px;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.tvp-bar-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: .95em;
	overflow-wrap: anywhere;
}
.tvp-bar-track {
	background: var(--surface-2, #efefef);
	border-radius: 999px;
	height: 18px;
	overflow: hidden;
}
.tvp-bar-fill {
	display: block;
	height: 100%;
	background: var(--mist, #1a1a1a);
	border-radius: 999px;
	min-width: 2px;
	transition: width .5s ease;
}
.tvp-bar-num {
	font-variant-numeric: tabular-nums;
	font-size: .9em;
	color: var(--smoke, #444);
	text-align: right;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.tvp-bar-row {
		grid-template-columns: 1fr 80px;
	}
	.tvp-bar-label {
		grid-column: 1 / -1;
		margin-bottom: -4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tvp-card, .tvp-bar-fill { transition: none; }
}

/* ---------- v2: featured hero product image ---------- */
.tvp-hero-figure { margin: 4px 0 18px; text-align: center; }
.tvp-hero-img { display: inline-block; max-width: 170px; max-height: 220px; width: auto; height: auto; }
.tvp-hero-caption { font-size: .82rem; color: var(--smoke, #777); margin-top: 6px; }

/* ---------- v2: forms (register / login / create poll) ---------- */
.tvp-form { max-width: 520px; margin: 0 auto; }
.tvp-field { margin-bottom: 18px; }
.tvp-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.tvp-hint { font-weight: 400; color: var(--smoke, #777); font-size: .88em; }
.tvp-field input[type="text"],
.tvp-field input[type="email"],
.tvp-field input[type="password"],
.tvp-field textarea,
.tvp-field select {
	width: 100%; padding: 11px 13px; font: inherit;
	border: 2px solid var(--line, #d5d9dd); border-radius: 10px;
	background: var(--surface, #fff); color: inherit; box-sizing: border-box;
}
.tvp-field input:focus, .tvp-field textarea:focus, .tvp-field select:focus {
	outline: none; border-color: var(--mist, #2271b1);
}
.tvp-check { margin-bottom: 14px; font-size: .93em; }
.tvp-check input { margin-right: 8px; }
.tvp-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.tvp-form .tvp-submit { width: 100%; margin-top: 6px; }
.tvp-form-foot { text-align: center; font-size: .9em; color: var(--smoke, #777); margin-top: 16px; }
.tvp-notice-error { border-left-color: #b32d2e; }
.tvp-notice a { text-decoration: underline; }

/* ---------- v2: campaign card grid ---------- */
.tvp-cards {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px; margin: 0 auto; max-width: 1140px;
}
.tvp-mini {
	display: flex; flex-direction: column; gap: 10px;
	background: var(--surface, #fff); border: 1px solid var(--line, #e3e3e3);
	border-radius: 14px; padding: 20px; text-decoration: none; color: inherit;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tvp-mini:hover {
	transform: translateY(-3px); border-color: var(--smoke, #b9b9b9);
	box-shadow: 0 6px 18px rgba(0,0,0,.08); text-decoration: none; color: inherit;
}
.tvp-badge {
	align-self: flex-start; font-size: .68rem; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px;
}
.tvp-badge-verified { background: rgba(43,168,184,.12); color: var(--mist-deep, #2ba8b8); border: 1px solid rgba(43,168,184,.4); }
.tvp-badge-community { background: rgba(139,92,246,.1); color: #7c5cd6; border: 1px solid rgba(139,92,246,.35); }
.tvp-mini-title { font-size: 1.02rem; font-weight: 600; line-height: 1.35; margin: 0; }
.tvp-mini-meta { font-size: .83rem; color: var(--smoke, #777); margin: 0; }
.tvp-mini-lead { font-size: .87rem; color: var(--smoke, #777); margin: 0; }
.tvp-mini-lead strong { color: inherit; }
.tvp-mini-track { height: 8px; background: var(--surface-2, #efefef); border-radius: 999px; overflow: hidden; }
.tvp-mini-fill { display: block; height: 100%; background: var(--mist, #1a1a1a); border-radius: 999px; min-width: 2px; }
.tvp-mini-cta { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .92rem; color: var(--mist-deep, #2271b1); }

@media (prefers-reduced-motion: reduce) {
	.tvp-mini { transition: none; }
	.tvp-mini:hover { transform: none; }
}
