/* WTX Memberships — Frontend Account & Paywall Styles */

/* ── Paywall ─────────────────────────────────────────── */

.wtx-upgrade-prompt {
	background: linear-gradient(135deg, #fff3e0, #ffe0b2);
	border: 2px solid #ff9800;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 0 0 24px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.wtx-upgrade-prompt__icon {
	font-size: 1.8em;
	flex-shrink: 0;
}

.wtx-upgrade-prompt__text {
	flex: 1;
	min-width: 200px;
	color: #1a1a2e;
	font-size: 0.95em;
}

.wtx-upgrade-prompt__btn {
	background: #ff9800;
	color: #fff;
	padding: 10px 20px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9em;
	white-space: nowrap;
	transition: background 0.2s;
}

.wtx-upgrade-prompt__btn:hover {
	background: #f57c00;
	color: #fff;
}

.wtx-teaser {
	color: inherit;
	margin-bottom: 0;
}

.wtx-paywall {
	background: #1a1a2e;
	border: 2px solid #e2b96f;
	border-radius: 10px;
	padding: 40px 32px;
	margin: 32px 0;
	text-align: center;
	font-family: inherit;
	position: relative;
	overflow: hidden;
}

.wtx-paywall::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, #e2b96f, #f5d08a, #e2b96f);
}

.wtx-paywall__icon {
	font-size: 2.8em;
	margin-bottom: 14px;
	display: block;
}

.wtx-paywall__title {
	color: #e2b96f;
	margin: 0 0 12px;
	font-size: 1.5em;
}

.wtx-paywall__desc {
	color: #cccccc;
	margin: 0 0 28px;
	font-size: 1em;
}

.wtx-paywall__actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.wtx-paywall__login {
	color: #aaaaaa;
	margin: 0;
	font-size: 0.9em;
}

.wtx-paywall__login a {
	color: #e2b96f;
	text-decoration: none;
}

.wtx-paywall__login a:hover { text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────────── */

.wtx-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95em;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	line-height: 1.4;
}

.wtx-btn--primary {
	background: #e2b96f;
	color: #1a1a2e;
	border-color: #e2b96f;
}

.wtx-btn--primary:hover {
	background: #c9a050;
	border-color: #c9a050;
	color: #1a1a2e;
}

.wtx-btn--outline {
	background: transparent;
	color: #e2b96f;
	border-color: #e2b96f;
}

.wtx-btn--outline:hover {
	background: #e2b96f;
	color: #1a1a2e;
}

.wtx-btn--gold {
	background: linear-gradient(135deg, #e2b96f, #f5d08a);
	color: #1a1a2e;
	border-color: #e2b96f;
}

.wtx-btn--gold:hover {
	background: linear-gradient(135deg, #c9a050, #e2b96f);
}

.wtx-btn--danger {
	background: transparent;
	color: #e57373;
	border-color: #e57373;
}

.wtx-btn--danger:hover {
	background: #e57373;
	color: #fff;
}

/* ── Account Dashboard ───────────────────────────────── */

.wtx-account {
	max-width: 680px;
	font-family: inherit;
}

.wtx-account--guest {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
}

/* Notices */
.wtx-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 0.95em;
}

.wtx-notice--success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.wtx-notice--error {
	background: #fce4ec;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

/* Tabs */
.wtx-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e2b96f;
	margin-bottom: 20px;
}

.wtx-tab {
	background: none;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 0.95em;
	font-weight: 600;
	color: #666;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s;
}

.wtx-tab:hover { color: #e2b96f; }

.wtx-tab--active {
	color: #1a1a2e;
	border-bottom-color: #e2b96f;
}

.wtx-tab-panel { display: none; }
.wtx-tab-panel--active { display: block; }

/* Cards */
.wtx-account__card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 16px;
	box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.wtx-account__card h3 {
	margin: 0 0 18px;
	font-size: 1.1em;
	color: #1a1a2e;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}

.wtx-account__card h4 {
	margin: 0 0 8px;
	font-size: 0.95em;
	color: #333;
}

.wtx-account__card--upgrade {
	border-color: #e2b96f;
	background: linear-gradient(135deg, #fffdf5 0%, #fff 100%);
}

/* Rows */
.wtx-account__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
}

.wtx-account__row:last-child { border-bottom: none; }

.wtx-account__label {
	color: #888;
	font-size: 0.9em;
}

.wtx-account__value {
	font-weight: 600;
	color: #1a1a2e;
}

.wtx-account__value--mono {
	font-family: monospace;
	font-size: 0.8em;
	color: #555;
}

/* Badges */
.wtx-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 20px;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.wtx-badge--active    { background: #e8f5e9; color: #2e7d32; }
.wtx-badge--cancelled { background: #fff3e0; color: #e65100; }
.wtx-badge--inactive  { background: #fce4ec; color: #c62828; }

/* Plan grid */
.wtx-plan-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 16px;
}

.wtx-plan {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	position: relative;
}

.wtx-plan--featured {
	border-color: #e2b96f;
	background: linear-gradient(135deg, #fffdf5, #fff);
}

.wtx-plan__badge {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: #e2b96f;
	color: #1a1a2e;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 12px;
	border-radius: 20px;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wtx-plan__name {
	font-weight: 700;
	font-size: 1.1em;
	color: #1a1a2e;
	margin-bottom: 8px;
}

.wtx-plan__price {
	font-size: 2em;
	font-weight: 700;
	color: #e2b96f;
	margin-bottom: 16px;
	line-height: 1;
}

.wtx-plan__price span {
	font-size: 0.45em;
	color: #888;
	font-weight: 400;
}

.wtx-plan__features {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	text-align: left;
}

.wtx-plan__features li {
	padding: 5px 0;
	font-size: 0.9em;
	color: #555;
}

.wtx-plan__features li::before {
	content: '✓ ';
	color: #4caf50;
	font-weight: 700;
}

/* Form */
.wtx-form__group {
	margin-bottom: 18px;
}

.wtx-form__group label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #333;
	font-size: 0.9em;
}

.wtx-form__input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 0.95em;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.wtx-form__input:focus {
	outline: none;
	border-color: #e2b96f;
	box-shadow: 0 0 0 3px rgba(226,185,111,.15);
}

.wtx-form__hint {
	font-weight: 400;
	color: #999;
	font-size: 0.85em;
}

/* Divider */
.wtx-divider {
	border: none;
	border-top: 1px solid #f0f0f0;
	margin: 20px 0;
}

/* Footer */
.wtx-account__footer {
	margin-top: 16px;
	text-align: right;
}

.wtx-link {
	color: #888;
	font-size: 0.85em;
	text-decoration: none;
}

.wtx-link:hover { color: #e2b96f; }

.wtx-text--muted { color: #888; font-size: 0.85em; }

/* Responsive */
@media (max-width: 600px) {
	.wtx-plan-grid { grid-template-columns: 1fr; }
	.wtx-paywall { padding: 28px 20px; }
	.wtx-paywall__actions { flex-direction: column; align-items: center; }
	.wtx-tabs { overflow-x: auto; }
}
