/* Avi Support Assistant – admin styles. */

.avca-tabs {
	margin-bottom: 8px;
}

.js .avca-tab-panel {
	display: none;
}

.js .avca-tab-panel.is-active {
	display: block;
}

.avca-faq-table input,
.avca-faq-table textarea {
	width: 100%;
}

.avca-faq-table td {
	vertical-align: top;
}

.avca-faq-table .avca-col-action {
	width: 70px;
	text-align: right;
}

.avca-faq-table tr.is-new td {
	background: #f0f6fc;
}

.avca-icon-field {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

#avca-icon-preview {
	width: 72px;
	height: 72px;
	padding: 4px;
	object-fit: contain;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #f6f7f7;
}

.avca-inline-check {
	display: inline-block;
	margin: 0 16px 6px 0;
}

.avca-inline-form {
	display: inline-block;
	margin-left: 8px;
}

.avca-clear-form {
	margin-top: 16px;
}

.avca-shortcode-help {
	color: #646970;
}

/* Upgrade page. */
.avca-upgrade-intro {
	font-size: 14px;
}

.avca-feature-list li {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	font-size: 14px;
}

.avca-feature-list .dashicons {
	color: #00a32a;
}

.avca-plans {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 24px 0 16px;
}

.avca-plan {
	position: relative;
	flex: 1 1 220px;
	max-width: 300px;
	padding: 24px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}

.avca-plan.is-popular {
	border: 2px solid #2271b1;
}

.avca-plan h2 {
	margin: 0 0 4px;
}

.avca-plan-sites {
	margin: 0;
	color: #646970;
}

.avca-plan-price {
	margin: 14px 0 6px;
	font-size: 14px;
}

.avca-plan-price strong {
	font-size: 32px;
	line-height: 1.1;
}

.avca-plan ul {
	margin: 0 0 18px;
	color: #50575e;
}

.avca-plan-badge {
	position: absolute;
	top: -12px;
	right: 16px;
	padding: 2px 10px;
	border-radius: 12px;
	background: #2271b1;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

/* Locked Pro tabs. */
.avca-pro-badge {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 6px;
	border-radius: 8px;
	background: #2271b1;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
	vertical-align: middle;
}

.avca-pro-teaser {
	position: relative;
	max-width: 720px;
	margin: 20px 0;
	padding: 28px 32px;
	border: 1px solid #dcdcde;
	border-left: 4px solid #2271b1;
	border-radius: 8px;
	background: #fff;
}

.avca-pro-teaser h2 {
	margin: 0 0 8px;
	padding-right: 40px;
	font-size: 20px;
}

.avca-pro-lock {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 28px;
	height: 28px;
	color: #8c8f94;
	font-size: 28px;
}

.avca-pro-intro {
	margin: 0 0 14px;
	font-size: 14px;
	color: #50575e;
}

.avca-pro-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin: 20px 0 10px;
}

.avca-pro-price {
	color: #50575e;
	font-weight: 600;
}

.js .avca-submit-row.is-hidden {
	display: none;
}

/* FAQ Toolbar & Plan Status Pill */
.avca-faq-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
}

.avca-faq-status-pill {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	line-height: 1.4;
}

.avca-faq-status-pill.is-free {
	background: #f0f6fc;
	border: 1px solid #c8e1ff;
	color: #0969da;
}

.avca-faq-status-pill.is-pro {
	background: #f6ffed;
	border: 1px solid #b7eb8f;
	color: #237804;
}

.avca-faq-status-pill .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.avca-pill-upgrade-link {
	margin-left: 6px;
	font-weight: 600;
	text-decoration: underline;
	color: #0969da;
}

.avca-pill-upgrade-link:hover {
	color: #0550ae;
}

.avca-faq-table-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 14px;
}

.avca-faq-table-actions .dashicons,
.avca-faq-toolbar .dashicons {
	vertical-align: middle;
	margin-top: -2px;
}

/* Modals */
body.avca-modal-open {
	overflow: hidden;
}

.avca-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.avca-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(2px);
}

.avca-modal-container {
	position: relative;
	width: 100%;
	max-width: 860px;
	max-height: 90vh;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 2;
	animation: avcaModalFadeIn 0.2s ease-out;
}

.avca-modal-container.avca-modal-sm {
	max-width: 520px;
}

@keyframes avcaModalFadeIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.avca-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 20px 24px 16px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.avca-modal-header h2 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.avca-modal-subtitle {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.avca-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px 8px;
	margin: -4px -8px 0 0;
	border-radius: 6px;
}

.avca-modal-close:hover {
	color: #0f172a;
	background: #e2e8f0;
}

.avca-modal-body {
	padding: 20px 24px;
	overflow-y: auto;
	flex: 1 1 auto;
}

.avca-modal-footer {
	padding: 14px 24px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafc;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* Modal Callout */
.avca-tier-callout {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 8px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
	font-size: 13px;
	line-height: 1.5;
}

.avca-tier-callout.is-pro {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #166534;
}

.avca-tier-callout .dashicons {
	margin-top: 2px;
	font-size: 20px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Template Grid & Cards */
.avca-template-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
	gap: 18px;
}

.avca-template-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 18px;
	background: #ffffff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.avca-template-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.avca-tpl-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.avca-tpl-icon {
	width: 36px;
	height: 36px;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef2ff;
	color: #4f46e5;
	border-radius: 8px;
	flex-shrink: 0;
}

.avca-tpl-header-text {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.avca-tpl-header-text h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
}

.avca-tpl-badge {
	font-size: 11px;
	font-weight: 600;
	background: #f1f5f9;
	color: #475569;
	padding: 2px 8px;
	border-radius: 12px;
}

.avca-tpl-desc {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 12px;
	line-height: 1.45;
}

.avca-tpl-preview-list {
	background: #f8fafc;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 16px;
	flex: 1 1 auto;
}

.avca-tpl-preview-list strong {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin-bottom: 6px;
}

.avca-tpl-preview-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.avca-tpl-preview-list li {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #334155;
	padding: 4px 0;
	border-bottom: 1px dashed #e2e8f0;
}

.avca-tpl-preview-list li:last-child {
	border-bottom: none;
}

.avca-tpl-preview-list li.is-pro-locked {
	color: #94a3b8;
}

.avca-tpl-preview-list .dashicons-saved {
	color: #10b981;
	font-size: 15px;
	width: 15px;
	height: 15px;
}

.avca-tpl-preview-list .dashicons-lock {
	color: #94a3b8;
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.avca-q-text {
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.avca-pro-tag {
	font-size: 9px;
	font-weight: 700;
	background: #e2e8f0;
	color: #475569;
	padding: 1px 4px;
	border-radius: 4px;
	letter-spacing: 0.05em;
}

.avca-tpl-card-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
}

.avca-tpl-card-actions .button {
	flex: 1 1 auto;
	font-size: 12px;
	text-align: center;
	justify-content: center;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.avca-tpl-card-actions .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	margin: 0;
}

/* Feature bullets in limit modal */
.avca-limit-feature-bullets {
	margin: 16px 0;
	padding: 0;
	list-style: none;
}

.avca-limit-feature-bullets li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	padding: 6px 0;
	color: #1e293b;
}

.avca-limit-feature-bullets .dashicons-yes {
	color: #10b981;
	font-size: 18px;
	width: 18px;
	height: 18px;
}
