/**
 * Public styles for Exam Studio.
 */

/* Custom Modal/Notification Styles */
.ex-s-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(4px);
}

.ex-s-modal-overlay.show {
	opacity: 1;
}

.ex-s-modal {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	max-width: 400px;
	width: 90%;
	padding: 0;
	transform: scale(0.9);
	transition: transform 0.3s ease;
	overflow: hidden;
}

.ex-s-modal-overlay.show .ex-s-modal {
	transform: scale(1);
}

.ex-s-modal-header {
	padding: 24px 24px 16px;
	border-bottom: 1px solid #e5e7eb;
}

.ex-s-modal-title {
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ex-s-modal-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.ex-s-modal-icon.warning {
	color: #f59e0b;
}

.ex-s-modal-icon.success {
	color: #10b981;
}

.ex-s-modal-icon.error {
	color: #ef4444;
}

.ex-s-modal-icon.info {
	color: #3b82f6;
}

.ex-s-modal-body {
	padding: 20px 24px;
	color: #4b5563;
	font-size: 16px;
	line-height: 1.5;
}

.ex-s-modal-footer {
	padding: 16px 24px 24px;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	border-top: 1px solid #e5e7eb;
}

.ex-s-modal-btn {
	padding: 10px 24px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	min-width: 100px;
}

.ex-s-modal-btn-primary {
	background: #dc2626;
	color: #ffffff;
}

.ex-s-modal-btn-primary:hover {
	background: #b91c1c;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ex-s-modal-btn-secondary {
	background: #f3f4f6;
	color: #374151;
}

.ex-s-modal-btn-secondary:hover {
	background: #e5e7eb;
	color: #374151 !important;
}

.ex-s-modal-btn-success {
	background: #10b981;
	color: #ffffff;
}

.ex-s-modal-btn-success:hover {
	background: #059669;
}

/* Custom Alert Modal Styles */
.ex-s-alert-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10002;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(6px);
}

.ex-s-alert-overlay.show {
	opacity: 1;
}

.ex-s-alert-modal {
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	max-width: 480px;
	width: 90%;
	padding: 0;
	transform: scale(0.9) translateY(20px);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	overflow: hidden;
	animation: ex-s-alert-pulse 0.3s ease;
}

@keyframes ex-s-alert-pulse {
	0% {
		transform: scale(0.8) translateY(30px);
		opacity: 0;
	}
	50% {
		transform: scale(1.05) translateY(-5px);
	}
	100% {
		transform: scale(1) translateY(0);
		opacity: 1;
	}
}

.ex-s-alert-overlay.show .ex-s-alert-modal {
	transform: scale(1) translateY(0);
}

.ex-s-alert-header {
	padding: 28px 28px 20px;
	text-align: center;
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border-bottom: 2px solid #fbbf24;
}

.ex-s-alert-icon-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.ex-s-alert-icon {
	width: 48px;
	height: 48px;
	color: #f59e0b;
	animation: ex-s-alert-icon-bounce 0.6s ease;
}

@keyframes ex-s-alert-icon-bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.ex-s-alert-title {
	font-size: 22px;
	font-weight: 700;
	color: #92400e;
	margin: 0;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ex-s-alert-body {
	padding: 24px 28px;
	text-align: center;
	background: #ffffff;
}

.ex-s-alert-message {
	font-size: 16px;
	font-weight: 500;
	color: #374151;
	margin: 0;
	line-height: 1.8;
	text-align: left;
}

.ex-s-alert-message br {
	display: block;
	margin: 4px 0;
}

.ex-s-alert-or {
	display: block;
	text-align: center;
	font-weight: 600;
	color: #f59e0b;
	margin: 0;
}

.ex-s-alert-footer {
	padding: 20px 28px 28px;
	display: flex;
	gap: 12px;
	justify-content: center;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
}

.ex-s-alert-btn {
	padding: 12px 28px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	min-width: 140px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ex-s-alert-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ex-s-alert-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ex-s-alert-btn-primary {
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	color: #ffffff;
	font-weight: 700;
}

.ex-s-alert-btn-primary:hover {
	background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
	color: #ffffff !important;
}

.ex-s-alert-btn-secondary {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #ffffff;
	font-weight: 700;
}

.ex-s-alert-btn-secondary:hover {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #ffffff !important;
}

/* Toast Notification Styles */
.ex-s-toast {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	padding: 16px 20px;
	min-width: 300px;
	max-width: 400px;
	z-index: 10001;
	transform: translateX(400px);
	transition: transform 0.3s ease;
	display: flex;
	align-items: center;
	gap: 12px;
	border-left: 4px solid;
}

.ex-s-toast.show {
	transform: translateX(0);
}

.ex-s-toast.success {
	border-left-color: #10b981;
}

.ex-s-toast.error {
	border-left-color: #ef4444;
}

.ex-s-toast.warning {
	border-left-color: #f59e0b;
}

.ex-s-toast.info {
	border-left-color: #3b82f6;
}

.ex-s-toast-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.ex-s-toast-content {
	flex: 1;
}

.ex-s-toast-message {
	font-size: 14px;
	font-weight: 500;
	color: #111827;
	margin: 0;
}

.ex-s-toast-close {
	background: none;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	font-size: 18px;
	transition: color 0.2s;
}

.ex-s-toast-close:hover {
	color: #374151;
}

/* Checkout and Orders Styles */
.ex-s-checkout-container {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
}

.ex-s-checkout-header {
	margin-bottom: 30px;
	text-align: center;
}

.ex-s-checkout-header h2 {
	margin: 0 0 10px 0;
	color: #333;
}

.ex-s-checkout-pack-title {
	font-size: 18px;
	color: #666;
	margin: 0;
}

.ex-s-checkout-summary {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}

.ex-s-checkout-summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
}

.ex-s-checkout-summary-item:last-child {
	border-bottom: none;
}

.ex-s-checkout-label {
	font-weight: 600;
	color: #333;
}

.ex-s-checkout-value {
	color: #666;
}

.ex-s-checkout-amount {
	font-size: 24px;
	font-weight: bold;
	color: #dc2626;
}

.ex-s-checkout-pay-btn {
	width: 100%;
	padding: 14px 24px;
	background: #dc2626;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.ex-s-checkout-pay-btn:hover {
	background: #b91c1c;
}

.ex-s-checkout-error {
	background: #fee2e2;
	color: #991b1b;
	padding: 12px;
	border-radius: 6px;
	margin-top: 16px;
}

.ex-s-my-orders-container h2 {
	text-align: center;
}

.ex-s-my-orders-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
}

.ex-s-my-orders-empty {
	text-align: center;
	color: #666;
	padding: 40px 20px;
}

.ex-s-my-orders-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ex-s-order-item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
}

.ex-s-order-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
}

.ex-s-order-info {
	flex: 1;
}

.ex-s-order-pack-title {
	margin: 0 0 8px 0;
	font-size: 18px;
	color: #333;
}

.ex-s-order-number {
	margin: 0;
	color: #666;
	font-size: 14px;
}

.ex-s-order-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.ex-s-order-status-completed {
	background: #d1fae5;
	color: #065f46;
}

.ex-s-order-status-pending {
	background: #fed7aa;
	color: #9a3412;
}

.ex-s-order-status-failed {
	background: #fee2e2;
	color: #991b1b;
}

.ex-s-order-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.ex-s-order-detail-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ex-s-order-label {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	font-weight: 600;
}

.ex-s-order-value {
	font-size: 14px;
	color: #333;
}

