/* OMHAS Library Card */

.lc-wrap {
	--lc-navy: #16283F;
	--lc-navy-deep: #0F2033;
	--lc-teal: #3FB8AD;
	--lc-gold: #C8873C;
	--lc-gold-soft: #F3E6D6;
	--lc-paper: #F4F6F8;
	--lc-ink: #1E2A38;
	--lc-muted: #5C6B7A;
	--lc-line: #DDE3EA;
	--lc-error: #B3261E;

	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--lc-ink);
	line-height: 1.6;
}

.lc-wrap *,
.lc-wrap *::before,
.lc-wrap *::after { box-sizing: border-box; }

.lc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 40px;
	align-items: start;
}

/* ---------- form panel ---------- */

.lc-panel {
	background: #fff;
	border: 1px solid var(--lc-line);
	border-radius: 14px;
	padding: 36px;
}

.lc-step + .lc-step {
	margin-top: 34px;
	padding-top: 34px;
	border-top: 1px solid var(--lc-line);
}

.lc-step-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 18px;
}

.lc-step-num {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 26px;
	line-height: 1;
	color: var(--lc-gold);
}

.lc-wrap h2 {
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 21px;
	color: var(--lc-navy);
	margin: 0;
}

.lc-hint {
	color: var(--lc-muted);
	font-size: 15px;
	margin: 0 0 18px;
}

.lc-note { margin-top: 12px; font-size: 14.5px; color: var(--lc-muted); }

.lc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lc-full { grid-column: 1 / -1; }

.lc-field { display: block; }

.lc-field > span {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--lc-ink);
	margin-bottom: 7px;
}

.lc-field em { font-style: normal; color: var(--lc-muted); font-weight: 400; }

.lc-wrap input[type="text"],
.lc-wrap input[type="email"],
.lc-wrap input[type="tel"],
.lc-wrap input[type="number"],
.lc-wrap select,
.lc-wrap textarea {
	width: 100%;
	font: inherit;
	font-size: 15.5px;
	color: var(--lc-ink);
	background: #fff;
	border: 1px solid var(--lc-line);
	border-radius: 8px;
	padding: 12px 14px;
}

.lc-wrap input:focus,
.lc-wrap select:focus,
.lc-wrap textarea:focus {
	outline: none;
	border-color: var(--lc-navy);
	box-shadow: 0 0 0 3px rgba(22, 40, 63, .12);
}

/* ---------- stepper ---------- */

.lc-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--lc-line);
	border-radius: 10px;
	overflow: hidden;
}

.lc-stepper button {
	width: 52px;
	border: 0;
	background: var(--lc-paper);
	color: var(--lc-navy);
	font-size: 22px;
	font-weight: 600;
	cursor: pointer;
}

.lc-stepper button:hover { background: var(--lc-gold-soft); }

.lc-stepper input {
	width: 96px;
	border: 0;
	border-left: 1px solid var(--lc-line);
	border-right: 1px solid var(--lc-line);
	border-radius: 0;
	text-align: center;
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 30px;
	padding: 6px 0 2px;
	-moz-appearance: textfield;
}

.lc-stepper input::-webkit-outer-spin-button,
.lc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- terms ---------- */

.lc-terms {
	background: var(--lc-paper);
	border-radius: 10px;
	padding: 18px 20px;
	font-size: 15px;
	margin-bottom: 18px;
}

.lc-terms p { margin: 0; }
.lc-terms p + p { margin-top: 8px; color: var(--lc-muted); }

.lc-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 15px;
	cursor: pointer;
}

.lc-check input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--lc-navy);
	flex-shrink: 0;
}

.lc-check a { color: var(--lc-navy); font-weight: 600; }

/* ---------- buttons ---------- */

.lc-submit {
	margin-top: 30px;
	width: 100%;
	border: 0;
	border-radius: 10px;
	background: var(--lc-navy);
	color: #fff;
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 17px;
	padding: 17px 20px;
	cursor: pointer;
}

