/* ==========================================================================
   Lit Luggage ID — Client Portal
   Premium dark travel aesthetic. Charcoal base, warm amber accent.
   All selectors namespaced with .lit-* to avoid theme conflicts.
   ========================================================================== */

/* Tokens */
:root {
	--lit-bg:          #ffffff;
	--lit-surface:     #ffffff;
	--lit-border:      #acacac;
	--lit-header-text:    #ffffff;
	--lit-text:        #000000;
	--lit-text-muted:  #676849;
	--lit-accent-dk:   #a37420;
	--lit-accent-lt:   #dba94a;
	--lit-total:	   #000000;
	--lit-active:      #2e7d52;
	--lit-active-bg:   rgba(46, 125, 82, 0.12);
	--lit-lost:        #c0392b;
	--lit-lost-bg:     rgba(192, 57, 43, 0.12);
	--lit-inactive:    #5a5a4a;
	--lit-inactive-bg: rgba(90, 90, 74, 0.15);
	--lit-radius:      6px;
	--lit-radius-lg:   12px;
	--lit-font:        'Georgia', serif;
	--lit-font-ui:     -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--lit-shadow:      0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Portal shell
   ========================================================================== */

.lit-portal {
	font-family: var(--lit-font-ui);
	background: var(--lit-bg);
	color: var(--lit-text);
	border-radius: var(--lit-radius-lg);
	overflow: hidden;
	max-width: 760px;
	margin: 0 auto;
	box-shadow: var(--lit-shadow);
}

/* ==========================================================================
   Login gate (guest state)
   ========================================================================== */

.lit-portal--guest .lit-portal__hero {
	padding: 64px 48px 48px;
	text-align: center;
	background: var(--lit-primary);
	border-bottom: 1px solid var(--lit-border);
}

.lit-portal__hero-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 24px;
	color: var(--lit-primary);
}

.lit-portal__hero-icon svg {
	width: 100%;
	height: 100%;
}

.lit-portal__hero-title {
	font-family: var(--lit-font);
	font-size: 28px;
	font-weight: normal;
	letter-spacing: 0.02em;
	margin: 0 0 12px;
	color: #ffffff;
}

.lit-portal__hero-sub {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.7;
	margin: 0 auto 36px;
	max-width: 440px;
}

.lit-portal__hero-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.lit-portal__features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 32px 48px;
	gap: 0;
}

.lit-feature {
	text-align: center;
	padding: 20px;
	border-inline-end: 1px solid var(--lit-border);
}
.lit-found__privacy{
	font-size: 14px;
	color: var(--lit-text-muted);
}

.lit-feature:last-child {
	border-inline-end: none;
}

.lit-feature__num {
	display: block;
	font-family: var(--lit-font);
	font-size: 32px;
	color: var(--lit-primary);
	line-height: 1;
	margin-bottom: 8px;
}

.lit-feature__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--lit-text-muted);
	margin: 0;
}

/* ==========================================================================
   Authenticated portal header
   ========================================================================== */

.lit-portal--auth .lit-portal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 52px 48px;
	background: var(--lit-primary);
}

.lit-portal__greeting {
	display: block;
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--lit-header-text);
	margin-bottom: 4px;
}

.lit-portal__name {
	font-family: var(--lit-font);
	font-size: 32px;
	font-weight: normal;
	margin: 0;
	color: var(--lit-header-text);
}

/* ==========================================================================
   Stats bar
   ========================================================================== */

.lit-portal__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid var(--lit-border);
}

.lit-stat {
	padding: 20px 28px;
	text-align: center;
}

.lit-stat:last-child {
	border-inline-end: none;
}

.lit-stat__value {
	display: block;
	font-family: var(--lit-font);
	font-size: 36px;
	line-height: 1;
	margin-bottom: 6px;
	color: var(--lit-total);
}

.lit-stat__value--active { color: var(--lit-active); }
.lit-stat__value--lost   { color: var(--lit-lost); }

.lit-stat__label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--lit-text-muted);
}

/* ==========================================================================
   Tab navigation
   ========================================================================== */

.lit-portal__tabs {
	display: flex;
	gap: 0;
	padding: 0 36px;
	background: var(--lit-surface);
}

.lit-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--lit-text-muted);
	cursor: pointer;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 16px 20px 14px;
	transition: color 0.2s, border-color 0.2s;
}

.lit-tab:hover {
	color: var(--lit-text);
}

.lit-tab--active {
	color: var(--lit-primary);
	border-bottom-color: var(--lit-primary);
}

/* ==========================================================================
   Tab panels
   ========================================================================== */