.ex-s-order-actions {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.ex-s-order-view-pack-btn,
.ex-s-order-download-invoice-btn {
	padding: 8px 16px;
	border: 1px solid #dc2626;
	color: #dc2626;
	background: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s;
}

.ex-s-order-view-pack-btn:hover,
.ex-s-order-download-invoice-btn:hover {
	background: #dc2626;
	color: #fff;
}

.ex-s-test-wrapper { border: 1px solid #e2e8f0; padding: 16px; background: #fff; border-radius: 12px; }
.ex-s-test-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0 14px; border-bottom: 1px solid #e2e8f0; margin-bottom: 14px; flex-wrap: wrap; }

/* Runner topbar header */
.ex-s-runner-topbar {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 12px;
	background: #fff;
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	position: relative;
}
.ex-s-runner-topbar .ex-s-candidate {
	display: flex;
	gap: 12px;
	align-items: center;
	flex: 1;
}
.ex-s-runner-topbar .ex-s-btn-fullscreen {
	margin-left: auto;
	flex-shrink: 0;
	align-self: flex-start;
}
.ex-s-runner-topbar .ex-s-avatar {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
.ex-s-runner-topbar .ex-s-avatar img {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
	display: block;
}
.ex-s-runner-topbar .ex-s-candidate-meta {
	flex: 1;
}
.ex-s-runner-topbar .ex-s-candidate-meta > div {
	margin-bottom: 6px;
}
.ex-s-runner-topbar .ex-s-candidate-meta > div:last-child {
	margin-bottom: 0;
}
.ex-s-runner-topbar .ex-s-candidate-meta .lbl {
	font-weight: 700;
	margin-right: 6px;
}
.ex-s-runner-topbar .ex-s-candidate-meta .val {
	font-weight: 800;
}
.ex-s-runner-topbar .ex-s-timer {
	background: #0ea5e9;
	color: #fff;
	padding: 2px 8px;
	border-radius: 6px;
	font-weight: 800;
}
.ex-s-test-title { font-weight: 600; }
.ex-s-timer { font-weight: 600; }
.ex-s-test-wrapper .ex-s-btn-fullscreen {
	-webkit-appearance: none;
	appearance: none;
	height: 38px !important;
	min-height: 38px !important;
	padding: 0 12px !important;
	border-radius: 999px !important;
	border: 1px solid #cbd5e1 !important;
	background: #f8fafc !important;
	color: #0f172a !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
	transition: background 140ms ease, border-color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}
.ex-s-test-wrapper .ex-s-btn-fullscreen:hover {
	background: #e2e8f0 !important;
	border-color: #94a3b8 !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.ex-s-test-wrapper .ex-s-btn-fullscreen:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.28);
	outline-offset: 2px;
}
.ex-s-test-body { display: flex; gap: 16px; }
.ex-s-question-panel { flex: 3; }
.ex-s-palette-panel { flex: 1; border-left: 1px solid #e2e8f0; padding-left: 12px; max-height: 70vh; overflow: auto; }

/* Runner shell layout */
.ex-s-runner-shell {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	position: relative;
}
.ex-s-runner-left {
	flex: 1 1 auto;
	min-width: 0;
}
.ex-s-runner-right {
	width: 320px;
	position: sticky;
	top: 90px;
	transition: transform 0.3s ease, opacity 0.3s ease, margin-right 0.3s ease;
}
.ex-s-runner-right.collapsed {
	transform: translateX(100%);
	margin-right: -320px;
}
.ex-s-runner-right.collapsed > * {
	opacity: 0;
	pointer-events: none;
}
@media (max-width: 980px) {
	.ex-s-runner-shell {
		flex-direction: column;
	}
	.ex-s-runner-right {
		width: 100%;
		position: static;
	}
	.ex-s-question-title-toggle {
		display: none !important;
	}
}

/* Runner spacing */
.ex-s-test-wrapper .ex-s-question-number { font-weight: 600; color: #0f172a; margin: 6px 0 10px; }
.ex-s-test-wrapper .ex-s-passage-panel { border: 1px solid #e5e7eb; border-radius: 16px; padding: 14px; background: #fff; margin-bottom: 12px; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06); }
.ex-s-test-wrapper .ex-s-passage-title { font-weight: 900; margin-bottom: 8px; }
.ex-s-test-wrapper .ex-s-passage-content {
	opacity: 0.95;
	line-height: 1.6;
	max-height: 300px;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: auto;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.ex-s-test-wrapper .ex-s-passage-content table { width: 100%; border-collapse: collapse; }
.ex-s-test-wrapper .ex-s-passage-content td,
.ex-s-test-wrapper .ex-s-passage-content th { border: 1px solid #e2e8f0; padding: 8px; }
.ex-s-test-wrapper .ex-s-question-text {
	color: #0f172a;
	line-height: 1.55;
	margin-bottom: 12px;
	max-height: 400px;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: auto;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.ex-s-test-wrapper .ex-s-options { display: grid; gap: 10px; margin-top: 10px; }
.ex-s-test-wrapper .ex-s-options label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px; border: 1px solid #e2e8f0; border-radius: 10px; margin: 0; cursor: pointer; background: #fff; transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.ex-s-test-wrapper .ex-s-options label:hover { border-color: #cbd5e1; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02); }
.ex-s-test-wrapper .ex-s-options input { margin: 3px 0 0; flex: 0 0 auto; }
.ex-s-test-wrapper .ex-s-options label.is-selected { border-color: #93c5fd; background: #eff6ff; }

/* Question topbar (Q number + report button) */
.ex-s-test-wrapper .ex-s-question-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 6px 0 10px;
	padding: 10px 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	flex-wrap: nowrap;
}
.ex-s-test-wrapper .ex-s-question-topbar .ex-s-question-number { margin: 0; flex: 1 1 auto; min-width: 0; }
.ex-s-question-topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
	flex-shrink: 0;
	margin-right: 12px;
}
.ex-s-question-topbar .ex-s-btn-fullscreen {
	margin: 0;
	white-space: nowrap;
}
.ex-s-test-wrapper .ex-s-btn-report-question {
	white-space: nowrap;
	margin-right: 0;
}
@media (max-width: 480px) {
	.ex-s-test-wrapper .ex-s-question-topbar {
		flex-wrap: wrap;
	}
	.ex-s-test-wrapper .ex-s-question-topbar .ex-s-question-number {
		width: 100%;
		margin-bottom: 8px;
	}
	.ex-s-question-topbar-actions {
		width: 100%;
		justify-content: flex-start;
		margin-right: 0;
	}
}
.ex-s-test-wrapper .ex-s-question-title {
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	position: relative;
}
.ex-s-question-title-toggle {
	background: transparent !important;
	border: none !important;
	padding: 4px 8px !important;
	cursor: pointer;
	color: #0f172a;
	font-size: 16px;
	line-height: 1;
	transition: transform 0.3s ease, color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: auto;
}
.ex-s-question-title-toggle:hover {
	color: #2563eb;
}
.ex-s-question-title-toggle .ex-s-question-toggle-arrow {
	display: inline-block;
	transition: opacity 0.3s ease;
	font-size: 24px;
}
.ex-s-question-title-toggle .bi-arrow-left-square-fill {
	display: none;
	color: #dc2626 !important;
	font-size: 24px;
}
.ex-s-question-title-toggle .bi-arrow-right-square-fill {
	display: inline-block;
	color: #dc2626 !important;
	font-size: 24px;
}
.ex-s-runner-right.collapsed ~ .ex-s-runner-left .ex-s-question-title-toggle .bi-arrow-left-square-fill {
	display: inline-block;
}
.ex-s-runner-right.collapsed ~ .ex-s-runner-left .ex-s-question-title-toggle .bi-arrow-right-square-fill {
	display: none;
}
.ex-s-test-wrapper .ex-s-btn-report-question {
	-webkit-appearance: none;
	appearance: none;
	height: 38px !important;
	min-height: 38px !important;
	padding: 0 12px !important;
	border-radius: 999px !important;
	border: 1px solid #cbd5e1 !important;
	background: #ffffff !important;
	color: #0f172a !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	cursor: pointer;
	margin-right: 10px !important;
}
.ex-s-question-topbar-actions {
	margin-right: 12px;
}
@media (max-width: 768px) {
	.ex-s-question-topbar-actions {
		margin-right: 0;
	}
}
.ex-s-test-wrapper .ex-s-btn-report-question:hover { background: #f8fafc !important; border-color: #94a3b8 !important; }
.ex-s-test-wrapper .ex-s-btn-report-question.ex-s-reported-state {
	color: #dc2626 !important;
}

/* Report modal form */
.ex-s-test-wrapper .ex-s-report-sub { margin: 0 0 10px; color: #334155; }
.ex-s-test-wrapper .ex-s-report-form { display: grid; gap: 10px; margin: 10px 0 14px; }
.ex-s-test-wrapper .ex-s-report-input {
	width: 100%;
	border-radius: 10px;
	border: 1px solid #cbd5e1;
	padding: 10px 12px;
	background: #ffffff;
}
.ex-s-test-wrapper .ex-s-report-input:focus { outline: 3px solid rgba(37, 99, 235, 0.20); border-color: #93c5fd; }
.ex-s-test-wrapper .ex-s-report-alert {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #7f1d1d;
	border-radius: 12px;
	padding: 10px 12px;
	margin: 8px 0;
}

/* Report modal button colors (override generic modal yes/no colors) */
.ex-s-test-wrapper .ex-s-report-modal .ex-s-report-submit {
	background: #2563eb;
	border-color: #2563eb;
}
.ex-s-test-wrapper .ex-s-report-modal .ex-s-report-submit:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff !important;
}
.ex-s-test-wrapper .ex-s-report-modal .ex-s-report-cancel {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #0f172a;
}
.ex-s-test-wrapper .ex-s-report-modal .ex-s-report-cancel:hover {
	background: #e2e8f0;
	border-color: #94a3b8;
	color: #fff !important;
}

.ex-s-actions, .ex-s-nav { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ex-s-actions { padding-top: 2px; }
.ex-s-nav { padding-top: 6px; border-top: 1px dashed #e2e8f0; }
.ex-s-actions button, .ex-s-nav button { flex: 1 1 180px; }

/* Actions row (new design) */
.ex-s-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.ex-s-btn {
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	padding: 10px 14px;
	font-weight: 800;
	cursor: pointer;
	background: #fff;
	color: #0f172a;
	transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}
.ex-s-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.ex-s-btn-save-next {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}
.ex-s-btn-save-next:hover {
	background: #22c55e;
	border-color: #22c55e;
}
.ex-s-btn-clear {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a;
}
.ex-s-btn-clear:hover {
	background: #fff;
	border-color: #cbd5e1;
}
.ex-s-btn-save-mark {
	background: #d97706;
	border-color: #d97706;
	color: #fff;
}
.ex-s-btn-save-mark:hover {
	background: #f59e0b;
	border-color: #f59e0b;
}
.ex-s-btn-mark-next {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}
.ex-s-btn-mark-next:hover {
	background: #3b82f6;
	border-color: #3b82f6;
}

/* Bottom nav (new design) */
.ex-s-nav,
.ex-s-bottom-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e5e7eb;
}
.ex-s-btn-back,
.ex-s-btn-next {
	border-radius: 6px;
	border: 1px solid #94a3b8;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	background: #f8fafc;
	color: #0f172a;
	transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.ex-s-btn-back {
	color: #000;
}
.ex-s-btn-back:hover {
	background: #fff;
	border-color: #cbd5e1;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.ex-s-btn-next:hover {
	background: #fff;
	border-color: #cbd5e1;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.ex-s-btn-submit {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
	padding: 10px 18px;
	border-radius: 6px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}
.ex-s-btn-submit:hover {
	background: #22c55e;
	border-color: #22c55e;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* Button system (scoped to runner wrapper to avoid theme conflicts) */
.ex-s-test-wrapper .ex-s-btn-clear,
.ex-s-test-wrapper .ex-s-btn-save,
.ex-s-test-wrapper .ex-s-btn-mark,
.ex-s-test-wrapper .ex-s-btn-prev,
.ex-s-test-wrapper .ex-s-btn-back,
.ex-s-test-wrapper .ex-s-btn-next,
.ex-s-test-wrapper .ex-s-btn-submit {
	-webkit-appearance: none;
	appearance: none;
	height: 44px !important;
	min-height: 44px !important;
	padding: 0 14px !important;
	border-radius: 10px !important;
	border-width: 1px !important;
	border-style: solid !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px;
	cursor: pointer;
	transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
	text-decoration: none;
	user-select: none;
}

.ex-s-test-wrapper .ex-s-btn-clear:focus-visible,
.ex-s-test-wrapper .ex-s-btn-save:focus-visible,
.ex-s-test-wrapper .ex-s-btn-mark:focus-visible,
.ex-s-test-wrapper .ex-s-btn-prev:focus-visible,
.ex-s-test-wrapper .ex-s-btn-back:focus-visible,
.ex-s-test-wrapper .ex-s-btn-next:focus-visible,
.ex-s-test-wrapper .ex-s-btn-submit:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.28);
	outline-offset: 2px;
}

.ex-s-test-wrapper .ex-s-btn-clear:hover,
.ex-s-test-wrapper .ex-s-btn-save:hover,
.ex-s-test-wrapper .ex-s-btn-mark:hover,
.ex-s-test-wrapper .ex-s-btn-prev:hover,
.ex-s-test-wrapper .ex-s-btn-back:hover,
.ex-s-test-wrapper .ex-s-btn-next:hover,
.ex-s-test-wrapper .ex-s-btn-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.ex-s-test-wrapper .ex-s-btn-clear:active,
.ex-s-test-wrapper .ex-s-btn-save:active,
.ex-s-test-wrapper .ex-s-btn-mark:active,
.ex-s-test-wrapper .ex-s-btn-prev:active,
.ex-s-test-wrapper .ex-s-btn-back:active,
.ex-s-test-wrapper .ex-s-btn-next:active,
.ex-s-test-wrapper .ex-s-btn-submit:active {
	transform: translateY(0px);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.10);
}

.ex-s-test-wrapper .ex-s-btn-clear[disabled],
.ex-s-test-wrapper .ex-s-btn-save[disabled],
.ex-s-test-wrapper .ex-s-btn-mark[disabled],
.ex-s-test-wrapper .ex-s-btn-prev[disabled],
.ex-s-test-wrapper .ex-s-btn-back[disabled],
.ex-s-test-wrapper .ex-s-btn-next[disabled],
.ex-s-test-wrapper .ex-s-btn-submit[disabled] {
	opacity: 0.55;
	cursor: not-allowed !important;
	transform: none !important;
	box-shadow: none !important;
}

/* Clear: neutral gray outline */
.ex-s-test-wrapper .ex-s-btn-clear {
	background: #f8fafc !important;
	border-color: #64748b !important;
	color: #334155 !important;
}
.ex-s-test-wrapper .ex-s-btn-clear:hover { background: transparent !important; border-color: #94a3b8 !important; color: #475569 !important; }

/* Save & Next: primary blue */
.ex-s-test-wrapper .ex-s-btn-save {
	background: #1d4ed8 !important;
	border-color: #1d4ed8 !important;
	color: #ffffff !important;
}
.ex-s-test-wrapper .ex-s-btn-save:hover { background: #2563eb !important; border-color: #2563eb !important; }

/* Mark for Review & Next: distinct purple */
.ex-s-test-wrapper .ex-s-btn-mark {
	background: #6d28d9 !important;
	border-color: #6d28d9 !important;
	color: #ffffff !important;
}
.ex-s-test-wrapper .ex-s-btn-mark:hover { background: #7c3aed !important; border-color: #7c3aed !important; }

/* Previous/Next: secondary light gray */
.ex-s-test-wrapper .ex-s-btn-prev,
.ex-s-test-wrapper .ex-s-btn-back,
.ex-s-test-wrapper .ex-s-btn-next {
	background: #e2e8f0 !important;
	border-color: #94a3b8 !important;
	color: #0f172a !important;
}
.ex-s-test-wrapper .ex-s-btn-prev:hover,
.ex-s-test-wrapper .ex-s-btn-back:hover,
.ex-s-test-wrapper .ex-s-btn-next:hover {
	background: #f1f5f9 !important;
	border-color: #cbd5e1 !important;
}

/* Submit: green (same as Save & Next) */
.ex-s-test-wrapper .ex-s-btn-submit {
	background: #16a34a !important;
	border-color: #16a34a !important;
	color: #ffffff !important;
}
.ex-s-test-wrapper .ex-s-btn-submit:hover { background: #22c55e !important; border-color: #22c55e !important; }

.ex-s-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ex-s-legend-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; border: 1px solid #cbd5e1; color: #0f172a; background: #f8fafc; }
.ex-s-legend-pill.not-visited { background: #e2e8f0; border-color: #cbd5e1; }
.ex-s-legend-pill.not-answered { background: #fee2e2; border-color: #fecaca; }
.ex-s-legend-pill.answered { background: #dcfce7; border-color: #86efac; }
.ex-s-legend-pill.marked { background: #fef9c3; border-color: #fde047; }

/* Legend panel (new design) */
.ex-s-legend-panel {
	border: 2px dotted #cbd5e1;
	border-radius: 10px;
	padding: 12px;
	background: #fff;
	margin-bottom: 12px;
}
.ex-s-legend-panel h4 {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e7eb;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	text-align: center;
}
.ex-s-legend-counts {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.ex-s-legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}
.ex-s-legend-item:first-child {
	margin-top: 0;
}
.ex-s-legend-item:last-child {
	margin-bottom: 0;
}
.ex-s-legend-box {
	width: 34px;
	height: 28px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	color: #111;
	border: 1px solid #cbd5e1;
	flex-shrink: 0;
}
.ex-s-legend-box .cnt {
	font-weight: 900;
	font-size: 14px;
}
.ex-s-legend-item .txt {
	flex: 1;
	font-weight: 700;
	font-size: 14px;
	color: #0f172a;
}
.ex-s-legend-pill {
	width: 34px;
	height: 28px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	color: #111;
	border: 1px solid #cbd5e1;
	flex-shrink: 0;
}
.ex-s-legend-box.legend-not-visited,
.ex-s-legend-pill.legend-not-visited,
.ex-s-legend-pill.not-visited {
	background: #f1f5f9;
}
.ex-s-legend-box.legend-not-answered,
.ex-s-legend-pill.legend-not-answered,
.ex-s-legend-pill.not-answered {
	background: #dc2626;
	color: #fff;
	border-color: #dc2626;
}
.ex-s-legend-box.legend-not-answered .cnt,
.ex-s-legend-pill.legend-not-answered .cnt,
.ex-s-legend-pill.not-answered .cnt {
	color: #fff;
}
.ex-s-legend-box.legend-answered,
.ex-s-legend-pill.legend-answered,
.ex-s-legend-pill.answered {
	background: #22c55e;
	color: #fff;
	border-color: #22c55e;
}
.ex-s-legend-box.legend-answered .cnt,
.ex-s-legend-pill.legend-answered .cnt,
.ex-s-legend-pill.answered .cnt {
	color: #fff;
}
.ex-s-legend-box.legend-marked,
.ex-s-legend-pill.legend-marked,
.ex-s-legend-pill.marked {
	background: #3b82f6;
	color: #fff;
	border-color: #3b82f6;
}
.ex-s-legend-box.legend-marked .cnt,
.ex-s-legend-pill.legend-marked .cnt,
.ex-s-legend-pill.marked .cnt {
	color: #fff;
}
.ex-s-legend-box.legend-answered-marked,
.ex-s-legend-pill.legend-answered-marked,
.ex-s-legend-pill.answered.marked {
	background: #f59e0b;
	color: #fff;
	border-color: #f59e0b;
}
.ex-s-legend-box.legend-answered-marked .cnt,
.ex-s-legend-pill.legend-answered-marked .cnt,
.ex-s-legend-pill.answered.marked .cnt {
	color: #fff;
}
/* Handle answered + marked combination */
.ex-s-legend-pill.answered.marked {
	background: #7c3aed !important;
	color: #fff !important;
	border-color: #7c3aed !important;
}
.ex-s-legend-label {
	flex: 1;
	font-weight: 700;
	font-size: 14px;
	color: #0f172a;
}
.ex-s-legend-count {
	font-weight: 800;
	font-size: 14px;
	color: #0f172a;
	min-width: 24px;
	text-align: right;
}
.ex-s-legend-note {
	font-size: 12px;
	opacity: 0.8;
	margin-top: 8px;
	color: #475569;
}

.ex-s-palette-counts { margin: 6px 0 10px; font-size: 12px; color: #334155; display: flex; flex-wrap: wrap; gap: 10px; }
.ex-s-palette-counts .ex-s-count { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-weight: 700; }
.ex-s-palette-counts .ex-s-count .dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; border: 1px solid rgba(15, 23, 42, 0.18); }
.ex-s-palette-counts .ex-s-count.not-visited .dot { background: #e2e8f0; }
.ex-s-palette-counts .ex-s-count.not-answered .dot { background: #fee2e2; }
.ex-s-palette-counts .ex-s-count.answered .dot { background: #dcfce7; }
.ex-s-palette-counts .ex-s-count.marked .dot { background: #fef9c3; }
.ex-s-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 6px; }
.ex-s-palette button {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px;
	min-height: 20px;
	max-width: 20px;
	max-height: 20px;
	padding: 0;
	border-radius: 4px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: #0f172a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
	flex-shrink: 0;
}
.ex-s-palette button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14); border-color: #94a3b8; }
.ex-s-palette button:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.28); outline-offset: 2px; }
.ex-s-palette button.current { outline: 3px solid rgba(37, 99, 235, 0.40); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.10); }
.ex-s-palette button.not-visited { background: #e2e8f0; }
.ex-s-palette button.not-answered { background: #fee2e2; }
.ex-s-palette button.answered { background: #dcfce7; }
.ex-s-palette button.marked { background: #fef9c3; }

/* Palette panel (new design) */
.ex-s-palette-panel {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	padding: 10px;
	margin-top: 12px;
}
.ex-s-palette-panel h4 {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e7eb;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	text-align: center;
}

/* Status tabs (overlapping colored rectangles) */
.ex-s-palette-status-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 12px;
	position: relative;
	height: 32px;
	justify-content: center;
	width: 100%;
}
.ex-s-pal-status-tab {
	width: 60px;
	height: 32px;
	border-radius: 8px;
	position: relative;
	margin-left: -20px;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.ex-s-pal-status-tab:first-child {
	margin-left: 0;
	z-index: 3;
}
.ex-s-pal-status-tab:nth-child(2) {
	z-index: 2;
}
.ex-s-pal-status-tab:nth-child(3) {
	z-index: 1;
}
.ex-s-pal-status-tab.st-answered-marked {
	background: #f59e0b;
}
.ex-s-pal-status-tab.st-marked {
	background: #3b82f6;
}
.ex-s-pal-status-tab.st-not-answered {
	background: #dc2626;
}

/* Question cards (overlapping) */
.ex-s-palette-cards {
	position: relative;
	height: 80px;
	margin-bottom: 12px;
	overflow: visible;
	padding-left: 0;
	width: 100%;
	min-height: 80px;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
}
.ex-s-pal-card {
	position: absolute;
	width: 60px;
	height: 60px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease, z-index 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	top: 0;
	left: 0;
}
.ex-s-pal-card:hover {
	transform: translateX(10px) translateY(-2px);
	z-index: 1000 !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.ex-s-pal-card.is-current {
	z-index: 5;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
	border-color: #3b82f6;
}
.ex-s-pal-card button {
	width: 100%;
	height: 100%;
	border: none;
	background: transparent;
	font-weight: 800;
	font-size: 16px;
	color: #0f172a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ex-s-pal-card.st-not-visited {
	background: #f1f5f9;
}
.ex-s-pal-card.st-not-answered {
	background: #dc2626;
}
.ex-s-pal-card.st-not-answered button {
	color: #fff;
}
.ex-s-pal-card.st-answered {
	background: #22c55e;
}
.ex-s-pal-card.st-answered button {
	color: #fff;
}
.ex-s-pal-card.st-marked {
	background: #3b82f6;
}
.ex-s-pal-card.st-marked button {
	color: #fff;
}
.ex-s-pal-card.st-answered-marked {
	background: #f59e0b;
}
.ex-s-pal-card.st-answered-marked button {
	color: #fff;
}

/* Palette navigation */
.ex-s-palette-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
}
.ex-s-pal-prev,
.ex-s-pal-next {
	width: 32px;
	height: 32px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0f172a;
	transition: background 140ms ease, border-color 140ms ease;
}
.ex-s-pal-prev:hover,
.ex-s-pal-next:hover {
	background: #f8fafc;
	border-color: #94a3b8;
}
.ex-s-pal-prev:disabled,
.ex-s-pal-next:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.ex-s-pal-indicator {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}
.ex-s-pal-current-page {
	font-weight: 800;
}

.ex-s-palette-scroll {
	max-height: 360px;
	overflow-y: auto;
	padding-right: 6px;
	display: grid;
	grid-template-columns: repeat(5, auto);
	justify-content: center;
	gap: 10px;
}
.ex-s-pal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
}
.ex-s-pal-btn,
.ex-s-palette-scroll button,
.ex-s-palette button {
	height: 20px !important;
	width: 20px !important;
	min-width: 20px;
	min-height: 20px;
	max-width: 20px;
	max-height: 20px;
	padding: 20px !important;
	margin: 0 !important;
	box-sizing: border-box;
	border-radius: 4px;
	border: 1px solid #cbd5e1;
	background: #f1f5f9;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	color: #0f172a;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
	flex-shrink: 0;
	line-height: 1;
}
.ex-s-pal-btn:hover,
.ex-s-palette-scroll button:hover,
.ex-s-palette button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
	border-color: #94a3b8;
}
.ex-s-pal-btn.is-current,
.ex-s-palette-scroll button.is-current,
.ex-s-palette button.is-current {
	outline: 3px solid rgba(59, 130, 246, 0.35);
}
.ex-s-pal-btn.st-not-visited,
.ex-s-palette-scroll button.st-not-visited,
.ex-s-palette button.st-not-visited {
	background: #f1f5f9;
}
.ex-s-pal-btn.st-not-answered,
.ex-s-palette-scroll button.st-not-answered,
.ex-s-palette button.st-not-answered {
	background: #dc2626;
	color: #fff;
	border-color: #dc2626;
}
.ex-s-pal-btn.st-answered,
.ex-s-palette-scroll button.st-answered,
.ex-s-palette button.st-answered {
	background: #22c55e;
	color: #fff;
	border-color: #22c55e;
}
.ex-s-pal-btn.st-marked,
.ex-s-palette-scroll button.st-marked,
.ex-s-palette button.st-marked {
	background: #3b82f6;
	color: #fff;
	border-color: #3b82f6;
}
.ex-s-pal-btn.st-answered-marked,
.ex-s-palette-scroll button.st-answered-marked,
.ex-s-palette button.st-answered-marked {
	background: #f59e0b;
	color: #fff;
	border-color: #f59e0b;
}
.ex-s-test-summary, .ex-s-thank-you { margin-top: 16px; }
.ex-s-summary-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.ex-s-summary-table th, .ex-s-summary-table td { border: 1px solid #e2e8f0; padding: 8px; text-align: center; }
.ex-s-summary-actions { display: flex; gap: 10px; }
.ex-s-result-card { border: 1px solid #e2e8f0; padding: 16px; background: #fff; }
.ex-s-result-stats { list-style: none; padding: 0; margin: 0 0 12px; }
.ex-s-result-stats li { margin-bottom: 6px; }
.ex-s-result-difficulty { width: 100%; border-collapse: collapse; }
.ex-s-result-difficulty th, .ex-s-result-difficulty td { border: 1px solid #e2e8f0; padding: 8px; }
.ex-s-review-question { border: 1px solid #e2e8f0; padding: 12px; margin-bottom: 12px; background: #fff; }
.ex-s-review-qtitle { margin: 6px 0 8px; color: #0f172a; font-size: 15px; font-weight: 800; }
.ex-s-review-options { list-style: none; padding: 0; margin: 8px 0; }
.ex-s-review-options li { padding: 6px; border: 1px solid #e5e7eb; margin-bottom: 4px; }
.ex-s-review-options li.user-selected { border-color: #93c5fd; background: #eff6ff; }
.ex-s-review-options li.correct { border-color: #4ade80; background: #ecfdf3; }
.ex-s-review-option-expl { margin-top: 6px; color: #475569; font-size: 13px; line-height: 1.45; }
.ex-s-review-option-expl p { margin: 0; }
.ex-s-test-instructions { border: 1px solid #e2e8f0; padding: 20px; margin-bottom: 12px; border-radius: 8px; background: #ffffff; }
.ex-s-test-instructions h2 { text-align: center; margin: 0 0 16px 0; }
.ex-s-instruction-meta { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ex-s-instruction-meta li { padding: 8px 0; }
.ex-s-instruction-text { margin-bottom: 20px; line-height: 1.6; text-align: center; }
.ex-s-instruction-text > p { text-align: center; }
.ex-s-default-instructions { margin-top: 16px; }
.ex-s-instruction-scrollable {
	max-height: 500px;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin: 16px 0;
	background: #f8fafc;
	text-align: left;
}
.ex-s-instruction-scrollable .ex-s-default-instructions {
	text-align: left;
}
.ex-s-instruction-scrollable::-webkit-scrollbar {
	width: 8px;
}
.ex-s-instruction-scrollable::-webkit-scrollbar-track {
	background: #e2e8f0;
	border-radius: 4px;
}
.ex-s-instruction-scrollable::-webkit-scrollbar-thumb {
	background: #94a3b8;
	border-radius: 4px;
}
.ex-s-instruction-scrollable::-webkit-scrollbar-thumb:hover {
	background: #64748b;
}
.ex-s-instruction-scrollable .ex-s-default-instructions {
	margin-top: 0;
}
.ex-s-default-instructions h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 20px 0 12px 0; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.ex-s-default-instructions h3:first-of-type { margin-top: 0; }
.ex-s-default-instructions ul { margin: 12px 0 16px 20px; padding: 0; }
.ex-s-default-instructions ul li { margin-bottom: 8px; line-height: 1.6; color: #334155; }
.ex-s-default-instructions p { margin: 0 0 16px 0; }
.ex-s-instruction-agree { display: block; margin: 20px 0; text-align: center; }
.ex-s-instruction-actions { text-align: center; margin-top: 20px; }
.ex-s-instruction-error { color: #dc2626; font-size: 16px; margin-top: 8px; font-weight: 600; }
.ex-s-instruction-buttons-demo { margin: 16px 0; }
.ex-s-button-demo-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.ex-s-button-demo-item:last-child { margin-bottom: 0; }
.ex-s-demo-btn { padding: 10px 18px; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: default; border: 1px solid; min-width: 180px; flex-shrink: 0; }
.ex-s-demo-save-next { background: #16a34a; border-color: #16a34a; color: #ffffff; }
.ex-s-demo-clear { background: #f8fafc; border-color: #94a3b8; color: #0f172a; }
.ex-s-demo-save-mark { background: #d97706; border-color: #d97706; color: #ffffff; }
.ex-s-demo-mark-next { background: #2563eb; border-color: #2563eb; color: #ffffff; }
.ex-s-demo-back, .ex-s-demo-next { background: #e2e8f0; border-color: #94a3b8; color: #0f172a; }
.ex-s-demo-submit { background: #16a34a; border-color: #16a34a; color: #ffffff; }
.ex-s-button-demo-text { flex: 1; line-height: 1.6; }
.ex-s-status-indicators-demo { margin: 16px 0; }
.ex-s-status-demo-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.ex-s-status-demo-item:last-child { margin-bottom: 0; }
.ex-s-status-demo-item .ex-s-legend-box { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid; }
.ex-s-status-demo-item .ex-s-legend-box .cnt { font-weight: 700; font-size: 14px; }
.ex-s-status-demo-text { flex: 1; line-height: 1.6; }
.ex-s-instruction-icon-demo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	flex-shrink: 0;
}
.ex-s-instruction-icon-demo .bi-arrow-right-square-fill,
.ex-s-instruction-icon-demo .bi-arrow-left-square-fill {
	display: inline-block !important;
	color: #dc2626 !important;
	font-size: 24px !important;
}
@media (max-width: 768px) {
	.ex-s-button-demo-item, .ex-s-status-demo-item { flex-direction: column; gap: 8px; }
	.ex-s-demo-btn { min-width: auto; width: 100%; }
}
.ex-s-test-runner { border: 1px solid #e2e8f0; padding: 12px; }
.ex-s-test-locked, .ex-s-email-verification-message { border: 1px solid #f97316; background: #fff7ed; padding: 12px; }

/* Auth (Sign Up / Sign In) */
.ex-s-auth {
	max-width: 560px;
	margin: 0 auto;
	padding: 12px 0;
}

/* My Tests (cards) */
.ex-s-my-tests.ex-s-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 12px 0;
}
.ex-s-my-tests .ex-s-page-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 14px;
	text-align: center;
}
.ex-s-my-tests .ex-s-page-head > div { width: 100%; text-align: center; }
.ex-s-my-tests .ex-s-page-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: #0f172a; text-align: center; }
.ex-s-my-tests .ex-s-page-subtitle { margin: 0; font-size: 13px; color: #475569; text-align: center; }
.ex-s-my-tests .ex-s-empty-state {
	border: 1px dashed #cbd5e1;
	background: #f8fafc;
	border-radius: 16px;
	padding: 18px;
	color: #334155;
	font-weight: 700;
}

/* My Tests Tabs */
.ex-s-my-tests-tabs {
	display: flex;
	justify-content: flex-start;
	gap: 8px;
	margin-bottom: 24px;
	border-bottom: 2px solid #e2e8f0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

@media (min-width: 768px) {
	.ex-s-my-tests-tabs {
		justify-content: center;
	}
}

.ex-s-my-tests-tabs::-webkit-scrollbar {
	height: 6px;
}

.ex-s-my-tests-tabs::-webkit-scrollbar-track {
	background: transparent;
}

.ex-s-my-tests-tabs::-webkit-scrollbar-thumb {
	background-color: #cbd5e1;
	border-radius: 3px;
}

.ex-s-my-tests-tabs::-webkit-scrollbar-thumb:hover {
	background-color: #94a3b8;
}

.ex-s-my-tests-tab {
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 700;
	color: #64748b !important;
	cursor: pointer;
	transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	bottom: -2px;
	flex-shrink: 0;
	white-space: nowrap;
}

.ex-s-my-tests-tab:hover {
	color: #2563eb !important;
	background-color: #eff6ff;
}

.ex-s-my-tests-tab:hover .ex-s-my-tests-tab-count {
	background: #2563eb;
	color: #ffffff !important;
}

.ex-s-my-tests-tab.ex-s-my-tests-tab-active {
	color: #2563eb !important;
	border-bottom-color: #2563eb;
	background-color: transparent;
}

.ex-s-my-tests-tab-count {
	background: #e2e8f0;
	color: #64748b !important;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 12px;
	min-width: 20px;
	text-align: center;
	transition: background-color 140ms ease, color 140ms ease;
}

.ex-s-my-tests-tab.ex-s-my-tests-tab-active .ex-s-my-tests-tab-count {
	background: #2563eb;
	color: #ffffff !important;
}

.ex-s-my-tests-tab-content {
	display: none;
}

.ex-s-my-tests-tab-content.ex-s-my-tests-tab-content-active {
	display: block;
}

.ex-s-pack-card-expired {
	opacity: 0.7;
}

.ex-s-pack-expired-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: #dc2626;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
	z-index: 1;
}

.ex-s-my-tests .ex-s-tests-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
@media (max-width: 960px) {
	.ex-s-my-tests .ex-s-tests-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ex-s-my-tests .ex-s-tests-grid { grid-template-columns: minmax(0, 1fr); }
}

.ex-s-my-tests .ex-s-test-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
	padding: 16px;
	transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.ex-s-my-tests .ex-s-test-card:hover {
	transform: translateY(-1px);
	border-color: #cbd5e1;
	box-shadow: 0 18px 52px rgba(15, 23, 42, 0.14);
}

.ex-s-my-tests .ex-s-test-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}
.ex-s-my-tests .ex-s-test-title {
	font-weight: 900;
	color: #0f172a;
	line-height: 1.3;
}

.ex-s-my-tests .ex-s-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 900;
	white-space: nowrap;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #f8fafc;
	color: #0f172a;
}
.ex-s-my-tests .ex-s-badge--not-started { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }
.ex-s-my-tests .ex-s-badge--in-progress { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.ex-s-my-tests .ex-s-badge--completed { background: #ecfdf3; border-color: #86efac; color: #166534; }

.ex-s-my-tests .ex-s-test-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e2e8f0;
}
.ex-s-my-tests .ex-s-test-meta-item { display: flex; flex-direction: column; gap: 2px; }
.ex-s-my-tests .ex-s-test-meta-label { font-size: 12px; font-weight: 800; color: #64748b; }
.ex-s-my-tests .ex-s-test-meta-value { font-size: 14px; font-weight: 900; color: #0f172a; }

/* My Account (dashboard) */
.ex-s-my-account.ex-s-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 12px 0;
}
.ex-s-my-account .ex-s-acc-head { margin: 0 0 14px; }
.ex-s-my-account .ex-s-acc-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: #0f172a; }
.ex-s-my-account .ex-s-acc-subtitle { margin: 0; font-size: 13px; color: #475569; }

.ex-s-my-account .ex-s-acc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* My Account Tabs */
.ex-s-acc-tabs {
	display: flex;
	justify-content: flex-start;
	gap: 8px;
	margin-bottom: 24px;
	border-bottom: 2px solid #e2e8f0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

@media (min-width: 768px) {
	.ex-s-acc-tabs {
		justify-content: center;
	}
}

.ex-s-acc-tabs::-webkit-scrollbar {
	height: 6px;
}

.ex-s-acc-tabs::-webkit-scrollbar-track {
	background: transparent;
}

.ex-s-acc-tabs::-webkit-scrollbar-thumb {
	background-color: #cbd5e1;
	border-radius: 3px;
}

.ex-s-acc-tabs::-webkit-scrollbar-thumb:hover {
	background-color: #94a3b8;
}

.ex-s-acc-tab {
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 700;
	color: #64748b !important;
	cursor: pointer;
	transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
	position: relative;
	bottom: -2px;
	flex-shrink: 0;
	white-space: nowrap;
}

.ex-s-acc-tab:hover {
	color: #2563eb !important;
	background-color: #eff6ff;
}

.ex-s-acc-tab.ex-s-acc-tab-active {
	color: #2563eb !important;
	border-bottom-color: #2563eb;
	background-color: transparent;
}

.ex-s-acc-tab-content {
	display: none;
}

.ex-s-acc-tab-content.ex-s-acc-tab-content-active {
	display: block;
}

.ex-s-my-account .ex-s-acc-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
	padding: 16px;
}

.ex-s-my-account .ex-s-acc-profile-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ex-s-my-account .ex-s-acc-avatar img { border-radius: 999px; border: 1px solid rgba(0,0,0,0.10); }
.ex-s-my-account .ex-s-acc-name { font-weight: 900; font-size: 16px; color: #0f172a; line-height: 1.2; }
.ex-s-my-account .ex-s-acc-email { color: #475569; font-size: 13px; margin-top: 2px; }

.ex-s-my-account .ex-s-acc-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 900;
	white-space: nowrap;
	margin-top: 8px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #f8fafc;
	color: #0f172a;
}
.ex-s-my-account .ex-s-acc-badge--verified { background: #ecfdf3; border-color: #86efac; color: #166534; }
.ex-s-my-account .ex-s-acc-badge--not-verified { background: #fff7ed; border-color: #fdba74; color: #9a3412; }

.ex-s-my-account .ex-s-acc-details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	padding-top: 12px;
	border-top: 1px dashed #e2e8f0;
}
@media (max-width: 960px) {
	.ex-s-my-account .ex-s-acc-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ex-s-my-account .ex-s-acc-profile-row { align-items: flex-start; }
	.ex-s-my-account .ex-s-acc-details { grid-template-columns: minmax(0, 1fr); }
}

.ex-s-my-account .ex-s-acc-detail-label { font-size: 12px; font-weight: 800; color: #64748b; }
.ex-s-my-account .ex-s-acc-detail-value { font-size: 14px; font-weight: 900; color: #0f172a; word-break: break-word; }
.ex-s-my-account .ex-s-acc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; letter-spacing: 0.3px; }
.ex-s-my-account .ex-s-acc-link { color: #2563eb; text-decoration: none; }
.ex-s-my-account .ex-s-acc-link:hover { text-decoration: underline; }

/* Copy button in My Account - Copied state */
.ex-s-my-account .ex-s-copy-referral {
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.ex-s-my-account .ex-s-copy-referral.ex-s-copy-copied {
	background-color: #10b981 !important;
	color: #ffffff !important;
	border-color: #10b981 !important;
}

.ex-s-my-account .ex-s-acc-section { padding: 16px; }
.ex-s-my-account .ex-s-acc-section-head { margin-bottom: 10px; text-align: center; }
.ex-s-my-account .ex-s-acc-section-title { font-size: 16px; font-weight: 900; color: #0f172a; margin: 0; text-align: center; }
.ex-s-my-account .ex-s-acc-section-sub { font-size: 12px; color: #475569; margin-top: 4px; text-align: center; }
.ex-s-my-account .ex-s-acc-section-body { padding-top: 10px; border-top: 1px dashed #e2e8f0; }

.ex-s-my-account .ex-s-acc-section-body .ex-s-auth,
.ex-s-my-account .ex-s-acc-section-body .ex-s-referral-widget,
.ex-s-my-account .ex-s-acc-section-body .ex-s-my-tests.ex-s-page {
	max-width: none;
	margin: 0;
	padding: 0;
}

.ex-s-auth .ex-s-auth-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
	padding: 24px;
}

.ex-s-auth .ex-s-auth-header { margin-bottom: 14px; }
.ex-s-auth .ex-s-auth-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: #0f172a; }
.ex-s-auth .ex-s-auth-subtitle { margin: 0; font-size: 13px; color: #475569; }

.ex-s-auth .ex-s-auth-alert {
	border-radius: 12px;
	padding: 12px 14px;
	margin: 12px 0 14px;
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #7f1d1d;
}
.ex-s-auth .ex-s-auth-alert ul { margin: 0; padding-left: 18px; }
.ex-s-auth .ex-s-auth-alert li { margin: 0 0 4px; }
.ex-s-auth .ex-s-auth-alert li:last-child { margin-bottom: 0; }

.ex-s-auth .ex-s-auth-form { display: grid; gap: 12px; }
.ex-s-auth .ex-s-auth-field label {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-start;
	gap: 4px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 6px;
}
.ex-s-auth .ex-s-required {
	color: #dc2626;
	font-weight: 900;
	font-size: 12px;
	margin-left: 2px;
	vertical-align: super;
	position: static;
	display: inline;
}
.ex-s-auth .ex-s-auth-input {
	width: 100%;
	height: 44px;
	border-radius: 12px;
	border: 1px solid #cbd5e1;
	padding: 0 12px;
	background: #ffffff;
	color: #0f172a;
}
.ex-s-auth .ex-s-auth-input:focus { outline: 3px solid rgba(37, 99, 235, 0.20); border-color: #93c5fd; }
.ex-s-auth .ex-s-auth-help { margin: 6px 0 0; font-size: 12px; color: #475569; }

.ex-s-auth .ex-s-auth-help-title { margin-top: 8px; font-weight: 800; color: #334155; }
.ex-s-auth .ex-s-auth-help-list {
	margin: 6px 0 0;
	padding-left: 18px;
	color: #475569;
	font-size: 12px;
	line-height: 1.45;
}
.ex-s-auth .ex-s-auth-help-list li { margin: 0 0 4px; }
.ex-s-auth .ex-s-auth-help-list li:last-child { margin-bottom: 0; }

/* Auth input groups (password toggle, phone prefix) */
.ex-s-auth .ex-s-auth-input-wrap { position: relative; display: flex; align-items: center; }
.ex-s-auth .ex-s-auth-icon-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 0;
	background: transparent;
	color: #0f172a;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.ex-s-auth .ex-s-auth-icon-btn:hover { background: transparent; }
.ex-s-auth .ex-s-auth-icon-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.22); outline-offset: 2px; }
.ex-s-auth .ex-s-auth-input-wrap .ex-s-auth-input { padding-right: 52px; }

.ex-s-auth .ex-s-auth-phone-wrap .ex-s-auth-input { padding-left: 64px; padding-right: 12px; }
.ex-s-auth .ex-s-auth-addon {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	height: 32px;
	padding: 0 10px;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: #0f172a;
	font-weight: 500;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ex-s-auth .ex-s-auth-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.ex-s-auth .ex-s-auth-btn {
	-webkit-appearance: none;
	appearance: none;
	height: 44px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ex-s-auth .ex-s-auth-btn-primary { background: #2563eb; border-color: #2563eb; color: #ffffff; }
.ex-s-auth .ex-s-auth-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
.ex-s-auth .ex-s-auth-btn-link { background: transparent; border-color: #cbd5e1; color: #0f172a; }
.ex-s-auth .ex-s-auth-btn-link:hover { background: #f8fafc; border-color: #94a3b8; color: #0f172a; }

/* Referral Widget (scoped to avoid theme conflicts) */
.ex-s-referral-widget {
	max-width: 720px;
	margin: 0 auto;
	padding: 12px 0;
}

.ex-s-referral-widget .ex-s-referral-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
	padding: 24px;
}

.ex-s-referral-widget .ex-s-referral-header {
	display: flex;
	gap: 12px;
	justify-content: center;
	align-items: center;
	margin-bottom: 16px;
	text-align: center;
	flex-direction: column;
}

.ex-s-referral-widget .ex-s-referral-header > div:first-child {
	width: 100%;
	text-align: center;
}

.ex-s-referral-widget .ex-s-referral-header > div:last-child {
	margin-top: 8px;
}

.ex-s-referral-widget .ex-s-referral-title {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 4px;
	text-align: center;
}

.ex-s-referral-widget .ex-s-referral-subtitle {
	font-size: 13px;
	color: #475569;
	text-align: center;
	margin: 0;
}

.ex-s-referral-widget .ex-s-referral-progress-wrap {
	margin: 8px 0 10px;
	padding: 14px 14px 12px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
}

.ex-s-referral-widget .ex-s-referral-progress-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.ex-s-referral-widget .ex-s-referral-progress-title {
	font-weight: 800;
	color: #0f172a;
	font-size: 13px;
}

.ex-s-referral-widget .ex-s-referral-progress-count {
	font-weight: 800;
	color: #334155;
	font-size: 13px;
}

.ex-s-referral-widget .ex-s-referral-progress-bar {
	height: 10px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.06);
}

.ex-s-referral-widget .ex-s-referral-progress-fill {
	height: 100%;
	width: 0%;
	border-radius: 999px;
	background: linear-gradient(90deg, #2563eb 0%, #22c55e 100%);
	transition: width 900ms ease;
}

.ex-s-referral-widget .ex-s-referral-progress-foot {
	margin-top: 10px;
	font-size: 13px;
	color: #475569;
	text-align: center;
}

.ex-s-referral-widget .ex-s-referral-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 0;
	border-top: 1px dashed #e2e8f0;
}

.ex-s-referral-widget .ex-s-referral-row:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.ex-s-referral-widget .ex-s-referral-label {
	flex: 0 0 140px;
	font-weight: 800;
	color: #0f172a;
	font-size: 13px;
	margin-top: 10px;
}

.ex-s-referral-widget .ex-s-referral-row-content {
	flex: 1 1 auto;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.ex-s-referral-widget .ex-s-toast-anchor {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ex-s-referral-widget .ex-s-referral-code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #0f172a;
	font-weight: 900;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	letter-spacing: 0.5px;
}

.ex-s-referral-widget .ex-s-referral-input-group {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.ex-s-referral-widget .ex-s-referral-joined { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.08); }
.ex-s-referral-widget .ex-s-referral-joined-title { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #0f172a; }
.ex-s-referral-widget .ex-s-referral-name-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: referral-counter;
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}
.ex-s-referral-widget .ex-s-referral-name-item {
	counter-increment: referral-counter;
	display: flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #0f172a;
	position: relative;
	padding-left: 32px;
}
.ex-s-referral-widget .ex-s-referral-name-item::before {
	content: counter(referral-counter) '.';
	position: absolute;
	left: 12px;
	font-weight: 600;
	color: #475569;
}
.ex-s-referral-widget .ex-s-referral-empty { margin: 0; opacity: 0.8; color: #475569; }

/* Points History */
.ex-s-referral-widget .ex-s-referral-history {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(0,0,0,0.08);
}

.ex-s-referral-widget .ex-s-referral-history-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.ex-s-referral-widget .ex-s-referral-history-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ex-s-referral-widget .ex-s-referral-history-item {
	padding: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.ex-s-referral-widget .ex-s-referral-history-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 6px;
}

.ex-s-referral-widget .ex-s-referral-history-description {
	font-size: 14px;
	font-weight: 500;
	color: #0f172a;
	flex: 1;
}

.ex-s-referral-widget .ex-s-referral-history-points {
	font-size: 14px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
}

.ex-s-referral-widget .ex-s-referral-history-points.ex-s-points-added {
	color: #16a34a;
	background: #dcfce7;
}

.ex-s-referral-widget .ex-s-referral-history-points.ex-s-points-deducted {
	color: #dc2626;
	background: #fee2e2;
}

.ex-s-referral-widget .ex-s-referral-history-date {
	font-size: 12px;
	color: #64748b;
}

.ex-s-referral-widget .ex-s-referral-history-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	margin-top: 16px;
	border-top: 2px solid #e2e8f0;
	font-weight: 600;
	font-size: 16px;
}

.ex-s-referral-widget .ex-s-referral-history-total-label {
	color: #1e293b;
}

.ex-s-referral-widget .ex-s-referral-history-total-value {
	color: #059669;
}

/* Pack Detail Referral Points */
.ex-s-pack-referral-points {
	margin-top: 12px;
	padding: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-align: center;
}

.ex-s-pack-referral-points-label {
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	margin-right: 8px;
}

.ex-s-pack-referral-points-value {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

/* Large screens: if more than 10 items, create 2 columns */
@media (min-width: 768px) {
	.ex-s-referral-widget .ex-s-referral-name-list {
		grid-template-columns: 1fr;
		max-height: none;
		overflow: visible;
	}
	.ex-s-referral-widget .ex-s-referral-name-list-multi {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Small screens: show max 10 items with scroll */
@media (max-width: 767px) {
	.ex-s-referral-widget .ex-s-referral-name-list {
		max-height: 320px;
		overflow-y: auto;
		overflow-x: hidden;
	}
	.ex-s-referral-widget .ex-s-referral-name-list::-webkit-scrollbar {
		width: 6px;
	}
	.ex-s-referral-widget .ex-s-referral-name-list::-webkit-scrollbar-track {
		background: #f1f5f9;
		border-radius: 3px;
	}
	.ex-s-referral-widget .ex-s-referral-name-list::-webkit-scrollbar-thumb {
		background: #cbd5e1;
		border-radius: 3px;
	}
	.ex-s-referral-widget .ex-s-referral-name-list::-webkit-scrollbar-thumb:hover {
		background: #94a3b8;
	}
}

/* Premium share UI (Bootstrap Icons, no SVG) */
.ex-s-referral-widget .ex-s-share-premium{
	margin-top:16px;
	padding:14px 14px;
	border:1px solid rgba(0,0,0,.08);
	border-radius:16px;
	background:#fff;
	box-shadow:0 10px 30px rgba(0,0,0,.06);
	display:flex;
	align-items:center;
	justify-content:flex-start;
	gap:14px;
	position:relative;
	flex-wrap:wrap;
}

.ex-s-referral-widget .ex-s-share-left{min-width:auto; flex:0 0 auto}
.ex-s-referral-widget .ex-s-share-title{font-weight:800;font-size:14px;margin:0;color:#0f172a}
.ex-s-referral-widget .ex-s-share-sub{font-size:12px;opacity:.7;margin-top:2px;color:#0f172a}

.ex-s-referral-widget .ex-s-share-right{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	justify-content:flex-start;
	align-items:center;
	flex:1 1 auto;
}

.ex-s-referral-widget .ex-s-share-pill,
.ex-s-referral-widget .ex-s-share-copy{
	height:42px;
	padding:0 14px;
	border-radius:999px;
	display:inline-flex;
	align-items:center;
	gap:10px;
	font-weight:800;
	font-size:13px;
	border:1px solid rgba(0,0,0,.10);
	background:#fff;
	text-decoration:none !important;
	cursor:pointer;
	transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
	box-shadow:0 8px 18px rgba(0,0,0,.06);
}

.ex-s-referral-widget .ex-s-share-pill:hover,
.ex-s-referral-widget .ex-s-share-copy:hover{
	transform:translateY(-1px);
	box-shadow:0 12px 22px rgba(0,0,0,.09);
	border-color:rgba(0,0,0,.16);
}

.ex-s-referral-widget .ex-s-ic{
	width:28px;
	height:28px;
	border-radius:999px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	background:rgba(0,0,0,.05);
}

.ex-s-referral-widget .ex-s-ic i{
	font-size:16px;
	line-height:1;
}

.ex-s-referral-widget .ex-s-share-wa{color:#0b5}
.ex-s-referral-widget .ex-s-share-tg{color:#1787ff}
.ex-s-referral-widget .ex-s-share-copy{color:#111}

.ex-s-referral-widget .ex-s-share-more{position:relative}
.ex-s-referral-widget .ex-s-share-more-btn{
	height:42px;
	padding:0 12px;
	border-radius:999px;
	border:1px solid rgba(0,0,0,.10);
	background:rgba(0,0,0,.03);
	font-weight:800;
	color:#111 !important;
	cursor:pointer;
	display:inline-flex;
	align-items:center;
	gap:8px;
}

.ex-s-referral-widget .ex-s-share-more-btn i{
	color:inherit;
}

.ex-s-referral-widget .ex-s-share-menu{
	position:absolute;
	right:0;
	top:48px;
	min-width:170px;
	background:#fff;
	border:1px solid rgba(0,0,0,.10);
	border-radius:12px;
	box-shadow:0 16px 34px rgba(0,0,0,.12);
	padding:6px;
	display:none;
	z-index:50;
}

.ex-s-referral-widget .ex-s-share-menu a{
	display:flex;
	align-items:center;
	gap:10px;
	padding:10px 10px;
	border-radius:10px;
	text-decoration:none !important;
	font-weight:700;
	font-size:13px;
	color:#111;
}

.ex-s-referral-widget .ex-s-share-menu a:hover{
	background:rgba(0,0,0,.05);
}

.ex-s-referral-widget .ex-s-share-toast{
	position:absolute;
	right:14px;
	bottom:-10px;
	transform:translateY(100%);
	background:#111;
	color:#fff;
	font-weight:700;
	font-size:12px;
	padding:8px 10px;
	border-radius:999px;
	box-shadow:0 12px 24px rgba(0,0,0,.22);
}

.ex-s-referral-widget .ex-s-referral-input {
	flex: 1 1 auto;
	height: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	cursor: text;
	user-select: all;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #0f172a;
	font-size: 14px;
}

.ex-s-referral-widget .ex-s-referral-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.ex-s-referral-widget .ex-s-copy-referral,
.ex-s-referral-widget .ex-s-copy-code {
	-webkit-appearance: none;
	appearance: none;
	height: 38px;
	min-height: 38px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid #2563eb;
	background: #2563eb;
	color: #ffffff;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
	white-space: nowrap;
}

.ex-s-referral-widget .ex-s-copy-referral:hover,
.ex-s-referral-widget .ex-s-copy-code:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.ex-s-referral-widget .ex-s-copy-referral:active,
.ex-s-referral-widget .ex-s-copy-code:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.10);
}

.ex-s-referral-widget .ex-s-referral-points {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 12px 16px;
	border-radius: 16px;
	background: linear-gradient(135deg, #ecfdf3 0%, #dcfce7 100%);
	border: 1px solid rgba(34, 197, 94, 0.35);
	min-width: auto;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.ex-s-referral-widget .ex-s-referral-points-label {
	font-size: 12px;
	color: #166534;
	font-weight: 800;
	letter-spacing: 0.2px;
}

.ex-s-referral-widget .ex-s-referral-points-value {
	font-size: 16px;
	line-height: 1;
	color: #14532d;
	font-weight: 900;
}

.ex-s-referral-widget .ex-s-copy-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.92);
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.ex-s-referral-widget .ex-s-referral-header {
		flex-direction: column;
		align-items: stretch;
	}
	.ex-s-referral-widget .ex-s-referral-points {
		width: 100%;
		min-width: 0;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 12px 14px;
		border-radius: 16px;
		background: linear-gradient(135deg, #ecfdf3 0%, #dcfce7 100%);
		border-color: #86efac;
	}
	.ex-s-referral-widget .ex-s-referral-points-label {
		font-size: 13px;
	}
	.ex-s-referral-widget .ex-s-referral-points-value {
		font-size: 14px;
	}
	.ex-s-referral-widget .ex-s-referral-row {
		flex-direction: column;
	}
	.ex-s-referral-widget .ex-s-referral-label {
		flex: 1 1 auto;
		margin-top: 0;
	}
	.ex-s-referral-widget .ex-s-referral-row-content {
		width: 100%;
	}
	.ex-s-referral-widget .ex-s-referral-code {
		width: 100%;
		justify-content: center;
	}
	.ex-s-referral-widget .ex-s-referral-input-group {
		flex-direction: column;
		align-items: stretch;
	}
	.ex-s-referral-widget .ex-s-referral-input {
		width: 100%;
	}
	.ex-s-referral-widget .ex-s-copy-referral,
	.ex-s-referral-widget .ex-s-copy-code {
		width: 100%;
	}

	/* Mobile: center-align "Copy Code" (keep Copy Link full width) */
	.ex-s-referral-widget .ex-s-referral-row-code .ex-s-toast-anchor {
		width: 100%;
		justify-content: center;
	}
	.ex-s-referral-widget .ex-s-referral-row-code .ex-s-copy-code {
		width: min(260px, 100%);
		margin: 0 auto;
	}
	.ex-s-referral-widget .ex-s-referral-input-group .ex-s-toast-anchor,
	.ex-s-referral-widget .ex-s-referral-input-group .ex-s-copy-referral {
		width: 100%;
	}

}

@media (max-width:650px){
	.ex-s-referral-widget .ex-s-share-premium{flex-direction:column; align-items:stretch}
	.ex-s-referral-widget .ex-s-share-left{min-width:auto; text-align:left}
	.ex-s-referral-widget .ex-s-share-right{
		width:100%;
		display:grid;
		grid-template-columns:repeat(2, minmax(0, 1fr));
		gap:10px;
		align-items:stretch;
	}
	.ex-s-referral-widget .ex-s-share-pill,
	.ex-s-referral-widget .ex-s-share-copy,
	.ex-s-referral-widget .ex-s-share-more-btn{
		width:100%;
		justify-content:flex-start;
	}
	.ex-s-referral-widget .ex-s-share-more{width:100%}
	.ex-s-referral-widget .ex-s-share-menu{left:0; right:auto; width:100%}
}

@media (max-width:420px){
	.ex-s-referral-widget .ex-s-share-right{
		grid-template-columns:1fr;
	}
}

/* Modal (reload confirm) */
.ex-s-test-wrapper .ex-s-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(6px);
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-card {
	position: relative;
	width: min(480px, 90%);
	background: #ffffff;
	border-radius: 20px;
	border: none;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	padding: 0;
	overflow: hidden;
	transform: scale(0.9) translateY(20px);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	animation: ex-s-reload-pulse 0.3s ease;
}

@keyframes ex-s-reload-pulse {
	0% {
		transform: scale(0.8) translateY(30px);
		opacity: 0;
	}
	50% {
		transform: scale(1.05) translateY(-5px);
	}
	100% {
		transform: scale(1) translateY(0);
		opacity: 1;
	}
}

.ex-s-test-wrapper .ex-s-modal[style*="display: block"] .ex-s-modal-card,
.ex-s-test-wrapper .ex-s-modal:not([style*="display: none"]) .ex-s-modal-card {
	transform: scale(1) translateY(0);
}

.ex-s-test-wrapper .ex-s-modal .ex-s-reload-header {
	padding: 28px 28px 20px;
	text-align: center;
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border-bottom: 2px solid #fbbf24;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-reload-icon-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-reload-icon {
	width: 48px;
	height: 48px;
	color: #f59e0b;
	animation: ex-s-reload-icon-bounce 0.6s ease;
}

@keyframes ex-s-reload-icon-bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-card h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #92400e;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ex-s-test-wrapper .ex-s-modal .ex-s-reload-body {
	padding: 24px 28px;
	background: #ffffff;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-reload-question {
	margin: 0 0 20px;
	color: #374151;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	text-align: center;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-reload-info {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-reload-yes-info {
	color: #dc2626;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.5px;
	text-align: left;
	padding: 8px 12px;
	background: #fef2f2;
	border-left: 3px solid #dc2626;
	border-radius: 6px;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-reload-no-info {
	color: #16a34a;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.5px;
	text-align: left;
	padding: 8px 12px;
	background: #f0fdf4;
	border-left: 3px solid #16a34a;
	border-radius: 6px;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	padding: 20px 28px 28px;
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-actions button {
	height: auto;
	min-height: 44px;
	padding: 12px 28px;
	border-radius: 10px;
	border: none;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 140px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-actions button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-actions button:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-yes {
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
	color: #ffffff !important;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-yes:hover {
	background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-no {
	background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
	color: #ffffff !important;
}

.ex-s-test-wrapper .ex-s-modal .ex-s-modal-no:hover {
	background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
}

@media (max-width: 520px) {
	.ex-s-test-wrapper .ex-s-modal .ex-s-modal-actions {
		justify-content: stretch;
	}
	.ex-s-test-wrapper .ex-s-modal .ex-s-modal-actions button {
		flex: 1 1 100%;
	}
}

/* Responsive runner layout */
@media (max-width: 960px) {
	.ex-s-test-body { flex-direction: column; }
	.ex-s-palette-panel { border-left: none; padding-left: 0; border-top: 1px solid #e2e8f0; padding-top: 12px; max-height: none; overflow: visible; }
	.ex-s-actions button, .ex-s-nav button { flex: 1 1 160px; }
}

/* Medium devices (tablets) - 10 questions per row */
@media (min-width: 768px) and (max-width: 1024px) {
	.ex-s-palette-scroll {
		grid-template-columns: repeat(10, auto);
	}
}

@media (max-width: 520px) {
	.ex-s-actions, .ex-s-nav { gap: 10px; }
	.ex-s-actions button, .ex-s-nav button { flex: 1 1 100%; }
	.ex-s-palette { grid-template-columns: repeat(5, 1fr); }
	.ex-s-palette button { width: 20px !important; height: 20px !important; min-width: 20px; min-height: 20px; max-width: 20px; max-height: 20px; }
}

/* UI system (My Tests + My Account) - scoped to avoid theme conflicts */
.ex-s-ui.ex-s-page { max-width: 1100px; margin: 0 auto; padding: 12px 0; }
.ex-s-ui .ex-s-page-head { display:flex; justify-content:center; align-items:center; gap:16px; margin: 10px 0 18px; text-align: center; }
.ex-s-ui .ex-s-page-head > div { width: 100%; text-align: center; }
.ex-s-ui .ex-s-page-title { margin:0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; text-align: center; }
.ex-s-ui .ex-s-page-subtitle { margin:6px 0 0; opacity:.75; color: #334155; text-align: center; }
.ex-s-ui .ex-s-acc-head { display:flex; justify-content:center; align-items:center; gap:16px; margin: 10px 0 18px; text-align: center; }
.ex-s-ui .ex-s-acc-head > div { width: 100%; text-align: center; }
.ex-s-ui .ex-s-acc-title { margin:0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; text-align: center; }
.ex-s-ui .ex-s-acc-subtitle { margin:6px 0 0; opacity:.75; color: #334155; text-align: center; }

.ex-s-ui .ex-s-grid { display:grid; gap:16px; }
.ex-s-ui .ex-s-tests-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px){ .ex-s-ui .ex-s-tests-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .ex-s-ui .ex-s-tests-grid { grid-template-columns: 1fr; } }

.ex-s-ui .ex-s-card,
.ex-s-ui .ex-s-test-card,
.ex-s-ui .ex-s-acc-card{
	background:#fff;
	border:1px solid #e5e7eb;
	border-radius:16px;
	padding:16px;
	box-shadow: 0 10px 25px rgba(15,23,42,.06);
}
.ex-s-ui .ex-s-card-top,
.ex-s-ui .ex-s-test-card-head{
	display:flex;
	justify-content:space-between;
	gap:12px;
	align-items:flex-start;
}
.ex-s-ui .ex-s-card-title,
.ex-s-ui .ex-s-test-title{
	font-weight: 800;
	font-size: 16px;
	margin:0;
	color: #0f172a;
}
.ex-s-ui .ex-s-meta-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:10px; opacity:.8; font-size: 13px; color: #334155; }
.ex-s-ui .ex-s-meta-pill{ background:#f8fafc; border:1px solid #e2e8f0; padding:6px 10px; border-radius:999px; }

.ex-s-ui .ex-s-badge,
.ex-s-ui .ex-s-acc-badge{
	font-size:12px;
	font-weight:700;
	padding:6px 10px;
	border-radius:999px;
	border:1px solid transparent;
	white-space:nowrap;
}
.ex-s-ui .ex-s-badge--not-started { background:#f8fafc; border-color:#e2e8f0; color:#0f172a; }
.ex-s-ui .ex-s-badge--in-progress { background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.ex-s-ui .ex-s-badge--completed { background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.ex-s-ui .ex-s-acc-badge--verified { background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.ex-s-ui .ex-s-acc-badge--not-verified { background:#fff7ed; border-color:#fed7aa; color:#9a3412; }

.ex-s-ui .ex-s-empty-state { padding:18px; border:1px dashed #e2e8f0; border-radius:16px; background:#fff; opacity:.85; color:#0f172a; }

/* My Account alias styles (supports both requested + existing classnames) */
.ex-s-ui .ex-s-account-header,
.ex-s-ui .ex-s-acc-profile-row{ display:flex; gap:14px; align-items:center; }
.ex-s-ui .ex-s-account-avatar img,
.ex-s-ui .ex-s-acc-avatar img{ border-radius:999px; }
.ex-s-ui .ex-s-account-name,
.ex-s-ui .ex-s-acc-name{ font-size:18px; font-weight:800; margin:0; color:#0f172a; }
.ex-s-ui .ex-s-account-email,
.ex-s-ui .ex-s-acc-email{ margin:4px 0 0; opacity:.75; color:#334155; }

.ex-s-ui .ex-s-account-grid,
.ex-s-ui .ex-s-acc-details{ display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
@media (max-width:640px){ .ex-s-ui .ex-s-account-grid, .ex-s-ui .ex-s-acc-details { grid-template-columns: 1fr; } }

.ex-s-ui .ex-s-field,
.ex-s-ui .ex-s-acc-detail{ border:1px solid #e5e7eb; border-radius:14px; padding:12px; background:#fff; }
.ex-s-ui .ex-s-field-label,
.ex-s-ui .ex-s-acc-detail-label{ font-size:12px; opacity:.7; margin:0 0 6px; color:#334155; font-weight:700; }
.ex-s-ui .ex-s-field-value,
.ex-s-ui .ex-s-acc-detail-value{ margin:0; font-weight:700; color:#0f172a; }

/* My Tests minor alignment (existing markup) */
.ex-s-ui .ex-s-test-meta{ margin-top:10px; opacity:.8; font-size:13px; color:#334155; }

/* Pack Cards Styling */
.ex-s-tests-packs .ex-s-packs-grid,
.ex-s-my-tests .ex-s-packs-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
@media (max-width: 1200px) {
	.ex-s-tests-packs .ex-s-packs-grid,
	.ex-s-my-tests .ex-s-packs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 768px) {
	.ex-s-tests-packs .ex-s-packs-grid,
	.ex-s-my-tests .ex-s-packs-grid {
		grid-template-columns: 1fr;
	}
}

.ex-s-pack-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
	overflow: hidden;
	transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
	display: flex;
	flex-direction: column;
}
.ex-s-pack-card:hover {
	transform: translateY(-2px);
	border-color: #cbd5e1;
	box-shadow: 0 18px 52px rgba(15, 23, 42, 0.14);
}

.ex-s-pack-image-link {
	display: block;
	text-decoration: none;
	transition: opacity 140ms ease;
}

.ex-s-pack-image-link:hover {
	opacity: 0.9;
}

.ex-s-pack-image {
	width: 100%;
	height: 280px;
	overflow: hidden;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	cursor: pointer;
}
.ex-s-pack-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ex-s-pack-free-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #dc2626;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
	z-index: 1;
}

.ex-s-pack-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ex-s-pack-header {
	margin-bottom: 16px;
}
.ex-s-pack-title {
	font-weight: 900;
	font-size: 18px;
	color: #0f172a;
	line-height: 1.3;
	margin: 0 0 12px;
}

.ex-s-pack-meta {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.ex-s-pack-meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ex-s-pack-meta-label {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.ex-s-pack-meta-value {
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
}

.ex-s-pack-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}
.ex-s-pack-price {
	font-size: 20px;
	font-weight: 900;
	color: #0f172a;
}
.ex-s-pack-price-free {
	color: #22c55e;
}
.ex-s-pack-add-to-tests-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: #dc2626 !important;
	background-color: #dc2626 !important;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	transition: background 140ms ease, transform 140ms ease;
}
.ex-s-pack-add-to-tests-btn:hover {
	background: #b91c1c !important;
	background-color: #b91c1c !important;
	transform: translateY(-1px);
	color: #ffffff;
	text-decoration: none;
}
.ex-s-pack-add-to-tests-btn:active {
	transform: translateY(0);
}
.ex-s-pack-add-to-tests-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.ex-s-pack-added-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: #d1fae5;
	color: #065f46;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}
/* Green Added Button - Must come after .ex-s-pack-add-to-tests-btn to override */
.ex-s-pack-actions .ex-s-pack-added-btn,
button.ex-s-pack-added-btn,
.ex-s-pack-added-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 12px 30px !important;
	min-width: 160px !important;
	background: #16a34a !important;
	background-color: #16a34a !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 10px !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	cursor: default !important;
	white-space: nowrap !important;
	transition: none !important;
	opacity: 1 !important;
	text-decoration: none !important;
}
.ex-s-pack-actions .ex-s-pack-added-btn:hover,
.ex-s-pack-actions .ex-s-pack-added-btn:focus,
.ex-s-pack-actions .ex-s-pack-added-btn:active,
button.ex-s-pack-added-btn:hover,
button.ex-s-pack-added-btn:focus,
button.ex-s-pack-added-btn:active,
.ex-s-pack-added-btn:hover,
.ex-s-pack-added-btn:focus,
.ex-s-pack-added-btn:active {
	background: #16a34a !important;
	background-color: #16a34a !important;
	color: #ffffff !important;
	transform: none !important;
	border: none !important;
	text-decoration: none !important;
}
.ex-s-pack-actions .ex-s-pack-added-btn:disabled,
button.ex-s-pack-added-btn:disabled,
.ex-s-pack-added-btn:disabled {
	opacity: 1 !important;
	cursor: default !important;
	background: #16a34a !important;
	background-color: #16a34a !important;
	color: #ffffff !important;
}
.ex-s-pack-remove-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 30px;
	min-width: 160px;
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
	border-radius: 10px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background 140ms ease, transform 140ms ease;
}
.ex-s-pack-remove-btn:hover {
	background: #fecaca;
	color: #7f1d1d;
	transform: translateY(-1px);
}
.ex-s-pack-remove-btn:active {
	transform: translateY(0);
}
.ex-s-pack-remove-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.ex-s-pack-title-link {
	color: inherit;
	text-decoration: none;
}
.ex-s-pack-title-link:hover {
	color: #2563eb;
	text-decoration: underline;
}
.ex-s-pack-buy-now-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background-color: #dc2626;
	color: #ffffff;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
	font-size: 14px;
	transition: background-color 0.2s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
}

.ex-s-pack-buy-now-btn:hover {
	background-color: #b91c1c;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.ex-s-pack-know-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: #2563eb;
	color: #ffffff;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: background 140ms ease, transform 140ms ease;
}
.ex-s-pack-know-more:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
	color: #ffffff;
	text-decoration: none;
}

/* Pack Detail Page Styling */
.ex-s-pack-detail {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
}
.ex-s-pack-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}
.ex-s-pack-detail-header:last-of-type {
	margin-top: 24px;
	margin-bottom: 0;
}
.ex-s-pack-back-link {
	display: inline-flex;
	align-items: center;
	color: #2563eb;
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
	transition: color 140ms ease;
}
.ex-s-pack-back-link:hover {
	color: #1d4ed8;
	text-decoration: none;
}

.ex-s-pack-detail-content {
	display: grid;
	grid-template-columns: 70% 30%;
	gap: 32px;
	margin-bottom: 48px;
}
@media (max-width: 980px) {
	.ex-s-pack-detail-content {
		grid-template-columns: 1fr;
	}
}

.ex-s-pack-detail-main {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ex-s-pack-detail-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	justify-content: center;
}

.ex-s-pack-detail-image {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	background: #f1f5f9;
	position: relative;
}
.ex-s-pack-detail-image img {
	width: 100%;
	height: auto;
	display: block;
}

.ex-s-pack-detail-info {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.ex-s-pack-detail-title {
	font-size: 32px;
	font-weight: 900;
	color: #0f172a;
	line-height: 1.2;
	margin: 0;
}
.ex-s-pack-detail-description {
	font-size: 16px;
	line-height: 1.6;
	color: #334155;
}
.ex-s-pack-detail-description p {
	margin: 0 0 12px;
}
.ex-s-pack-detail-description p:last-child {
	margin-bottom: 0;
}

.ex-s-pack-detail-share {
	padding: 20px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}

.ex-s-pack-detail-share-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ex-s-pack-detail-share-title i {
	font-size: 18px;
	color: #64748b;
}

.ex-s-pack-detail-share-buttons {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.ex-s-pack-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #64748b;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 20px;
}

.ex-s-pack-share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	text-decoration: none !important;
}

.ex-s-pack-share-btn:active {
	transform: translateY(0);
}

.ex-s-pack-share-btn i {
	font-size: 24px;
}

.ex-s-pack-share-wa {
	background: #25d366;
	color: #ffffff;
	border-color: #25d366;
}

.ex-s-pack-share-wa:hover {
	color: #25d366;
	background: #e2e8f0;
}

.ex-s-pack-share-tg {
	background: #0088cc;
	color: #ffffff;
	border-color: #0088cc;
}

.ex-s-pack-share-tg:hover {
	color: #0088cc;
	background: #e2e8f0;
}

.ex-s-pack-share-x {
	background: #000000;
	color: #ffffff;
	border-color: #000000;
}

.ex-s-pack-share-x:hover {
	color: #000000;
	background: #e2e8f0;
}

.ex-s-pack-share-copy {
	background: #64748b;
	color: #ffffff;
	border-color: #64748b;
}

.ex-s-pack-share-copy:hover {
	color: #64748b;
	background: #e2e8f0;
}

.ex-s-pack-share-copy-status {
	font-size: 12px;
	color: #16a34a;
	font-weight: 600;
	margin-left: 8px;
}

.ex-s-pack-detail-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 20px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}
@media (min-width: 981px) {
	.ex-s-pack-detail-meta {
		grid-template-columns: 1fr;
	}
}
.ex-s-pack-detail-meta-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ex-s-pack-detail-meta-label {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.ex-s-pack-detail-meta-value {
	font-size: 20px;
	font-weight: 600;
	color: #0f172a;
}

.ex-s-pack-detail-actions {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ex-s-pack-detail-price {
	display: inline-block;
	padding: 14px 28px;
	font-size: 20px;
	font-weight: 900;
	border-radius: 12px;
}
.ex-s-pack-detail-price-free {
	background: #dcfce7;
	color: #166534;
}
.ex-s-pack-detail-price-owned {
	background: #dbeafe;
	color: #1e40af;
}
.ex-s-pack-detail-buy-btn {
	padding: 14px 28px;
	background: #dc2626;
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: background 140ms ease, transform 140ms ease;
	width: 100%;
}
.ex-s-pack-detail-buy-btn:hover {
	background: #b91c1c;
	transform: translateY(-1px);
}
.ex-s-pack-detail-buy-btn-free {
	background: #22c55e;
}
.ex-s-pack-detail-buy-btn-free:hover {
	background: #16a34a;
}
/* Override green color when button also has ex-s-pack-add-to-tests-btn class (should be red) */
.ex-s-pack-detail-buy-btn-free.ex-s-pack-add-to-tests-btn {
	background: #dc2626 !important;
	background-color: #dc2626 !important;
}
.ex-s-pack-detail-buy-btn-free.ex-s-pack-add-to-tests-btn:hover {
	background: #b91c1c !important;
	background-color: #b91c1c !important;
}

.ex-s-pack-detail-lock-message {
	margin-top: 20px;
	padding: 16px;
	background: #fef3c7;
	border: 1px solid #fbbf24;
	border-radius: 12px;
	color: #92400e;
	font-size: 14px;
	line-height: 1.6;
}
.ex-s-pack-detail-lock-message p {
	margin: 0 0 8px;
}
.ex-s-pack-detail-lock-message p:last-child {
	margin-bottom: 0;
}

.ex-s-pack-detail-tests {
	margin-top: 48px;
}
.ex-s-pack-detail-tests-title {
	font-size: 24px;
	font-weight: 900;
	color: #0f172a;
	margin: 0 0 24px;
}
.ex-s-pack-detail-tests-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.ex-s-pack-detail-test-item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	transition: border-color 140ms ease, box-shadow 140ms ease;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.ex-s-pack-detail-test-item:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.ex-s-pack-detail-test-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.ex-s-pack-detail-test-title-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.ex-s-pack-detail-test-title {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
}
.ex-s-pack-detail-test-meta {
	display: flex;
	gap: 16px;
	font-size: 14px;
	color: #64748b;
}
.ex-s-pack-detail-test-meta-item {
	font-weight: 600;
}
.ex-s-pack-detail-test-locked {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #dc2626;
	font-weight: 700;
	font-size: 14px;
	flex-wrap: wrap;
}
.ex-s-pack-detail-test-locked i {
	font-size: 16px;
}
.ex-s-pack-detail-test-unlock-hint {
	color: #64748b;
	font-weight: 500;
	font-size: 13px;
	font-style: italic;
	margin-left: 4px;
}
.ex-s-pack-detail-test-unlock {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 8px;
	flex-shrink: 0;
}
.ex-s-pack-detail-test-unlock-text {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-align: right;
}
.ex-s-pack-detail-test-buy-btn {
	padding: 10px 20px;
	background: #dc2626;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 140ms ease, transform 140ms ease;
	white-space: nowrap;
}
.ex-s-pack-detail-test-buy-btn:hover {
	background: #b91c1c;
	transform: translateY(-1px);
	color: #ffffff;
}
.ex-s-pack-detail-test-buy-btn:active {
	transform: translateY(0);
}

/* Go to Test Pack button */
.ex-s-pack-go-to-tests-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 30px;
	min-width: 160px;
	background: #3b82f6;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	text-decoration: none;
	transition: background 140ms ease, transform 140ms ease;
}

.ex-s-pack-go-to-tests-btn:hover {
	background: #2563eb;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.ex-s-pack-go-to-tests-btn:active {
	transform: translateY(0);
}

/* Unlocked test status */
.ex-s-pack-detail-test-unlocked {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #16a34a;
	font-weight: 700;
	font-size: 14px;
}

.ex-s-pack-detail-test-unlocked i {
	font-size: 16px;
	color: #16a34a;
}

/* Test actions (Attempt Test / Attempted) */
.ex-s-pack-detail-test-actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}
.ex-s-pack-detail-test-actions-vertical {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: stretch;
}

.ex-s-pack-detail-test-attempt-btn {
	padding: 10px 20px;
	background: #16a34a;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 140ms ease, transform 140ms ease;
	white-space: nowrap;
	text-decoration: none;
	display: inline-block;
}

.ex-s-pack-detail-test-attempt-btn:hover {
	background: #2563eb;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.ex-s-pack-detail-test-attempt-btn:active {
	transform: translateY(0);
}

.ex-s-pack-detail-test-resume-btn {
	padding: 10px 20px;
	background: #f59e0b;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 140ms ease, transform 140ms ease;
	white-space: nowrap;
	text-decoration: none;
	display: inline-block;
}

.ex-s-pack-detail-test-resume-btn:hover {
	background: #d97706;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.ex-s-pack-detail-test-resume-btn:active {
	transform: translateY(0);
}

.ex-s-pack-detail-test-attempted {
	padding: 10px 20px;
	background: #e5e7eb;
	color: #374151;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	display: inline-block;
}

.ex-s-pack-detail-test-attempt-again-btn {
	padding: 8px 16px;
	background: #3b82f6;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 140ms ease, transform 140ms ease;
	white-space: nowrap;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	width: 100%;
}

.ex-s-pack-detail-test-attempt-again-btn:hover {
	background: #2563eb;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.ex-s-pack-detail-test-attempt-again-btn:active {
	transform: translateY(0);
}

.ex-s-pack-detail-test-result-btn {
	padding: 8px 16px;
	background: #16a34a;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 140ms ease, transform 140ms ease;
	white-space: nowrap;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	width: 100%;
}

.ex-s-pack-detail-test-result-btn:hover {
	background: #15803d;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.ex-s-pack-detail-test-result-btn:active {
	transform: translateY(0);
}

/* Remove underline from all buttons - Important */
button,
button *,
a[class*="btn"],
a[class*="button"],
a.ex-s-btn,
a.ex-s-auth-btn,
a.ex-s-auth-btn-primary,
a.ex-s-auth-btn-link,
a.ex-s-pack-add-to-tests-btn,
a.ex-s-pack-buy-now-btn,
a.ex-s-pack-know-more,
a.ex-s-pack-detail-buy-btn,
a.ex-s-pack-detail-test-buy-btn,
a.ex-s-pack-go-to-tests-btn,
a.ex-s-pack-detail-test-attempt-btn,
a.ex-s-pack-detail-test-resume-btn,
a.ex-s-pack-detail-test-attempt-again-btn,
a.ex-s-pack-detail-test-result-btn,
a.ex-s-order-view-pack-btn,
a.ex-s-order-download-invoice-btn,
a.ex-s-checkout-pay-btn,
.ex-s-btn,
.ex-s-auth-btn,
.ex-s-auth-btn-primary,
.ex-s-auth-btn-link,
.ex-s-pack-add-to-tests-btn,
.ex-s-pack-buy-now-btn,
.ex-s-pack-know-more,
.ex-s-pack-detail-buy-btn,
.ex-s-pack-detail-test-buy-btn,
.ex-s-pack-go-to-tests-btn,
.ex-s-pack-detail-test-attempt-btn,
.ex-s-pack-detail-test-resume-btn,
.ex-s-pack-detail-test-attempt-again-btn,
.ex-s-pack-detail-test-result-btn,
.ex-s-order-view-pack-btn,
.ex-s-order-download-invoice-btn,
.ex-s-checkout-pay-btn,
.ex-s-modal-btn,
.ex-s-modal-btn-primary,
.ex-s-modal-btn-secondary,
.ex-s-alert-btn,
.ex-s-alert-btn-primary,
.ex-s-alert-btn-secondary {
	text-decoration: none !important;
}

button:hover,
button:focus,
button:active,
button *:hover,
button *:focus,
button *:active,
a[class*="btn"]:hover,
a[class*="btn"]:focus,
a[class*="btn"]:active,
a[class*="button"]:hover,
a[class*="button"]:focus,
a[class*="button"]:active,
a.ex-s-btn:hover,
a.ex-s-btn:focus,
a.ex-s-btn:active,
a.ex-s-auth-btn:hover,
a.ex-s-auth-btn:focus,
a.ex-s-auth-btn:active,
a.ex-s-auth-btn-primary:hover,
a.ex-s-auth-btn-primary:focus,
a.ex-s-auth-btn-primary:active,
a.ex-s-auth-btn-link:hover,
a.ex-s-auth-btn-link:focus,
a.ex-s-auth-btn-link:active,
a.ex-s-pack-add-to-tests-btn:hover,
a.ex-s-pack-add-to-tests-btn:focus,
a.ex-s-pack-add-to-tests-btn:active,
a.ex-s-pack-buy-now-btn:hover,
a.ex-s-pack-buy-now-btn:focus,
a.ex-s-pack-buy-now-btn:active,
a.ex-s-pack-know-more:hover,
a.ex-s-pack-know-more:focus,
a.ex-s-pack-know-more:active,
a.ex-s-pack-detail-buy-btn:hover,
a.ex-s-pack-detail-buy-btn:focus,
a.ex-s-pack-detail-buy-btn:active,
a.ex-s-pack-detail-test-buy-btn:hover,
a.ex-s-pack-detail-test-buy-btn:focus,
a.ex-s-pack-detail-test-buy-btn:active,
a.ex-s-pack-go-to-tests-btn:hover,
a.ex-s-pack-go-to-tests-btn:focus,
a.ex-s-pack-go-to-tests-btn:active,
a.ex-s-pack-detail-test-attempt-btn:hover,
a.ex-s-pack-detail-test-attempt-btn:focus,
a.ex-s-pack-detail-test-attempt-btn:active,
a.ex-s-pack-detail-test-resume-btn:hover,
a.ex-s-pack-detail-test-resume-btn:focus,
a.ex-s-pack-detail-test-resume-btn:active,
a.ex-s-pack-detail-test-attempt-again-btn:hover,
a.ex-s-pack-detail-test-attempt-again-btn:focus,
a.ex-s-pack-detail-test-attempt-again-btn:active,
a.ex-s-pack-detail-test-result-btn:hover,
a.ex-s-pack-detail-test-result-btn:focus,
a.ex-s-pack-detail-test-result-btn:active,
a.ex-s-order-view-pack-btn:hover,
a.ex-s-order-view-pack-btn:focus,
a.ex-s-order-view-pack-btn:active,
a.ex-s-order-download-invoice-btn:hover,
a.ex-s-order-download-invoice-btn:focus,
a.ex-s-order-download-invoice-btn:active,
a.ex-s-checkout-pay-btn:hover,
a.ex-s-checkout-pay-btn:focus,
a.ex-s-checkout-pay-btn:active,
.ex-s-btn:hover,
.ex-s-btn:focus,
.ex-s-btn:active,
.ex-s-auth-btn:hover,
.ex-s-auth-btn:focus,
.ex-s-auth-btn:active,
.ex-s-auth-btn-primary:hover,
.ex-s-auth-btn-primary:focus,
.ex-s-auth-btn-primary:active,
.ex-s-auth-btn-link:hover,
.ex-s-auth-btn-link:focus,
.ex-s-auth-btn-link:active,
.ex-s-pack-add-to-tests-btn:hover,
.ex-s-pack-add-to-tests-btn:focus,
.ex-s-pack-add-to-tests-btn:active,
.ex-s-pack-buy-now-btn:hover,
.ex-s-pack-buy-now-btn:focus,
.ex-s-pack-buy-now-btn:active,
.ex-s-pack-know-more:hover,
.ex-s-pack-know-more:focus,
.ex-s-pack-know-more:active,
.ex-s-pack-detail-buy-btn:hover,
.ex-s-pack-detail-buy-btn:focus,
.ex-s-pack-detail-buy-btn:active,
.ex-s-pack-detail-test-buy-btn:hover,
.ex-s-pack-detail-test-buy-btn:focus,
.ex-s-pack-detail-test-buy-btn:active,
.ex-s-pack-go-to-tests-btn:hover,
.ex-s-pack-go-to-tests-btn:focus,
.ex-s-pack-go-to-tests-btn:active,
.ex-s-pack-detail-test-attempt-btn:hover,
.ex-s-pack-detail-test-attempt-btn:focus,
.ex-s-pack-detail-test-attempt-btn:active,
.ex-s-pack-detail-test-resume-btn:hover,
.ex-s-pack-detail-test-resume-btn:focus,
.ex-s-pack-detail-test-resume-btn:active,
.ex-s-pack-detail-test-attempt-again-btn:hover,
.ex-s-pack-detail-test-attempt-again-btn:focus,
.ex-s-pack-detail-test-attempt-again-btn:active,
.ex-s-pack-detail-test-result-btn:hover,
.ex-s-pack-detail-test-result-btn:focus,
.ex-s-pack-detail-test-result-btn:active,
.ex-s-order-view-pack-btn:hover,
.ex-s-order-view-pack-btn:focus,
.ex-s-order-view-pack-btn:active,
.ex-s-order-download-invoice-btn:hover,
.ex-s-order-download-invoice-btn:focus,
.ex-s-order-download-invoice-btn:active,
.ex-s-checkout-pay-btn:hover,
.ex-s-checkout-pay-btn:focus,
.ex-s-checkout-pay-btn:active,
.ex-s-modal-btn:hover,
.ex-s-modal-btn:focus,
.ex-s-modal-btn:active,
.ex-s-modal-btn-primary:hover,
.ex-s-modal-btn-primary:focus,
.ex-s-modal-btn-primary:active,
.ex-s-modal-btn-secondary:hover,
.ex-s-modal-btn-secondary:focus,
.ex-s-modal-btn-secondary:active,
.ex-s-alert-btn:hover,
.ex-s-alert-btn:focus,
.ex-s-alert-btn:active,
.ex-s-alert-btn-primary:hover,
.ex-s-alert-btn-primary:focus,
.ex-s-alert-btn-primary:active,
.ex-s-alert-btn-secondary:hover,
.ex-s-alert-btn-secondary:focus,
.ex-s-alert-btn-secondary:active {
	text-decoration: none !important;
}

/* Email Verification Form - Resend OTP Button Styles */
.ex-s-email-verification-form #ex-s-resend-otp-btn {
	transition: all 0.3s ease;
}

.ex-s-email-verification-form #ex-s-resend-otp-btn:not(:disabled) {
	background-color: #2563eb !important;
	color: #ffffff !important;
	border-color: #2563eb !important;
	cursor: pointer;
	opacity: 1;
}

.ex-s-email-verification-form #ex-s-resend-otp-btn:not(:disabled):hover {
	background-color: #1d4ed8 !important;
	border-color: #1d4ed8 !important;
}

.ex-s-email-verification-form #ex-s-resend-otp-btn:disabled {
	background-color: #e2e8f0 !important;
	color: #64748b !important;
	border-color: #cbd5e1 !important;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Email Verification Form - Notice and Messages */
.ex-s-email-verification-form .notice.notice-info {
	background-color: #fef2f2 !important;
	border-left-color: #dc2626 !important;
	color: #dc2626 !important;
}

.ex-s-email-verification-form .notice.notice-info p {
	color: #dc2626 !important;
}

.ex-s-email-verification-form .ex-s-otp-validity-message {
	color: #000000 !important;
	font-weight: 600 !important;
}