.lc-submit:hover:not(:disabled) { background: var(--lc-navy-deep); }
.lc-submit:disabled { background: #9AA6B2; cursor: not-allowed; }

.lc-submit.lc-small { width: auto; margin-top: 0; padding: 13px 24px; font-size: 15px; }

.lc-link-btn {
	border: 0;
	background: none;
	padding: 0;
	color: var(--lc-error);
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

.lc-after { margin: 14px 0 0; font-size: 14px; color: var(--lc-muted); text-align: center; }

.lc-error { color: var(--lc-error); font-size: 15px; margin: 14px 0 0; text-align: center; }

/* ---------- the card ---------- */

.lc-summary { position: sticky; top: 24px; }

.lc-card {
	position: relative;
	aspect-ratio: 1.586;
	border-radius: 16px;
	background: linear-gradient(140deg, var(--lc-navy) 0%, var(--lc-navy-deep) 100%);
	color: #fff;
	padding: 24px 26px 22px 34px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 18px 40px -18px rgba(15, 32, 51, .55);
}

.lc-card::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 8px;
	background: linear-gradient(180deg, var(--lc-teal) 0%, var(--lc-gold) 100%);
}

.lc-card-top { display: flex; justify-content: space-between; align-items: center; }

.lc-card-brand {
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: var(--lc-gold);
}

.lc-card-kind { font-family: 'Outfit', sans-serif; font-size: 13px; color: rgba(255,255,255,.6); }

.lc-card-holder {
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.25;
	margin-top: auto;
	margin-bottom: 14px;
	word-break: break-word;
}

.lc-card-holder.lc-empty { color: rgba(255,255,255,.4); }

.lc-card-org {
	font-size: 13.5px;
	color: rgba(255,255,255,.6);
	margin-top: -10px;
	margin-bottom: 14px;
}

.lc-card-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }

.lc-card-stat small {
	display: block;
	font-size: 12px;
	color: rgba(255,255,255,.6);
	margin-bottom: 2px;
}

.lc-card-stat b {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-weight: 400;
	font-size: 34px;
	line-height: 1;
	letter-spacing: .02em;
}

.lc-card-stat.lc-right { text-align: right; }

.lc-barcode {
	height: 18px;
	margin-top: 14px;
	opacity: .35;
	background: repeating-linear-gradient(90deg,
		#fff 0 2px, transparent 2px 4px,
		#fff 4px 5px, transparent 5px 8px,
		#fff 8px 11px, transparent 11px 13px);
}

.lc-card-member { max-width: 420px; }

/* ---------- breakdown ---------- */

.lc-breakdown {
	background: #fff;
	border: 1px solid var(--lc-line);
	border-radius: 14px;
	padding: 22px 24px;
	margin-top: 18px;
}

.lc-breakdown dl { margin: 0; }

.lc-line {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	font-size: 15px;
}

.lc-line dt { color: var(--lc-muted); }
.lc-line dd { margin: 0; font-variant-numeric: tabular-nums; }

.lc-line.lc-sub { border-top: 1px solid var(--lc-line); margin-top: 6px; padding-top: 14px; }
.lc-line.lc-sub dt, .lc-line.lc-sub dd { color: var(--lc-ink); font-weight: 600; }

.lc-fee-why { font-size: 13px; color: var(--lc-muted); margin: -2px 0 6px; line-height: 1.5; }

.lc-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-top: 2px solid var(--lc-navy);
	margin-top: 10px;
	padding-top: 14px;
}

.lc-total dt { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 16px; color: var(--lc-navy); }
.lc-total dd { margin: 0; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 40px; line-height: 1; color: var(--lc-navy); }

.lc-per { font-size: 13.5px; color: var(--lc-muted); text-align: right; margin: 4px 0 0; }

.lc-stripe-note { margin-top: 16px; font-size: 13.5px; color: var(--lc-muted); text-align: center; }

