/**
 * Student Portal & Mock Test Engine CSS.
 * Driving Mock Test Portal — Modern Slate & Warm Amber Theme.
 */

/* ── CONTAINER & TYPOGRAPHY ──────────────────────────────────────────────── */
.dmtp-portal-container {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1e293b;
	-webkit-font-smoothing: antialiased;
}

/* ── STYLISH STUDENT PORTAL HEADER ───────────────────────────────────────── */
.dmtp-portal-header {
	background: linear-gradient(135deg, #0b0f19 0%, #1e293b 50%, #92400e 85%, #d97706 100%) !important;
	border-radius: 16px;
	padding: 18px 26px;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.12);
	position: relative;
	overflow: hidden;
}

.dmtp-portal-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -15%;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
	pointer-events: none;
	border-radius: 50%;
}

.dmtp-brand-icon-box {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: #0f172a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.dmtp-brand-title {
	font-size: 1.2rem;
	letter-spacing: -0.02em;
	font-weight: 800;
	color: #ffffff;
}

.dmtp-brand-subtitle {
	font-size: 0.75rem;
	color: #f59e0b;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
}

.dmtp-live-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #10b981;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: dmtp-pulse 2s infinite;
}

@keyframes dmtp-pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

.dmtp-header-user-pill {
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	padding: 6px 16px;
	border-radius: 50px;
	transition: all 0.2s ease;
}

.dmtp-header-user-pill:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(245, 158, 11, 0.4);
}

.dmtp-user-name {
	font-size: 0.88rem;
	line-height: 1.2;
	color: #ffffff;
}

.dmtp-user-email {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.7);
	display: block;
}

.dmtp-avatar-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: #0f172a;
	border: 2px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	font-size: 1rem;
	font-weight: 800;
	overflow: hidden;
}

.dmtp-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dmtp-user-status-indicator {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background-color: #10b981;
	border: 2px solid #0f172a;
}

.dmtp-sidebar-toggle-btn {
	border-color: rgba(255, 255, 255, 0.25);
	color: #ffffff;
	border-radius: 10px;
	padding: 6px 12px;
}

.dmtp-sidebar-toggle-btn:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border-color: #f59e0b;
}

/* ── SIDEBAR MENU ────────────────────────────────────────────────────────── */
.dmtp-sidebar-menu .list-group-item {
	font-weight: 700 !important;
	font-size: 0.92rem;
	letter-spacing: 0.01em;
	color: #475569;
	transition: all 0.18s ease;
	border-left: 3.5px solid transparent !important;
}

.dmtp-sidebar-menu .list-group-item .width-20 {
	width: 20px;
	display: inline-block;
	text-align: center;
}

.dmtp-sidebar-menu .list-group-item.active {
	background-color: #fffbeb !important;
	border-color: transparent !important;
	border-left-color: #f59e0b !important;
	color: #92400e !important;
}

.dmtp-sidebar-menu .list-group-item.active i {
	color: #d97706;
}

.dmtp-sidebar-menu .list-group-item:hover:not(.active) {
	background-color: #f8fafc !important;
	color: #0f172a !important;
}

/* ── DASHBOARD STAT CARDS ────────────────────────────────────────────────── */
.dmtp-portal-stat-card {
	position: relative;
	border-radius: 16px;
	padding: 22px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
	height: 100%;
	min-height: 105px;
}

.dmtp-portal-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.dmtp-portal-stat-card.dmtp-stat-blue {
	border-left: 4px solid #3b82f6;
}

.dmtp-portal-stat-card.dmtp-stat-green {
	border-left: 4px solid #10b981;
}

.dmtp-portal-stat-card.dmtp-stat-red {
	border-left: 4px solid #ef4444;
}

.dmtp-portal-stat-card.dmtp-stat-purple {
	border-left: 4px solid #f59e0b;
}

.dmtp-stat-icon-box {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	flex-shrink: 0;
}

