/**
 * Legal Cases Manager — Subscription public styles
 * (registration form, plan picker, bank-transfer step, subscriber dashboard).
 */
:root {
	--lcm-navy: #0B1F3A;
	--lcm-navy-soft: #14315a;
	--lcm-gold: #C9A24B;
	--lcm-gold-soft: #e9d49a;
	--lcm-cream: #F5EFE2;
	--lcm-ink: #0a1628;
	--lcm-muted: #6b7790;
	--lcm-border: #e4e9f3;
	--lcm-danger: #b3261e;
	--lcm-success: #2f7d3a;
}

.lcm-register-wrap {
	max-width: 1180px;
	margin: 32px auto;
	padding: 0 20px;
	color: var(--lcm-ink);
	font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	direction: rtl;
}
.lcm-register-header { text-align: center; margin: 0 0 28px; }
.lcm-register-title { font-family: "Cormorant Garamond", "Tajawal", serif; font-size: 34px; color: var(--lcm-navy); margin: 0 0 6px; }
.lcm-register-subtitle { color: var(--lcm-muted); margin: 0 auto 16px; max-width: 720px; }

/* Billing toggle */
.lcm-billing-toggle { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--lcm-border); border-radius: 999px; margin-top: 8px; }
.lcm-bill-opt { background: transparent; color: var(--lcm-ink); border: none; padding: 10px 22px; border-radius: 999px; cursor: pointer; font-weight: 700; font-family: inherit; transition: background .2s ease, color .2s ease; }
.lcm-bill-opt.is-active { background: var(--lcm-navy); color: #fff; }
.lcm-bill-save { display: inline-block; margin-inline-start: 6px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--lcm-gold); color: var(--lcm-navy); font-weight: 700; }

