
/* ==========================================================================
   AEW Interactive Webinar Warmup Portal - Premium App Style
   ========================================================================== */

:root {
	--aew-bg: #f8fafc;
	--aew-card-bg: #ffffff;
	--aew-primary: #0f172a;
	--aew-accent: #dc2626;
	--aew-text: #0f172a;
	--aew-subtext: #64748b;
	--aew-border: #e2e8f0;
	--aew-radius: 14px;
}

body.aew-standalone {
	background: var(--aew-bg) !important;
	color: var(--aew-text) !important;
	margin: 0;
	padding: 0;
	font-family: "IRANSansXV", "IRANSansXFaNum", Tahoma, sans-serif !important;
}

.aew-portal-app {
	max-width: 480px;
	margin: 0 auto;
	padding: 16px 14px 40px;
	box-sizing: border-box;
}

/* App Bar */
.aew-app-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--aew-border);
}
.aew-app-user {
	display: flex;
	align-items: center;
	gap: 10px;
}
.aew-app-avatar {
	width: 38px;
	height: 38px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 18px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.aew-app-title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.3;
}
.aew-app-badge {
	font-size: 10.5px;
	color: #059669;
	font-weight: 700;
	display: block;
}
.aew-app-pwa-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #0f172a;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 11.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: opacity .15s ease;
}
.aew-app-pwa-btn:hover { opacity: 0.85; }

/* Hero Card */
.aew-hero-card {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #ffffff;
	border-radius: var(--aew-radius);
	padding: 16px 14px;
	margin-bottom: 16px;
	box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.25);
}
.aew-hero-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.aew-session-badge {
	font-size: 11px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	padding: 3px 8px;
	border-radius: 6px;
}
.aew-hero-time {
	font-size: 12px;
	font-weight: 700;
	color: #38bdf8;
}

/* Digital Clock Row */
.aew-timer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 8px 12px;
	margin-bottom: 12px;
}
.aew-timer-title {
	font-size: 11.5px;
	color: #94a3b8;
}
.aew-digital-clock {
	display: flex;
	align-items: center;
	gap: 4px;
	direction: ltr;
}
.aew-digit-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #020617;
	border-radius: 6px;
	padding: 2px 6px;
	min-width: 34px;
}
.aew-digit {
	font-size: 14px;
	font-weight: 800;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}
.aew-unit {
	font-size: 8.5px;
	color: #64748b;
	margin-top: 1px;
}
.aew-sep {
	font-size: 13px;
	font-weight: 800;
	color: #64748b;
}

/* Main CTA Button */
.aew-main-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #334155;
	color: #cbd5e1;
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	transition: all .2s ease;
	box-sizing: border-box;
}
.aew-main-cta.is-live {
	background: #dc2626 !important;
	color: #ffffff !important;
	border-color: #dc2626 !important;
	box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
	animation: aewPulseBtn 2s infinite;
}
.aew-cta-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #94a3b8;
	flex-shrink: 0;
}
.aew-main-cta.is-live .aew-cta-dot {
	background: #ffffff;
	box-shadow: 0 0 6px #fff;
}
@keyframes aewPulseBtn {
	0% { transform: scale(1); }
	50% { transform: scale(1.02); }
	100% { transform: scale(1); }
}

/* Tab Navigation Buttons */
.aew-step-nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-bottom: 12px;
}
.aew-tab-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: #ffffff;
	border: 1px solid var(--aew-border);
	padding: 8px 4px;
	border-radius: 10px;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--aew-subtext);
	font-family: inherit;
	cursor: pointer;
	transition: all .15s ease;
}
.aew-tab-btn.is-active {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
}
.aew-tab-num {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #0f172a;
	display: grid;
	place-items: center;
	font-size: 10px;
	font-weight: 800;
}
.aew-tab-btn.is-active .aew-tab-num {
	background: #334155;
	color: #ffffff;
}

/* Tab Panes */
.aew-tab-pane {
	display: none;
}
.aew-tab-pane.is-active {
	display: block;
	animation: aewFadeIn .2s ease;
}
@keyframes aewFadeIn {
	from { opacity: 0; transform: translateY(3px); }
	to { opacity: 1; transform: translateY(0); }
}

.aew-pane-card {
	background: var(--aew-card-bg);
	border: 1px solid var(--aew-border);
	border-radius: var(--aew-radius);
	padding: 14px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.aew-pane-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}
.aew-pane-head h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 800;
	color: #0f172a;
}
.aew-pane-time {
	font-size: 11px;
	font-weight: 700;
	background: #f1f5f9;
	color: #475569;
	padding: 2px 6px;
	border-radius: 4px;
}
.aew-pane-desc {
	font-size: 12px;
	color: var(--aew-subtext);
	margin: 0 0 10px;
	line-height: 1.6;
}

/* Video Frame */
.aew-video-frame {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
	aspect-ratio: 16 / 9;
}
.aew-player {
	width: 100%;
	height: 100%;
	display: block;
}

/* Poll Grid */
.aew-poll-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.aew-choice-card {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: #f8fafc;
	border: 1px solid var(--aew-border);
	padding: 10px 12px;
	border-radius: 10px;
	text-align: right;
	font-family: inherit;
	cursor: pointer;
	transition: all .15s ease;
	position: relative;
}
.aew-choice-card:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}
.aew-choice-card.is-selected {
	background: #f0fdf4;
	border-color: #86efac;
}
.aew-choice-icon {
	font-size: 20px;
	flex-shrink: 0;
}
.aew-choice-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.aew-choice-text strong {
	font-size: 12.5px;
	color: #0f172a;
}
.aew-choice-text span {
	font-size: 11px;
	color: #64748b;
}
.aew-choice-check {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #e2e8f0;
	color: transparent;
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 800;
	flex-shrink: 0;
	transition: all .15s ease;
}
.aew-choice-card.is-selected .aew-choice-check {
	background: #16a34a;
	color: #ffffff;
}
.aew-poll-alert {
	margin-top: 10px;
	padding: 8px 10px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 8px;
	font-size: 11.5px;
	color: #065f46;
	font-weight: 700;
}

/* Download Button */
.aew-download-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	background: #0f172a;
	color: #ffffff;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	transition: opacity .15s ease;
}
.aew-download-action:hover { opacity: 0.88; }

/* Notification Strip */
.aew-notify-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: #ffffff;
	border: 1px solid var(--aew-border);
	border-radius: 12px;
	padding: 10px 12px;
	margin-top: 16px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.aew-notify-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.aew-notify-text strong {
	font-size: 11.5px;
	color: #0f172a;
}
.aew-notify-text span {
	font-size: 10.5px;
	color: #64748b;
}
.aew-notify-action {
	background: #2563eb;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 11.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	flex-shrink: 0;
	transition: background .15s ease;
}
.aew-notify-action:hover { background: #1d4ed8; }
