/* ============================================================
   SignDeaf — Membership: levels, XP, achievements, lock blur
   ============================================================ */

/* ── Progress panel (paid users) ── */
.sd-progress-panel {
	background: linear-gradient(160deg, #111827 0%, #1f2937 100%);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 24px;
	padding: 24px 28px;
	margin-bottom: 20px;
	box-shadow: 0 18px 34px rgba(15,23,42,.16);
	color: #fff;
}
.sd-progress-panel-hero {
	margin-bottom: 0;
}
.sd-progress-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.sd-progress-kicker {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #a8a29e;
	margin-bottom: 6px;
}
.sd-progress-heading {
	margin: 0;
	font-size: 22px;
	line-height: 1.1;
	color: #fafaf9;
}
.sd-progress-status {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.1);
	color: #e7e5e4;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
@media (max-width: 640px) {
	.sd-progress-panel { padding: 18px 18px; }
	.sd-progress-header { flex-direction: column; }
}

/* ── Level row ── */
.sd-level-row {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.sd-level-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.sd-level-icon {
	font-size: 36px;
	line-height: 1;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.sd-level-num {
	font-size: 20px;
	font-weight: 800;
	color: #e0e7ff;
	line-height: 1.1;
}
.sd-level-title {
	font-size: 13px;
	color: #d6d3d1;
	font-weight: 600;
	margin-top: 2px;
}

/* ── XP bar ── */
.sd-xp-wrap { flex: 1; min-width: 160px; }
.sd-xp-bar-row {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #d6d3d1;
	font-weight: 600;
	margin-bottom: 6px;
}
.sd-xp-bar-outer {
	height: 10px;
	background: rgba(255,255,255,.12);
	border-radius: 999px;
	overflow: hidden;
}
.sd-xp-bar-inner {
	height: 100%;
	background: linear-gradient(90deg, #f59e0b, #f97316);
	border-radius: 999px;
	transition: width 0.6s cubic-bezier(.4,0,.2,1);
	box-shadow: 0 0 12px rgba(249,115,22,.35);
}
.sd-xp-sublabel {
	font-size: 11px;
	color: #a8a29e;
	margin-top: 5px;
	font-weight: 500;
}

/* ── Stats row ── */
.sd-stats-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}
.sd-stat-item {
	background: rgba(255,255,255,.05);
	border-radius: 12px;
	padding: 12px 10px;
	text-align: center;
	border: 1px solid rgba(255,255,255,.08);
	transition: background 0.15s;
}
.sd-stat-item:hover { background: rgba(255,255,255,.08); }
.sd-stat-num {
	font-size: 22px;
	font-weight: 800;
	color: #e0e7ff;
	line-height: 1;
	margin-bottom: 4px;
	font-variant-numeric: tabular-nums;
}
.sd-stat-label {
	font-size: 11px;
	color: #a8a29e;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ── Achievements section ── */
.sd-ach-section { padding-top: 4px; }
.sd-ach-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #d6d3d1;
	margin-bottom: 10px;
}
.sd-ach-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.sd-ach-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 999px;
	padding: 5px 12px 5px 8px;
	cursor: default;
	transition: background 0.15s, transform 0.15s;
}
.sd-ach-badge:hover {
	background: rgba(255,255,255,.1);
	transform: translateY(-1px);
}
.sd-ach-badge.sd-ach-new {
	animation: sd-ach-pop 0.5s cubic-bezier(.4,0,.2,1) both;
	border-color: #f59e0b;
	box-shadow: 0 0 12px rgba(249,115,22,.28);
}
@keyframes sd-ach-pop {
	0%   { transform: scale(0.6) translateY(8px); opacity: 0; }
	70%  { transform: scale(1.08); }
	100% { transform: scale(1); opacity: 1; }
}
.sd-ach-icon { font-size: 16px; line-height: 1; }
.sd-ach-name { font-size: 12px; font-weight: 700; color: #e0e7ff; }

/* ── XP toast notification ── */
.sd-xp-toast {
	position: fixed;
	bottom: 28px;
	right: 24px;
	background: linear-gradient(135deg, #1e1b4b, #2d1b69);
	color: #e0e7ff;
	border: 1.5px solid rgba(165,180,252,.3);
	border-radius: 14px;
	padding: 14px 20px;
	font-size: 14px;
	line-height: 1.6;
	box-shadow: 0 8px 32px rgba(0,0,0,.4);
	z-index: 99999;
	min-width: 200px;
	max-width: 300px;
}
.sd-xp-toast strong { color: #a855f7; }
@keyframes sd-toast-in  { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes sd-toast-out { from { opacity:1; transform:translateY(0); }   to { opacity:0; transform:translateY(8px); } }
.sd-xp-toast-in  { animation: sd-toast-in  0.3s ease both; }
.sd-xp-toast-out { animation: sd-toast-out 0.4s ease both; }

/* ── Favourites button ── */
.sd-fav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	border-radius: 14px;
	background: #fff;
	color: #ef4444;
	font-size: 14px;
	font-weight: 700;
	border: 2px solid #fecaca;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s;
}
.sd-fav-btn:hover {
	background: #fff1f2;
	border-color: #ef4444;
	color: #dc2626;
	text-decoration: none;
}
.sd-fav-btn.active {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 14px rgba(239,68,68,.3);
}
.sd-fav-btn.sd-fav-locked {
	background: #fafaf9;
	color: #78716c;
	border-color: #d6d3d1;
	cursor: default;
	font-size: 13px;
}
.sd-fav-btn.sd-fav-locked:hover {
	background: #fff;
	border-color: #111827;
	color: #111827;
}

/* ── Locked / blur section (free users) ── */
.sd-locked-section {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	margin-bottom: 20px;
	background: linear-gradient(160deg, #111827 0%, #1f2937 100%);
	border: 1px solid rgba(255,255,255,.08);
	min-height: 330px;
	box-shadow: 0 18px 34px rgba(15,23,42,.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.sd-locked-section:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 42px rgba(15,23,42,.24);
	border-color: rgba(139,92,246,.4);
}
.sd-locked-section-below-video {
	display: grid;
	grid-template-rows: minmax(150px, 1fr) auto;
	min-height: 0;
	height: 100%;
	margin-bottom: 0;
}
.sd-locked-blur {
	filter: blur(1px);
	opacity: .72;
	pointer-events: none;
	user-select: none;
	padding: 24px 24px 18px;
	background:
		linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
		radial-gradient(circle at top right, rgba(245,158,11,.12), rgba(245,158,11,0) 42%);
}
.sd-locked-blur-inner { transform: scale(1); }
/* Reuse progress styles inside blur preview */
.sd-blur-preview .sd-level-row    { color: #fff; margin-bottom: 14px; }
.sd-blur-preview .sd-level-num    { color: #e0e7ff; font-size: 20px; font-weight: 800; }
.sd-blur-preview .sd-level-title  { color: #d6d3d1; font-size: 13px; }
.sd-blur-preview .sd-level-icon   { font-size: 32px; }
.sd-blur-preview .sd-stats-row    { grid-template-columns: repeat(3,1fr); gap: 10px; }
.sd-blur-preview .sd-stat-item    { background: rgba(255,255,255,.1); border-radius: 10px; padding: 10px; text-align: center; }
.sd-blur-preview .sd-stat-num     { font-size: 20px; font-weight: 800; color: #e0e7ff; }
.sd-blur-preview .sd-stat-label   { font-size: 11px; color: #d6d3d1; font-weight: 600; text-transform: uppercase; }
.sd-blur-preview .sd-xp-bar-row   { color: #d6d3d1; }
.sd-blur-preview .sd-xp-bar-outer { height: 10px; background: rgba(255,255,255,.12); border-radius: 999px; margin-top: 10px; }
.sd-blur-preview .sd-xp-bar-inner { height: 100%; width: 68%; background: linear-gradient(90deg,#a78bfa,#7c3aed); border-radius: 999px; }
.sd-blur-preview .sd-xp-sublabel  { color: #d6d3d1; }
.sd-blur-preview .sd-xp-wrap      { flex: 1; }

.sd-locked-kicker {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #d6d3d1;
	margin-bottom: 8px;
}
.sd-locked-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.14);
	color: #fafaf9;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 12px;
}
.sd-locked-overlay {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 24px 24px;
	margin-top: -6px;
}
.sd-locked-heading {
	font-size: 26px;
	font-weight: 800;
	color: #fafaf9;
	line-height: 1.15;
	margin: 0 0 12px;
	text-align: center;
	letter-spacing: -.02em;
}
.sd-locked-focus {
	width: min(100%, 470px);
	padding: 24px 22px 20px;
	border-radius: 24px;
	background:
		linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06)),
		linear-gradient(160deg, rgba(31,41,55,.92), rgba(17,24,39,.96));
	border: 1px solid rgba(255,255,255,.14);
	backdrop-filter: blur(10px);
	box-shadow: 0 18px 36px rgba(0,0,0,.26);
}
.sd-locked-desc {
	font-size: 15px;
	color: #f3f4f6;
	line-height: 1.7;
	margin: 0 0 18px;
	max-width: none;
}
.sd-locked-features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 20px;
}
.sd-locked-features span {
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	color: #f5f5f4;
}
.sd-upgrade-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #fff;
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	padding: 13px 28px;
	border-radius: 14px;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(15,23,42,.18);
	transition: transform 0.15s, box-shadow 0.15s;
	color: #111827;
}
.sd-upgrade-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(15,23,42,.22);
	color: #111827;
	text-decoration: none;
}
.sd-locked-action-row {
	display: grid;
	gap: 10px;
	justify-items: center;
	margin-top: 2px;
	width: 100%;
}
.sd-upgrade-btn-primary {
	min-width: 100%;
	justify-content: center;
	padding: 16px 28px;
	font-size: 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, #7c3aed, #5b21b6);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 18px 34px rgba(124,58,237,.32);
}
.sd-upgrade-btn-primary:hover {
	color: #fff;
	box-shadow: 0 22px 42px rgba(124,58,237,.42);
}
.sd-upgrade-btn-ghost {
	min-width: 100%;
	justify-content: center;
	padding: 16px 28px;
	font-size: 16px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.16);
	color: #f8fafc;
	box-shadow: 0 10px 24px rgba(15,23,42,.12);
}
.sd-upgrade-btn-ghost:hover {
	background: rgba(255,255,255,.14);
	border-color: rgba(255,255,255,.28);
	color: #fff;
	box-shadow: 0 16px 30px rgba(15,23,42,.18);
}
.sd-locked-subcta {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #c4b5fd;
	line-height: 1.5;
}
.sd-locked-login-note {
	margin: 12px 0 0;
	font-size: 13px;
	color: #d6d3d1;
}
.sd-locked-login-note a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
}
@media (max-width: 640px) {
	.sd-upgrade-btn-primary,
	.sd-upgrade-btn-ghost {
		width: 100%;
		min-width: 0;
	}
}