/* Plan picker grid */
.lcm-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 12px; }
.lcm-plan-card-pick { position: relative; background: #fff; border: 1px solid var(--lcm-border); border-radius: 22px; padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lcm-plan-card-pick:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -28px rgba(11, 31, 58, 0.25); }
.lcm-plan-card-pick.is-featured { border-color: var(--lcm-gold); background: linear-gradient(180deg, #fff 0%, #fffaee 100%); }
.lcm-plan-card-pick .lcm-plan-badge { display: inline-block; background: var(--lcm-gold); color: var(--lcm-navy); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.lcm-plan-card-pick .lcm-plan-title { color: var(--lcm-navy); margin: 0 0 12px; font-family: "Cormorant Garamond", serif; font-size: 24px; }
.lcm-plan-card-pick .lcm-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 14px; border-bottom: 1px dashed var(--lcm-border); padding-bottom: 12px; flex-wrap: wrap; }
.lcm-plan-card-pick .lcm-price-amount { font-family: "Cormorant Garamond", serif; font-size: 38px; font-weight: 800; color: var(--lcm-navy); line-height: 1; }
.lcm-plan-card-pick .lcm-price-cur { color: var(--lcm-muted); font-size: 14px; }
.lcm-plan-card-pick .lcm-price-old {
	display: block;
	flex-basis: 100%;
	font-family: "Cormorant Garamond", serif;
	font-size: 18px;
	color: #94a3b8;
	text-decoration: line-through;
	text-decoration-color: rgba(220, 38, 38, 0.85);
	text-decoration-thickness: 2px;
	margin: 0 0 -2px;
	font-weight: 500;
	letter-spacing: 0.4px;
}
.lcm-plan-card-pick .lcm-price-free {
	display: inline-block;
	font-family: "Cormorant Garamond", serif;
	font-size: 28px;
	font-weight: 800;
	color: #047857;
	background: rgba(16, 185, 129, 0.12);
	border: 1px solid rgba(16, 185, 129, 0.35);
	padding: 2px 14px;
	border-radius: 999px;
	letter-spacing: 0.3px;
}
.lcm-plan-card-pick.is-free { border-color: rgba(16, 185, 129, 0.5); }
.lcm-plan-card-pick .lcm-plan-features { list-style: none; margin: 0 0 18px; padding: 0; }
.lcm-plan-card-pick .lcm-plan-features li { display: flex; gap: 8px; padding: 4px 0; font-size: 14px; color: var(--lcm-ink); }

/* Step 2: chosen plan summary card */
.lcm-register-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 28px; align-items: start; }
@media (max-width: 880px) { .lcm-register-grid { grid-template-columns: 1fr; } }

.lcm-plan-card { position: sticky; top: 24px; background: linear-gradient(160deg, var(--lcm-navy) 0%, var(--lcm-navy-soft) 100%); color: #fff; border-radius: 22px; padding: 30px 26px; box-shadow: 0 22px 60px -28px rgba(11, 31, 58, 0.55); overflow: hidden; }
.lcm-plan-card::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; background: radial-gradient(circle, var(--lcm-gold) 0%, transparent 65%); opacity: 0.25; pointer-events: none; }
.lcm-plan-card .lcm-plan-badge { background: rgba(201,162,75,0.18); color: var(--lcm-gold-soft); }
.lcm-plan-card .lcm-plan-title { color: #fff; font-size: 28px; }
.lcm-plan-card .lcm-plan-price { border-top: 1px dashed rgba(255,255,255,0.18); border-bottom: 1px dashed rgba(255,255,255,0.18); padding: 14px 0; margin: 14px 0 6px; }
.lcm-plan-card .lcm-price-amount { color: var(--lcm-gold-soft); font-size: 38px; font-weight: 700; }
.lcm-plan-card .lcm-price-cur { color: rgba(255,255,255,0.75); }
.lcm-plan-card .lcm-plan-features li { color: rgba(255,255,255,0.88); }
.lcm-plan-card .lcm-tick { background: var(--lcm-gold); color: var(--lcm-navy); }
.lcm-change-plan { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--lcm-gold-soft); font-size: 13px; text-decoration: underline; }

.lcm-tick { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--lcm-gold); color: var(--lcm-navy); border-radius: 50%; font-size: 12px; flex: none; }

/* Form */
.lcm-register-form-wrap { background: #fff; border-radius: 22px; border: 1px solid var(--lcm-border); padding: 36px; box-shadow: 0 16px 40px -28px rgba(11,31,58,0.25); }
.lcm-form-head { margin-bottom: 22px; }
.lcm-form-title { font-family: "Cormorant Garamond","Tajawal",serif; font-size: 30px; color: var(--lcm-navy); margin: 0 0 6px; }
.lcm-form-subtitle { color: var(--lcm-muted); margin: 0; font-size: 14px; }

.lcm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 8px; }
@media (max-width: 600px) { .lcm-grid-2 { grid-template-columns: 1fr; } }

.lcm-field { display: flex; flex-direction: column; gap: 6px; }
.lcm-field label { font-size: 13px; font-weight: 600; color: var(--lcm-navy); }
.lcm-req { color: var(--lcm-danger); margin-inline-start: 2px; }
.lcm-field input[type="text"],
.lcm-field input[type="email"],
.lcm-field input[type="tel"],
.lcm-field input[type="password"],
.lcm-field textarea {
	background: #fbfaf6; border: 1px solid var(--lcm-border); border-radius: 10px;
	padding: 12px 14px; font-size: 15px; color: var(--lcm-ink);
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
	font-family: inherit; direction: rtl;
}
.lcm-field textarea { min-height: 96px; resize: vertical; }
.lcm-field input:focus, .lcm-field textarea:focus { outline: none; border-color: var(--lcm-gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,75,0.15); }

.lcm-submit {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--lcm-navy); color: #fff; border: none;
	font-size: 16px; font-weight: 700; padding: 14px 26px;
	border-radius: 12px; cursor: pointer; width: 100%; margin-top: 18px;
	transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
	text-decoration: none; font-family: inherit;
}
.lcm-submit:hover { background: var(--lcm-gold); color: var(--lcm-navy); transform: translateY(-1px); }

.lcm-login-hint { text-align: center; margin: 16px 0 0; color: var(--lcm-muted); font-size: 14px; }
.lcm-login-hint a { color: var(--lcm-navy); font-weight: 700; text-decoration: underline; }

