*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--color-bg:            #ffffff;
	--color-bg-secondary:  #f5f5f3;
	--color-bg-tertiary:   #eeede8;
	--color-text-primary:  #1a1a18;
	--color-text-secondary:#5f5e5a;
	--color-text-tertiary: #888780;
	--color-border:        rgba(0,0,0,0.10);
	--color-border-med:    rgba(0,0,0,0.18);
	--radius-md: 8px;
	--radius-lg: 12px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--color-bg:            #1a1a18;
		--color-bg-secondary:  #242422;
		--color-bg-tertiary:   #2c2c2a;
		--color-text-primary:  #f0efe8;
		--color-text-secondary:#b4b2a9;
		--color-text-tertiary: #888780;
		--color-border:        rgba(255,255,255,0.10);
		--color-border-med:    rgba(255,255,255,0.18);
	}
}

html { scroll-behavior: smooth; }
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	background: var(--color-bg);
	color: var(--color-text-primary);
	line-height: 1.6;
}

form fieldset { margin: 0; border: 0; }

.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* -- Sticky Nav -- */
.snav {
	position: sticky; top: 0; z-index: 100;
	background: #1a0e3a;
	border-bottom: 1px solid rgba(127,119,221,0.3);
	height: 58px;
}
.snav-row1 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
	height: 56px;
	gap: 12px;
}
.snav-row2 {
	align-items: center;
	display: none;
	padding: 0 0.75rem 8px;
	gap: 6px;
}
.snav-logo {
	display: flex; flex-flow: column; gap: 7px; align-items: center; height: 46px;
	flex-shrink: 0; text-decoration: none;
}
.snav-logo img { height: 22px; width: auto; display: flex; }
.snav-logo-lbl { font-size: 14px; line-height: 14px; font-weight: 600; color: #c4bfff; white-space: nowrap; }
.snav-logo-fb {
	height: 20px;
	display: none; align-items: center;
	font-family: Impact; font-size: 22px; font-weight: 800; color: #c4bfff; white-space: nowrap;
}
.snav-links { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.snav-link {
	font-size: 13px; font-weight: 500; text-decoration: none;
	padding: 6px 11px; border-radius: 8px;
	color: rgba(255,255,255,0.65); white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}
.snav-row2 .snav-link {
	flex: 1;
	text-align: center;
	font-size: 12px;
	padding: 6px 8px;
	background: rgba(255,255,255,0.04);
	border: 0.5px solid rgba(127,119,221,0.2);
}
.snav-row2 .snav-link:hover {
	background: rgba(255,255,255,0.09);
}
.snav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.snav-link.login { border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.snav-link.login:hover { background: rgba(255,255,255,0.15); }
.snav-link.hide-sm { display: inline-block; }

/* -- Hero -- */
.hero-wrap {
	background: #0a1628;
	padding: 4rem 1.5rem 3.5rem;
	text-align: center;
	position: relative; overflow: hidden;
}
.star-field { position: absolute; inset: 0; pointer-events: none; }
.star {
	position: absolute; border-radius: 50%; background: #fff;
	animation: twinkle 3s infinite alternate;
}
@keyframes twinkle {
	0%   { opacity: 0.2; transform: scale(1); }
	100% { opacity: 0.9; transform: scale(1.4); }
}
.badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(55,138,221,0.18);
	border: 1px solid rgba(55,138,221,0.5);
	border-radius: 20px; padding: 6px 14px; margin-bottom: 1.5rem;
	font-size: 13px; color: #a8d0f5; font-weight: 500;
	position: relative; z-index: 1;
}
.badge .d {
	width: 7px; height: 7px; border-radius: 50%;
	background: #378ADD; flex-shrink: 0;
	animation: pulse 2s infinite;
}
@keyframes pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.3; }
}
.hero-wrap h1 {
	font-size: 48px; font-weight: 700; line-height: 1.1;
	color: #fff; margin-bottom: 1rem; letter-spacing: -0.5px;
	position: relative; z-index: 1;
}
.hero-wrap h1 em { color: #7fc4f5; font-style: normal; }
.hero-wrap p {
	font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.7;
	max-width: 560px; margin: 0 auto 2rem;
	position: relative; z-index: 1;
}
.cta-row {
	display: flex; gap: 12px; justify-content: center;
	flex-wrap: wrap; position: relative; z-index: 1;
}
.btn-p {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	background: #185FA5; color: #fff; border: none;
	padding: 13px 18px; border-radius: 8px;
	font-size: 15px; font-weight: 600; cursor: pointer;
	text-decoration: none; 
	transition: background 0.15s;
}
.btn-p:hover { background: #378ADD; }
.btn-g {
	background: rgba(255,255,255,0.08); color: #fff;
	border: 1px solid rgba(255,255,255,0.25);
	padding: 13px 28px; border-radius: 8px;
	font-size: 15px; font-weight: 600; cursor: pointer;
	text-decoration: none; display: inline-block;
	transition: background 0.15s;
}
.btn-g:hover { background: rgba(255,255,255,0.15); }

/* -- Earn strip (workers-only component) -- */
.earn-strip {
	background: #0f1f38;
	border-bottom: 1px solid rgba(55,138,221,0.2);
	padding: 1rem 1.5rem;
	display: flex; align-items: center; justify-content: center;
	gap: 2rem; flex-wrap: wrap;
}
.earn-stat { text-align: center; }
.earn-stat .val { font-size: 22px; font-weight: 700; color: #7fc4f5; }
.earn-stat .lbl { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; letter-spacing: 0.04em; text-transform: uppercase; }

/* -- Page -- */
.page { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* -- Compare -- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0.75rem; }
.ccard {
	border-radius: 12px; overflow: hidden;
	border: 1px solid rgba(127,119,221,0.25);
	background: #0a1628;
}
.clabel {
	padding: 10px 16px; font-size: 12px; font-weight: 600;
	letter-spacing: 0.04em;
	border-bottom: 1px solid rgba(127,119,221,0.15);
}
.ccard.before .clabel { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.45); }
.ccard.after  .clabel { background: rgba(127,119,221,0.15); color: #c4bfff; }

.morph-wrap {
	position: relative; width: 100%; aspect-ratio: 4/3;
	overflow: hidden; background: #112645;
}
.morph-layer {
	position: absolute; inset: 0;
	transition: opacity 1.2s ease-in-out;
}
.morph-layer.drawn { display: flex; align-items: flex-end; padding: 12px; }
.morph-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-badge {
	position: absolute; bottom: 10px; right: 10px;
	background: rgba(83,74,183,0.9); color: #fff;
	font-size: 11px; font-weight: 600;
	padding: 4px 10px; border-radius: 20px;
}
.scene-canvas { width: 100%; height: 100%; position: relative; }
.floor-line {
	position: absolute; bottom: 28px; left: 0; right: 0;
	height: 1px; background: rgba(127,119,221,0.25);
}
.av {
	position: absolute; bottom: 30px;
	width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 600;
}
.av-s { background: #1D9E75; color: #E1F5EE; }
.av-c { background: #185FA5; color: #E6F1FB; }
.av-a { background: #534AB7; color: #EEEDFE; }
.empty-tag {
	position: absolute; top: 40%; left: 50%;
	transform: translate(-50%, -50%);
	text-align: center; font-size: 13px;
	color: rgba(255,255,255,0.3); line-height: 1.6;
}
.active-tag {
	position: absolute; top: 12px; right: 12px;
	background: rgba(127,119,221,0.85); color: #fff;
	font-size: 11px; font-weight: 600;
	padding: 4px 10px; border-radius: 20px;
}
.compare-caption {
	text-align: center; font-size: 12px;
	color: var(--color-text-tertiary); margin-bottom: 2.5rem;
}

/* -- Sections -- */
.sec { margin: 3.5rem 0; }
.sec-label {
	font-size: 12px; font-weight: 600; color: #378ADD;
	text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.sec h2 {
	font-size: 30px; font-weight: 700; color: var(--color-text-primary);
	margin-bottom: 0.75rem; line-height: 1.2;
}
.sec h3 {
	font-size: 24px; font-weight: 700; color: var(--color-text-primary);
	margin-bottom: 0.25rem; margin-top: 1rem; line-height: 1.2;
}
.sec li {
	margin-left: 1.5rem;
}
.sec > p {
	font-size: 16px; color: var(--color-text-secondary);
	line-height: 1.7; max-width: 600px; margin-bottom: 2rem;
}

/* -- How it works (identical structure, blue accent) -- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hcard {
	background: var(--color-bg);
	border: 0.5px solid var(--color-border);
	border-top: 3px solid #378ADD;
	border-radius: 12px; padding: 1.25rem;
}
.stepn {
	width: 28px; height: 28px; border-radius: 50%;
	background: #E6F1FB; color: #185FA5;
	font-size: 13px; font-weight: 600;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 0.75rem;
}
.hcard h3 { font-size: 15px; font-weight: 600; margin-bottom: 0.4rem; color: var(--color-text-primary); }
.hcard p  { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; }

/* -- Roles -- */
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.rpill {
	background: var(--color-bg-secondary);
	border: 0.5px solid var(--color-border);
	border-radius: 8px; padding: 10px 14px;
	font-size: 14px; color: var(--color-text-primary);
	display: flex; align-items: center; gap: 8px;
	transition: border-color 0.2s, transform 0.15s;
}
.rpill:hover { border-color: #7F77DD; transform: translateY(-2px); }
.rico {
	width: 22px; height: 22px; border-radius: 6px;
	background: #EEEDFE; color: #534AB7;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; flex-shrink: 0;
}

/* -- Venues -- */
.venues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.vcard {
	background: var(--color-bg);
	border: 0.5px solid var(--color-border);
	border-radius: 12px; padding: 1.1rem 1.25rem;
	transition: border-color 0.2s, transform 0.15s;
}
.vcard:hover { border-color: #7F77DD; transform: translateY(-2px); }
.vico {
	width: 32px; height: 32px; border-radius: 8px;
	margin-bottom: 0.6rem;
	display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.vcard h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; color: var(--color-text-primary); }
.vcard p  { font-size: 12px; color: var(--color-text-secondary); line-height: 1.5; }

/* -- Why grid (workers-only component) -- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.wcard {
	background: var(--color-bg);
	border: 0.5px solid var(--color-border);
	border-radius: 12px; padding: 1.1rem 1.25rem;
	display: flex; gap: 12px; align-items: flex-start;
	transition: border-color 0.2s, transform 0.15s;
}
.wcard:hover { border-color: #378ADD; transform: translateY(-2px); }
.wico {
	width: 32px; height: 32px; border-radius: 8px;
	background: #E6F1FB;
	display: flex; align-items: center; justify-content: center;
	font-size: 16px; flex-shrink: 0;
}
.wcard h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; color: var(--color-text-primary); }
.wcard p  { font-size: 12px; color: var(--color-text-secondary); line-height: 1.5; }

/* -- Promise -- */
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pitem {
	display: flex; gap: 12px; align-items: flex-start;
	background: var(--color-bg);
	border: 0.5px solid var(--color-border);
	border-radius: 12px; padding: 1rem 1.25rem;
}
.chk {
	width: 20px; height: 20px; border-radius: 50%;
	background: #E6F1FB; color: #185FA5;
	display: flex; align-items: center; justify-content: center;
	font-size: 11px; flex-shrink: 0; margin-top: 2px;
}
.pitem p { font-size: 14px; color: var(--color-text-primary); line-height: 1.5; font-weight: 500; }
.pitem p span { color: var(--color-text-secondary); font-size: 13px; display: block; margin-top: 2px; font-weight: 400; }

/* -- CTA Banner -- */
.cta-banner {
	background: linear-gradient(135deg, #0a1628 0%, #0f3460 100%);
	border: 1px solid rgba(55,138,221,0.4);
	border-radius: 16px; padding: 3rem 2rem;
	text-align: center; margin-top: 3rem;
}
.cta-banner h2 { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.cta-banner p  { font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 1.75rem; line-height: 1.6; }

/* -- Footer -- */
.footer {
	text-align: center; padding-top: 2.5rem;
	font-size: 12px; color: var(--color-text-tertiary); line-height: 2.2;
	border-top: 0.5px solid var(--color-border); margin-top: 3rem;
}
.footer a { color: var(--color-text-secondary); text-decoration: none; }
.footer a:hover { color: var(--color-text-primary); text-decoration: underline; }

/* -- Login card -- */
.login-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(127,119,221,0.25);
	border-radius: 16px;
	padding: 2.5rem 2rem;
	width: 100%; max-width: 500px;
	position: relative; z-index: 1;
}

.login-card h1 {
	font-size: 22px; font-weight: 700; color: #fff;
	text-align: center; margin-bottom: 0.35rem;
}
.login-card .sub {
	font-size: 14px; color: rgba(255,255,255,0.5);
	text-align: center; margin-bottom: 2rem; line-height: 1.5;
}

.error-box {
	background: rgba(226,75,74,0.12);
	border: 1px solid rgba(226,75,74,0.4);
	border-radius: 8px;
	padding: 10px 14px;
	margin: 1.25rem 0;
	display: flex; align-items: flex-start; gap: 10px;
	font-size: 13px; color: #f09595; line-height: 1.5;
	text-align: left;
}
.error-box.hidden { display: none; }
/* Red circle "!" icon on the left of the error message */
.error-icon {
	width: 16px; height: 16px; border-radius: 50%;
	background: rgba(226,75,74,0.8); color: #fff;
	font-size: 10px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0; margin-top: 1px;
}

.field { margin-bottom: 1.1rem; }
.field label {
	display: block; font-size: 12px; font-weight: 600;
	color: rgba(255,255,255,0.5); letter-spacing: 0.04em;
	text-transform: uppercase; margin-bottom: 6px;
}
.field input {
	width: 100%; background: rgba(255,255,255,0.06);
	border: 1px solid rgba(127,119,221,0.25);
	border-radius: 8px; padding: 11px 14px;
	font-size: 15px; color: #fff;
	outline: none; transition: border-color 0.15s, background 0.15s;
	font-family: inherit;
}
.field input::placeholder { color: rgba(255,255,255,0.2); }
.field input:hover  { border-color: rgba(127,119,221,0.45); }
.field input:focus  { border-color: #7F77DD; background: rgba(127,119,221,0.08); }

.btn-submit {
	width: 100%; background: #7F77DD; color: #fff; border: none;
	padding: 13px; border-radius: 8px;
	font-size: 15px; font-weight: 600; cursor: pointer;
	transition: background 0.15s; margin-top: 0.5rem;
	font-family: inherit;
}
.btn-submit:hover  { background: #534AB7; }
.btn-submit:active { transform: scale(0.99); }

.divider {
	display: flex; align-items: center;
	gap: 12px; margin: 1.75rem 0 1.5rem;
}
.divider-line { flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.divider span { font-size: 12px; color: rgba(255,255,255,0.25); white-space: nowrap; }

.sl-notice {
	background: rgba(55,138,221,0.08);
	border: 1px solid rgba(55,138,221,0.25);
	border-radius: 10px; padding: 1rem 1.1rem;
}
/* Header row: SL badge icon + bold title */
.sl-notice-head {
	display: flex; align-items: center; gap: 8px; margin-bottom: 0.5rem;
}
.sl-badge {
	width: 20px; height: 20px; border-radius: 6px;
	background: rgba(55,138,221,0.25);
	display: flex; align-items: center; justify-content: center;
	font-size: 11px; flex-shrink: 0; color: #7fc4f5; font-weight: 700;
}
.sl-notice-head span { font-size: 13px; font-weight: 600; color: #7fc4f5; }
.sl-notice p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; text-align: left; }
.sl-notice a { color: #378ADD; text-decoration: none; }
.sl-notice a:hover { text-decoration: underline; }

.card-footer {
	margin-top: 2rem; text-align: center;
	font-size: 12px; color: rgba(255,255,255,0.25); line-height: 2;
}
.card-footer a { color: rgba(255,255,255,0.35); text-decoration: none; }
.card-footer a:hover { color: rgba(255,255,255,0.7); }

.login-wrap {
	background: #0f0826;
	min-height: calc(100vh - 58px);
	padding: 3rem 1.5rem 4rem;
	display: flex; justify-content: center;
	position: relative; overflow: hidden;
}

.listings-page { background: var(--color-bg-tertiary); min-height: calc(100vh - 58px); }
.page-header {
	background: #0a1628;
	border-bottom: 1px solid rgba(55,138,221,0.2);
	padding: 1.5rem 1.5rem 1.25rem;
}
.page-header-inner { max-width: 860px; margin: 0 auto; }
.page-title-row {
	display: flex; align-items: baseline; gap: 12px;
	margin-bottom: 1rem; flex-wrap: wrap;
}
.page-title { font-size: 22px; font-weight: 700; color: #fff; }
/* Live role count updated by JS as filters are applied */
.page-text { font-size: 13px; color: rgba(255,255,255,0.4); }


.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-wrap { position: relative; flex: 1; min-width: 180px; }
.search-wrap input {
	width: 100%; background: rgba(255,255,255,0.07);
	border: 1px solid rgba(55,138,221,0.25); border-radius: 8px;
	padding: 8px 12px 8px 34px; font-size: 13px; color: #fff;
	outline: none; font-family: inherit; transition: border-color 0.15s;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.25); }
.search-wrap input:focus { border-color: #378ADD; }
.search-icon {
	position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
	color: rgba(255,255,255,0.3); font-size: 14px; pointer-events: none;
}
.filter-select {
	background: rgba(255,255,255,0.07);
	border: 1px solid rgba(55,138,221,0.25); border-radius: 8px;
	padding: 8px 12px; font-size: 13px; color: rgba(255,255,255,0.75);
	outline: none; font-family: inherit; cursor: pointer;
}
.filter-select option { background: #0a1628; color: #fff; }
.filter-btn {
	background: rgba(55,138,221,0.12); border: 1px solid rgba(55,138,221,0.3);
	border-radius: 8px; padding: 8px 14px; font-size: 13px;
	color: #a8d0f5; cursor: pointer; white-space: nowrap;
	transition: background 0.15s; font-family: inherit;
}
.filter-btn.active { background: rgba(55,138,221,0.3); color: #fff; }
.filter-btn:hover  { background: rgba(55,138,221,0.22); }


.listings-body { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }


.lcard {
background: var(--color-bg);
	border: 0.5px solid var(--color-border);
	border-radius: 12px; overflow: hidden; cursor: pointer;
	transition: border-color 0.2s, transform 0.15s;
	display: flex; flex-direction: column;
}
.lcard:hover { border-color: #378ADD; transform: translateY(-2px); }

/* Top bar: status dot + maturity pill + optional restricted pill */
.lcard-topbar {
	display: flex; align-items: center; gap: 6px; padding: 10px 12px 0;
}

/* Green dot = active, red dot = inactive. No text label. */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.active   { background: #1D9E75; }
.status-dot.inactive { background: #E24B4A; }

/* Single-letter maturity pill — SL standard: G / M / A */
.mat-pill {
	width: 18px; height: 18px; border-radius: 4px;
	font-size: 10px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.mat-pill.general  { background: rgba(99,153,34,0.18);  color: #639922; border: 1px solid rgba(99,153,34,0.35); }
.mat-pill.moderate { background: rgba(186,117,23,0.18); color: #BA7517; border: 1px solid rgba(186,117,23,0.35); }
.mat-pill.adult    { background: rgba(162,45,45,0.18);  color: #E24B4A; border: 1px solid rgba(162,45,45,0.35); }

/* Restricted access pill shown in top bar alongside status/maturity */
.lock-pill {
	display: inline-flex; align-items: center; gap: 3px;
	background: rgba(226,75,74,0.08); border: 0.5px solid rgba(226,75,74,0.22);
	border-radius: 20px; padding: 2px 7px;
	font-size: 10px; color: #f09595; font-weight: 500; white-space: nowrap;
}

/* Card body content */
.lcard-body { padding: 8px 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.lcard-region {
	font-size: 10px; color: var(--color-text-tertiary);
	font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
/* Title: single line only — overflow clips with ellipsis.
Full title shown in the detail card and via title attribute on hover. */
.lcard-title {
	font-size: 13px; font-weight: 600; color: var(--color-text-primary);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Star rating row */
.lcard-stars { display: flex; align-items: center; gap: 4px; }
.stars        { display: flex; gap: 1px; }
.star-filled  { color: #EF9F27; }
.star-empty   { color: var(--color-border); }
.rating-count { font-size: 10px; color: var(--color-text-tertiary); }

/* Bottom row: payout left, vacancies right */
.lcard-meta {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: auto; padding-top: 8px;
	border-top: 0.5px solid var(--color-border);
}
.payout-amount   { font-size: 14px; font-weight: 700; color: #5DCAA5; }
.payout-duration { font-size: 10px; color: var(--color-text-tertiary); margin-top: 1px; }
.vacancies       { display: flex; align-items: center; gap: 4px; }
.vac-dot         { width: 6px; height: 6px; border-radius: 50%; background: #1D9E75; }
.vac-text        { font-size: 11px; color: var(--color-text-secondary); font-weight: 500; }


.empty-state { text-align: center; padding: 4rem 1rem; color: var(--color-text-tertiary); }
.empty-state p { font-size: 15px; margin-top: 0.5rem; }


.page-footer {
text-align: center; padding: 2rem 1rem;
	font-size: 12px; color: var(--color-text-tertiary); line-height: 2;
	border-top: 0.5px solid var(--color-border);
}
.page-footer a { color: var(--color-text-secondary); text-decoration: none; }
.page-footer a:hover { color: var(--color-text-primary); text-decoration: underline; }


.modal-overlay {
	position: fixed; inset: 0; z-index: 300;
	background: rgba(5,10,25,0.88);
	backdrop-filter: blur(7px);
	display: flex; align-items: center; justify-content: center;
	padding: 1rem;
	opacity: 0; pointer-events: none;
	transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }


.detail-card {
	background: var(--color-bg);
	border: 1px solid rgba(55,138,221,0.3);
	border-radius: 16px;
	width: 100%; max-width: 620px; max-height: 90vh;
	overflow-y: auto; display: flex; flex-direction: column;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s;
}
.modal-overlay.open .detail-card { transform: translateY(0) scale(1); }

.detail-media {
	position: relative;
	height: 256px;
	background: #060d1a;
	border-radius: 16px 16px 0 0;
	overflow: hidden;
	flex-shrink: 0;
}

/* Each slide is absolutely positioned over the full media area.
Transitions via opacity. Only .active slide is visible. */
.slide {
	position: absolute; inset: 0;
	opacity: 0; transition: opacity 0.4s ease-in-out;
	display: flex; align-items: center; justify-content: center;
	background: #060d1a;
}
.slide.active { opacity: 1; }

/* Map slide: centres the 256×256 #role-map div.
Background gradient visible around the map on wide cards.
*/
.slide-map {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	background: linear-gradient(135deg, #060d1a 0%, #0d1f3c 100%);
	}
	#role-map {
	width: 256px;
	height: 256px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 4px;
	position: absolute;
	/* border intentionally omitted so real map tiles bleed edge-to-edge */
}

/* User image slides: images of any size are cover-cropped to fill
the full 256px strip. object-position centres the crop. */
.slide-img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: contain; object-position: center;
	display: block;
}

/* Slideshow navigation arrows — hidden when only one slide */
.slide-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%;
	background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15);
	color: #fff; font-size: 16px;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; z-index: 10;
	transition: background 0.15s; line-height: 1;
}
.slide-arrow:hover { background: rgba(0,0,0,0.75); }
.slide-arrow.prev { left: 10px; }
.slide-arrow.next { right: 10px; }

/* Dot position indicators — hidden when only one slide */
.slide-dots {
	position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
	display: flex; gap: 5px; z-index: 10;
}
.slide-dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: rgba(255,255,255,0.3); cursor: pointer;
	transition: background 0.2s;
}
.slide-dot.active { background: #fff; }

/* Status and maturity overlays on the media strip */
.detail-status  { position: absolute; top: 12px; left: 12px;  z-index: 5; display: flex; align-items: center; gap: 6px; }
.detail-maturity{ position: absolute; top: 12px; right: 12px; z-index: 5; }


.detail-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 14px; }
.detail-region-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.detail-region { font-size: 11px; color: var(--color-text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.detail-parcel { font-size: 11px; color: var(--color-text-tertiary); }
.detail-title  { font-size: 18px; font-weight: 600; color: var(--color-text-primary); line-height: 1.3; }
.detail-stars  { display: flex; align-items: center; gap: 6px; }
.detail-rating-val   { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.detail-rating-count { font-size: 13px; color: var(--color-text-tertiary); }

/* Three info tiles: Payout | Vacancies | Region */
.detail-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.info-tile { background: var(--color-bg-secondary); border-radius: 10px; padding: 10px 12px; }
.info-tile .ilabel { font-size: 10px; color: var(--color-text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.info-tile .ivalue { font-size: 15px; font-weight: 700; color: var(--color-text-primary); }
.info-tile .ivalue.green { color: #5DCAA5; }
.info-tile .isub   { font-size: 11px; color: var(--color-text-tertiary); margin-top: 1px; }

/* Restricted access warning — shown only when role.restricted is true */
.access-notice {
	display: flex; align-items: flex-start; gap: 8px;
	background: rgba(226,75,74,0.07); border: 0.5px solid rgba(226,75,74,0.2);
	border-radius: 8px; padding: 10px 12px;
}
.access-notice p { font-size: 13px; color: #f09595; line-height: 1.5; }
.access-notice a { color: #f09595; text-decoration: underline; }

/* Action buttons row */
.detail-actions { display: flex; gap: 10px; padding-top: 4px; }

/* Teleport button — blue primary, links to secondlife:// SLURL */
.btn-teleport {
	flex: 1; background: #0f4869; color: #73d4f0; border: none;
	padding: 13px; border-radius: 8px; font-size: 15px; font-weight: 600;
	cursor: pointer; text-decoration: none; text-align: center;
	transition: background 0.15s; font-family: inherit;
	display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-teleport:hover { background: #112836; }

/* Close button — secondary, dismisses the modal */
.btn-close-card {
	background: var(--color-bg-secondary); color: var(--color-text-secondary);
	border: 0.5px solid var(--color-border); padding: 13px 20px;
	border-radius: 8px; font-size: 15px; font-weight: 500;
	cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s;
}
.btn-close-card:hover { color: var(--color-text-primary); }

/* Small teleport arrow icon inside the button */
.tp-icon {
	width: 22px; height: 22px;
	background: url('../images/sl.png') no-repeat center / cover;
}

.explainer { text-align: center; padding: 3rem 1rem 2rem; }
.explainer h2 {
	font-size: 26px; font-weight: 700; color: var(--color-text-primary);
	margin-bottom: 0.75rem; line-height: 1.3;
}
.explainer p {
	font-size: 16px; color: var(--color-text-secondary);
	line-height: 1.7; max-width: 580px; margin: 0 auto;
}

.how-strip {
	background: var(--color-bg-secondary);
	border: 0.5px solid var(--color-border);
	border-radius: 16px;
	padding: 2rem 2rem;
	margin-bottom: 3rem;
	text-align: center;
}
.how-strip h2  { font-size: 22px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 0.5rem; }
.how-strip > p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.7; max-width: 500px; margin: 0 auto 2rem; }

/* Four-column grid with connecting line pseudo-element */
.flow-diagram {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 0;
	background: var(--color-bg);
	border: 0.5px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
}
/* Gradient connector line centred on the icons */
.flow-diagram::before {
	content: '';
	position: absolute;
	top: 56px;       /* vertically aligned with icon centres */
	left: 12.5%;     /* starts at centre of step 1 icon */
	right: 12.5%;    /* ends at centre of step 4 icon */
	height: 2px;
	background: linear-gradient(90deg,
		rgba(127,119,221,0.6) 0%,
		rgba(127,119,221,0.4) 33%,
		rgba(55,138,221,0.4)  66%,
		rgba(55,138,221,0.6)  100%
	);
	z-index: 0;
}

.flow-step {
	display: flex; flex-direction: column; align-items: center;
	padding: 1.5rem 0.75rem;
	position: relative; z-index: 1;
}
/* Vertical dividers between steps */
.flow-step + .flow-step::before {
	content: '';
	position: absolute; left: 0; top: 20%; bottom: 20%;
	width: 0.5px; background: var(--color-border);
}

/* Step icon — sits on top of the connector line */
.flow-icon {
	width: 56px; height: 56px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	font-size: 22px; margin-bottom: 0.9rem; flex-shrink: 0;
	position: relative; z-index: 2;
}
.flow-icon.purple  { background: rgba(127,119,221,0.12); border: 1px solid rgba(127,119,221,0.25); }
.flow-icon.neutral { background: var(--color-bg-secondary); border: 0.5px solid var(--color-border); }
.flow-icon.blue    { background: rgba(55,138,221,0.12);  border: 1px solid rgba(55,138,221,0.25); }

.flow-title { font-size: 13px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 4px; text-align: center; }
.flow-desc  { font-size: 12px; color: var(--color-text-secondary); line-height: 1.5; text-align: center; }
    

/* -- Responsive -- */
@media (max-width: 860px) {
	.listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
	.snav { height: 78px; }
	.snav-row1 { padding: 0 0.75rem; height: 40px; }
	.snav-row2 { display: flex; }
	.snav-logo { flex-direction: row; }
	.snav-logo img { height: 18px; }
	.snav-link.hide-sm { display: none; }
	.login-card { padding: 2rem 1.25rem; }
	.hero-wrap { align-items: flex-start; padding-top: 2.5rem; }
	.hero-wrap h1 { font-size: 30px; }
	.hero-wrap p  { font-size: 15px; }
	.login-wrap { min-height: calc(100vh - 78px); }
	.compare-grid { grid-template-columns: 1fr; }
	.how-grid     { grid-template-columns: 1fr; }
	.promise-grid { grid-template-columns: 1fr; }
	.earn-strip   { gap: 1.2rem; }
	.listings-page { min-height: calc(100vh - 78px); }
	.listings-grid { grid-template-columns: 1fr; }
	.listings-body { padding: 1rem; }
	.detail-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.detail-card { max-height: 95vh; }
	.filter-bar { gap: 8px; }
	.page { padding: 1.5rem 1rem 3rem; }
	.sec h2 { font-size: 24px; }

	.audience-grid { grid-template-columns: 1fr; }
	.promise-row   { grid-template-columns: 1fr; }
	.hero-wrap h1  { font-size: 30px; }
	.hero-wrap p   { font-size: 15px; }
	.how-strip     { padding: 1.5rem 1rem; }

	.flow-diagram  { grid-template-columns: 1fr 1fr; }
	.flow-diagram::before { display: none; }
	.flow-step + .flow-step::before { display: none; }
	.flow-step     { border-bottom: 0.5px solid var(--color-border); }
	.flow-step:nth-child(odd)  { border-right: 0.5px solid var(--color-border); }
	.flow-step:last-child      { border-bottom: none; }
	.flow-step:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}
@media (max-width: 420px) {
	.flow-diagram { grid-template-columns: 1fr; }
	.flow-step:nth-child(odd) { border-right: none; }
	.flow-step:last-child     { border-bottom: none; }
	.flow-step { border-bottom: 0.5px solid var(--color-border); }
}
