/* ==========================================================================
   Ebook-Controle — front-end styles
   Version: 1.4.9

   Mobile-first redesign of the [ebook_controle_dashboard] output.
   Every selector is namespaced with the "ec-" prefix and every rule that draws
   the dashboard is scoped under .ec-dashboard, so nothing else on the site (and
   no Elementor widget) can be affected by this file.

   Design tokens live on :root with the --ec- prefix (they are inert variables,
   they cannot restyle anything by themselves) so the access gate and the reader
   wrapper also get the palette when they are printed outside .ec-dashboard.

   No external font, no icon font, no framework: only system fonts and inline
   SVG, so the dashboard cannot break a theme by loading a third-party asset.

   v1.4.0 additions: the compact SAMZARO welcome block (.ec-welcome*), the
   inline audio player (.ec-audio-player*) and the "Listen Ebook" button
   (.ec-book-item__btn--listen / .ec-feature__listen).
   ========================================================================== */

:root {
	--ec-page: #f4f6fc;
	--ec-card: #ffffff;
	--ec-ink: #1e2238;
	--ec-ink-soft: #454d63;
	--ec-muted: #7e8b9f;
	--ec-accent: #5060f6;
	--ec-accent-strong: #3a49d8;
	--ec-accent-soft: #eef0fd;
	--ec-accent-soft-strong: #e2e6fd;
	--ec-track: #e6e9fa;
	--ec-line: #eceffa;
	--ec-ok: #15803d;
	--ec-error: #b91c1c;
	--ec-radius-xl: 24px;
	--ec-radius-lg: 18px;
	--ec-radius-md: 14px;
	--ec-radius-sm: 10px;
	--ec-shadow: 0 10px 30px rgba(77, 92, 246, .07), 0 1px 2px rgba(30, 34, 56, .04);
	--ec-shadow-soft: 0 6px 18px rgba(77, 92, 246, .06);
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.ec-dashboard {
	background: var(--ec-page);
	color: var(--ec-ink);
	padding: 18px 14px 16px;
	border-radius: var(--ec-radius-xl);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	max-width: 100%;
	overflow-wrap: break-word;
}

.ec-dashboard *,
.ec-dashboard *::before,
.ec-dashboard *::after { box-sizing: border-box; }

.ec-dashboard img { max-width: 100%; height: auto; }

.ec-dashboard__inner { display: block; }

.ec-dashboard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

.ec-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0; padding: 0; margin: -1px;
}

.ec-empty { margin: 0; color: var(--ec-muted); font-size: .9rem; }
.ec-empty-cta { margin: 12px 0 0; }
.ec-muted { color: var(--ec-muted); }

/* --------------------------------------------------------------------------
   Welcome block — compact SAMZARO card (v1.4.0, NEW)
   Every visible value lands in an inline CSS variable so the administrator
   can override everything from Ebook-Controle → Settings.
   -------------------------------------------------------------------------- */

.ec-welcome {
	--ec-welcome-bg:           #fff7fc;
	--ec-welcome-border:       #e8c5f2;
	--ec-welcome-active-bg:    #f2e5ff;
	--ec-welcome-inactive-bg:  #ffffff;
	--ec-welcome-flagsize:     24px;
	--ec-welcome-radius:       14px;

	/* High-contrast SAMZARO palette: light lavender/rose surface with dark text. */
	background: linear-gradient(115deg, #f4edff 0%, #fff0f8 100%);
	color: #35205f;
	border: 1px solid var(--ec-welcome-border);
	border-radius: var(--ec-welcome-radius);
	padding: 10px 14px;
	margin: 0 0 14px;
	box-shadow: 0 6px 18px rgba(16,12,40,.12);
	overflow: hidden;
}


/* SAMZARO welcome text contrast: keep every label readable on the light gradient. */
.ec-welcome h1,
.ec-welcome h2,
.ec-welcome h3,
.ec-welcome p,
.ec-welcome .ec-welcome__greeting,
.ec-welcome .ec-welcome__name,
.ec-welcome .ec-welcome__badge {
	color: #35205f;
}
.ec-welcome .ec-welcome__badge {
	background: #ffffff;
	border: 1px solid #d9c3f5;
}

.ec-welcome__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
	min-height: 0;
}

.ec-welcome__tagline {
	margin: 0;
	font-size: .6rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #6f3295;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.ec-welcome__flags {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	margin-left: auto;
}

.ec-welcome__flag {
	appearance: none;
	-webkit-appearance: none;
	width: var(--ec-welcome-flagsize);
	height: var(--ec-welcome-flagsize);
	border-radius: 50%;
	border: 1px solid #e4c6f0;
	background: var(--ec-welcome-inactive-bg);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	line-height: 1;
	transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,.18);
}

.ec-welcome__flag:hover,
.ec-welcome__flag:focus {
	transform: translateY(-1px);
	outline: none;
	border-color: #b64cc8;
}

.ec-welcome__flag--active {
	background: var(--ec-welcome-active-bg);
	border-color: #b64cc8;
	box-shadow: 0 0 0 3px rgba(182,76,200,.16), 0 2px 6px rgba(80,35,100,.12);
}

.ec-welcome__flag:not(.ec-welcome__flag--active) {
	opacity: .8;
	filter: saturate(.6);
}

.ec-welcome__flag-emoji {
	font-size: calc(var(--ec-welcome-flagsize) * .58);
	line-height: 1;
	display: block;
	pointer-events: none;
}

/* v1.4.2 — usability only. The circular look, size and colours are unchanged;
   the touch target is enlarged to ~44px (WCAG 2.5.5) by an invisible ::after
   overlay, and keyboard focus stays visible. */
.ec-welcome__flag {
	position: relative;
}

.ec-welcome__flag::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
}

.ec-welcome__flag:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.ec-welcome__flag[aria-pressed="true"] {
	cursor: default;
}

/* Single-row top: hello on the left, flags on the right, optionally a
   compact underline tagline + subtitle. The block stays compact on phones
   and never pushes the library down. */
.ec-welcome__row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 0;
}