/* ---------- dashboard ---------- */

.lc-dash-top {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 28px;
}

.lc-stat {
	background: #fff;
	border: 1px solid var(--lc-line);
	border-radius: 12px;
	padding: 18px 20px;
}

.lc-stat small { display: block; font-size: 13px; color: var(--lc-muted); margin-bottom: 4px; }
.lc-stat b { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 32px; line-height: 1; color: var(--lc-navy); }

.lc-block {
	background: #fff;
	border: 1px solid var(--lc-line);
	border-radius: 12px;
	padding: 24px 26px;
	margin-bottom: 20px;
}

.lc-block h2 { margin-bottom: 14px; }

.lc-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-end;
}

.lc-inline-form .lc-field { flex: 1 1 180px; }

.lc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lc-table th, .lc-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--lc-line); }
.lc-table th { font-size: 13px; color: var(--lc-muted); font-weight: 600; }
.lc-table tr.lc-removed td { color: var(--lc-muted); }
.lc-table form { margin: 0; }

.lc-notice {
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 18px;
	font-size: 15px;
}

.lc-notice-ok { background: #E9F5EF; color: #1E5B41; }
.lc-notice-error { background: #FBEBEA; color: var(--lc-error); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
	.lc-layout { grid-template-columns: 1fr; }
	.lc-summary { position: static; order: -1; max-width: 460px; }
	.lc-dash-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.lc-panel { padding: 24px 20px; }
	.lc-grid { grid-template-columns: 1fr; }
	.lc-card { padding: 20px 20px 18px 28px; }
	.lc-card-stat b { font-size: 28px; }
	.lc-total dd { font-size: 34px; }
	.lc-dash-top { grid-template-columns: 1fr; }
}

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

/* ---------- Dashboard v1.7 ---------- */
.lc-dash .lc-notice { margin-bottom: 14px; }

.lc-dash-head {
	display: grid;
	grid-template-columns: minmax(280px, 380px) 1fr;
	gap: 24px;
	align-items: stretch;
	margin-bottom: 22px;
}
.lc-dash-head .lc-card { margin: 0; }

.lc-dash-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.lc-stat {
	background: #fff;
	border: 1px solid #E3E8EE;
	border-radius: 12px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.lc-stat small {
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lc-muted);
}
.lc-stat b {
	font-size: 26px;
	line-height: 1.1;
	color: var(--lc-navy);
}
.lc-stat-note { font-size: 13px; color: var(--lc-muted); }

.lc-dash-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 10px;
	background: var(--lc-paper);
	border-radius: 12px;
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 5;
}
.lc-dash-nav a {
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lc-navy);
	text-decoration: none;
	background: #fff;
	border: 1px solid #E3E8EE;
}
.lc-dash-nav a:hover { border-color: var(--lc-teal); color: var(--lc-teal); }

.lc-dash section.lc-block { scroll-margin-top: 90px; }

.lc-field select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
}

.lc-link { color: var(--lc-teal); font-weight: 600; text-decoration: underline; }
.lc-sub-h { margin: 28px 0 10px; font-size: 18px; color: var(--lc-navy); }

.lc-training summary { cursor: pointer; color: var(--lc-teal); font-weight: 600; }
.lc-training ul { margin: 8px 0 0 18px; padding: 0; }
.lc-training li { margin: 4px 0; }
.lc-training a { color: var(--lc-gold); font-weight: 600; }

.lc-confirm h2 { margin-top: 0; }
.lc-confirm-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 20px;
}
.lc-cancel { color: var(--lc-muted); text-decoration: underline; }

.lc-replace-form { max-width: 720px; }

@media (max-width: 820px) {
	.lc-dash-head { grid-template-columns: 1fr; }
	.lc-dash-nav { position: static; }
}
@media (max-width: 480px) {
	.lc-dash-stats { grid-template-columns: 1fr; }
	.lc-table { display: block; overflow-x: auto; }
}