.lit-panel {
	display: none;
	padding: 32px 36px;
	min-height: 200px;
}

.lit-panel--active {
	display: block;
}

/* ==========================================================================
   Tag list
   ========================================================================== */

.lit-tag-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lit-tag {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	background: #ffffff;
	border: 1px solid var(--lit-border);
	border-radius: var(--lit-radius);
	transition: border-color 0.2s;
}

.lit-tag:hover {
	border-color: var(--lit-primary);
}

.lit-tag--lost {
	border-color: rgba(192, 57, 43, 0.3);
}

.lit-tag__uid {
	font-family: 'Courier New', monospace;
	font-size: 17px;
	letter-spacing: 0.08em;
	color: var(--lit-text);
}

.lit-tag__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.lit-tag__date {
	font-size: 11px;
	color: var(--lit-text-muted);
}

.lit-tag__lost-note {
	font-size: 12px;
	color: var(--lit-lost);
}

/* ==========================================================================
   Status badges
   ========================================================================== */

.lit-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 100px;
}

.lit-badge--active {
	background: var(--lit-active-bg);
	color: #4caf73;
	border: 1px solid rgba(46, 125, 82, 0.3);
}

.lit-badge--inactive {
	background: var(--lit-inactive-bg);
	color: #8a8a7a;
	border: 1px solid rgba(90, 90, 74, 0.3);
}

.lit-badge--lost {
	background: var(--lit-lost-bg);
	color: #e05245;
	border: 1px solid rgba(192, 57, 43, 0.3);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.lit-form-wrap {
	max-width: 480px;
	background: #ffffff;
}

.lit-form__intro {
	font-size: 14px;
	color: var(--lit-text-muted);
	line-height: 1.7;
	margin: 0 0 28px;
}

.lit-field {
	margin-bottom: 20px;
}

.lit-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--lit-text-muted);
	margin-bottom: 8px;
}

.lit-required {
	color: var(--lit-primary);
}