.dmtp-stat-blue .dmtp-stat-icon-box {
	background: #eff6ff;
	color: #2563eb;
}

.dmtp-stat-green .dmtp-stat-icon-box {
	background: #f0fdf4;
	color: #10b981;
}

.dmtp-stat-red .dmtp-stat-icon-box {
	background: #fef2f2;
	color: #ef4444;
}

.dmtp-stat-purple .dmtp-stat-icon-box {
	background: #fffbeb;
	color: #d97706;
}

.dmtp-stat-details {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	flex: 1;
}

.dmtp-stat-title {
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dmtp-stat-number {
	font-size: 1.75rem;
	font-weight: 800;
	color: #0f172a !important;
	margin: 0;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

/* ── MOCK TEST ENGINE & RUNNER ───────────────────────────────────────────── */
.dmtp-runner-header {
	background: linear-gradient(135deg, #0b0f19 0%, #1e293b 50%, #92400e 85%, #d97706 100%) !important;
	border-radius: 16px !important;
	padding: 18px 24px !important;
	box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.25) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.dmtp-timer-box {
	background: #ffffff !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 6px 20px !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.dmtp-timer-box .dmtp-timer-label,
.dmtp-timer-box small {
	color: #475569 !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	font-size: 11px !important;
	text-transform: uppercase !important;
}

.dmtp-timer-box .dmtp-timer-display,
.dmtp-timer-box span,
#dmtpTimerDisplay {
	color: #000000 !important;
	font-size: 1.7rem !important;
	font-weight: 800 !important;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
	line-height: 1.1 !important;
	text-shadow: none !important;
}

.dmtp-timer-box.timer-warning {
	background: #fef2f2 !important;
	border-color: #ef4444 !important;
	animation: pulse-red 1s infinite alternate !important;
}

.dmtp-timer-box.timer-warning small {
	color: #dc2626 !important;
}

.dmtp-timer-box.timer-warning span,
.dmtp-timer-box.timer-warning #dmtpTimerDisplay {
	color: #b91c1c !important;
}

@keyframes pulse-red {
	from {
		box-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
	}
	to {
		box-shadow: 0 0 14px rgba(220, 38, 38, 0.8);
	}
}

/* Progress Bar in Test Runner Footer */
.dmtp-test-progress-container {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.dmtp-test-progress-track,
.dmtp-test-runner-wrap .progress {
	height: 8px !important;
	background-color: #e2e8f0 !important;
	border-radius: 9999px !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

.dmtp-test-runner-wrap .progress-bar,
#dmtpProgressBar {
	height: 100% !important;
	line-height: 8px !important;
	background: #1d4ed8 !important;
	background-color: #1d4ed8 !important;
	border-radius: 9999px !important;
	margin: 0 !important;
	padding: 0 !important;
	transition: width 0.3s ease !important;
	display: block !important;
	position: relative !important;
	top: 0 !important;
}

/* Question Palette */
.dmtp-palette-grid .btn-palette {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	border-radius: 10px !important;
	border: 1.5px solid #cbd5e1 !important;
	background-color: #ffffff !important;
	color: #334155 !important;
	cursor: pointer !important;
	transition: all 0.18s ease-in-out !important;
	text-decoration: none !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.dmtp-palette-grid .btn-palette:hover {
	background-color: #f1f5f9 !important;
	border-color: #94a3b8 !important;
	color: #0f172a !important;
	transform: translateY(-1px);
}

.dmtp-palette-grid .btn-palette.unanswered {
	background-color: #ffffff !important;
	border-color: #cbd5e1 !important;
	color: #475569 !important;
}

.dmtp-palette-grid .btn-palette.answered,
.dmtp-palette-grid .btn-palette.btn-success {
	background-color: #10b981 !important;
	border-color: #059669 !important;
	color: #ffffff !important;
}

.dmtp-palette-grid .btn-palette.flagged,
.dmtp-palette-grid .btn-palette.btn-warning {
	background-color: #f59e0b !important;
	border-color: #d97706 !important;
	color: #0f172a !important;
	font-weight: 800 !important;
}

.dmtp-palette-grid .btn-palette.active {
	transform: scale(1.14) !important;
	box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.45) !important;
	border-color: #f59e0b !important;
	z-index: 2 !important;
}

/* Palette Legend Indicator Dots */
.dmtp-legend-dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 4px;
	margin-right: 6px;
	vertical-align: middle;
}
.dmtp-legend-dot.dot-answered {
	background-color: #10b981;
	border: 1px solid #059669;
}
.dmtp-legend-dot.dot-unanswered {
	background-color: #ffffff;
	border: 1.5px solid #cbd5e1;
}
.dmtp-legend-dot.dot-flagged {
	background-color: #f59e0b;
	border: 1px solid #d97706;
}

/* 2x2 Grid Options Layout */
.dmtp-options-list,
#dmtpOptionsList {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 14px !important;
}

.dmtp-options-list .dmtp-option-card {
	margin-bottom: 0 !important;
	min-height: 56px;
	height: 100%;
}

@media (max-width: 576px) {
	.dmtp-options-list,
	#dmtpOptionsList {
		grid-template-columns: 1fr !important;
	}
}

