/*
 * membership.css — Land Tools frontend membership UI.
 * Covers: hub lock overlay, Pro badge, expiry banner,
 *         upgrade modal, plan cards, access gate.
 */

/* ── Lock overlay on hub cards ───────────────────────────────────────────── */
.lt-tool-card--locked {
	position: relative;
	opacity: .65;
	cursor: pointer;
}
.lt-tool-card--locked::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(15,23,42,.18) 0%, rgba(99,102,241,.12) 100%);
	z-index: 1;
	pointer-events: none;
}
.lt-tool-card--locked .lt-lock-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 26px;
	height: 26px;
	background: rgba(15,23,42,.65);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 12px;
	backdrop-filter: blur(4px);
}
.lt-tool-card--locked:hover {
	opacity: .8;
	transform: translateY(-2px);
}

/* Pro badge on accessible premium cards */
.lt-tool-card--premium .lt-pro-card-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	background: linear-gradient(135deg, #d97706, #f59e0b);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 20px;
	letter-spacing: .06em;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(217,119,6,.35);
}
.lt-tool-card--premium {
	border: 1.5px solid rgba(217,119,6,.35) !important;
}

/* ── Pro badge in header ─────────────────────────────────────────────────── */
.lt-pro-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	background: linear-gradient(135deg, #d97706, #f59e0b);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	border-radius: 20px;
	letter-spacing: .08em;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(217,119,6,.4);
	flex-shrink: 0;
	user-select: none;
}
.lt-dark .lt-pro-badge {
	box-shadow: 0 2px 8px rgba(217,119,6,.25);
}