.ec-welcome__hello {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	letter-spacing: -.005em;
	word-break: break-word;
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ec-welcome__hello .ec-welcome__wave { font-size: 1.05em; margin-left: 2px; }

.ec-welcome__sub {
	display: none; /* the subtitle is moved next to the badge to keep the block
	                  compact on every screen, and re-enabled only on tablets+. */
	margin: 6px 0 0;
	font-size: .78rem;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.35;
}

.ec-welcome__cta {
	margin-top: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ec-welcome__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #ffffff;
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	flex: 0 0 auto;
}

.ec-welcome__meta {
	font-size: .68rem;
	color: rgba(255, 255, 255, .65);
	margin: 0;
	text-align: right;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1 1 auto;
}

/* Compact view adaptations: small phones stay readable, desktop grows
   the same layout across the available width — never a phone frame. */
@media (max-width: 359px) {
	.ec-welcome__hello { font-size: .98rem; }
	.ec-welcome__flags { gap: 4px; }
}

@media (min-width: 700px) {
	.ec-welcome { padding: 14px 18px; }
	.ec-welcome__hello { font-size: 1.18rem; }
	.ec-welcome__sub { display: block; }
}

/* --------------------------------------------------------------------------
   Welcome header (avatar only — older render helper kept for back-compat)
   -------------------------------------------------------------------------- */

.ec-hello {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 2px 0 16px;
}

.ec-hello__avatar {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #dfe4ff, #f2e6ff);
	box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(30, 34, 56, .08);
}

.ec-hello__avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; }

.ec-hello__initial { font-size: 1.1rem; font-weight: 700; color: var(--ec-accent-strong); text-transform: uppercase; }

.ec-hello__text { min-width: 0; }

.ec-hello__greeting {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--ec-ink);
}

.ec-hello__wave { font-size: 1rem; }

.ec-hello__sub { margin: 3px 0 0; font-size: .85rem; color: var(--ec-muted); }

/* --------------------------------------------------------------------------
   Panels (My Reading Progress, All Ebooks, reading history)
   -------------------------------------------------------------------------- */

.ec-panel {
	background: var(--ec-card);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius-xl);
	padding: 16px;
	box-shadow: var(--ec-shadow);
	margin: 0 0 16px;
}

.ec-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.ec-panel__icon {
	flex: 0 0 34px;
	width: 34px; height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ec-panel__icon--blue { background: #e6eefe; color: #4d5cf6; }
.ec-panel__icon--violet { background: #f2e9fd; color: #7c4ddb; }

.ec-icon { width: 18px; height: 18px; display: block; }

.ec-panel__title {
	flex: 1 1 auto;
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ec-ink);
	min-width: 0;
}

.ec-panel__link {
	flex: 0 0 auto;
	font-size: .82rem;
	font-weight: 600;
	color: var(--ec-accent);
	text-decoration: none;
	white-space: nowrap;
}

.ec-panel__link:hover,
.ec-panel__link:focus { color: var(--ec-accent-strong); text-decoration: underline; }

.ec-panel__note { margin: -6px 0 12px; font-size: .8rem; color: var(--ec-muted); }

/* --------------------------------------------------------------------------
   Featured (most recently read) ebook
   -------------------------------------------------------------------------- */

.ec-feature {
	background: linear-gradient(180deg, #fbfbff, #f7f8ff);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius-lg);
	padding: 14px;
}

.ec-feature__top { display: flex; align-items: flex-start; gap: 14px; }

.ec-feature__cover { flex: 0 0 84px; width: 84px; }

.ec-feature__cover img {
	width: 84px; height: 112px;
	object-fit: cover;
	border-radius: var(--ec-radius-sm);
	display: block;
	box-shadow: 0 6px 16px rgba(30, 34, 56, .14);
}

.ec-feature__ph {
	display: block;
	width: 84px; height: 112px;
	border-radius: var(--ec-radius-sm);
	background: linear-gradient(135deg, #dbe4ff, #ede4ff);
}

.ec-feature__body { flex: 1 1 auto; min-width: 0; }

.ec-feature__title { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.3; color: var(--ec-ink); }
.ec-feature__desc { margin: 4px 0 0; font-size: .82rem; color: var(--ec-muted); }
.ec-feature__author { margin: 6px 0 0; font-size: .82rem; font-weight: 600; color: var(--ec-ink-soft); }

.ec-feature__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 10px 0 6px;
	font-size: .78rem;
	color: var(--ec-muted);
}

.ec-feature__pct { font-weight: 700; color: var(--ec-accent); }
.ec-feature__cta { margin-top: 12px; }
.ec-feature__note { margin: 12px 0 0; font-size: .82rem; color: var(--ec-muted); }

/* v1.4.0 — audio progress meter sits beside the reading progress, so a
   member can see at a glance that their audio listening is being tracked. */
.ec-feature__audio-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 10px 0 6px;
	font-size: .78rem;
	color: var(--ec-muted);
}
.ec-feature__audio-label { font-weight: 600; }
.ec-feature__audio-pct   { font-weight: 700; color: var(--ec-accent); }
.ec-progress--audio { height: 5px; margin-top: 4px; }

.ec-feature__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.ec-feature__listen,
.ec-book-item__btn--listen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-weight: 700;
	font-size: .9rem;
	padding: 11px 18px;
	border-radius: 999px;
	border: 1px solid var(--ec-accent);
	background: #fff;
	color: var(--ec-accent) !important;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ec-feature__listen:hover,
.ec-feature__listen:focus,
.ec-book-item__btn--listen:hover,
.ec-book-item__btn--listen:focus {
	background: var(--ec-accent-soft);
	color: var(--ec-accent-strong) !important;
	outline: none;
}

.ec-feature__listen-icon,
.ec-book-item__btn-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	line-height: 1;
}

.ec-book-item { margin: 0; padding: 0; min-width: 0; }
.ec-book-item--expanded { padding-bottom: 8px; }

.ec-book-item__audio-bar {
	display: block;
	height: 4px;
	background: var(--ec-track);
	border-radius: 999px;
	overflow: hidden;
	margin-top: 6px;
}

.ec-book-item__audio-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #5b6cf8, #7f7bf8);
	border-radius: 999px;
}