.dmtp-option-card {
	cursor: pointer;
	transition: all 0.18s ease;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	background: #ffffff;
	padding: 14px 18px;
	user-select: none;
	display: flex;
	align-items: center;
}

.dmtp-option-card * {
	pointer-events: none;
}

.dmtp-option-card:hover {
	border-color: #cbd5e1;
	background-color: #f8fafc;
	transform: translateY(-1px);
}

.dmtp-option-card.selected {
	border-color: #f59e0b !important;
	background-color: #fffbeb !important;
	color: #92400e !important;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
	font-weight: 600;
}

.dmtp-option-card.is-correct {
	border-color: #10b981 !important;
	background-color: #f0fdf4 !important;
	color: #065f46 !important;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.dmtp-option-card.is-incorrect {
	border-color: #ef4444 !important;
	background-color: #fef2f2 !important;
	color: #991b1b !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.dmtp-option-card .form-check {
	display: flex;
	align-items: center;
	padding: 0;
	margin: 0;
	line-height: 1;
}

.dmtp-option-card .form-check-input {
	float: none;
	margin: 0;
	flex-shrink: 0;
	vertical-align: middle;
	position: relative;
	top: 0;
	cursor: pointer;
}

.dmtp-option-card .form-check-input:checked {
	background-color: #f59e0b;
	border-color: #f59e0b;
}

.dmtp-option-card .form-check-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	margin: 0;
	padding: 0;
	line-height: 1.4;
	font-size: 14.5px;
}

/* ── BUTTONS (NEXT, SUBMIT, PREVIOUS, FLAG) ─────────────────────────────── */
#dmtpNextBtn,
.dmtp-btn-primary,
#dmtpConfirmSubmitBtn {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
	color: #0f172a !important;
	border: none !important;
	border-radius: 10px !important;
	font-weight: 700 !important;
	font-size: 14.5px !important;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
	transition: all 0.18s ease !important;
}

#dmtpNextBtn:hover:not(:disabled),
.dmtp-btn-primary:hover:not(:disabled),
#dmtpConfirmSubmitBtn:hover:not(:disabled) {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
	transform: translateY(-1.5px);
	box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4) !important;
}

#dmtpPrevBtn,
#dmtpFlagBtn,
.dmtp-btn-secondary {
	border: 1.5px solid #e2e8f0 !important;
	background: #ffffff !important;
	color: #475569 !important;
	border-radius: 10px !important;
	font-weight: 600 !important;
	transition: all 0.18s ease !important;
}