.lcm-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.lcm-notice-error { background: #fbecec; color: var(--lcm-danger); border-color: #f2c8c8; }
.lcm-notice-success { background: #ecf6ee; color: var(--lcm-success); border-color: #c5e1ca; }

/* Bank table */
.lcm-bank-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.lcm-bank-table th, .lcm-bank-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--lcm-border); font-size: 14px; }
.lcm-bank-table th { width: 38%; color: var(--lcm-muted); font-weight: 600; background: #fbfaf6; }
.lcm-bank-table code { background: #fff7df; padding: 2px 8px; border-radius: 6px; font-weight: 700; color: var(--lcm-navy); }
.lcm-bank-note { background: #fbfaf6; border-right: 4px solid var(--lcm-gold); padding: 14px 16px; border-radius: 10px; font-size: 14px; color: var(--lcm-ink); margin: 14px 0; }

/* Subscriber dashboard */
.lcm-dash { padding: 40px 0; background: linear-gradient(180deg, var(--lcm-cream) 0%, #fff 100%); min-height: 100vh; direction: rtl; font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.lcm-dash-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.lcm-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.lcm-dash-eyebrow { display: inline-block; color: var(--lcm-gold); font-weight: 700; letter-spacing: .04em; font-size: 13px; }
.lcm-dash-title { font-family: "Cormorant Garamond", "Tajawal", serif; font-size: 38px; color: var(--lcm-navy); margin: 6px 0 4px; }
.lcm-dash-title span { color: var(--lcm-gold); }
.lcm-dash-subtitle { color: var(--lcm-muted); margin: 0; }
.lcm-dash-quick { display: flex; gap: 10px; }
.lcm-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease, transform .15s ease; font-family: inherit; }
.lcm-btn-primary { background: var(--lcm-navy); color: #fff; }
.lcm-btn-primary:hover { background: var(--lcm-gold); color: var(--lcm-navy); }
.lcm-btn-secondary { background: var(--lcm-gold); color: var(--lcm-navy); }
.lcm-btn-secondary:hover { background: var(--lcm-navy); color: #fff; }
.lcm-btn-outline { background: transparent; border: 1px solid var(--lcm-navy); color: var(--lcm-navy); }
.lcm-btn-outline:hover { background: var(--lcm-navy); color: #fff; }
.lcm-btn-ghost { background: transparent; color: var(--lcm-muted); }
.lcm-btn-ghost:hover { color: var(--lcm-danger); }

.lcm-dash-grid { display: grid; gap: 22px; }
.lcm-dash-card { background: #fff; border-radius: 22px; padding: 30px; box-shadow: 0 16px 40px -28px rgba(11,31,58,0.18); border: 1px solid var(--lcm-border); }
.lcm-dash-sub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lcm-dash-label { color: var(--lcm-muted); font-size: 12px; letter-spacing: .04em; }
.lcm-dash-plan { font-family: "Cormorant Garamond", serif; font-size: 30px; color: var(--lcm-navy); margin: 6px 0 0; }
.lcm-dash-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #eef5ee; color: var(--lcm-success); }
.lcm-dash-status .lcm-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lcm-dash-status.is-expired { background: #fbecec; color: var(--lcm-danger); }
.lcm-dash-status.is-suspended { background: #fff4d6; color: #8a6500; }
.lcm-dash-status.is-trial { background: #eaf2ff; color: #1f3a8a; }

.lcm-dash-price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; margin: 14px 0; border-top: 1px dashed var(--lcm-border); border-bottom: 1px dashed var(--lcm-border); }
.lcm-dash-price { font-family: "Cormorant Garamond", serif; font-size: 30px; color: var(--lcm-navy); font-weight: 700; }
.lcm-dash-price small { font-family: inherit; font-size: 14px; color: var(--lcm-muted); margin-inline-start: 4px; }
.lcm-dash-billing-pill { padding: 6px 14px; border-radius: 999px; background: var(--lcm-cream); color: var(--lcm-navy); font-size: 13px; font-weight: 700; }

.lcm-dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 12px 0; }
.lcm-dash-stat { background: var(--lcm-cream); border-radius: 14px; padding: 14px 16px; }
.lcm-dash-stat strong { display: block; color: var(--lcm-navy); font-size: 17px; margin-top: 6px; font-weight: 700; }
.lcm-dash-stat strong.is-warning { color: var(--lcm-danger); }

.lcm-dash-progress { height: 8px; background: var(--lcm-cream); border-radius: 999px; overflow: hidden; margin: 14px 0; }
.lcm-dash-progress-bar { height: 100%; background: linear-gradient(90deg, var(--lcm-gold) 0%, var(--lcm-navy) 100%); border-radius: 999px; }

.lcm-dash-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.lcm-dash-section-title { font-family: "Cormorant Garamond", serif; font-size: 24px; color: var(--lcm-navy); margin: 0 0 16px; }
.lcm-dash-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.lcm-dash-features li { display: flex; gap: 10px; align-items: flex-start; }
.lcm-feature-tick { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lcm-gold); color: var(--lcm-navy); font-weight: 700; font-size: 12px; flex: none; }

/* Register banner for renew / upgrade flows (added 2.12.0) */
.lcm-register-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; margin-bottom: 22px; }
.lcm-register-banner .dashicons { font-size: 28px; width: 28px; height: 28px; flex: none; margin-top: 2px; }
.lcm-register-banner strong { display: block; font-size: 18px; margin-bottom: 4px; }
.lcm-register-banner p { margin: 0; font-size: 14px; opacity: 0.9; }
.lcm-register-banner-renew   { background: #fff7df; color: #8a6500; border: 1px solid #f0e0a3; }
.lcm-register-banner-upgrade { background: #ecf6ee; color: #2f7d3a; border: 1px solid #c3e3c8; }

/* Prefill note for logged-in users in register form */
.lcm-form-prefill-note { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #ecf6ee; color: #2f7d3a; border: 1px solid #c3e3c8; border-radius: 999px; font-size: 13px; margin: 8px 0 14px; }
.lcm-form-prefill-note .dashicons { font-size: 18px; width: 18px; height: 18px; }
.lcm-form-prefill-note strong { font-weight: 800; }

/* Read-only display fields (used when user is logged-in in [lcm_subscription_register]) */
.lcm-field.lcm-field-readonly .lcm-readonly-value { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; background: #f6f1de; border: 1px dashed #d9c98a; border-radius: 10px; color: #0B1F3A; font-weight: 600; font-size: 14px; }
.lcm-field-hint { display: block; margin-top: 4px; color: #6b7790; font-size: 12px; }

/* Subsite slug input (since v2.14.0) */
.lcm-field-subsite { grid-column: 1 / -1; }
.lcm-subsite-input {
        display: flex; align-items: stretch;
        background: #fbfaf6; border: 1px solid var(--lcm-border); border-radius: 10px;
        overflow: hidden;
        font-family: "Courier New", ui-monospace, monospace;
}
.lcm-subsite-input:focus-within { border-color: var(--lcm-gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,75,0.15); }
.lcm-subsite-input .lcm-subsite-prefix,
.lcm-subsite-input .lcm-subsite-suffix {
        display: inline-flex; align-items: center; padding: 0 12px;
        background: #efeadd; color: #6b7790; font-size: 13px; font-weight: 600;
        white-space: nowrap; border-inline-end: 1px solid var(--lcm-border);
}
.lcm-subsite-input .lcm-subsite-suffix { border-inline-end: 0; border-inline-start: 1px solid var(--lcm-border); }
.lcm-subsite-input input[type="text"] {
        flex: 1; min-width: 0; background: transparent; border: 0; padding: 12px 10px;
        font-size: 15px; color: var(--lcm-ink); font-family: inherit; direction: ltr;
}
.lcm-subsite-input input[type="text"]:focus { outline: none; }

/* Subscriber dashboard — better layout when used on single-site (no wide container).
   (Theme-agnostic — ensures cards still render properly even inside narrow content.) */
.lcm-dash { box-sizing: border-box; }
.lcm-dash, .lcm-dash * { box-sizing: border-box; }
.lcm-dash-container { width: 100%; }
.lcm-dash-grid { grid-template-columns: 1fr; }
@media (min-width: 880px) {
        .lcm-dash-grid { grid-template-columns: minmax(0, 1fr); }
}
.lcm-dash-card { min-width: 0; word-break: break-word; }
.lcm-dash-card.lcm-dash-features-card { margin-top: 22px; }

/* === v2.15.0 — guest registration extras ============================ */

/* Inline status indicators (email/phone/subsite/site_name) */
.lcm-status { display: block; margin-top: 6px; font-size: 12px; min-height: 16px; font-weight: 600; }
.lcm-status-checking { color: #6b7790; }
.lcm-status-ok       { color: #0f8a4f; }
.lcm-status-bad      { color: #c0392b; }
.lcm-field.is-ok input:not([type="hidden"]), .lcm-field.is-ok textarea { border-color: #0f8a4f; }
.lcm-field.is-bad input:not([type="hidden"]), .lcm-field.is-bad textarea { border-color: #c0392b; }

/* "Send OTP" button next to email input */
.lcm-input-with-action { display: flex; gap: 8px; align-items: stretch; }
.lcm-input-with-action input { flex: 1; min-width: 0; }
.lcm-mini-btn { white-space: nowrap; padding: 0 14px; border-radius: 10px; border: 1px solid #C9A24B; background: #fff8e6; color: #6a4d10; font-weight: 700; font-size: 13px; cursor: pointer; transition: background-color .15s, color .15s; }
.lcm-mini-btn:hover { background: #C9A24B; color: #fff; }
.lcm-mini-btn:disabled { opacity: .6; cursor: not-allowed; }
.lcm-mini-btn-primary { border-color: #0B1F3A; background: #0B1F3A; color: #fff; }
.lcm-mini-btn-primary:hover { background: #14315a; }

/* OTP row */
.lcm-otp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 10px; background: #fbfaf6; border: 1px dashed #d9c98a; border-radius: 10px; }
.lcm-otp-row input { width: 130px; text-align: center; letter-spacing: 6px; font-family: ui-monospace, "Courier New", monospace; font-size: 18px; padding: 8px 10px; border-radius: 8px; border: 1px solid #d9c98a; background: #fff; direction: ltr; }
.lcm-otp-msg { font-size: 12px; font-weight: 600; }
.lcm-otp-msg.is-ok  { color: #0f8a4f; }
.lcm-otp-msg.is-bad { color: #c0392b; }

/* Password meter + checklist */
.lcm-pw-wrap { position: relative; }
.lcm-pw-wrap input { padding-inline-end: 44px; }
.lcm-pw-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #6b7790; padding: 4px 6px; }
.lcm-pw-toggle:hover { color: #0B1F3A; }
.lcm-pw-meter { height: 6px; background: #efeadd; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.lcm-pw-meter span { display: block; width: 0; height: 100%; transition: width .25s ease, background-color .25s; background: #c0392b; }
.lcm-pw-meter span[data-level="1"] { background: #c0392b; }
.lcm-pw-meter span[data-level="2"] { background: #e67e22; }
.lcm-pw-meter span[data-level="3"] { background: #f1c40f; }
.lcm-pw-meter span[data-level="4"] { background: #5cb85c; }
.lcm-pw-meter span[data-level="5"] { background: #0f8a4f; }
.lcm-pw-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px 12px; font-size: 12px; color: #6b7790; }
.lcm-pw-checks li { display: flex; align-items: center; gap: 6px; }
.lcm-pw-checks li::before { content: "✕"; display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; border-radius: 50%; background: #efeadd; color: #b32424; font-size: 10px; font-weight: 700; }
.lcm-pw-checks li.is-pass::before { content: "✓"; background: #d4edda; color: #0f8a4f; }
.lcm-pw-checks li.is-pass { color: #0f8a4f; }