.ec-book-item__audio-bar-outer {
	margin: 8px 6px 0 72px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.ec-book-item__audio-meta {
	font-size: .74rem;
	color: var(--ec-muted);
}

.ec-book-item__audio-meta strong { color: var(--ec-accent); font-weight: 700; }

.ec-book-item__btn--listen {
	justify-content: center;
	padding: 9px 14px;
	font-size: .82rem;
}

@media (min-width: 700px) {
	.ec-book-item__audio-bar-outer { margin-left: 78px; }
}

/* --------------------------------------------------------------------------
   Inline audio player (v1.4.0)
   A custom control bar — the browser native controls do not expose speed.
   -------------------------------------------------------------------------- */

.ec-audio-player-wrap {
	margin: 10px 4px 4px;
	animation: ec-au-fade .25s ease;
}

/* Accessible modal popup for Listen Ebook. */
.ec-audio-player-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 20px;
	background: rgba(24, 17, 48, .68);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.ec-audio-player-modal .ec-audio-player {
	width: min(100%, 520px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	box-sizing: border-box;
	padding: 22px;
	box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
@media (max-width: 520px) {
	.ec-audio-player-modal { padding: 14px; }
	.ec-audio-player-modal .ec-audio-player { padding: 17px; border-radius: 20px; }
	.ec-audio-player-modal .ec-audio-player__controls { flex-wrap: wrap; }
}
@keyframes ec-au-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ec-audio-player {
	background: linear-gradient(180deg, #fbfbff, #f6f5ff);
	border: 1px solid var(--ec-line);
	border-radius: 18px;
	padding: 14px;
	box-shadow: var(--ec-shadow-soft);
	color: var(--ec-ink);
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.ec-audio-player__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ec-audio-player__title {
	font-size: .98rem;
	font-weight: 700;
	color: var(--ec-ink);
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ec-audio-player__close {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	color: var(--ec-muted);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 8px;
}
.ec-audio-player__close:hover,
.ec-audio-player__close:focus { background: var(--ec-accent-soft); color: var(--ec-accent-strong); }

.ec-audio-player__controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ec-audio-player__btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	font-size: 1rem;
	background: #fff;
	color: var(--ec-accent);
	border: 1px solid var(--ec-line);
	border-radius: 50%;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .1s ease;
}

.ec-audio-player__btn:hover,
.ec-audio-player__btn:focus {
	background: var(--ec-accent-soft);
	color: var(--ec-accent-strong);
	outline: none;
}

.ec-audio-player__btn--primary {
	background: var(--ec-accent);
	color: #fff;
	border-color: transparent;
	width: 50px;
	height: 50px;
	font-size: 1.15rem;
}

.ec-audio-player__btn--primary:hover,
.ec-audio-player__btn--primary:focus {
	background: var(--ec-accent-strong);
	color: #fff;
}

.ec-audio-player__time {
	margin-left: auto;
	font-size: .82rem;
	color: var(--ec-muted);
	font-variant-numeric: tabular-nums;
}
.ec-audio-player__cur  { color: var(--ec-ink); font-weight: 700; }
.ec-audio-player__sep  { opacity: .5; padding: 0 4px; }

.ec-audio-player__bar-wrap { cursor: pointer; padding: 2px 0; }
.ec-audio-player__bar {
	height: 6px;
	background: var(--ec-track);
	border-radius: 999px;
	overflow: hidden;
}
.ec-audio-player__bar-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #5b6cf8, #7f7bf8);
	border-radius: 999px;
	width: 0%;
	transition: width .25s ease;
}

.ec-audio-player__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-size: .82rem;
	color: var(--ec-muted);
}

.ec-audio-player__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ec-audio-player__speed {
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	font-size: .82rem;
	padding: 4px 8px;
	border-radius: 8px;
	border: 1px solid var(--ec-line);
	background: #fff;
	color: var(--ec-ink);
}

.ec-audio-player__vol {
	appearance: none;
	-webkit-appearance: none;
	width: 110px;
	height: 4px;
	border-radius: 999px;
	background: var(--ec-track);
	outline: none;
	cursor: pointer;
}
.ec-audio-player__vol::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px; height: 14px;
	border-radius: 50%;
	background: var(--ec-accent);
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ec-audio-player__vol::-moz-range-thumb {
	width: 14px; height: 14px;
	border-radius: 50%;
	background: var(--ec-accent);
	border: 2px solid #fff;
}

/* --------------------------------------------------------------------------
   Progress bars
   -------------------------------------------------------------------------- */

.ec-progress {
	height: 7px;
	background: var(--ec-track);
	border-radius: 999px;
	overflow: hidden;
}

.ec-progress__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #5b6cf8, #7f7bf8);
	border-radius: 999px;
	transition: width .35s ease;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.ec-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.ec-button { background: var(--ec-accent); color: #fff !important; }
.ec-button:hover,
.ec-button:focus { background: var(--ec-accent-strong); color: #fff !important; box-shadow: 0 6px 16px rgba(80, 96, 246, .28); }

.ec-button--alt { background: #fff; color: var(--ec-accent) !important; border-color: var(--ec-accent); }
.ec-button--alt:hover,
.ec-button--alt:focus { background: var(--ec-accent-soft); color: var(--ec-accent-strong) !important; box-shadow: none; }

.ec-button--soft { background: var(--ec-accent-soft); color: var(--ec-accent-strong) !important; }
.ec-button--soft:hover,
.ec-button--soft:focus { background: var(--ec-accent-soft-strong); color: var(--ec-accent-strong) !important; box-shadow: 0 6px 16px rgba(80, 96, 246, .18); }

.ec-button--block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   Statistics grid
   -------------------------------------------------------------------------- */

.ec-stats {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.ec-stat {
	background: var(--ec-card);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius-md);
	padding: 12px 6px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
	box-shadow: var(--ec-shadow-soft);
}

.ec-stat__icon {
	width: 32px; height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ec-stat__icon .ec-icon { width: 16px; height: 16px; }

.ec-stat__value {
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--ec-ink);
	letter-spacing: -.01em;
}

.ec-stat__label { font-size: .66rem; line-height: 1.25; color: var(--ec-muted); }

.ec-stat--blue .ec-stat__icon { background: #e6eefe; color: #4d5cf6; }
.ec-stat--amber .ec-stat__icon { background: #fef5e5; color: #d98a12; }
.ec-stat--green .ec-stat__icon { background: #e6f7ed; color: #17915a; }
.ec-stat--violet .ec-stat__icon { background: #f2e9fd; color: #7c4ddb; }

/* --------------------------------------------------------------------------
   Ebook list rows (All Ebooks + reading history)
   -------------------------------------------------------------------------- */

.ec-books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }

.ec-book-item__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius-lg);
	background: var(--ec-card);
	text-decoration: none;
	color: inherit;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ec-book-item__link:hover,
.ec-book-item__link:focus {
	border-color: #d9defb;
	box-shadow: 0 8px 20px rgba(77, 92, 246, .10);
	transform: translateY(-1px);
	color: inherit;
}

.ec-book-item__link--static { cursor: default; }
.ec-book-item__link--static:hover { border-color: var(--ec-line); box-shadow: none; transform: none; }

.ec-book-item__cover { flex: 0 0 54px; width: 54px; }

.ec-book-item__cover img {
	width: 54px; height: 72px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	box-shadow: 0 4px 10px rgba(30, 34, 56, .12);
}

.ec-book-item__ph {
	display: block;
	width: 54px; height: 72px;
	border-radius: 8px;
	background: linear-gradient(135deg, #dbe4ff, #ede4ff);
}

.ec-book-item__body { flex: 1 1 auto; min-width: 0; }

.ec-book-item__title {
	display: block;
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ec-ink);
}

.ec-book-item__sub { display: block; margin-top: 2px; font-size: .78rem; color: var(--ec-muted); }

.ec-book-item__meta { display: block; margin: 6px 0 5px; font-size: .75rem; color: var(--ec-muted); }

.ec-book-item__pct { font-weight: 700; color: var(--ec-accent); }
.ec-book-item__dot { color: #c3cadd; }

.ec-book-item__track {
	display: block;
	height: 5px;
	background: var(--ec-track);
	border-radius: 999px;
	overflow: hidden;
}

.ec-book-item__track--empty { background: #eef0f7; }

.ec-book-item__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #5b6cf8, #7f7bf8);
	border-radius: 999px;
}

.ec-book-item__chevron { flex: 0 0 18px; width: 18px; height: 18px; color: #b9c1d9; }
.ec-book-item__chevron .ec-icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Bottom navigation (in the page flow, never position: fixed)
   -------------------------------------------------------------------------- */

.ec-tabs {
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	gap: 4px;
	margin: 0;
	padding: 8px 6px 6px;
	background: var(--ec-card);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius-lg);
	box-shadow: var(--ec-shadow);
}

.ec-tabs__item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 6px 4px 8px;
	border-radius: 12px;
	text-decoration: none;
	color: var(--ec-muted);
	font-size: .7rem;
	font-weight: 600;
}

.ec-tabs__item:hover,
.ec-tabs__item:focus { color: var(--ec-accent); }

.ec-tabs__icon { display: flex; }
.ec-tabs__icon .ec-icon { width: 20px; height: 20px; }

.ec-tabs__item--active { color: var(--ec-accent); }

.ec-tabs__item--active::after {
	content: "";
	position: absolute;
	bottom: 1px;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 3px;
	border-radius: 999px;
	background: var(--ec-accent);
}

/* --------------------------------------------------------------------------
   Access gate for logged-out visitors (unchanged behaviour, new palette)
   -------------------------------------------------------------------------- */

.ec-gate {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	background: var(--ec-page);
	border-radius: var(--ec-radius-xl);
	padding: 20px;
	color: var(--ec-ink);
}

.ec-gate__cover { position: relative; flex: 0 0 120px; }
.ec-gate__cover img { width: 120px; height: 160px; object-fit: cover; border-radius: var(--ec-radius-sm); display: block; filter: saturate(.6); box-shadow: 0 6px 16px rgba(30, 34, 56, .12); }

.ec-gate__lock { position: absolute; right: -8px; bottom: -8px; width: 32px; height: 32px; border-radius: 50%; background: var(--ec-accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.ec-gate__lock::after { content: ""; position: absolute; left: 9px; top: 12px; width: 14px; height: 11px; background: #fff; border-radius: 2px; }
.ec-gate__lock::before { content: ""; position: absolute; left: 11px; top: 7px; width: 10px; height: 8px; border: 2px solid #fff; border-bottom: 0; border-radius: 5px 5px 0 0; }

.ec-gate__body { flex: 1; min-width: 220px; }
.ec-gate__title { margin: 0 0 8px; font-size: 1.15rem; color: var(--ec-ink); }
.ec-gate__message { margin: 0 0 12px; color: var(--ec-ink); }
.ec-gate__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* --------------------------------------------------------------------------
   Reader wrapper
   -------------------------------------------------------------------------- */

.ec-reader { margin: 0; }
.ec-reader__status { margin: 0 0 8px; font-size: .85rem; color: var(--ec-muted); }
.ec-reader__status--ok { color: var(--ec-ok); }
.ec-reader__status--error { color: var(--ec-error); }
.ec-reader__book { position: relative; }

.ec-admin-notice {
	padding: 12px 14px;
	border-left: 4px solid var(--ec-accent);
	background: var(--ec-accent-soft);
	color: var(--ec-ink);
	border-radius: var(--ec-radius-sm);
}

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */

/* Tablet and desktop: the same layout, spread over the available width.
   No phone frame, no simulated device, the dashboard stays full width inside
   its normal WordPress / Elementor container. */
@media (min-width: 700px) {
	.ec-dashboard { padding: 24px 22px 20px; }
	.ec-panel { padding: 20px; }
	.ec-stats { gap: 12px; }
	.ec-stat { padding: 14px 10px; }
	.ec-stat__value { font-size: 1.15rem; }
	.ec-stat__label { font-size: .72rem; }
	.ec-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ec-feature { padding: 16px; }
	.ec-feature__cover,
	.ec-feature__cover img,
	.ec-feature__ph { width: 96px; }
	.ec-feature__cover img,
	.ec-feature__ph { height: 128px; }
	.ec-feature__cover { flex: 0 0 96px; }
	.ec-feature__cta { max-width: 340px; }
	.ec-panel__title { font-size: 1.1rem; }
}

/* Very small phones: the statistics wrap into two columns instead of
   overflowing horizontally. */
@media (max-width: 359px) {
	.ec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ec-feature__cover,
	.ec-feature__cover img,
	.ec-feature__ph { width: 72px; }
	.ec-feature__cover img,
	.ec-feature__ph { height: 96px; }
	.ec-feature__cover { flex: 0 0 72px; }
}

@media (max-width: 480px) {
	.ec-gate { padding: 14px; }
	.ec-gate__cover { flex: 0 0 90px; }
	.ec-gate__cover img { width: 90px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
	.ec-dashboard * { transition: none !important; }
}


/* v1.4.9 — Compact global SAMZARO brand header */
.ec-site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	margin: 0 0 12px;
	padding: 4px 2px;
	box-sizing: border-box;
}
.ec-site-header__logo {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	text-decoration: none;
}
.ec-site-header__logo img {
	display: block;
	width: auto;
	height: 30px;
	max-width: 145px;
	object-fit: contain;
}
.ec-site-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px;
}
.ec-site-header__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 26px;
	padding: 5px 9px;
	border: 1px solid #d6c4f5;
	border-radius: 8px;
	background: #fff;
	color: #57358c;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.ec-site-header__button:hover,
.ec-site-header__button:focus {
	color: #3f236d;
	border-color: #b99ae9;
	background: #fbf8ff;
}

/* The two language flags share one capsule, matching Planner: 65 x 30 px. */
.ec-welcome__flags {
	width: 65px;
	height: 30px;
	padding: 1px;
	gap: 2px;
	justify-content: space-around;
	box-sizing: border-box;
	border: 1px solid #d6c4f5;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(65, 49, 110, .10);
	overflow: visible;
}
.ec-welcome__flag {
	width: 27px;
	height: 27px;
	min-width: 27px;
	border-radius: 50%;
	border: 1px solid transparent;
	box-shadow: none;
	transform: none;
}
.ec-welcome__flag:hover,
.ec-welcome__flag:focus {
	transform: none;
}
.ec-welcome__flag--active {
	background: #f2e5ff;
	border-color: #b64cc8;
	box-shadow: inset 0 0 0 1px rgba(182,76,200,.08);
}
.ec-welcome__flag:not(.ec-welcome__flag--active) {
	opacity: .88;
	filter: none;
}
.ec-welcome__flag-emoji {
	font-size: 16px;
	line-height: 1;
}
.ec-welcome__hello {
	font-size: 18px;
}
.ec-welcome__hello .ec-welcome__wave {
	font-size: 15px;
	margin-left: 2px;
}
@media (max-width: 420px) {
	.ec-site-header { gap: 8px; }
	.ec-site-header__logo img { height: 27px; max-width: 125px; }
	.ec-site-header__actions { gap: 4px; }
	.ec-site-header__button { padding: 5px 7px; font-size: 10px; }
}


/* v1.5.0 — enforce compact SAMZARO header and visible language capsule. */
.ec-dashboard .ec-site-header { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:8px !important; width:100% !important; box-sizing:border-box !important; }
.ec-dashboard .ec-site-header .ec-site-header__logo { display:inline-flex !important; align-items:center !important; flex:0 1 auto !important; min-width:0 !important; max-width:145px !important; }
.ec-dashboard .ec-site-header .ec-site-header__logo img { display:block !important; width:auto !important; height:30px !important; max-width:145px !important; max-height:30px !important; object-fit:contain !important; }
.ec-dashboard .ec-site-header .ec-site-header__actions { display:flex !important; align-items:center !important; justify-content:flex-end !important; gap:5px !important; flex:0 0 auto !important; flex-wrap:nowrap !important; }
.ec-dashboard .ec-site-header .ec-site-header__button { display:inline-flex !important; align-items:center !important; justify-content:center !important; min-height:26px !important; padding:4px 7px !important; border:1px solid #d6c4f5 !important; border-radius:8px !important; background:#fff !important; color:#57358c !important; font-size:10px !important; line-height:1.2 !important; white-space:nowrap !important; }
.ec-dashboard .ec-welcome .ec-welcome__flags { display:inline-flex !important; align-items:center !important; justify-content:space-around !important; gap:2px !important; flex:0 0 65px !important; width:65px !important; min-width:65px !important; height:30px !important; min-height:30px !important; padding:1px !important; box-sizing:border-box !important; overflow:hidden !important; border:1px solid #d6c4f5 !important; border-radius:999px !important; background:#fff !important; }
.ec-dashboard .ec-welcome .ec-welcome__flags .ec-welcome__flag { display:inline-flex !important; align-items:center !important; justify-content:center !important; flex:0 0 27px !important; width:27px !important; min-width:27px !important; height:27px !important; min-height:27px !important; padding:0 !important; margin:0 !important; border-radius:50% !important; box-shadow:none !important; transform:none !important; }
.ec-dashboard .ec-welcome .ec-welcome__flags .ec-welcome__flag-emoji { display:block !important; visibility:visible !important; opacity:1 !important; font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", sans-serif !important; font-size:16px !important; line-height:1 !important; color:initial !important; }
.ec-dashboard .ec-welcome .ec-welcome__hello { font-size:18px !important; }
.ec-dashboard .ec-welcome .ec-welcome__hello .ec-welcome__wave { font-size:15px !important; }
@media (max-width:420px) { .ec-dashboard .ec-site-header .ec-site-header__logo img { height:27px !important; max-height:27px !important; max-width:125px !important; } .ec-dashboard .ec-site-header .ec-site-header__logo { max-width:125px !important; } .ec-dashboard .ec-site-header .ec-site-header__button { font-size:10px !important; padding:4px 6px !important; } }


/* v1.5.1 — force the compact SAMZARO header outside the dashboard wrapper.
   The header is intentionally rendered BEFORE .ec-dashboard, so selectors
   scoped to .ec-dashboard could never constrain the logo. */
.ec-site-header {
  display:flex !important; align-items:center !important; justify-content:space-between !important;
  gap:8px !important; width:100% !important; max-width:100% !important; min-height:38px !important;
  margin:0 0 12px !important; padding:4px 2px !important; box-sizing:border-box !important;
}
.ec-site-header .ec-site-header__logo { display:inline-flex !important; align-items:center !important; flex:0 1 auto !important; min-width:0 !important; max-width:145px !important; margin:0 !important; padding:0 !important; line-height:0 !important; }
.ec-site-header .ec-site-header__logo img { display:block !important; width:auto !important; height:30px !important; min-height:0 !important; max-height:30px !important; max-width:145px !important; object-fit:contain !important; margin:0 !important; padding:0 !important; border:0 !important; box-shadow:none !important; }
.ec-site-header .ec-site-header__actions { display:flex !important; align-items:center !important; justify-content:flex-end !important; flex:0 0 auto !important; flex-wrap:nowrap !important; gap:5px !important; margin:0 !important; padding:0 !important; }
.ec-site-header .ec-site-header__button { display:inline-flex !important; align-items:center !important; justify-content:center !important; min-height:26px !important; height:auto !important; margin:0 !important; padding:4px 7px !important; border:1px solid #d6c4f5 !important; border-radius:8px !important; background:#fff !important; color:#57358c !important; font-family:inherit !important; font-size:10px !important; font-weight:500 !important; line-height:1.2 !important; text-decoration:none !important; text-transform:none !important; white-space:nowrap !important; box-shadow:none !important; }
.ec-site-header .ec-site-header__button:hover,.ec-site-header .ec-site-header__button:focus { color:#3f236d !important; background:#fbf8ff !important; }
@media(max-width:420px) { .ec-site-header { gap:6px !important; } .ec-site-header .ec-site-header__logo { max-width:125px !important; } .ec-site-header .ec-site-header__logo img { height:27px !important; max-height:27px !important; max-width:125px !important; } .ec-site-header .ec-site-header__button { padding:4px 6px !important; font-size:10px !important; } }

/* Blocking login popup: guests receive no dashboard/library HTML. */
.ec-login-modal { position:fixed !important; inset:0 !important; z-index:999999 !important; display:flex !important; align-items:center !important; justify-content:center !important; padding:20px !important; box-sizing:border-box !important; font-family:inherit !important; }
.ec-login-modal__backdrop { position:absolute !important; inset:0 !important; background:rgba(20,18,45,.62) !important; backdrop-filter:blur(4px) !important; -webkit-backdrop-filter:blur(4px) !important; }
.ec-login-modal__panel { position:relative !important; z-index:1 !important; width:100% !important; max-width:360px !important; box-sizing:border-box !important; padding:28px 22px !important; border:1px solid #ead8fb !important; border-radius:22px !important; background:linear-gradient(145deg,#fff 0%,#fff5fb 100%) !important; box-shadow:0 20px 60px rgba(24,16,58,.25) !important; text-align:center !important; }
.ec-login-modal__icon { display:flex !important; align-items:center !important; justify-content:center !important; width:52px !important; height:52px !important; margin:0 auto 14px !important; border-radius:16px !important; background:#f0e8ff !important; font-size:24px !important; }
.ec-login-modal__panel h2 { margin:0 0 10px !important; color:#2b214b !important; font-size:21px !important; font-weight:700 !important; line-height:1.25 !important; }
.ec-login-modal__panel p { margin:0 0 20px !important; color:#77738b !important; font-size:14px !important; line-height:1.6 !important; }
.ec-login-modal__button { display:inline-flex !important; align-items:center !important; justify-content:center !important; min-height:44px !important; padding:0 24px !important; border:0 !important; border-radius:999px !important; background:linear-gradient(100deg,#7138e8,#d82fa3) !important; color:#fff !important; font-size:14px !important; font-weight:600 !important; text-decoration:none !important; box-shadow:0 8px 20px rgba(112,56,232,.22) !important; }
.ec-login-modal__button:hover,.ec-login-modal__button:focus { color:#fff !important; filter:brightness(1.04); }

/* v1.5.2 — two clear actions in the protected-library login modal. */
.ec-login-modal__actions { display:flex !important; flex-direction:column !important; gap:10px !important; align-items:stretch !important; }
.ec-login-modal__actions .ec-login-modal__button { width:100% !important; box-sizing:border-box !important; }
.ec-login-modal__button--secondary { background:#fff !important; color:#7138e8 !important; border:1px solid #dfcef8 !important; box-shadow:none !important; }
.ec-login-modal__button--secondary:hover,.ec-login-modal__button--secondary:focus { color:#5725c4 !important; background:#faf7ff !important; }


/* v1.5.3 — Planner-matched SAMZARO guest login popup. Scoped to .sz-login-modal. */
/* v2.3.5: full-screen login gate for visitors, with no Planner content exposed */
.ailc-login-modal {
    position:fixed !important; inset:0 !important; z-index:999999 !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
    min-height:100vh !important; min-height:100dvh !important; width:100vw !important;
    padding:24px !important; margin:0 !important; box-sizing:border-box !important;
    background:rgba(20,18,35,.58) !important; backdrop-filter:blur(7px);
}
.ailc-login-modal .ailc-gate-card {
    width:min(100%,420px) !important; max-width:420px !important;
    padding:28px 24px !important; border-radius:22px !important;
    border:1px solid rgba(123,80,220,.16) !important;
    background:linear-gradient(145deg,#fff 0%,#fbf8ff 100%) !important;
    box-shadow:0 24px 80px rgba(22,15,45,.25) !important;
}
.ailc-login-modal .ailc-gate-badge { display:inline-flex; margin-bottom:14px; }
.ailc-login-modal .ailc-gate-icon-wrap { margin:0 auto 12px; }
.ailc-login-modal .ailc-gate-icon { font-size:34px !important; margin-bottom:0 !important; }
.ailc-login-modal .ailc-gate-card h2 { font-size:22px !important; line-height:1.25 !important; margin:0 0 9px !important; }
.ailc-login-modal .ailc-gate-card p { font-size:14px !important; line-height:1.55 !important; margin:0 0 20px !important; }
.ailc-login-modal .ailc-gate-actions { display:grid !important; grid-template-columns:1fr 1fr !important; gap:10px !important; }
.ailc-login-modal .ailc-gate-actions .ailc-btn { min-width:0 !important; width:100% !important; min-height:44px !important; border-radius:12px !important; font-size:14px !important; font-weight:600 !important; text-decoration:none !important; }
@media(max-width:480px) { .ailc-login-modal { padding:18px !important; } .ailc-login-modal .ailc-gate-card { padding:24px 18px !important; } .ailc-login-modal .ailc-gate-card h2 { font-size:20px !important; } }


/* v2.3.6: SAMZARO branded, responsive guest login popup (scoped to the Planner gate) */
.ailc-login-modal.sz-login-modal {
    position:fixed!important; inset:0!important; z-index:999999!important;
    display:flex!important; align-items:stretch!important; justify-content:stretch!important;
    width:100vw!important; height:100vh!important; height:100dvh!important;
    min-height:100vh!important; min-height:100dvh!important;
    margin:0!important; padding:0!important; overflow:auto!important;
    background:rgba(26,22,35,.48)!important; backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
}
.sz-login-modal .sz-page {
    isolation:isolate; position:relative; width:100%; min-height:100vh; min-height:100dvh;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    box-sizing:border-box; padding:34px 20px 28px; overflow:hidden;
    color:#1a1623; font-family:'Inter',system-ui,sans-serif;
    background:linear-gradient(150deg,#fff 0%,#fef5f9 35%,#fce8f2 65%,#fdf2f7 100%);
}
.sz-login-modal .sz-page *, .sz-login-modal .sz-page *::before, .sz-login-modal .sz-page *::after { box-sizing:border-box; }
.sz-login-modal .sz-grid { position:absolute; inset:0; pointer-events:none; background-image:radial-gradient(circle,rgba(180,100,140,.07) 1px,transparent 1px); background-size:32px 32px; mask-image:radial-gradient(ellipse 80% 70% at 50% 50%,black 0%,transparent 100%); z-index:-1; }
.sz-login-modal .sz-blob { position:absolute; border-radius:50%; pointer-events:none; filter:blur(90px); z-index:-1; }
.sz-login-modal .sz-blob--1 { width:500px;height:500px;background:radial-gradient(circle,rgba(244,114,182,.18) 0%,transparent 70%);top:-140px;right:-80px;animation:sz-login-breathe 8s ease-in-out infinite alternate; }
.sz-login-modal .sz-blob--2 { width:400px;height:400px;background:radial-gradient(circle,rgba(232,168,32,.12) 0%,transparent 70%);bottom:-80px;left:-100px;animation:sz-login-breathe 10s ease-in-out 1s infinite alternate; }
.sz-login-modal .sz-blob--3 { width:300px;height:300px;background:radial-gradient(circle,rgba(244,114,182,.10) 0%,transparent 70%);top:50%;left:-60px;transform:translateY(-50%);animation:sz-login-breathe-y 12s ease-in-out 2s infinite alternate; }
@keyframes sz-login-breathe { from{opacity:.7;transform:scale(1)} to{opacity:1;transform:scale(1.1)} }
@keyframes sz-login-breathe-y { from{opacity:.7;transform:translateY(-50%) scale(1)} to{opacity:1;transform:translateY(-50%) scale(1.1)} }
.sz-login-modal .hero-lang { position:absolute;top:18px;right:20px;z-index:10;display:flex;gap:7px; }
.sz-login-modal .lang-btn { display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:100px;border:1.5px solid rgba(200,130,160,.22);font-family:'Inter',system-ui,sans-serif;font-size:12px;font-weight:600;letter-spacing:.04em;cursor:pointer;transition:all .2s ease;background:rgba(255,255,255,.7);color:#6b5f6e;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 1px 6px rgba(200,100,140,.08);user-select:none; }
.sz-login-modal .lang-btn:hover { background:rgba(255,255,255,.95);border-color:rgba(244,114,182,.45);color:#1a1623;box-shadow:0 2px 12px rgba(244,114,182,.14); }
.sz-login-modal .lang-btn.active { background:linear-gradient(135deg,#fff 0%,#fce8f2 100%);border-color:rgba(244,114,182,.55);color:#1a1623;box-shadow:0 2px 14px rgba(244,114,182,.18),0 0 0 .5px rgba(244,114,182,.25); }
.sz-login-modal .lang-flag { font-size:14px;line-height:1; }
.sz-login-modal .sz-container { position:relative;z-index:2;width:100%;max-width:460px;display:flex;flex-direction:column;align-items:center; }
.sz-login-modal .sz-hero { text-align:center;margin:0 0 20px;animation:sz-login-fade-up .65s ease both; }
.sz-login-modal .sz-badge { display:inline-flex;align-items:center;gap:8px;background:rgba(244,114,182,.10);border:1px solid rgba(244,114,182,.28);border-radius:100px;padding:6px 16px;font-size:12px;font-weight:500;color:#c0527a;letter-spacing:.04em;margin-bottom:16px; }
.sz-login-modal .sz-badge-dot { width:6px;height:6px;border-radius:50%;background:#ec4899;flex-shrink:0;animation:sz-login-blink 2.2s ease-in-out infinite; }
@keyframes sz-login-blink { 0%,100%{opacity:1}50%{opacity:.25} }
.sz-login-modal .sz-hero-title { font-size:clamp(28px,5vw,36px);font-weight:800;line-height:1.15;letter-spacing:-.025em;color:#1a1623;margin:0; }
.sz-login-modal .sz-hero-title .sz-accent { background:linear-gradient(130deg,#e8a820 0%,#d4920d 50%,#ec4899 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text; }
.sz-login-modal .sz-card { width:100%;background:rgba(255,255,255,.92);border:1.5px solid rgba(244,114,182,.16);border-radius:22px;padding:32px 34px 28px;position:relative;overflow:hidden;animation:sz-login-fade-up .65s .12s ease both;box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 20px 60px rgba(200,80,130,.10),0 4px 20px rgba(200,80,130,.06);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px); }
.sz-login-modal .sz-card::before { content:'';position:absolute;top:0;left:15%;right:15%;height:1.5px;background:linear-gradient(90deg,transparent,rgba(244,114,182,.55),rgba(232,168,32,.4),transparent);border-radius:2px; }
.sz-login-modal .sz-card::after { content:'';position:absolute;top:-1px;left:50%;transform:translateX(-50%);width:220px;height:55px;background:radial-gradient(ellipse,rgba(244,114,182,.09) 0%,transparent 70%);pointer-events:none; }
.sz-login-modal .sz-card-header { text-align:center;margin:0 0 24px; }
.sz-login-modal .sz-card-title { font-size:20px;font-weight:700;color:#1a1623;letter-spacing:-.015em;margin:0 0 6px; }
.sz-login-modal .sz-card-subtitle { font-size:14px;color:#6b5f6e;line-height:1.5;margin:0; }
.sz-login-modal .sz-btn { display:flex;align-items:center;justify-content:center;gap:10px;width:100%;border:0;cursor:pointer;text-decoration:none!important;font-family:'Inter',system-ui,sans-serif;font-size:15px;font-weight:600;border-radius:13px;transition:all .22s cubic-bezier(.4,0,.2,1);letter-spacing:-.01em;position:relative;overflow:hidden;line-height:1.3; }
.sz-login-modal .sz-btn--primary { background:linear-gradient(135deg,#f5c842 0%,#e8a820 50%,#d4920d 100%);color:#3d2800!important;padding:15px 22px;box-shadow:0 4px 22px rgba(232,168,32,.32),0 1px 0 rgba(255,255,255,.35) inset; }
.sz-login-modal .sz-btn--primary::before { content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.18) 0%,transparent 55%);border-radius:inherit;pointer-events:none; }
.sz-login-modal .sz-btn--primary:hover { transform:translateY(-2px);box-shadow:0 8px 30px rgba(232,168,32,.42),0 1px 0 rgba(255,255,255,.35) inset;filter:brightness(1.05); }
.sz-login-modal .sz-btn--secondary { background:linear-gradient(135deg,#fff 0%,#fdf2f7 100%);color:#1a1623!important;padding:14px 22px;border:1.5px solid rgba(244,114,182,.28);box-shadow:0 2px 14px rgba(200,80,130,.08); }
.sz-login-modal .sz-btn--secondary:hover { background:linear-gradient(135deg,#fff5f9 0%,#fce8f3 100%);border-color:rgba(244,114,182,.5);transform:translateY(-1px);box-shadow:0 6px 22px rgba(200,80,130,.14),0 0 0 1px rgba(244,114,182,.2); }
.sz-login-modal .sz-btn-icon { width:17px;height:17px;flex-shrink:0; }
.sz-login-modal .sz-ripple { position:absolute;border-radius:50%;background:rgba(255,255,255,.35);transform:scale(0);animation:sz-login-ripple .52s linear;pointer-events:none; }
@keyframes sz-login-ripple { to{transform:scale(4);opacity:0} }
.sz-login-modal .sz-divider { display:flex;align-items:center;gap:12px;margin:18px 0;color:#a094a5;font-size:12px;letter-spacing:.06em;text-transform:uppercase; }
.sz-login-modal .sz-divider::before,.sz-login-modal .sz-divider::after { content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(200,100,150,.18),transparent); }
.sz-login-modal .sz-features { display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px;flex-wrap:wrap; }
.sz-login-modal .sz-feature-item { display:flex;align-items:center;gap:5px;font-size:11px;color:#a094a5; }
.sz-login-modal .sz-check { color:#d4920d;font-weight:700; }
.sz-login-modal .sz-forgot { text-align:center;margin-top:18px; }
.sz-login-modal .sz-forgot a { font-size:13px;color:#a094a5!important;text-decoration:none!important;letter-spacing:.01em;transition:color .2s ease; }
.sz-login-modal .sz-forgot a:hover { color:#c0527a!important; }
.sz-login-modal .sz-trust { display:flex;align-items:center;justify-content:center;gap:18px;margin-top:18px;animation:sz-login-fade-up .65s .28s ease both;flex-wrap:wrap; }
.sz-login-modal .sz-trust-item { display:flex;align-items:center;gap:6px;font-size:11px;color:#a094a5; }
.sz-login-modal .sz-trust-item span:first-child { color:rgba(244,114,182,.8); }
.sz-login-modal .sz-footer { margin-top:16px;text-align:center;animation:sz-login-fade-up .65s .36s ease both; }
.sz-login-modal .sz-footer p { font-size:11px;color:#a094a5;line-height:1.65;margin:0; }
.sz-login-modal .sz-footer a { color:#b06030!important;text-decoration:none!important; }
.sz-login-modal .sz-footer a:hover { text-decoration:underline!important; }
@keyframes sz-login-fade-up { from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)} }
@media(max-width:520px) {
 .ailc-login-modal.sz-login-modal { padding:0!important; }
 .sz-login-modal .sz-page { padding:54px 16px 22px;justify-content:center; }
 .sz-login-modal .hero-lang { top:10px;right:12px; }
 .sz-login-modal .lang-btn { padding:5px 10px;font-size:11px; }
 .sz-login-modal .sz-card { padding:26px 20px 22px; }
 .sz-login-modal .sz-features { gap:9px; }
 .sz-login-modal .sz-trust { gap:12px;margin-top:14px; }
 .sz-login-modal .sz-footer { margin-top:12px; }
 .sz-login-modal .sz-hero-title { font-size:27px; }
}
@media(max-width:380px) {
 .sz-login-modal .sz-page { padding:48px 12px 18px; }
 .sz-login-modal .sz-card { padding:22px 15px 18px; }
 .sz-login-modal .sz-card-header { margin-bottom:18px; }
 .sz-login-modal .sz-features { gap:7px; }
 .sz-login-modal .sz-feature-item { font-size:10px; }
}
@media(max-height:720px) and (min-width:521px) {
 .sz-login-modal .sz-page { justify-content:flex-start;padding-top:20px;padding-bottom:18px; }
 .sz-login-modal .sz-card { padding-top:22px;padding-bottom:20px; }
 .sz-login-modal .sz-trust { margin-top:12px; }
 .sz-login-modal .sz-footer { margin-top:10px; }
}