/* ── Expiry warning banner ───────────────────────────────────────────────── */
.lt-expiry-banner {
	background: linear-gradient(90deg, #fef3c7, #fde68a);
	border-bottom: 1px solid #fcd34d;
	color: #92400e;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	z-index: 99;
}
.lt-expiry-banner i { color: #d97706; font-size: 15px; flex-shrink: 0; }
.lt-expiry-renew {
	margin-left: auto;
	background: #d97706;
	color: #fff;
	text-decoration: none;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	transition: background .15s;
}
.lt-expiry-renew:hover { background: #b45309; color: #fff; }

.lt-dark .lt-expiry-banner {
	background: linear-gradient(90deg, #451a03, #78350f);
	border-bottom-color: #92400e;
	color: #fde68a;
}
.lt-dark .lt-expiry-renew { background: #b45309; }

/* ── Upgrade modal overlay ───────────────────────────────────────────────── */
.lt-upgrade-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .6);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.lt-upgrade-overlay[hidden] { display: none; }

.lt-upgrade-box {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 80px rgba(0,0,0,.3);
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px 24px 24px;
	position: relative;
	animation: ltUpgradeIn .22s cubic-bezier(.34,1.56,.64,1);
	text-align: center;
}
@keyframes ltUpgradeIn {
	from { opacity: 0; transform: scale(.88) translateY(20px); }
	to   { opacity: 1; transform: none; }
}

.lt-dark .lt-upgrade-box {
	background: #1e293b;
	box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

/* Close button */
.lt-upgrade-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: #f1f5f9;
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #64748b;
	font-size: 16px;
	transition: background .12s, color .12s;
}
.lt-upgrade-close:hover { background: #fee2e2; color: #ef4444; }
.lt-dark .lt-upgrade-close { background: #334155; color: #94a3b8; }
.lt-dark .lt-upgrade-close:hover { background: #7f1d1d; color: #fca5a5; }

/* Header: tool icon + lock badge */
.lt-upgrade-header {
	position: relative;
	display: inline-block;
	margin-bottom: 16px;
}
.lt-upgrade-icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	margin: 0 auto;
}
.lt-upgrade-lock-badge {
	position: absolute;
	bottom: -6px;
	right: -10px;
	width: 26px;
	height: 26px;
	background: #ef4444;
	border-radius: 50%;
	border: 2px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #fff;
}
.lt-dark .lt-upgrade-lock-badge { border-color: #1e293b; }

.lt-upgrade-title {
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 6px;
	line-height: 1.3;
}
.lt-dark .lt-upgrade-title { color: #f1f5f9; }

.lt-upgrade-subtitle {
	font-size: 13.5px;
	color: #64748b;
	margin: 0 0 20px;
}
.lt-dark .lt-upgrade-subtitle { color: #94a3b8; }

/* Plan cards inside modal */
.lt-upgrade-plans {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
	text-align: left;
}
.lt-upgrade-plan-card {
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 16px;
	transition: border-color .15s, box-shadow .15s;
	position: relative;
}
.lt-upgrade-plan-card:hover { border-color: #a5b4fc; box-shadow: 0 4px 14px rgba(79,70,229,.1); }
.lt-dark .lt-upgrade-plan-card { border-color: #334155; background: #0f172a; }
.lt-dark .lt-upgrade-plan-card:hover { border-color: #6366f1; }

.lt-upc-name {
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 4px;
}
.lt-dark .lt-upc-name { color: #f1f5f9; }

.lt-upc-price {
	font-size: 22px;
	font-weight: 800;
	color: #4f46e5;
	margin-bottom: 2px;
}
.lt-dark .lt-upc-price { color: #818cf8; }

.lt-upc-duration {
	font-size: 12px;
	color: #64748b;
	margin-bottom: 8px;
}
.lt-dark .lt-upc-duration { color: #94a3b8; }

.lt-upc-desc {
	font-size: 12.5px;
	color: #475569;
	margin: 0 0 10px;
}
.lt-dark .lt-upc-desc { color: #94a3b8; }

.lt-upc-btn {
	display: block;
	width: 100%;
	padding: 10px;
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	color: #fff;
	text-align: center;
	border-radius: 10px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	transition: opacity .15s, transform .15s;
}
.lt-upc-btn:hover { opacity: .9; transform: translateY(-1px); color: #fff; }

.lt-upgrade-no-plans {
	text-align: center;
	color: #94a3b8;
	font-size: 13px;
	padding: 12px 0;
}

/* Login section inside modal */
.lt-upgrade-login {
	border-top: 1px solid #e2e8f0;
	padding-top: 16px;
	text-align: center;
}
.lt-dark .lt-upgrade-login { border-top-color: #334155; }
.lt-upgrade-login p {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 10px;
}
.lt-upgrade-login-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #1e293b;
	color: #fff;
	text-decoration: none;
	padding: 10px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 10px;
	transition: background .15s;
}
.lt-upgrade-login-btn:hover { background: #0f172a; color: #fff; }
.lt-dark .lt-upgrade-login-btn { background: #e2e8f0; color: #1e293b; }
.lt-upgrade-register-link {
	display: block;
	font-size: 12.5px;
	color: #4f46e5;
	text-decoration: underline;
}
.lt-upgrade-register-link:hover { color: #3730a3; }

/* ── Access gate ─────────────────────────────────────────────────────────── */
.lt-access-gate {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 20px 60px;
	max-width: 560px;
	margin: 0 auto;
}

.lt-gate-hero {
	position: relative;
	display: inline-block;
	margin-bottom: 20px;
}
.lt-gate-icon {
	width: 80px;
	height: 80px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
}
.lt-gate-lock-badge {
	position: absolute;
	bottom: -8px;
	right: -10px;
	width: 32px;
	height: 32px;
	background: #ef4444;
	border-radius: 50%;
	border: 3px solid #f4f6f9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #fff;
}
.lt-dark .lt-gate-lock-badge { border-color: #0f172a; }

.lt-gate-title {
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 6px;
}
.lt-dark .lt-gate-title { color: #f1f5f9; }

.lt-gate-subtitle {
	font-size: 15px;
	font-weight: 400;
	color: #64748b;
}

.lt-gate-msg {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 28px;
	max-width: 380px;
}
.lt-dark .lt-gate-msg { color: #94a3b8; }

/* Plan cards in access gate */
.lt-gate-plans {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-bottom: 28px;
	width: 100%;
}
.lt-gate-plan-card {
	border: 2px solid #e2e8f0;
	border-radius: 16px;
	padding: 18px 20px;
	min-width: 180px;
	max-width: 220px;
	flex: 1;
	text-align: center;
	position: relative;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lt-gate-plan-card:hover {
	border-color: #a5b4fc;
	box-shadow: 0 8px 24px rgba(79,70,229,.12);
	transform: translateY(-3px);
}
.lt-gate-plan-card--bundle {
	border-color: #fde68a;
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.lt-gate-plan-card--bundle:hover {
	border-color: #fbbf24;
	box-shadow: 0 8px 24px rgba(217,119,6,.15);
}
.lt-dark .lt-gate-plan-card { border-color: #334155; background: #1e293b; }
.lt-dark .lt-gate-plan-card--bundle { background: #1c1202; border-color: #78350f; }

.lt-gate-plan-badge {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #d97706, #f59e0b);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	padding: 2px 10px;
	border-radius: 20px;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.lt-gate-plan-type {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #94a3b8;
	margin-bottom: 6px;
}
.lt-gate-plan-name {
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 10px;
}
.lt-dark .lt-gate-plan-name { color: #f1f5f9; }

.lt-gate-plan-price {
	font-size: 26px;
	font-weight: 800;
	color: #4f46e5;
	margin-bottom: 4px;
}
.lt-dark .lt-gate-plan-price { color: #818cf8; }

.lt-gate-plan-currency { font-size: 18px; }

.lt-gate-plan-dur {
	display: block;
	font-size: 12px;
	color: #94a3b8;
	margin-bottom: 10px;
}
.lt-gate-plan-desc {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 12px;
}
.lt-gate-plan-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 9px;
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	color: #fff;
	border-radius: 10px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	transition: opacity .15s, transform .15s;
}
.lt-gate-plan-btn:hover { opacity: .9; transform: translateY(-1px); color: #fff; }

/* Login prompt in gate */
.lt-gate-login {
	margin-bottom: 20px;
	text-align: center;
}
.lt-gate-login p { font-size: 13px; color: #64748b; margin: 0 0 10px; }
.lt-dark .lt-gate-login p { color: #94a3b8; }

.lt-gate-login-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #1e293b;
	color: #fff;
	text-decoration: none;
	padding: 10px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	transition: background .15s;
}
.lt-gate-login-btn:hover { background: #0f172a; color: #fff; }
.lt-dark .lt-gate-login-btn { background: #e2e8f0; color: #1e293b; }

.lt-gate-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #64748b;
	text-decoration: none;
	font-size: 13px;
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	transition: border-color .15s, color .15s;
}
.lt-gate-back:hover { border-color: #a5b4fc; color: #4f46e5; }
.lt-dark .lt-gate-back { border-color: #334155; color: #94a3b8; }
.lt-dark .lt-gate-back:hover { border-color: #6366f1; color: #818cf8; }