.lit-input {
	display: block;
	inline-size: 100%;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid var(--lit-border);
	border-radius: var(--lit-radius);
	color: var(--lit-text);
	font-family: var(--lit-font-ui);
	font-size: 15px;
	padding: 12px 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.lit-input:focus {
	outline: none;
	border-color: var(--lit-primary);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.lit-input--prefilled {
	color: var(--lit-primary);
	background: #f3f4f6;
	border-color: var(--lit-border);
}

.lit-textarea {
	resize: vertical;
	min-height: 80px;
}

.lit-field__hint {
	display: block;
	font-size: 12px;
	color: var(--lit-accent);
	margin-top: 6px;
}

.lit-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.lit-form__footer {
	margin-top: 28px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.lit-btn {
	border: none !important;
	background: var(--lit-accent) !important;
	color: white !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: var(--lit-radius);
	cursor: pointer;
	font-family: var(--lit-font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 12px 28px;
	text-decoration: none;
	transition: background 0.2s, opacity 0.2s, transform 0.1s;
	white-space: nowrap;
}

.lit-btn:hover {
	filter: brightness(0.9);
	transform: scale(0.98);
}

.lit-btn--primary {
	background: var(--lit-primary);
	color: var(--lit-btn-text-color);
}
.lit-btn--accent {
	background: var(--lit-accent);
	color: var(--lit-btn-text-color);
}

.lit-btn--primary:hover {
	background: var(--lit-accent);
	opacity: 0.85;
}

.lit-btn--primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.lit-btn--ghost {
	background-color: var(--lit-accent);
	color: var(--lit-header-text);
	border: 1px solid var(--lit-accent);
}
.lit-btn--danger {
	background: var(--lit-lost);
	color: #fff;
}

.lit-btn--danger:hover {
	background: #e04438;
}

.lit-btn--sm {
	font-size: 11px;
	padding: 8px 16px;
}

.lit-link {
	background: none;
	border: none;
	color: var(--lit-accent);
	cursor: pointer;
	font-size: inherit;
	padding: 0;
	text-decoration: underline;
}

/* ==========================================================================
   Notices
   ========================================================================== */

.lit-notice {
	margin-top: 16px;
	padding: 0;
	font-size: 14px;
	line-height: 1.6;
	min-height: 0;
}

.lit-notice--success {
	padding: 14px 18px;
	background: rgba(46, 125, 82, 0.12);
	border: 1px solid rgba(46, 125, 82, 0.3);
	border-radius: var(--lit-radius);
	color: #4caf73;
}

.lit-notice--error {
	padding: 14px 18px;
	background: var(--lit-lost-bg);
	border: 1px solid rgba(192, 57, 43, 0.3);
	border-radius: var(--lit-radius);
	color: #e05245;
}

/* ==========================================================================
   Modal (report lost confirmation)
   ========================================================================== */

.lit-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lit-modal[hidden] {
	display: none;
}

.lit-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.lit-modal__box {
	position: relative;
	background: #ffffff;
	border: 1px solid var(--lit-border);
	border-radius: var(--lit-radius-lg);
	padding: 40px;
	max-width: 460px;
	width: 100%;
	box-shadow: var(--lit-shadow);
	animation: lit-modal-in 0.2s ease;
}

@keyframes lit-modal-in {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lit-modal__close {
	position: absolute;
	top: 16px;
	inset-inline-end: 20px;
	background: none;
	border: none;
	color: var(--lit-text-muted);
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	padding: 4px;
}

.lit-modal__close:hover {
	color: var(--lit-text);
}

.lit-modal__title {
	font-family: var(--lit-font);
	font-size: 22px;
	font-weight: normal;
	margin: 0 0 6px;
	color: var(--lit-text);
}

.lit-modal__sub {
	font-size: 13px;
	color: var(--lit-text-muted);
	margin: 0 0 20px;
}

.lit-modal__uid {
	color: var(--lit-primary);
	font-family: 'Courier New', monospace;
}

.lit-modal__body {
	font-size: 14px;
	color: var(--lit-text-muted);
	line-height: 1.7;
	margin: 0 0 28px;
}

.lit-modal__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Found portal
   ========================================================================== */

.lit-portal--found .lit-found__intro {
	padding: 52px 48px;
	text-align: center;
	background: var(--lit-primary);
	border-bottom: 1px solid var(--lit-border);
}

.lit-found__icon,
.lit-signup__icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 20px;
	color: var(--lit-accent);
}

.lit-found__icon svg,
.lit-signup__icon svg {
	width: 100%;
	height: 100%;
}

.lit-found__title {
	font-family: var(--lit-font);
	font-size: 26px;
	font-weight: normal;
	margin: 0 0 10px;
	color: #ffffff;
}

.lit-found__sub {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.7;
	margin: 0;
	max-width: 420px;
	margin-inline: auto;
}

.lit-portal--found .lit-form-wrap {
	padding: 36px 48px 48px;
	max-width: 100%;
}

/* ==========================================================================
   Empty state
   ========================================================================== */

.lit-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--lit-text-muted);
	font-size: 14px;
	line-height: 1.7;
}

/* ==========================================================================
   Loading state
   ========================================================================== */

.lit-btn--loading {
	pointer-events: none;
	opacity: 0.7;
}

.lit-btn--loading::after {
	content: '';
	display: inline-block;
	inline-size: 12px;
	block-size: 12px;
	border: 2px solid transparent;
	border-top-color: currentColor;
	border-radius: 50%;
	animation: lit-spin 0.6s linear infinite;
	margin-inline-start: 8px;
}

@keyframes lit-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
	.lit-portal--guest .lit-portal__hero {
		padding: 40px 24px 32px;
	}

	.lit-portal__features {
		padding: 24px;
		grid-template-columns: 1fr;
	}

	.lit-feature {
		border-inline-end: none;
		border-block-end: 1px solid var(--lit-border);
		padding: 16px 0;
	}

	.lit-feature:last-child {
		border-block-end: none;
	}

	.lit-portal--auth .lit-portal__header {
		padding: 20px 20px;
	}

	.lit-portal__tabs {
		padding: 0 20px;
	}

	.lit-panel {
		padding: 24px 20px;
	}

	.lit-tag {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.lit-tag__meta {
		align-items: flex-start;
	}

	.lit-grid-2 {
		grid-template-columns: 1fr;
	}


	.lit-portal--found .lit-form-wrap {
		padding: 28px 24px 36px;
	}

	.lit-modal__box {
		padding: 28px 24px;
	}

	.lit-portal__stats {
		grid-template-columns: repeat(3, 1fr);
	}

	.lit-stat {
		padding: 16px 12px;
	}

	.lit-stat__value {
		font-size: 28px;
	}

	.lit-portal--signup .lit-signup__header {
		padding: 36px 24px 28px;
	}

	.lit-portal--signup .lit-signup__body {
		padding: 28px 24px 36px;
	}

	.lit-nudge {
		padding: 14px 20px;
	}

	.lit-profile__avatar {
		flex-direction: column;
		text-align: center;
	}

	.lit-profile__name-block {
		text-align: center;
	}
}

/* ==========================================================================
   Profile tab
   ========================================================================== */

.lit-profile__avatar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}

.lit-avatar {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(200, 147, 42, 0.15);
	border: 1px solid rgba(200, 147, 42, 0.3);
	color: var(--lit-primary);
	font-family: var(--lit-font);
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lit-profile__full-name {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: var(--lit-text);
	margin-bottom: 3px;
}

.lit-profile__email-display {
	font-size: 13px;
	color: var(--lit-text-muted);
}

.lit-profile__section-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--lit-text-muted);
	margin: 28px 0 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--lit-border);
}