#dmtpPrevBtn:hover:not(:disabled),
#dmtpFlagBtn:hover:not(:disabled),
.dmtp-btn-secondary:hover:not(:disabled) {
	border-color: #cbd5e1 !important;
	background: #f8fafc !important;
	color: #0f172a !important;
}

#dmtpFlagBtn.is-flagged {
	background: #fffbeb !important;
	border-color: #f59e0b !important;
	color: #b45309 !important;
}

#dmtpSubmitTestBtn {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 10px !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

#dmtpSubmitTestBtn:hover {
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
	transform: translateY(-1px);
}

/* ── MODALS ─────────────────────────────────────────────────────────────── */
.modal-content {
	border-radius: 16px !important;
	overflow: hidden;
	border: 1px solid #f1f5f9 !important;
}

.modal-header.bg-dark {
	background: linear-gradient(135deg, #0f172a, #1e293b) !important;
}

/* ── BADGES & UTILITIES ──────────────────────────────────────────────────── */
.badge.bg-primary,
#dmtpQNumberBadge {
	background: #fffbeb !important;
	color: #92400e !important;
	border: 1px solid #fef3c7 !important;
	font-weight: 700 !important;
}

.style-max-h-300 {
	max-height: 300px;
	object-fit: contain;
}

.min-vh-50 {
	min-height: 520px;
}

.dmtp-toast-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1090;
}

/* ── EMAIL VERIFICATION PENDING STATE ────────────────────────────────────── */
.dmtp-verify-pending-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 32px 20px;
	background: linear-gradient(135deg, #fefce8 0%, #fffbeb 100%);
	border: 1.5px solid #fde68a;
	border-radius: 14px;
	margin: 8px 0 16px;
}

.dmtp-verify-pending-box svg {
	width: 48px;
	height: 48px;
	color: #d97706;
	margin-bottom: 14px;
}

.dmtp-verify-pending-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #92400e;
	margin: 0 0 8px;
}

.dmtp-verify-pending-msg {
	font-size: 0.93rem;
	color: #78350f;
	margin: 0 0 10px;
	line-height: 1.6;
}

.dmtp-verify-pending-sub {
	font-size: 0.82rem;
	color: #a16207;
	margin: 0;
}

/* ── DISTORTED IMAGE CAPTCHA & HONEYPOT STYLING ──────────────────────────── */
.dmtp-hp-field {
	display: none !important;
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.dmtp-captcha-inline {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.dmtp-captcha-img-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	padding: 4px 8px 4px 4px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	user-select: none;
}

.dmtp-captcha-img {
	height: 40px;
	width: auto;
	border-radius: 8px;
	display: block;
	pointer-events: none;
}

.dmtp-captcha-reload-btn {
	background: none;
	border: none;
	padding: 6px;
	cursor: pointer;
	color: #64748b;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.dmtp-captcha-reload-btn:hover {
	color: #d97706;
	background: #fef3c7;
}

.dmtp-captcha-reload-btn.is-loading svg {
	animation: dmtp-spin 0.8s linear infinite;
}

@keyframes dmtp-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.dmtp-captcha-input-wrap {
	width: 130px;
	min-width: 100px;
}

.dmtp-input-captcha {
	font-weight: 600;
	text-align: center;
	letter-spacing: 1px;
}

/* ── PACKAGE DETAIL PAGE (CLEAN & PROFESSIONAL REDESIGN) ─────────────────── */
.dmtp-pkg-detail-wrap {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0f172a;
	margin-bottom: 30px;
}

/* 1. Navigation Row */
.dmtp-pkg-nav-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 12px;
}

.dmtp-pkg-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #475569 !important;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
}

.dmtp-pkg-back-btn:hover {
	background: #f8fafc;
	color: #0f172a !important;
	border-color: #cbd5e1;
	transform: translateX(-2px);
}

