/* Video Boost page styles - Compact, Red theme */

/* Platform Selector */
.platform-selector {
	display: flex;
	gap: var(--space-xs);
	margin-bottom: var(--space-sm);
}

.platform-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	height: 38px;
	padding: 0 var(--space-sm);
	border-radius: var(--radius-md);
	border: 2px solid var(--border);
	background: var(--bg-tertiary);
	color: var(--text-secondary);
	font-weight: 600;
	font-size: var(--font-xs);
	cursor: pointer;
	transition: all var(--transition-fast);
}

.platform-btn:hover {
	border-color: #EF4444;
	color: var(--text);
}

.platform-btn.active {
	border-color: #EF4444;
	background: rgba(239, 68, 68, 0.1);
	color: #EF4444;
}

.platform-btn .icon {
	font-size: 16px;
}

.ad-card {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: var(--space-md);
	box-sizing: border-box;
}

.ad-form .form-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: var(--space-sm);
}

.ad-form .form-row.gap-before {
	margin-top: var(--space-md);
}

.ad-form label {
	font-size: var(--font-sm);
	color: var(--text);
	font-weight: 600;
}

.ad-form input[type="text"],
.ad-form input[type="url"],
.ad-form input[type="number"] {
	height: 40px;
	padding: 0 var(--space-sm);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--bg);
	color: var(--text);
	font-size: var(--font-sm);
	transition: border-color var(--transition-fast);
}

.ad-form input[type="text"]:focus,
.ad-form input[type="url"]:focus,
.ad-form input[type="number"]:focus {
	outline: none;
	border-color: #EF4444;
}

.ad-form input[type="range"] {
	width: 100%;
	accent-color: #EF4444;
}

/* Inline link row */
.inline-row {
	display: flex;
	gap: var(--space-xs);
	align-items: center;
}

.link-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
}

.check-btn {
	flex: 0 0 auto;
	height: 40px;
	padding: 0 var(--space-sm);
	border-radius: var(--radius-md);
	border: 1px solid var(--border);
	background: var(--bg-tertiary);
	color: var(--text);
	font-weight: 600;
	font-size: var(--font-xs);
	cursor: pointer;
	transition: all var(--transition-fast);
}

.check-btn:hover {
	background: var(--bg-secondary);
	border-color: #EF4444;
}

.status-text {
	font-size: 11px;
	color: var(--text-secondary);
}

.status-text.ok {
	color: var(--success);
}

.status-text.error {
	color: var(--error);
}

.status-text.loading {
	color: var(--text-secondary);
}

.range-output {
	font-size: 11px;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.range-output .hint {
	color: var(--text-secondary);
	font-weight: 600;
}

/* Disabled range visual cue */
input[type="range"][disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Video info display - Compact */
.video-info {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-sm);
	background: var(--bg-tertiary);
	border-radius: var(--radius-md);
	margin-top: 6px;
}

.video-info .video-thumbnail {
	width: 80px;
	height: 45px;
	border-radius: var(--radius-sm);
	object-fit: cover;
	background: var(--bg);
	flex-shrink: 0;
}

.video-info .video-details {
	flex: 1;
	min-width: 0;
}

.video-info .video-title {
	font-weight: 600;
	font-size: var(--font-xs);
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.video-info .video-duration {
	font-size: 11px;
	color: var(--text-secondary);
	margin-top: 2px;
}

.video-info .video-type {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(239, 68, 68, 0.1);
	color: #EF4444;
	margin-top: 4px;
}

.cost-rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--bg-tertiary);
	border-radius: var(--radius-md);
	padding: var(--space-sm);
}

.cost-rows .row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: var(--font-xs);
	color: var(--text-secondary);
}

.cost-rows .row.total {
	font-weight: 700;
	color: var(--text);
	padding-top: 8px;
	margin-top: 2px;
	border-top: 1px solid var(--border);
}

.cost-rows .row.spacer {
	height: 8px;
}

.cost-rows .row.small-text {
	font-size: 10px;
	color: var(--text-muted, #6b7280);
	opacity: 0.8;
}

.actions {
	display: flex;
	justify-content: stretch;
	margin-top: var(--space-md);
}

.actions .btn-primary {
	height: 48px;
	padding: 0 var(--space-md);
	border: none;
	border-radius: var(--radius-md);
	background: #EF4444;
	color: #fff;
	font-weight: 700;
	font-size: var(--font-sm);
	cursor: pointer;
	width: 100%;
	transition: all var(--transition-fast);
}

.actions .btn-primary:hover {
	background: #DC2626;
	transform: translateY(-1px);
}

.notice {
	margin-top: var(--space-sm);
	font-size: 11px;
	color: var(--text-secondary);
	text-align: center;
}

/* Modal styles - Centered, animated - Red theme */
.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-md);
}

.modal-overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
}

.modal {
	position: relative;
	width: 90%;
	max-width: 360px;
	background: var(--bg-secondary, #1C1917);
	color: var(--text);
	border-radius: 20px;
	border: 1px solid var(--border, #292524);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.modal-header {
	text-align: center;
	padding: 24px 24px 0 24px;
	font-weight: 700;
	font-size: 18px;
}

.modal-body {
	padding: 16px 24px;
	line-height: 1.5;
	text-align: center;
}

.modal-body p {
	font-size: 13px;
	color: var(--text-secondary, #A8A29E);
	margin: 0;
}

.modal-body .summary {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 16px;
	font-size: 13px;
	text-align: left;
	background: var(--bg-tertiary, #292524);
	border-radius: 12px;
	padding: 16px;
	margin-top: 12px;
}

.modal-body .summary > div:nth-child(odd) {
	color: var(--text-secondary, #A8A29E);
}

.modal-body .summary > div:nth-child(even) {
	color: var(--text, #FAFAF9);
}

.modal-actions {
	display: flex;
	gap: 12px;
	padding: 16px 24px 24px;
}

.modal-actions .btn {
	flex: 1;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--bg-tertiary);
	color: var(--text);
	font-weight: 600;
	font-size: var(--font-sm);
	cursor: pointer;
	transition: all var(--transition-fast);
}

.modal-actions .btn:hover {
	background: var(--bg);
}

.modal-actions .btn.primary {
	background: #EF4444;
	color: #fff;
	border: none;
}

.modal-actions .btn.primary:hover {
	background: #DC2626;
}

.modal-actions .btn.danger {
	background: #EF4444;
	color: #fff;
	border: none;
}

.modal-actions .btn.danger:hover {
	background: #DC2626;
}

/* Publish success sheet */
.success-sheet {
	text-align: center;
	padding: var(--space-md);
}

.success-sheet .icon {
	font-size: 40px;
	line-height: 1;
}

.success-sheet .title {
	font-weight: 700;
	font-size: var(--font-md);
	margin-top: var(--space-xs);
	color: var(--text);
}

.success-sheet .desc {
	font-size: var(--font-xs);
	color: var(--text-secondary);
	margin-top: var(--space-xs);
}

.success-sheet .cta {
	margin-top: var(--space-md);
	display: flex;
	gap: var(--space-sm);
}

.success-sheet .cta .btn {
	flex: 1;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--bg-tertiary);
	color: var(--text);
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition-fast);
}

.success-sheet .cta .btn:hover {
	background: var(--bg);
}

.success-sheet .cta .btn.primary {
	background: #EF4444;
	color: #fff;
	border: none;
}

.success-sheet .cta .btn.primary:hover {
	background: #DC2626;
}

/* Inline warning text */
.inline-warning {
	font-size: 11px;
	color: var(--error, #EF4444);
	margin-top: 4px;
	display: none;
}

.inline-warning.visible {
	display: block;
}