.lit-profile__section-label:first-child {
	margin-top: 0;
}

.lit-profile__optional {
	font-size: 10px;
	letter-spacing: 0;
	text-transform: none;
	color: #4a4a3e;
}

/* ==========================================================================
   Profile / signup shared form elements
   ========================================================================== */

.lit-input--readonly {
	opacity: 0.5;
	cursor: not-allowed;
}

.lit-select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a6a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-inline-end: 40px;
}

.lit-select option {
	background: #ffffff;
	color: var(--lit-text);
}

.lit-input-wrap {
	position: relative;
}

.lit-input-wrap .lit-input {
	padding-inline-end: 44px;
}

.lit-input-toggle {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 14px;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--lit-text-muted);
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	transition: color 0.2s, opacity 0.2s;
}

.lit-input-toggle:hover {
	color: var(--lit-text);
}

.lit-field-divider {
	height: 1px;
	background: var(--lit-border);
	margin: 8px 0 4px;
}

/* ==========================================================================
   Password strength
   ========================================================================== */

.lit-password-strength {
	font-size: 11px;
	margin-top: 6px;
	letter-spacing: 0.04em;
	min-height: 16px;
}

.lit-password-strength--weak   { color: var(--lit-lost); }
.lit-password-strength--fair   { color: #c8932a; }
.lit-password-strength--good   { color: #8ab85a; }
.lit-password-strength--strong { color: #4caf73; }

/* ==========================================================================
   Signup page
   ========================================================================== */

.lit-portal--signup .lit-signup__header {
	padding: 52px 48px 36px;
	text-align: center;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(200, 147, 42, 0.08) 0%, transparent 70%),
		var(--lit-primary);
	border-bottom: 1px solid var(--lit-border);
}

.lit-signup__title {
	font-family: var(--lit-font);
	font-size: 26px;
	font-weight: normal;
	margin: 0 0 10px;
	color: var(--lit-header-text);
}

.lit-signup__sub {
	font-size: 14px;
	color: var(--lit-header-text);
	line-height: 1.7;
	margin: 0;
	max-width: 400px;
	margin-inline: auto;
}

.lit-portal--signup .lit-signup__body {
	padding: 36px 48px 48px;
}

.lit-signup__login-prompt {
	text-align: center;
	font-size: 13px;
	color: var(--lit-text-muted);
	margin-top: 24px;
}

.lit-text-link {
	color: var(--lit-accent);
	text-decoration: none;
}

.lit-text-link:hover {
	text-decoration: underline;
}

.lit-btn--full {
	width: 100%;
}

.lit-already-in {
	font-size: 14px;
	color: var(--lit-text-muted);
	text-align: center;
	padding: 40px 0;
}

.lit-already-in a {
	color: var(--lit-accent);
}

/* ==========================================================================
   Tab dot (profile incomplete indicator)
   ========================================================================== */

.lit-tab--alert {
	color: var(--lit-accent) !important;
}

.lit-tab__dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--lit-accent);
	margin-inline-start: 5px;
	vertical-align: middle;
	position: relative;
	top: -1px;
}

/* ==========================================================================
   Nudge bar
   ========================================================================== */

.lit-nudge {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 36px;
	background: rgba(200, 147, 42, 0.07);
	border-bottom: 1px solid rgba(200, 147, 42, 0.2);
	color: #c8932a;
	font-size: 13px;
	line-height: 1.6;
}

.lit-nudge svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.lit-nudge .lit-link {
	color: var(--lit-accent-lt);
}

/* ==========================================================================
   Modal warning
   ========================================================================== */

.lit-modal__warn {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 12px 16px;
	background: rgba(200, 147, 42, 0.08);
	border: 1px solid rgba(200, 147, 42, 0.25);
	border-radius: var(--lit-radius);
	font-size: 13px;
	color: #c8932a;
	line-height: 1.5;
	margin-bottom: 20px;
}

.lit-modal__warn svg {
	flex-shrink: 0;
	margin-top: 1px;
}