.dmtp-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 9999px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.dmtp-status-pill--active {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.dmtp-status-pill--expired {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.dmtp-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

/* 2. Hero Package Header Card */
.dmtp-pkg-hero-card {
	background: linear-gradient(135deg, #0b0f19 0%, #1e293b 50%, #92400e 85%, #d97706 100%) !important;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.3), 0 4px 12px -2px rgba(15, 23, 42, 0.15);
	margin-bottom: 24px;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.dmtp-pkg-hero-cover {
	height: 160px;
	position: relative;
	overflow: hidden;
	background: #0f172a;
}

.dmtp-pkg-hero-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.45;
}

.dmtp-pkg-hero-cover-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(11, 15, 25, 0.3) 0%, rgba(11, 15, 25, 0.95) 100%);
}

.dmtp-pkg-hero-content {
	padding: 26px 28px;
	position: relative;
	z-index: 2;
}

.dmtp-pkg-hero-top {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 22px;
}

.dmtp-pkg-icon-box {
	width: 52px;
	height: 52px;
	min-width: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: #0f172a;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.dmtp-pkg-hero-text {
	flex: 1;
}

.dmtp-pkg-hero-title {
	color: #ffffff !important;
	font-size: 1.65rem !important;
	font-weight: 800 !important;
	margin: 0 0 6px !important;
	line-height: 1.25 !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.dmtp-pkg-hero-desc {
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 0.95rem !important;
	margin: 0 !important;
	line-height: 1.55 !important;
	max-width: 800px;
}

.dmtp-pkg-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	background: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	padding: 14px 18px;
}

.dmtp-pkg-meta-cell {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.dmtp-pkg-meta-label {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fbbf24;
}

.dmtp-pkg-meta-val {
	font-size: 0.92rem;
	font-weight: 700;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dmtp-pkg-meta-val svg {
	color: #fbbf24;
	opacity: 0.9;
}

/* 3. Stats / Metrics Row */
.dmtp-pkg-stats-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}

@media (max-width: 991px) {
	.dmtp-pkg-stats-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.dmtp-pkg-stats-row {
		grid-template-columns: 1fr;
	}
}

.dmtp-pkg-stat-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 20px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dmtp-pkg-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.dmtp-pkg-stat-card--amber .dmtp-pkg-stat-icon {
	background: #fef3c7;
	color: #d97706;
}

.dmtp-pkg-stat-card--slate .dmtp-pkg-stat-icon {
	background: #f1f5f9;
	color: #334155;
}

.dmtp-pkg-stat-icon {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dmtp-pkg-stat-body {
	flex: 1;
	min-width: 0;
}

.dmtp-pkg-stat-label {
	display: block;
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin-bottom: 4px;
}

.dmtp-pkg-stat-number {
	font-size: 1.55rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.15;
	margin-bottom: 6px;
}

.dmtp-pkg-stat-denom {
	font-size: 0.95rem;
	font-weight: 600;
	color: #94a3b8;
}

.dmtp-pkg-mini-progress {
	height: 6px;
	background: #e2e8f0;
	border-radius: 9999px;
	overflow: hidden;
	margin: 6px 0 8px;
}

.dmtp-pkg-mini-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #f59e0b, #d97706);
	border-radius: 9999px;
	transition: width 0.4s ease;
}

.dmtp-pkg-stat-sub {
	display: block;
	font-size: 0.8rem;
	color: #64748b;
	line-height: 1.3;
}

/* 4. Mock Tests Panel */
.dmtp-pkg-tests-panel {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.dmtp-pkg-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 22px 26px;
	border-bottom: 1px solid #f1f5f9;
	background: #fafbfc;
	flex-wrap: wrap;
	gap: 12px;
}

.dmtp-pkg-panel-title-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dmtp-pkg-panel-icon {
	width: 40px;
	height: 40px;
	min-width: 40px;
	border-radius: 10px;
	background: #fef3c7;
	color: #d97706;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dmtp-pkg-panel-title {
	font-size: 1.2rem !important;
	font-weight: 750 !important;
	color: #0f172a !important;
	margin: 0 0 2px !important;
}

.dmtp-pkg-panel-desc {
	font-size: 0.85rem;
	color: #64748b;
	margin: 0;
}

.dmtp-badge-pill {
	display: inline-block;
	background: #0f172a;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 9999px;
	letter-spacing: 0.02em;
}

.dmtp-pkg-panel-body {
	padding: 22px 26px;
}

/* Empty State */
.dmtp-pkg-empty-state {
	text-align: center;
	padding: 48px 20px;
	color: #64748b;
}

.dmtp-pkg-empty-icon {
	color: #cbd5e1;
	margin-bottom: 16px;
}

.dmtp-pkg-empty-state h4 {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 6px;
}

.dmtp-pkg-empty-state p {
	font-size: 0.9rem;
	color: #64748b;
	margin: 0;
}

/* Test Cards List */
.dmtp-test-cards-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dmtp-test-item-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px 22px;
	transition: all 0.22s ease;
	position: relative;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.dmtp-test-item-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
	transform: translateY(-1px);
}

.dmtp-test-item-card.is-in-progress {
	border-left: 4px solid #f59e0b;
	background: #fffdfa;
}

.dmtp-test-item-card.is-completed {
	border-left: 4px solid #10b981;
}

.dmtp-test-item-top {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
}

.dmtp-test-item-badge-num {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 10px;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.85rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dmtp-test-item-info {
	flex: 1;
	min-width: 0;
}

.dmtp-test-item-name {
	font-size: 1.08rem !important;
	font-weight: 750 !important;
	color: #0f172a !important;
	margin: 0 0 4px !important;
	line-height: 1.35 !important;
}

.dmtp-test-item-desc {
	font-size: 0.86rem;
	color: #64748b;
	margin: 0;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Status Pills inside test item */
.dmtp-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 9999px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.dmtp-pill--warning {
	background: #fef3c7;
	color: #b45309;
	border: 1px solid #fde68a;
}

.dmtp-pill--success {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.dmtp-pill--danger {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.dmtp-pill--neutral {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.dmtp-pulse-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #d97706;
	box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
	animation: dmtp-pulse 1.6s infinite;
}

@keyframes dmtp-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
	}
	70% {
		box-shadow: 0 0 0 6px rgba(217, 119, 6, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
	}
}

/* Specs Row */
.dmtp-test-specs-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 10px 14px;
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	border-radius: 10px;
	margin-bottom: 16px;
}

.dmtp-spec-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
}

.dmtp-spec-icon {
	color: #64748b;
	display: flex;
	align-items: center;
}

.dmtp-spec-label {
	color: #64748b;
	font-weight: 500;
}

.dmtp-spec-val {
	color: #0f172a;
	font-weight: 700;
}

.dmtp-spec-sub {
	color: #94a3b8;
	font-weight: 500;
}

/* Action Buttons Row */
.dmtp-test-actions-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.dmtp-btn-link-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.84rem;
	font-weight: 600;
	color: #475569 !important;
	text-decoration: none !important;
	padding: 6px 10px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.dmtp-btn-link-action:hover {
	color: #d97706 !important;
	background: #fef3c7;
}

.dmtp-btn-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 20px;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dmtp-btn-amber {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: #0f172a !important;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
}

.dmtp-btn-amber:hover {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.dmtp-btn-amber-pulse {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.dmtp-btn-amber-pulse:hover {
	background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
	transform: translateY(-1px);
}

.dmtp-btn-outline-amber {
	background: #ffffff;
	border: 1.5px solid #d97706;
	color: #d97706 !important;
}

.dmtp-btn-outline-amber:hover {
	background: #fef3c7;
	color: #b45309 !important;
	border-color: #b45309;
}

.dmtp-btn-slate {
	background: #0f172a;
	color: #ffffff !important;
}

.dmtp-btn-slate:hover {
	background: #1e293b;
	color: #ffffff !important;
}

.dmtp-btn-disabled {
	background: #f1f5f9;
	color: #94a3b8 !important;
	border: 1px solid #e2e8f0;
	cursor: not-allowed;
	box-shadow: none;
}

@media (max-width: 576px) {
	.dmtp-runner-header {
		padding: 14px !important;
	}
	.dmtp-runner-header > div:first-child {
		width: 100% !important;
		margin-bottom: 8px !important;
	}
	.dmtp-runner-header > div:last-child {
		width: 100% !important;
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
	}
	.dmtp-runner-header #dmtpSubmitTestBtn {
		width: 100% !important;
		margin-top: 4px !important;
	}
}

/* ── STUDENT PORTAL MOBILE OVERHAUL ─────────────────────────────────────── */
@media (max-width: 767.98px) {
	/* Header banner */
	.dmtp-portal-header {
		padding: 12px 16px !important;
		border-radius: 12px !important;
	}

	.dmtp-brand-icon-box {
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
		border-radius: 10px !important;
		font-size: 1.1rem !important;
		margin-right: 10px !important;
	}

	.dmtp-brand-title {
		font-size: 1.05rem !important;
		line-height: 1.2 !important;
	}

	.dmtp-brand-subtitle {
		font-size: 0.68rem !important;
	}

	.dmtp-avatar-circle {
		width: 36px !important;
		height: 36px !important;
		font-size: 0.9rem !important;
	}

	/* Stacked Sidebar Menu */
	.dmtp-sidebar-wrapper .card {
		border-radius: 12px !important;
	}

	.dmtp-sidebar-menu .list-group-item {
		padding: 10px 14px !important;
		font-size: 0.88rem !important;
	}

	/* Compact Stats Cards */
	.dmtp-portal-stat-card {
		padding: 12px 12px !important;
		gap: 10px !important;
		border-radius: 12px !important;
		min-height: unset !important;
		box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
	}

	.dmtp-stat-icon-box {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		border-radius: 8px !important;
		font-size: 1rem !important;
	}

	.dmtp-stat-title {
		font-size: 0.66rem !important;
		letter-spacing: 0.04em !important;
		margin-bottom: 2px !important;
	}

	.dmtp-stat-number {
		font-size: 1.35rem !important;
	}
}

@media (max-width: 420px) {
	.dmtp-portal-header {
		padding: 10px 12px !important;
	}

	.dmtp-brand-title {
		font-size: 0.95rem !important;
	}

	.dmtp-brand-subtitle {
		font-size: 0.62rem !important;
	}

	.dmtp-portal-stat-card {
		padding: 10px 10px !important;
		gap: 8px !important;
	}

	.dmtp-stat-icon-box {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		font-size: 0.9rem !important;
	}

	.dmtp-stat-title {
		font-size: 0.6rem !important;
	}

	.dmtp-stat-number {
		font-size: 1.15rem !important;
	}
}

/* ── RTL SUPPORT (Arabic, Urdu, Hebrew, etc.) ───────────────────────────── */
.dmtp-test-runner-wrap.dmtp-rtl {
	direction: rtl !important;
	text-align: right !important;
}

.dmtp-test-runner-wrap.dmtp-rtl #dmtpQText {
	text-align: right !important;
	direction: rtl !important;
}

.dmtp-test-runner-wrap.dmtp-rtl .dmtp-option-card {
	flex-direction: row-reverse !important;
	text-align: right !important;
}

.dmtp-test-runner-wrap.dmtp-rtl .dmtp-option-card .form-check {
	margin-right: 0 !important;
	margin-left: 1rem !important;
}

.dmtp-test-runner-wrap.dmtp-rtl .dmtp-option-card .badge {
	margin-left: 0 !important;
	margin-right: auto !important;
}

.dmtp-test-runner-wrap.dmtp-rtl .dmtp-runner-header {
	direction: rtl !important;
}

.dmtp-test-runner-wrap.dmtp-rtl .dmtp-palette-grid {
	direction: ltr !important;
}




