:root {
	--clr-events-blue: hsl(200, 100%, 33%);
	--clr-events-blue-light: hsl(200, 60%, 80%);
	--clr-events-blue-dark: hsl(200, 80%, 20%);
	--clr-events-orange: hsl(31, 100%, 50%);
	--clr-events-orange-light: hsl(31, 100%, 88%);
	--clr-events-orange-dark: hsl(31, 100%, 30%);
	--clr-black-opac: hsl(0 0% 10% / 90%);
	--clr-readonly-purple: hsl(262, 45%, 55%);
	--clr-readonly-purple-light: hsl(262, 70%, 96%);
	--clr-readonly-purple-dark: hsl(262, 45%, 35%);
}

/* 
    Standard starter styling. Width stays same even with padding changes
*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Remove default margin */
* {
	margin: 0;
	padding: 0;
	font: inherit;
}

/* Set core root defaults */
html:focus-within {
	scroll-behavior: smooth;
}

html,
body {
	height: 100%;
}

.relative {
	position: relative;
}

/* app class. App.js that holds all components */
.app {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	background-color: var(--clr-events-blue);
	padding-bottom: calc(var(--ad-slot-h) + 17px);
}

.app-container {
	display: flex;
	position: relative;
	flex-direction: column;
	border-radius: 5rem;
	max-width: 80%;
	margin: auto;
	overflow-wrap: break-word;
	background-color: white;
}

.center-input {
	width: 60% !important;
	margin: 1em auto !important;
}

.main_container {
	display: flex;
	position: relative;
	min-height: 100vh;
	/* overflow-y: auto;
    overflow-x: hidden; */
	top: 6rem;

	margin-bottom: 20rem;
}

.flex {
	display: flex;
	gap: var(--gap, 0.1rem);
}

/* 
    login component 
*/
.login,
.register {
	margin-left: auto;
	margin-right: auto;
	margin-top: 10em;
	width: 100%;
	position: relative;
}

.login {
	overflow: hidden;
}

@media (min-width: 1200px) {
	.login,
	.register {
		width: 60%;
	}
}

.login-pin-modal {
	position: absolute;
	inset: 0;
	background-color: var(--clr-events-orange-light);
	z-index: 100;
	opacity: 1;
	transform: translateY(-100%);
	transition: transform 250ms ease-out;
}

.login-pin-modal[data-visible="true"] {
	transform: translateY(0%);
}

.login-pin-form {
	margin: 0 !important;
	position: absolute !important;
	inset: 10% 15% 10% 15%;
	background-color: var(--clr-events-orange-light);
	z-index: 101;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

@media (max-width: 1200px) {
	.login-pin-form {
		inset: 5% 15% 5% 15%;
	}
}

.login-passcode {
	display: flex;
	gap: 0.75rem !important;
	justify-content: center;
	flex-wrap: wrap !important;
}

.login-passcode input {
	padding-left: 0 !important;
	padding-right: 0 !important;
	text-align: center !important;
	align-items: center !important;
}

.login-pin-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	color: white;
	z-index: 200;
	cursor: pointer;
}

.pin-btn-group {
	display: flex;
	gap: var(--gap, 0.1rem);
	justify-content: center;
	padding: 0.5rem;
}

/* Navbar items */
/* Primary Header Section */
.logo {
	max-width: 16.5rem;
	margin: 1rem;
	padding: 0.25rem;
}

.primary-header {
	position: fixed;
	align-items: center;
	justify-content: left;
	background-color: white;
	inset: 0 0 90% 0;
	z-index: 500;
	max-height: 5rem;
	overflow: visible;
}

.primary-navigation {
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
}

.primary-navigation li {
	padding: 0.75em 0;
	font-weight: bold;
	font-size: 1.1rem;
	margin-inline-end: 0.5em;
	cursor: pointer;
	white-space: nowrap;
}

.primary-navigation span {
	padding: 0.75em;
}

.mobile-nav-toggle {
	display: none !important;
}

/* Cart icon + user menu, grouped together at the top right */
.header-right-group {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 1.25rem;
}

.user-menu {
	margin-right: 1.5rem;
	display: inline-flex;
	align-items: center;
}

.user-menu-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--clr-events-orange) !important;
	cursor: pointer;
	margin: 0 !important;
}
.user-menu-trigger:hover {
	color: var(--clr-events-orange-dark) !important;
}
.user-menu-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--clr-events-orange);
	white-space: nowrap;
}

/* nav bar in larger screen */
@media (min-width: 60rem) {
	.primary-navigation span.active {
		background-color: var(--clr-events-orange);
		color: white;
		border-radius: 3em;
	}

	.primary-navigation span:hover {
		color: var(--clr-events-orange);
	}
	.primary-navigation span.active:hover {
		color: white;
	}
}
/* nav bar on mobile screen */
@media (max-width: 60rem) {
	.primary-navigation {
		--gap: 0.25rem;
		position: fixed;
		inset: 0 0 0 60%;
		background: hsl(0 0% 0% / 0.9);
		backdrop-filter: blur(1rem);
		padding: min(30vh, 8rem) 2rem;
		flex-direction: column;
		z-index: 100;
		color: white;
		transform: translateX(100%);
	}

	.primary-navigation[data-visible="true"] {
		transform: translateX(0%);
		transition: transform 350ms ease-out;
	}

	.primary-navigation span.active {
		color: var(--clr-events-orange);
	}

	.mobile-nav-toggle {
		position: absolute;
		width: 2rem;
		aspect-ratio: 1;
		top: 1.5rem;
		right: 1rem;
		z-index: 999;
		color: var(--clr-events-orange);
		display: block !important;
	}

	.mobile-nav-toggle[data-expanded="true"] {
		color: white;
	}

	.user-menu {
		margin-right: 3.5rem;
	}
}

/* 
    FOOTER BANNER ADS
*/
.footer_app {
	display: flex;
	position: fixed;
	bottom: 0;
	width: 100%;
	min-height: 10em;
	background: white;
	z-index: 150;
}

.footerAds {
	display: flex;
	/* max-height: auto; */
	width: 100%;
	gap: 0.5rem;
	align-items: center;
	max-height: 13.5rem;
}

.footerAds > * {
	/* flex: 1 1 auto; */
	flex: 1;
}

/* .footerAds div {
    background: var(--clr-events-orange);
    
} */

@media (max-width: 40rem) {
	.footerAds {
		flex-direction: column;
	}

	.footerAds > * {
		max-height: 33%;
	}
}

/* 
    BUTTONS
*/
.btn-orange {
	color: white !important;
	background-color: var(--clr-events-orange) !important;
}

.btn-orange:hover {
	box-shadow: 0 0.5rem 1rem -0.25rem rgba(0, 0, 0, 0.3) !important;
	transform: translateY(-0.25em) scale(1.02);
	transition: transform 250ms ease, box-shadow 250ms ease !important;
}

@media (max-width: 60rem) {
	.btn-orange {
		margin-top: 1rem !important;
		margin-bottom: 1rem !important;
	}
}

.btn-floating {
	/* position: absolute !important;
    bottom: -.5rem !important;
    right: -.75rem !important; */
	font-size: 2rem !important;
	z-index: 250;
	color: var(--clr-events-blue-dark);
	cursor: pointer !important;

	transition: transform 350ms ease-out;
	padding: center !important;
	vertical-align: center !important;
}

.btn-floating:hover {
	transform: rotate(180deg);
}

/* 
    HEADERS AND TITLES
*/
.ui.dividing.header {
	border-bottom: 1px solid rgb(0, 0, 0, 0.5) !important;
}

.subsection_header {
	color: var(--clr-events-orange) !important;
}

.section_title_wrap {
	border-left: 4px solid var(--clr-events-orange);
	padding-left: 14px;
	margin-bottom: 1.5rem;
}

.section_title_label {
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 4px;
}

.section_title {
	color: white;
	font-size: 22px;
	font-weight: 500;
	margin: 0;
}

/* 
    TOOLTIP
*/
[data-tool-tip] {
	position: relative;
}

[data-tool-tip]::after {
	content: attr(data-tool-tip);
	position: absolute;
	display: block;
	background-color: var(--clr-events-blue);
	color: white;
	padding: 1em 1em;
	border-radius: 5px;
	bottom: 0;
	left: 0;
	white-space: nowrap;
	transform: scale(0);
	transition: transform ease-out 150ms, bottom ease-out 150ms;
}

[data-tool-tip]:hover::after {
	transform: scale(1);
	bottom: 100%;
}

/* 
    BING MAP STYLING
*/
.map-one {
	border: 1px solid black;
	width: 47%;
	float: left;
	height: 500px;
	padding: 10px;
	margin: 5px;
}

/* .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
} */

/* 
    Notifications component
*/

.notif-panel {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	max-width: 680px;
	margin: 0 auto;
	overflow: hidden;
}
.notif-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #f0f0f0;
	background: #fafafa;
}
.notif-panel-title {
	font-size: 1rem;
	font-weight: 700;
	color: #333;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.notif-panel-title i { color: var(--clr-events-orange); }
.notif-badge {
	background: var(--clr-events-orange);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
}
.notif-list { display: flex; flex-direction: column; }
.notif-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #f5f5f5;
	transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item { cursor: pointer; }
.notif-item:hover { background: #fdf6f0; }
.notif-icon-wrap {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--clr-events-orange-light);
	display: flex;
	align-items: center;
	justify-content: center;
}
.notif-icon-wrap i { color: var(--clr-events-orange); margin: 0 !important; }
.notif-body { flex: 1; min-width: 0; }
.notif-message { margin: 0; font-size: 0.95rem; color: #333; line-height: 1.5; }
.notif-item-read { opacity: 0.55; }
.notif-item-read .notif-message { color: #888; }
.notif-unread-dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--clr-events-orange);
	align-self: center;
}
.notif-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
	color: #aaa;
	gap: 0.75rem;
}
.notif-empty p { margin: 0; font-size: 0.95rem; }

.info-msg {
	background-color: var(--clr-events-orange-light);
	border-radius: 1rem;
	padding: 0.75rem;
	color: black;
	font-weight: 800;
	font-size: 1.25em;
	display: flex;
	flex: 1 1 0;
	width: 100%;
	margin-bottom: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.info-msg i {
	color: var(--clr-events-orange-dark);
	font-size: 2rem !important;
}

.login-info-msg {
	background-color: var(--clr-events-blue-light);
	border-radius: 1rem;
	padding: 0.15rem;
	color: var(--clr-events-blue-dark);
	font-weight: 800;
	font-size: 0.75em;
	display: flex;
	flex: 1 1 0;
	width: 100%;
	margin-bottom: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
	text-align: center !important;
	justify-content: center;
}

/* 
    TABLES
*/
.scrollable-table {
	display: block;
	position: relative;
	overflow-x: auto;
}
.table-segment {
	min-width: 800px;
}
.tbl-row-selectable { cursor: pointer; }
.tbl-row-selectable:hover td { background: #f5f5f5 !important; }
.tbl-row-selectable.tbl-row-selected td { background: #ddeeff !important; }

/* 
    MODALS
*/

.standard-modal {
	position: absolute;
	inset: 0;
	/* background-color: var(--clr-events-orange-light); */
	background-color: var(--clr-black-opac);
	z-index: 100;
	transform: translateX(-150%);
	transition: transform 300ms ease-out;
	backdrop-filter: blur(0.25rem);
}

.standard-modal[data-visible="true"] {
	transform: translateX(0%);
}

.standard-modal-inner {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	padding: 2rem 1rem 3rem;
	box-sizing: border-box;
}

.standard-modal-inner .login-pin-close {
	position: fixed;
	top: 1rem;
	right: 1.5rem;
	cursor: pointer;
	color: #fff;
	z-index: 200;
}

.standard-modal-content {
	width: 100%;
	max-width: 860px;
	margin: 0 auto !important;
}

/* ============================================================
   BANNER CREATOR — Sprint 2
   ============================================================ */

/* --- Background swatches --- */
.banner-bg-grid {
	display: grid;
	gap: 10px;
	margin-top: 8px;
}
.banner-bg-grid.four { grid-template-columns: repeat(4, 1fr); }
.banner-bg-grid.three { grid-template-columns: repeat(3, 1fr); }

.banner-bg-swatch {
	height: 64px;
	border-radius: 4px;
	border: 2px solid #c7ced8;
	cursor: pointer;
	padding: 0;
	background-size: cover;
	background-position: center;
	transition: outline 0.1s;
}
.banner-bg-swatch.selected {
	outline: 4px solid var(--clr-events-orange);
	outline-offset: 2px;
}

/* CSS gradient backgrounds */
/* Solid Colors */
.bbg-g1  { background: linear-gradient(135deg, #f7b11f 0%, #f39b07 100%); }
.bbg-g2  { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%); }
.bbg-g3  { background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0369a1 100%); }
.bbg-g4  { background: linear-gradient(135deg, #34d399 0%, #059669 50%, #065f46 100%); }
.bbg-g5  { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #9f1239 100%); }
.bbg-g6  { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0f2b5b 100%); }
.bbg-g7  { background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #be185d 100%); }
.bbg-g8  { background: linear-gradient(135deg, #52525b 0%, #3f3f46 50%, #18181b 100%); }
.bbg-g9  { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #115e59 100%); }
.bbg-g10 { background: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #92400e 100%); }
.bbg-g11 { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #4c1d95 100%); }
.bbg-g12 { background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #14532d 100%); }
.bbg-g13 { background: linear-gradient(135deg, #fb923c 0%, #ea580c 50%, #9a3412 100%); }
.bbg-g14 { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%); }
.bbg-g15 { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%); }
.bbg-g16 { background: linear-gradient(135deg, #9f1239 0%, #881337 50%, #4c0519 100%); }
.bbg-g17 { background: linear-gradient(135deg, #fbcfe8 0%, #f9a8d4 50%, #db2777 100%); }
.bbg-g18 { background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 50%, #10b981 100%); }
.bbg-g19 { background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 50%, #7c3aed 100%); }
.bbg-g20 { background: linear-gradient(135deg, #fff1e6 0%, #ffd9b8 50%, #f4a261 100%); }
.bbg-g21 { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #60a5fa 100%); }
.bbg-g22 { background: linear-gradient(135deg, #d1e8d0 0%, #a3c4a0 50%, #5a8a57 100%); }
.bbg-g23 { background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #475569 100%); }
.bbg-g24 { background: linear-gradient(135deg, #fdf5e6 0%, #e8d5b0 50%, #c4a06a 100%); }
.bbg-g25 { background: linear-gradient(135deg, #d9e8a0 0%, #a3b832 50%, #5a6e10 100%); }
.bbg-g26 { background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #854d0e 100%); }
.bbg-g27 { background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 50%, #3b0764 100%); }
.bbg-g28 { background: linear-gradient(135deg, #fed7aa 0%, #c2791a 50%, #7c2d12 100%); }
.bbg-g29 { background: linear-gradient(135deg, #fecaca 0%, #f87171 50%, #b91c1c 100%); }
.bbg-g30 { background: linear-gradient(135deg, #f5d0fe 0%, #e879f9 50%, #86198f 100%); }
.bbg-g31 { background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 50%, #0f766e 100%); }
.bbg-g32 { background: linear-gradient(135deg, #bfdbfe 0%, #4a7fa5 50%, #1e3f6e 100%); }
/* Gradient Backgrounds */
.bbg-n1  { background: radial-gradient(circle at 18% 38%, rgba(255,230,160,0.95) 0 10%, rgba(255,230,160,0.15) 11%, transparent 14%), linear-gradient(180deg, #f4971f 0%, #ff6f1d 36%, #2ea7d4 58%, #09588f 100%); }
.bbg-n2  { background: linear-gradient(180deg, #8fd0ff 0%, #d9efff 40%, transparent 40%), linear-gradient(160deg, #89d06f 0%, #6da45b 25%, #587e4e 50%, #4d6386 70%, #6b83aa 100%); }
.bbg-n3  { background: linear-gradient(160deg, #fda4af 0%, #f9a8d4 25%, #fdba74 60%, #fcd34d 100%); }
.bbg-n4  { background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 35%, #6366f1 70%, #0891b2 100%); }
.bbg-n5  { background: linear-gradient(135deg, #0f0c29 0%, #302b63 40%, #24243e 70%, #7c3aed 100%); }
.bbg-n6  { background: linear-gradient(135deg, #f59e0b 0%, #fcd34d 40%, #fbbf24 70%, #d97706 100%); }
.bbg-n7  { background: linear-gradient(135deg, #7c3aed 0%, #db2777 45%, #f97316 100%); }
.bbg-n8  { background: linear-gradient(180deg, #166534 0%, #15803d 30%, #14532d 65%, #052e16 100%); }
.bbg-n9  { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 55%, #e94560 100%); }
.bbg-n10 { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 30%, #ce93d8 65%, #b39ddb 100%); }
.bbg-n11 { background: linear-gradient(135deg, #00b09b 0%, #06d6a0 35%, #0077b6 70%, #023e8a 100%); }
.bbg-n12 { background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 30%, #dc2626 55%, #f97316 80%, #fbbf24 100%); }
.bbg-n13 { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 30%, #67e8f9 60%, #06b6d4 100%); }
.bbg-n14 { background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 35%, #fdba74 65%, #fb923c 100%); }
.bbg-n15 { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 30%, #0284c7 65%, #38bdf8 100%); }
.bbg-n16 { background: linear-gradient(135deg, #431407 0%, #9a3412 25%, #ea580c 55%, #fbbf24 80%, #fef08a 100%); }
/* Scene Backgrounds */
.bbg-c1  { background: linear-gradient(180deg, #0c1445 0%, #1a237e 35%, #0d47a1 65%, #01002b 100%); }
.bbg-c2  { background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.55) 0%, rgba(200,215,235,0.2) 35%, transparent 60%), linear-gradient(180deg, #78909c 0%, #546e7a 40%, #37474f 100%); }
.bbg-c3  { background: radial-gradient(circle at 15% 30%, rgba(255,220,80,0.7) 0%, transparent 10%), radial-gradient(circle at 38% 25%, rgba(255,200,60,0.5) 0%, transparent 8%), radial-gradient(circle at 62% 28%, rgba(255,215,70,0.6) 0%, transparent 9%), radial-gradient(circle at 82% 22%, rgba(255,200,50,0.5) 0%, transparent 7%), linear-gradient(180deg, #1a1035 0%, #2d1b69 30%, #0d0d2b 70%, #000005 100%); }
.bbg-c4  { background: radial-gradient(circle at 15% 18%, rgba(255,255,255,0.95) 0, transparent 1.2%), radial-gradient(circle at 38% 12%, rgba(255,255,255,0.85) 0, transparent 1%), radial-gradient(circle at 60% 20%, rgba(255,255,255,0.9) 0, transparent 1.1%), radial-gradient(circle at 78% 10%, rgba(255,255,255,0.8) 0, transparent 0.9%), radial-gradient(circle at 28% 32%, rgba(255,255,255,0.65) 0, transparent 0.7%), radial-gradient(circle at 52% 38%, rgba(255,255,255,0.55) 0, transparent 0.6%), radial-gradient(circle at 72% 30%, rgba(255,255,255,0.6) 0, transparent 0.65%), linear-gradient(180deg, #020616 0%, #080d2a 40%, #10063d 100%); }
.bbg-c5  { background: radial-gradient(ellipse at 50% 5%, rgba(255,240,120,0.75) 0%, rgba(255,200,50,0.3) 30%, transparent 55%), linear-gradient(180deg, #7ecef4 0%, #fdcb7b 35%, #e8a83c 55%, #c87941 75%, #a0522d 100%); }
.bbg-c6  { background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.95) 0%, rgba(220,235,255,0.5) 30%, transparent 60%), linear-gradient(180deg, #c9dff5 0%, #ddeeff 30%, #f5f9ff 55%, #e8f0f8 75%, #dce8f0 100%); }
.bbg-c7  { background: radial-gradient(ellipse at 25% 50%, rgba(0,100,200,0.35) 0%, transparent 55%), radial-gradient(ellipse at 75% 30%, rgba(0,60,150,0.25) 0%, transparent 50%), linear-gradient(180deg, #000d1a 0%, #001f3f 25%, #003366 50%, #001f3f 80%, #000810 100%); }
.bbg-c8  { background: radial-gradient(ellipse at 50% 0%, rgba(255,160,30,0.4) 0%, transparent 45%), linear-gradient(150deg, #3d2b1f 0%, #6b4226 20%, #8b5e3c 35%, #a0522d 50%, #7a4a2a 70%, #4a2c15 85%, #2a1505 100%); }
.bbg-c9  { background: radial-gradient(ellipse at 20% 40%, rgba(0,255,150,0.5) 0%, transparent 35%), radial-gradient(ellipse at 50% 30%, rgba(100,80,255,0.4) 0%, transparent 30%), radial-gradient(ellipse at 78% 45%, rgba(255,50,150,0.35) 0%, transparent 30%), linear-gradient(180deg, #000d1a 0%, #001529 40%, #00111f 100%); }
.bbg-c10 { background: radial-gradient(circle at 50% 70%, rgba(255,80,0,0.9) 0%, rgba(200,30,0,0.6) 25%, transparent 55%), radial-gradient(circle at 35% 80%, rgba(255,120,0,0.5) 0%, transparent 30%), radial-gradient(circle at 65% 75%, rgba(255,60,0,0.4) 0%, transparent 25%), linear-gradient(180deg, #0d0d0d 0%, #1a0000 30%, #3d0000 55%, #7b1c00 75%, #b22000 90%, #cc3300 100%); }
.bbg-c11 { background: radial-gradient(ellipse at 30% 40%, rgba(0,200,255,0.3) 0%, transparent 40%), radial-gradient(ellipse at 70% 60%, rgba(0,120,200,0.25) 0%, transparent 35%), linear-gradient(180deg, #001f33 0%, #003355 25%, #004d80 50%, #006699 70%, #0080b3 100%); }
.bbg-c12 { background: radial-gradient(circle at 25% 30%, rgba(255,182,193,0.7) 0%, transparent 25%), radial-gradient(circle at 60% 20%, rgba(255,160,180,0.5) 0%, transparent 20%), radial-gradient(circle at 78% 40%, rgba(255,192,203,0.6) 0%, transparent 22%), linear-gradient(160deg, #fce4ec 0%, #f8bbd0 25%, #f48fb1 50%, #e8d5e8 75%, #f3e5f5 100%); }
.bbg-c13 { background: radial-gradient(ellipse at 40% 0%, rgba(180,200,255,0.4) 0%, transparent 40%), radial-gradient(ellipse at 60% 0%, rgba(150,170,255,0.3) 0%, transparent 35%), linear-gradient(180deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a2040 75%, #0d0d1a 100%); }
.bbg-c14 { background: radial-gradient(ellipse at 50% 0%, rgba(255,230,100,0.5) 0%, transparent 45%), linear-gradient(160deg, #92400e 0%, #b45309 20%, #d97706 35%, #fbbf24 50%, #fde68a 65%, #fef3c7 80%, #fffbeb 100%); }
.bbg-c15 { background: radial-gradient(ellipse at 50% 0%, rgba(200,230,255,0.8) 0%, rgba(150,200,255,0.3) 30%, transparent 60%), linear-gradient(180deg, #1e3a5f 0%, #2c5282 20%, #bee3f8 50%, #ebf8ff 75%, #f0f9ff 100%); }
.bbg-c16 { background: radial-gradient(ellipse at 30% 0%, rgba(100,200,100,0.4) 0%, transparent 40%), radial-gradient(ellipse at 70% 20%, rgba(50,180,80,0.3) 0%, transparent 35%), linear-gradient(160deg, #052e16 0%, #064e3b 20%, #065f46 35%, #047857 50%, #166534 70%, #14532d 85%, #022c22 100%); }

/* --- Live banner preview --- */
.banner-preview-outer {
	position: relative;
	width: 100%;
	aspect-ratio: 6 / 1.4;
	min-height: 160px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #bfc8d2;
}
.banner-preview-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1), rgba(0,0,0,0.28));
}
.banner-preview-content {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 17% 1fr 17%;
	grid-template-rows: 28% 1fr 28%;
	padding: 10px;
	gap: 8px;
	color: #fff;
}
.bp-box {
	border: 2px dashed rgba(255,255,255,0.65);
	background: rgba(255,255,255,0.12);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 6px;
	font-weight: 700;
	font-size: 13px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	overflow: hidden;
	word-break: break-word;
}
.bp-left-stack, .bp-right-stack {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 8px;
}
.bp-left-stack  { grid-column: 1; grid-row: 1 / 4; }
.bp-right-stack { grid-column: 3; grid-row: 1 / 4; }
.bp-top-header  { grid-column: 2; grid-row: 1; font-size: 16px; }
.bp-middle-row  { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
.bp-bottom      { grid-column: 2; grid-row: 3; font-size: 12px; }

/* --- Pricing badge --- */
.banner-price-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	background: var(--clr-events-blue);
	color: white;
	border-radius: 8px;
	padding: 10px 20px;
	min-width: 120px;
}
.banner-price-badge .price-amount {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1;
}
.banner-price-badge .price-label {
	font-size: 0.75rem;
	opacity: 0.85;
	margin-top: 2px;
}

/* ============================================================
   AD FOOTER — Sprint 2 sliding animation
   ============================================================ */
.footer_app {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 150;
	background: #fff;
	border-top: 1px solid #e1e1e1;
}

/* Slot height tracks 1/3 of viewport width × image ratio (170/680 = 1/4).
   Matches the 680×170 standard banner format at any screen width. */
:root { --ad-slot-h: calc(32vw * 170 / 680); }

.ad-footer-viewport {
	position: relative;
	width: 100%;
	height: calc(var(--ad-slot-h) + 16px);
	overflow: hidden;
	padding: 8px 12px;
}

.ad-footer-stage {
	position: relative;
	width: 100%;
	height: var(--ad-slot-h);
	--ad-gap: 12px;
	--ad-card-w: calc((100% - (var(--ad-gap) * 2)) / 3);
}

.ad-footer-stage .ad-slot {
	position: absolute;
	top: 0;
	width: var(--ad-card-w);
	height: var(--ad-slot-h);
	border-radius: 6px;
	overflow: hidden;
	transition: transform 0.5s ease-in-out;
	background: #111;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.ad-footer-stage .ad-slot-0 { left: 0; }
.ad-footer-stage .ad-slot-1 { left: calc(var(--ad-card-w) + var(--ad-gap)); }
.ad-footer-stage .ad-slot-2 { left: calc((var(--ad-card-w) * 2) + (var(--ad-gap) * 2)); }
.ad-footer-stage .ad-slot-3 { left: calc((var(--ad-card-w) * 3) + (var(--ad-gap) * 3) + 10px); }

.ad-footer-stage.shifting .ad-slot {
	transform: translateX(calc(-1 * (var(--ad-card-w) + var(--ad-gap))));
}

.ad-footer-stage.no-transition .ad-slot {
	transition: none !important;
}

.ad-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Styled placeholder when no image — shows banner text */
.ad-card-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 10px;
	color: #fff;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	gap: 4px;
}
.ad-card-placeholder .ad-ph-title {
	font-size: 15px;
	font-weight: 800;
	text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.ad-card-placeholder .ad-ph-sub {
	font-size: 11px;
	opacity: 0.85;
}

/* Fallback for no banners at all */
/* Ad card creative (banner_content JSON rendering) */
.ad-card-creative {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 6px;
	overflow: hidden;
	text-align: center;
}
.ad-creative-headline {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,0.5);
	margin-bottom: 4px;
	line-height: 1.2;
}
.ad-creative-sub {
	font-size: 11px;
	color: rgba(255,255,255,0.9);
	text-shadow: 0 1px 2px rgba(0,0,0,0.4);
	margin-bottom: 6px;
}
.ad-creative-cta {
	font-size: 11px;
	font-weight: 600;
	background: rgba(255,255,255,0.25);
	color: #fff;
	padding: 3px 10px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.5);
}

/* Placeholder ad cards shown when no paid banners exist */
.ad-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
	border-radius: 6px;
	padding: 8px 12px;
	text-align: center;
}
.ad-placeholder-title {
	font-size: 13px;
	font-weight: 700;
	color: #e2e8f0;
	margin-bottom: 4px;
}
.ad-placeholder-sub {
	font-size: 10px;
	color: #a0aec0;
}

.ad-footer-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #aaa;
	font-size: 13px;
	font-style: italic;
}

@media (max-width: 700px) {
	.ad-footer-viewport { height: auto; padding: 6px 8px; }
	.ad-footer-stage { display: flex; gap: 6px; position: static; height: auto; }
	.ad-footer-stage .ad-slot {
		position: static;
		width: calc(33.33% - 4px);
		height: var(--ad-slot-h);
		transform: none !important;
		transition: none !important;
	}
	.ad-footer-stage .ad-slot-0 { display: none; }
}

/* ============================================================
   PUBLIC EVENT CALENDAR — monthly grid
   ============================================================ */

.cal-nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}
.cal-legend-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: none;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 0.3rem 0.75rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}
.cal-legend-btn:hover { background: #f5f5f5; border-color: #bbb; }
.cal-legend-backdrop {
	position: fixed;
	inset: 0;
	z-index: 199;
}
.cal-legend-popup {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 200;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.13);
	padding: 0.85rem 1rem;
	min-width: 200px;
	animation: cal-popup-in 0.15s ease;
}
.cal-legend-title {
	font-size: 0.8rem;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.6rem;
}
.cal-legend-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.9rem;
	padding: 0.25rem 0;
	color: #333;
}
.cal-legend-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}
.cal-month-label {
	font-size: 1.15rem;
	font-weight: 700;
	color: #333;
	min-width: 160px;
	text-align: center;
}

/* 7-column grid */
.cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	background: #e0e0e0;
}

.cal-weekday {
	background: #f5f5f5;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: #888;
	padding: 6px 0;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cal-day {
	background: #fff;
	min-height: 90px;
	padding: 4px 6px;
	vertical-align: top;
	box-sizing: border-box;
}
.cal-day-empty {
	background: #fafafa;
	min-height: 90px;
}
.cal-day-today .cal-day-number {
	background: var(--clr-events-orange);
	color: #fff;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.cal-day-number {
	font-size: 0.8rem;
	font-weight: 600;
	color: #555;
	margin-bottom: 4px;
}

/* Event chip inside a day cell */
.cal-event-chip {
	display: block;
	width: 100%;
	border: none;
	border-radius: 3px;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 600;
	padding: 2px 5px;
	margin-bottom: 2px;
	text-align: left;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: opacity 150ms;
}
.cal-event-chip:hover { opacity: 0.82; }

/* Detail card that pops up when a chip is clicked */
.cal-detail-card {
	border-left: 4px solid var(--clr-events-orange) !important;
}

/* Month list below the grid */
.cal-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.cal-list-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}
.cal-list-row:last-child { border-bottom: none; }
.cal-list-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-top: 5px;
	flex-shrink: 0;
}
.cal-list-body { flex: 1; min-width: 0; }
.cal-list-title {
	font-weight: 600;
	font-size: 0.95rem;
	color: #333;
	margin-bottom: 3px;
}
.cal-list-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.8rem;
	color: #666;
}
.cal-list-meta i.icon { margin-right: 3px !important; }
.cal-list-link {
	color: #aaa;
	flex-shrink: 0;
	padding-top: 2px;
}
.cal-list-link:hover { color: var(--clr-events-orange); }

/* Chip wrapper — needed so tooltip doesn't break flex layout */
.cal-chip-wrapper {
	position: relative;
}

/* ── Hover tooltip ── */
.cal-tooltip-portal {
	position: fixed;
	z-index: 9999;
	pointer-events: none;
}

.cal-tooltip {
	background: #1a1a2e;
	color: #f0f0f0;
	border-radius: 8px;
	padding: 12px 14px;
	width: 280px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.35);
	font-size: 0.82rem;
	line-height: 1.5;
	animation: cal-tooltip-in 120ms ease-out;
}

@keyframes cal-tooltip-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.cal-tooltip-title {
	font-weight: 700;
	font-size: 0.9rem;
	color: #fff;
	margin-bottom: 8px;
	line-height: 1.3;
}

.cal-tooltip-row {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	color: #ccc;
	margin-bottom: 5px;
}
.cal-tooltip-row i.icon {
	color: var(--clr-events-orange) !important;
	margin-top: 2px;
	flex-shrink: 0;
}

.cal-tooltip-hint {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid rgba(255,255,255,0.12);
	font-size: 0.73rem;
	color: #888;
	text-align: center;
	letter-spacing: 0.03em;
}

/* ── Click popup modal ── */
.cal-popup-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	backdrop-filter: blur(3px);
	animation: cal-backdrop-in 180ms ease-out;
}

@keyframes cal-backdrop-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.cal-popup {
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 480px;
	padding: 1.5rem;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	animation: cal-popup-in 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
}

.cal-popup.wide { max-width: 640px; max-height: 90vh; overflow-y: auto; }
.cal-popup.wide .cal-popup-footer { margin-top: 1.25rem; display: flex; gap: 0.5rem; }

/* Number inputs: typed entry only, no spinner clicks.
   !important is needed here because semantic.min.css (loaded after this file,
   from the CDN in index.html) also declares rules on these same pseudo-elements
   and otherwise wins the cascade. */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	appearance: none !important;
	margin: 0 !important;
}
input[type="number"] {
	-moz-appearance: textfield !important;
	appearance: textfield !important;
}

/* Cannot-edit fields (Account Settings, etc): visually distinct and fully inert —
   disabled (not readonly) so clicking does nothing, no cursor/caret, no focus.
   Semantic UI dims disabled fields to 45% opacity on THREE ancestors at once
   (.ui.input, .field, and the field's label) — all three need overriding, not
   just the <input> itself, or the dimming still shows through from the parents. */
.ui.input.disabled,
.ui.form .field.disabled,
.ui.form .fields.disabled,
.ui.form .field.disabled > label,
.ui.form .fields.disabled > label {
	opacity: 1 !important;
}
input:disabled,
textarea:disabled {
	background-color: var(--clr-readonly-purple-light) !important;
	border-color: var(--clr-readonly-purple) !important;
	color: var(--clr-readonly-purple-dark) !important;
	opacity: 1 !important;
	cursor: default !important;
	pointer-events: none !important;
}

@keyframes cal-popup-in {
	from { opacity: 0; transform: scale(0.92) translateY(12px); }
	to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.cal-popup-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.cal-popup-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
	flex: 1;
}

.cal-popup-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #aaa;
	padding: 0;
	font-size: 1rem;
	line-height: 1;
	flex-shrink: 0;
	transition: color 150ms;
}
.cal-popup-close:hover { color: #555; }
.cal-popup-close i.icon { margin: 0 !important; }

.cal-popup-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 1rem;
}

.cal-popup-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.9rem;
	color: #444;
	margin-bottom: 0.6rem;
}
.cal-popup-row i.icon { color: #888; flex-shrink: 0; margin-top: 2px; }
.cal-popup-row a { color: var(--clr-events-orange); word-break: break-all; }
.cal-popup-row a:hover { text-decoration: underline; }

.cal-popup-description {
	background: #f8f8f8;
	border-radius: 6px;
	padding: 10px 12px;
	color: #555;
	font-size: 0.88rem;
	line-height: 1.5;
	margin-top: 0.4rem;
}

/* Clickable list rows */
.cal-list-row-clickable {
	cursor: pointer;
	border-radius: 6px;
	padding: 8px 6px !important;
	transition: background 150ms;
}
.cal-list-row-clickable:hover {
	background: #fdf3ea;
}

@media (max-width: 700px) {
	.cal-day { min-height: 60px; padding: 2px 3px; }
	.cal-event-chip { font-size: 0.6rem; padding: 1px 3px; }
	.cal-month-label { min-width: 120px; font-size: 1rem; }
	.cal-popup { padding: 1.25rem; }
	.cal-popup-title { font-size: 1rem; }
}

/* ── Listings Map View ──────────────────────────────────────────────────── */
.listings-map-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: cal-backdrop-in 0.18s ease;
}

.listings-map-container {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem 1rem;
    width: 92vw;
    max-width: 1150px;
    height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    animation: cal-popup-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Override Leaflet tooltip style */
.listings-map-tooltip {
    background: #1b3a5c !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;
    max-width: 260px;
}
.listings-map-tooltip::before {
    border-top-color: #1b3a5c !important;
}

/* ── Skeleton loading ────────────────────────────────────────────────────── */
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-line {
    background: linear-gradient(90deg, #ececec 25%, #d8d8d8 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: 4px;
    height: 13px;
    display: block;
}

.skeleton-line.short  { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.long   { width: 85%; }
.skeleton-line.full   { width: 100%; }

.skeleton-avatar {
    background: linear-gradient(90deg, #ececec 25%, #d8d8d8 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.skeleton-cell {
    padding: 0.6rem 0.75rem;
}

.skeleton-notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.skeleton-form-row {
    margin-bottom: 1.1rem;
}

.skeleton-label {
    background: linear-gradient(90deg, #ececec 25%, #d8d8d8 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: 3px;
    height: 10px;
    width: 30%;
    margin-bottom: 6px;
    display: block;
}

.skeleton-input {
    background: linear-gradient(90deg, #ececec 25%, #d8d8d8 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: 4px;
    height: 36px;
    width: 100%;
    display: block;
}

.skeleton-cal-cell {
    background: linear-gradient(90deg, #ececec 25%, #d8d8d8 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: 4px;
    height: 12px;
    margin: 3px 4px;
}
/* ── Auth modal (login / register popup) ── */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: cal-backdrop-in 180ms ease-out;
}

/* Semantic UI's own Modal/Dimmer default to z-index 1000/1001 (see semantic-ui-css),
   so a Modal opened from inside this auth popup (e.g. Register's Terms and Conditions
   popup) rendered behind it. Modals should always sit above our own full-screen
   overlays - this covers the auth popup (9000) and the calendar click popup (10000). */
.ui.page.modals.dimmer {
  z-index: 10500;
}

.auth-modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: cal-popup-in 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #666;
  transition: background 0.15s, color 0.15s;
}
.auth-modal-close:hover { background: #ebebeb; color: #222; }
.auth-modal-close i.icon { margin: 0 !important; font-size: 0.85rem !important; }

/* Override the large top-margin Login/Register use outside of modals */
.auth-modal-body .login,
.auth-modal-body .register {
  margin-top: 0 !important;
  width: 100% !important;
}

/* ── Role chip selector (Register form) ── */
.role-chip-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.role-chip {
  padding: 0.4rem 0.7rem;
  border: 1.5px solid #ddd;
  border-radius: 50px;
  background: #fff;
  color: #555;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.role-chip:hover {
  border-color: var(--clr-events-orange);
  color: var(--clr-events-orange);
}
.role-chip-active {
  background: var(--clr-events-orange) !important;
  border-color: var(--clr-events-orange) !important;
  color: #fff !important;
}

.role-chip-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.role-chip-disabled:hover {
  border-color: #ddd;
  color: #555;
}

.role-chip-wrap {
  position: relative;
  display: inline-flex;
  padding-top: 6px;
}

.role-chip-info-btn {
  position: absolute;
  top: 0;
  right: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  color: #999;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  line-height: 1;
}
.role-chip-info-btn:hover,
.role-chip-info-btn:focus-visible {
  border-color: var(--clr-events-orange);
  color: var(--clr-events-orange);
}
.role-chip-info-btn .icon {
  margin: 0 !important;
  font-size: 0.55rem !important;
}

.role-chip-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e1e;
  color: #f0f0f0;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  width: 280px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}

.role-chip-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e1e1e;
}

/* Pin the first two chips' tooltips to the left edge (they're wide enough that a
   centered one on the second chip would spill past the card) */
.role-chip-wrap:nth-child(-n+2) .role-chip-tooltip {
  left: 0;
  transform: none;
}
.role-chip-wrap:nth-child(-n+2) .role-chip-tooltip::after {
  left: 20px;
  transform: none;
}

/* Pin the last two chips' tooltips to the right edge, same reason */
.role-chip-wrap:nth-last-child(-n+2) .role-chip-tooltip {
  left: auto;
  right: 0;
  transform: none;
}
.role-chip-wrap:nth-last-child(-n+2) .role-chip-tooltip::after {
  left: auto;
  right: 20px;
  transform: none;
}

.role-chip-wrap:hover .role-chip-tooltip,
.role-chip-tooltip-open {
  opacity: 1;
  pointer-events: auto;
}

.role-chip-tooltip-soon {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ff9d6e;
}

/* ── Account tier status (Account Settings) ── */
.tier-status-wrap {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.tier-status-card {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 0.9rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
}

.tier-status-card.tier-status-current {
  border-color: var(--clr-events-orange);
  background: #fff8f5;
}

.tier-status-card-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tier-status-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #222;
}

.tier-status-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-events-orange);
  background: rgba(232, 97, 44, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  white-space: nowrap;
}

.tier-status-price {
  font-size: 1.1rem;
  color: var(--clr-events-orange);
}

.tier-status-price span {
  font-size: 0.8rem;
  color: #888;
  font-weight: 400;
}

.tier-status-desc {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.4;
  margin: 0;
}

.tier-status-upgrade-btn {
  margin-top: auto !important;
  width: 100%;
}

.tier-status-current-footer {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-events-orange);
}

/* ── Account tier cards (Register) ── */
.tier-card-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.tier-card-group .tier-card {
  min-width: 90px;
}

.tier-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 0.75rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-align: center;
}

.tier-card:hover {
  border-color: var(--clr-events-orange);
}

.tier-card-active {
  border-color: var(--clr-events-orange) !important;
  box-shadow: 0 0 0 3px rgba(232, 97, 44, 0.15);
}

.tier-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}

.tier-card-active .tier-card-name {
  color: var(--clr-events-orange);
}

.tier-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--clr-events-orange);
}

.tier-card-desc {
  font-size: 0.75rem;
  color: #777;
  line-height: 1.4;
  margin-top: 0.15rem;
}

/* ── Assistants table (Account Settings) ── */
.asst-table-wrap {
  margin-bottom: 0.5rem;
}

.asst-empty {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.asst-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
}

.asst-table th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid #e0e0e0;
  color: #555;
  font-weight: 700;
}

.asst-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.asst-table tbody tr:hover {
  background: #fff4ee;
}

.asst-row-selected td {
  background: rgba(232, 97, 44, 0.1);
  color: var(--clr-events-orange);
  font-weight: 600;
}

.asst-table-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.asst-inline-form {
  margin-top: 1rem;
  padding: 1rem;
  border: 1.5px solid #e8612c33;
  border-radius: 8px;
  background: #fff8f5;
}

/* ── Account Settings — card shell & design system ── */

/* Tab nav sits directly on the page's blue background, so it uses light text
   rather than the dark text the white cards below it use. */
/* A flat underlined tab strip read as page furniture, not something to click —
   this puts the tabs on their own solid card as a segmented control (a track
   with pill buttons, active one filled solid) so it unmistakably reads as
   navigation the user has to work through, not a passive section label. */
.acct-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px -14px rgba(16, 24, 40, 0.22);
  border: 1px solid rgba(16, 24, 40, 0.05);
  padding: 0.7rem;
  margin-bottom: 1.5rem;
}
.acct-tab-bar-tabs {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  background: #f2f3f5;
  border-radius: 10px;
  padding: 0.3rem;
}
.acct-tab-bar-save {
  flex-shrink: 0;
  margin: 0 0.3rem !important;
}
.acct-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #666e79;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.acct-tab-btn:hover { color: #1c2530; background: rgba(0, 0, 0, 0.04); }
.acct-tab-btn.acct-tab-btn-active {
  color: #fff;
  background: var(--clr-events-orange);
  box-shadow: 0 3px 10px -3px rgba(232, 97, 44, 0.6);
}
.acct-tab-btn.acct-tab-btn-active:hover { color: #fff; background: var(--clr-events-orange); }

.acct-tab-panel {
  display: flex;
  flex-direction: column;
}

.acct-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px -14px rgba(16, 24, 40, 0.22);
  border: 1px solid rgba(16, 24, 40, 0.05);
  padding: 1.6rem 1.7rem;
  margin-bottom: 1.5rem;
}
.acct-card:last-child { margin-bottom: 0; }

.acct-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef0f3;
}
.acct-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 97, 44, 0.12);
  color: var(--clr-events-orange);
  flex-shrink: 0;
  font-size: 1.05rem;
}
.acct-card-icon.acct-icon-blue { background: hsl(200, 100%, 33%, 0.12); color: var(--clr-events-blue); }
.acct-card-icon.acct-icon-purple { background: var(--clr-readonly-purple-light); color: var(--clr-readonly-purple); }
.acct-card-icon.acct-icon-red { background: rgba(219, 40, 40, 0.1); color: #d0201f; }
.acct-card-icon.acct-icon-gold { background: rgba(184, 134, 11, 0.14); color: #b8860b; }

.acct-card-titles { display: flex; flex-direction: column; padding-top: 0.1rem; }
.acct-card-title { font-size: 1.08rem; font-weight: 700; color: #1c2530; }
.acct-card-subtitle { font-size: 0.8rem; color: #8f97a3; margin-top: 2px; }

.acct-subsection {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px dashed #eceff2;
}
.acct-subsection:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.acct-subsection-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #99a1ac;
  margin-bottom: 0.85rem;
}
.acct-hint { font-size: 0.82rem; color: #8f97a3; margin: -0.3rem 0 0.85rem; line-height: 1.45; }

/* Previewing-as pill switcher */
.acct-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #ffffff, #fff8f5);
  border: 1px solid #f3d9c9;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
}
.acct-preview-label { font-size: 0.8rem; font-weight: 700; color: #555; display: flex; align-items: center; gap: 0.4rem; }
.acct-preview-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.acct-preview-pill {
  border: 1.5px solid #e3e6ea;
  background: #fff;
  color: #666;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.acct-preview-pill:hover { border-color: var(--clr-events-orange); color: var(--clr-events-orange); }
.acct-preview-pill.acct-preview-pill-active {
  background: var(--clr-events-orange);
  border-color: var(--clr-events-orange);
  color: #fff;
  box-shadow: 0 3px 10px -3px rgba(232, 97, 44, 0.6);
}
.acct-preview-note { font-size: 0.74rem; color: #aeb2b8; width: 100%; }

/* Status pills */
.acct-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.acct-pill-green { background: rgba(33, 186, 69, 0.12); color: #16863b; }
.acct-pill-gray { background: #eef0f3; color: #6b7480; }
.acct-pill-blue { background: rgba(37, 99, 184, 0.12); color: #1f5aa6; }
.acct-pill-red { background: rgba(219, 40, 40, 0.1); color: #d0201f; }
.acct-pill-orange { background: rgba(232, 97, 44, 0.12); color: var(--clr-events-orange); }
.acct-pill-purple { background: var(--clr-readonly-purple-light); color: var(--clr-readonly-purple-dark); }
.acct-pill-urgent { background: rgba(219, 40, 40, 0.14); color: #d0201f; font-weight: 700; }

.notif-item-urgent { border-left: 3px solid #d0201f; background: #fffaf9; }

/* Profile summary header */
.acct-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.acct-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-events-orange), #ffb27a);
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -4px rgba(232, 97, 44, 0.55);
}

/* Profile picture upload overlay — client-side preview only, see AccountSettings.tsx comment */
.acct-avatar-wrap { position: relative; flex-shrink: 0; }
.acct-avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: #5b6472;
  font-size: 0.68rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: color 0.15s, border-color 0.15s;
}
.acct-avatar-edit-btn:hover { color: var(--clr-events-orange); border-color: var(--clr-events-orange); }
.acct-avatar-edit-btn i.icon { margin: 0 !important; }
.acct-avatar-remove-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #eef0f3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: #d0201f;
  font-size: 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.acct-avatar-remove-btn i.icon { margin: 0 !important; }
.acct-profile-name { font-size: 1.15rem; font-weight: 700; color: #1c2530; }
.acct-profile-sub { font-size: 0.82rem; color: #8f97a3; margin-top: 4px; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* Read-only mini stat cards */
.acct-stat-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.acct-stat {
  flex: 1;
  min-width: 90px;
  background: #fbfbfc;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  text-align: center;
}
.acct-stat-num { font-size: 1.35rem; font-weight: 800; color: #1c2530; }
.acct-stat-label { font-size: 0.68rem; color: #9aa3af; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }

/* Moderation toggle rows */
.acct-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  background: #fbfbfc;
}
.acct-toggle-row-label { font-size: 0.88rem; font-weight: 600; color: #333; }
.acct-toggle-row-desc { font-size: 0.76rem; color: #9aa3af; margin-top: 2px; }

/* Staff-controlled toggles (Moderation tab) — same read-only language as disabled
   text fields elsewhere (light purple, inert), not just Semantic's default 0.5
   opacity dimming, so it's obvious at a glance these aren't the account holder's
   to change rather than looking like a temporarily-greyed-out interactive control. */
.acct-toggle-row.acct-toggle-row-disabled {
  background: var(--clr-readonly-purple-light);
  border-color: var(--clr-readonly-purple);
}
.acct-toggle-row-disabled .acct-toggle-row-label { color: var(--clr-readonly-purple-dark); }
.acct-toggle-row-disabled .acct-toggle-row-desc { color: var(--clr-readonly-purple); }
.acct-toggle-row-disabled .ui.toggle.checkbox {
  cursor: default !important;
  pointer-events: none;
}
.acct-toggle-row-disabled .ui.toggle.checkbox label,
.acct-toggle-row-disabled .ui.toggle.checkbox .box:after {
  opacity: 1 !important;
}
.acct-toggle-row-disabled .ui.toggle.checkbox input:checked ~ label::before {
  background-color: var(--clr-readonly-purple) !important;
}
.acct-toggle-row-disabled .ui.toggle.checkbox label::before {
  background-color: #d8d4e0 !important;
}

/* Upload control */
.acct-upload-row { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin-bottom: 0.75rem; }
.acct-upload-btn { border-radius: 8px 0 0 8px !important; margin: 0 !important; }
.acct-upload-filename {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1.5px solid #e3e6ea;
  border-left: none;
  border-radius: 0 8px 8px 0;
  background: #fbfbfc;
  color: #767c85;
  font-size: 13px;
  min-width: 170px;
}

/* Account Settings cards default to Semantic's very tight ~4.5px label-to-field
   gap, which reads as cramped once fields are this dense — give labels real
   breathing room and a touch more weight so they're easy to scan at a glance. */
.acct-card .ui.form .field > label,
.acct-card .ui.form .fields > .field > label {
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  color: #5b6472;
}
.acct-card .ui.form .field,
.acct-card .ui.form .fields > .field {
  margin-bottom: 1.1rem;
}

/* ── Payment methods list (Account Settings — Billing) ── */
.pm-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pm-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  background: #fbfbfc;
}
.pm-row.pm-row-primary {
  border-color: rgba(232, 97, 44, 0.4);
  background: #fff8f5;
}
.pm-radio { display: flex; align-items: center; flex-shrink: 0; }
.pm-icon { font-size: 1.3rem !important; color: #99a1ac; flex-shrink: 0; }
.pm-row-primary .pm-icon { color: var(--clr-events-orange); }
.pm-details { flex: 1; min-width: 0; }
.pm-details-top { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.pm-name { font-weight: 700; font-size: 0.92rem; color: #1c2530; }
.pm-last-four { font-size: 0.85rem; color: #767c85; letter-spacing: 0.03em; }
.pm-details-sub { font-size: 0.78rem; color: #9aa3af; margin-top: 3px; }
.pm-delete { font-size: 1.1rem !important; color: #c3c9d1; cursor: pointer; flex-shrink: 0; transition: color 0.15s; }
.pm-delete:hover { color: #d0201f; }
.pm-rename { font-size: 0.85rem !important; color: #c3c9d1; cursor: pointer; transition: color 0.15s; margin-left: 2px; }
.pm-rename:hover { color: var(--clr-events-orange); }
.pm-nickname-input {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1c2530;
  border: 1.5px solid var(--clr-events-orange);
  border-radius: 6px;
  padding: 2px 8px;
  min-width: 160px;
}

/* ── Small text-style nav links (e.g. Campaigns "Back to Events" / "View All Campaigns") ── */
.evt-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-events-orange);
  cursor: pointer;
}
.evt-link-btn:hover { text-decoration: underline; }
.evt-link-btn > .icon { margin: 0; }

/* ── Event Listing form (Add/Modify Listing) ── */
.evt-listing-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fbfbfc;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}
.evt-listing-summary > .icon { color: var(--clr-events-orange); margin-top: 2px; }
.evt-listing-summary-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; font-size: 0.8rem; color: #8f97a3; margin-top: 2px; }
.evt-listing-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff8f5;
  border: 1px solid #f3d9c9;
  border-radius: 10px;
}
.evt-listing-total-label { font-weight: 700; color: #5b6472; font-size: 0.85rem; }
.evt-listing-discount { color: #16863b; font-weight: 600; font-size: 0.8rem; margin-left: 8px; }
.evt-listing-total-sub { color: #8f97a3; font-size: 0.8rem; margin-top: 2px; }
.evt-listing-total-amount { font-weight: 800; font-size: 1.3rem; color: var(--clr-events-orange); }
.evt-listing-total-amount span { font-size: 0.8rem; font-weight: 400; color: #8f97a3; }

/* ── Guest nav bar (browse/login/register views when not signed in) ── */
.guest-nav-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.guest-nav-btn {
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.guest-nav-btn:hover {
  border-color: var(--clr-events-orange);
  color: var(--clr-events-orange);
  box-shadow: 0 2px 8px rgba(255,111,0,0.15);
}

.guest-nav-btn-orange {
  background: var(--clr-events-orange);
  border-color: var(--clr-events-orange);
  color: #fff;
}
.guest-nav-btn-orange:hover {
  background: var(--clr-events-orange-dark);
  border-color: var(--clr-events-orange-dark);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,111,0,0.35);
}

/* ── End Skeleton loading ────────────────────────────────────────────────── */

/* ============================================================
   LANDING PAGE — v2
   ============================================================ */

/* ── Reset / root ── */
.app-landing {
  background-color: #030d1a !important;
}

.lp-root {
  width: 100%;
  overflow-x: hidden;
}

/* ── Animations ── */
@keyframes lp-float-a {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-40px) scale(1.05); }
}
@keyframes lp-float-b {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(30px) scale(0.96); }
}
@keyframes lp-float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -25px) scale(1.03); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}
@keyframes lp-pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,111,0,0.35), 0 0 60px rgba(255,111,0,0.15); }
  50%       { box-shadow: 0 0 0 18px rgba(255,111,0,0), 0 0 80px rgba(255,111,0,0.25); }
}
@keyframes lp-badge-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255,111,0,0.3); }
  50%       { box-shadow: 0 0 22px rgba(255,111,0,0.65); }
}
@keyframes lp-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(8px); opacity: 1; }
}
@keyframes lp-connector-grow {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── Hero ── */
.lp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 0%, rgba(255,111,0,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(0,119,182,0.22) 0%, transparent 50%),
              linear-gradient(160deg, #030d1a 0%, #061528 40%, #071e38 100%);
}

/* Logo pinned top-left inside hero */
.lp-hero-logo {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  z-index: 2;
}

.lp-logo-img {
  height: 68px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* Orbs */
.lp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.lp-orb-1 {
  width: 520px; height: 520px;
  top: -140px; right: -120px;
  background: radial-gradient(circle, rgba(255,111,0,0.28) 0%, transparent 70%);
  animation: lp-float-a 9s ease-in-out infinite;
}
.lp-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -80px;
  background: radial-gradient(circle, rgba(0,119,182,0.32) 0%, transparent 70%);
  animation: lp-float-b 11s ease-in-out infinite;
}
.lp-orb-3 {
  width: 280px; height: 280px;
  top: 40%; left: 15%;
  background: radial-gradient(circle, rgba(123,47,247,0.18) 0%, transparent 70%);
  animation: lp-float-c 14s ease-in-out infinite;
}
.lp-orb-4 {
  width: 180px; height: 180px;
  top: 20%; right: 25%;
  background: radial-gradient(circle, rgba(255,152,0,0.2) 0%, transparent 70%);
  animation: lp-float-b 7s ease-in-out infinite 2s;
}
.lp-orb-5 {
  width: 350px; height: 350px;
  top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(255,111,0,0.22) 0%, transparent 70%);
  animation: lp-float-a 10s ease-in-out infinite 1s;
}
.lp-orb-6 {
  width: 250px; height: 250px;
  bottom: -60px; right: -40px;
  background: radial-gradient(circle, rgba(0,119,182,0.25) 0%, transparent 70%);
  animation: lp-float-b 8s ease-in-out infinite;
}

.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

/* Welcome badge */
.lp-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,111,0,0.12);
  border: 1px solid rgba(255,111,0,0.4);
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-events-orange);
  margin-bottom: 2.25rem;
  animation: lp-badge-glow 3s ease-in-out infinite;
}

.lp-welcome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-events-orange);
  box-shadow: 0 0 6px var(--clr-events-orange);
  flex-shrink: 0;
}

/* Hero title */
.lp-hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  margin-bottom: 1.75rem;
  line-height: 1.05;
}

.lp-title-line1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  display: block;
}

.lp-title-line2 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  display: block;
  background: linear-gradient(90deg, #ff6f00 0%, #ffb347 45%, #ff6f00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 2.75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA buttons */
.lp-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff6f00, #ff9800);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,111,0,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lp-btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255,111,0,0.6);
}
.lp-btn-primary i.icon { margin: 0 !important; }

.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.lp-btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-3px);
}
.lp-btn-ghost i.icon { margin: 0 !important; }

.lp-btn-wide { border-radius: 12px; padding: 1rem 2.5rem; }

.lp-btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #1a1a2e;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border: 2px solid rgba(26,26,46,0.35);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lp-btn-ghost-dark:hover {
  background: rgba(26,26,46,0.07);
  transform: translateY(-3px);
}
.lp-btn-ghost-dark i.icon { margin: 0 !important; }

.lp-btn-xl { font-size: 1.1rem !important; padding: 1rem 2.25rem !important; }

.lp-hero-signin {
  color: rgba(255,255,255,0.45);
  font-size: 0.92rem;
}

.lp-inline-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--clr-events-orange-light);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp-inline-link:hover { color: var(--clr-events-orange); }

/* Scroll hint */
.lp-hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  z-index: 1;
  animation: lp-scroll-bounce 2s ease-in-out infinite;
}
.lp-hero-scroll-hint i.icon { margin: 0 !important; font-size: 1.2rem !important; }

/* ── Hero live stat pill ── */
.lp-hero-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
}

.lp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  flex-shrink: 0;
  animation: lp-scroll-bounce 1.8s ease-in-out infinite;
}

.lp-live-count strong {
  color: #fff;
  font-weight: 700;
}

/* ── Hero event ticker ── */
.lp-ticker-wrap {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

@keyframes lp-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.lp-ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: lp-ticker-scroll linear infinite;
}

.lp-ticker-track:hover {
  animation-play-state: paused;
}

.lp-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.lp-ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-events-orange);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ── Stats bar ── */
.lp-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #fff;
  border-bottom: 2px solid #f0f0f0;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}

.lp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 3rem;
}

.lp-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--clr-events-orange);
  line-height: 1;
}

.lp-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.lp-stat-divider {
  width: 1px;
  height: 40px;
  background: #e8e8e8;
}

/* ── Shared section ── */
.lp-section {
  width: 100%;
  padding: 6rem 2rem;
}

.lp-section-dark {
  background: linear-gradient(160deg, #080f1e 0%, #0a1628 50%, #0d1f38 100%);
}

.lp-section-white {
  background: #fff;
}

.lp-section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.lp-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.lp-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ff6f00, #ff9800);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.lp-tag-dark {
  background: linear-gradient(135deg, #1a1a2e, #2c3e6b);
}

.lp-section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lp-title-light { color: #fff; }

.lp-section-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.lp-sub-muted { color: rgba(255,255,255,0.5); }

/* ── Role cards ── */
.lp-roles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

/* Seven role cards: one row on wide screens, then 4 + 3, 3 + 3 + 1, or a single column. A short last
   row is centered rather than left alone at the edge. */
.lp-roles-grid > .lp-role-card { flex: 0 0 calc((100% - 6 * 1.25rem) / 7); }
@media (max-width: 1240px) { .lp-roles-grid > .lp-role-card { flex-basis: calc((100% - 3 * 1.25rem) / 4); } }
@media (max-width: 700px) { .lp-roles-grid > .lp-role-card { flex-basis: calc((100% - 2 * 1.25rem) / 3); } }
@media (max-width: 480px) { .lp-roles-grid > .lp-role-card { flex-basis: 100%; } }

.lp-role-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 1.75rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  backdrop-filter: blur(6px);
}

.lp-role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.18);
}

.lp-role-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
}

.lp-role-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.lp-role-icon-wrap i.icon {
  color: #fff !important;
  margin: 0 !important;
  font-size: 1.15rem !important;
}

.lp-role-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}

.lp-role-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

.lp-role-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}
.lp-role-btn:hover { opacity: 0.88; transform: scale(1.04); }

/* ── Steps ── */
.lp-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.lp-step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.lp-step-connector {
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
  flex-shrink: 0;
  width: 60px;
}
.lp-step-connector-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--clr-events-orange), rgba(255,111,0,0.2));
  border-radius: 2px;
}

.lp-step-num {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,111,0,0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.lp-step-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,111,0,0.15), rgba(255,152,0,0.08));
  border: 1.5px solid rgba(255,111,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  animation: lp-pulse-ring 3.5s ease-in-out infinite;
}
.lp-step-icon-wrap i.icon {
  color: var(--clr-events-orange) !important;
  margin: 0 !important;
}

.lp-step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 0.6rem;
}

.lp-step-detail {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* ── Calendar callout ── */
.lp-cal-callout {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,111,0,0.18) 0%, transparent 60%),
              linear-gradient(135deg, #030d1a 0%, #071e38 100%);
  padding: 6rem 2rem;
  text-align: center;
}

.lp-cal-callout-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.lp-cal-icon-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,111,0,0.12);
  border: 2px solid rgba(255,111,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lp-pulse-ring 3s ease-in-out infinite;
}
.lp-cal-icon-ring i.icon {
  color: var(--clr-events-orange) !important;
  margin: 0 !important;
}

.lp-cal-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.lp-cal-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Final CTA ── */
.lp-final-cta {
  background: #f6f7fb;
  padding: 7rem 2rem;
  text-align: center;
}

.lp-final-cta-inner {
  max-width: 760px;
  margin: 0 auto;
}

.lp-final-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lp-orange-text {
  background: linear-gradient(90deg, #ff6f00, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-final-sub {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.lp-final-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .lp-steps { flex-direction: column; align-items: center; gap: 2.5rem; }
  .lp-step-connector { display: none; }
  .lp-stat { padding: 0 1.5rem; }
}

@media (max-width: 700px) {
  .lp-hero { min-height: 80vh; padding: 6rem 1.25rem 4rem; }
  .lp-section { padding: 4rem 1.25rem; }
  .lp-stats-bar { gap: 1rem; }
  .lp-stat { padding: 0.5rem 1rem; }
  .lp-stat-divider { display: none; }
  .lp-cal-callout { padding: 4rem 1.25rem; }
  .lp-final-cta { padding: 5rem 1.25rem; }
}

@media (max-width: 480px) {
  .lp-hero-actions { flex-direction: column; align-items: center; }
  .lp-btn-primary, .lp-btn-ghost { width: 100%; justify-content: center; }
}

/* ── Event graphic + headline (Add Event preview, Event Details and listing popups) ──
   Event graphics are square (640x640) art, so the graphic is always a square tile beside
   the event's text - never stretched into a banner with the text laid over it. The fill
   reuses the .banner-bg-swatch bbg-* backgrounds. */
.evt-hero {
  --evt-graphic-size: 180px;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
/* Wraps the graphic tile and (when there's one) the Enhanced Listing logo tile, so both stay
   one unit at the left of the hero row. align-items: flex-start (not the flex default,
   stretch) is required here - stretch plus aspect-ratio on two siblings with no explicit
   height feeds back on itself (each tries to stretch to match the other's aspect-derived
   size) and both tiles balloon past their real size. Explicit heights via the shared
   --evt-graphic-size variable below sidestep that entirely. */
.evt-graphic-group { display: flex; align-items: flex-start; gap: 0.6rem; }
.evt-graphic {
  position: relative;
  flex: 0 0 auto;
  width: var(--evt-graphic-size);
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid #e3e6ea;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 20px -12px rgba(16, 24, 40, 0.35);
}
/* Mockup only - no real logo upload exists yet (see utils/dummyLogos.ts). Confirmed spec:
   "allow 2x width but same height as the Graphic" - a fixed box, not just a wider cap. Height
   is the same --evt-graphic-size the graphic tile uses (one number, not duplicated); aspect-
   ratio: 2/1 derives the width from that height, so the 2x relationship holds automatically. */
.evt-logo-tile {
  flex: 0 0 auto;
  height: var(--evt-graphic-size);
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid #e3e6ea;
  background-color: #fff;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 20px -12px rgba(16, 24, 40, 0.35);
}
.evt-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Level-of-play box (ES / HS / JC / Univ / Minor / Pro) - only sport/activity Event Types
   that actually carry a level get one (see utils/eventLevel.ts). */
.evt-level-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 30px;
  padding: 3px 7px;
  border: 1.5px solid #fff;
  border-radius: 6px;
  background: var(--clr-events-orange);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.35);
}
.evt-level-picker { margin: 0.5rem 0 1.25rem; }
.evt-level-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .evt-level-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.evt-level-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 4px;
  background: #fff;
  border: 1.5px solid #d0d5dc;
  border-radius: 8px;
  cursor: pointer;
  color: #445;
  transition: border-color 0.12s, background 0.12s;
}
.evt-level-btn:hover { border-color: var(--clr-events-orange); }
.evt-level-btn.selected { border-color: var(--clr-events-orange); background: #fff1e8; }
.evt-level-code { font-weight: 800; font-size: 0.95rem; }
.evt-level-btn.selected .evt-level-code { color: var(--clr-events-orange); }
.evt-level-name { font-size: 0.66rem; color: #6b7480; text-align: center; line-height: 1.15; }
/* Real art is a transparent-background icon illustration, not a full-bleed photo - a soft
   fill behind it (instead of flat white) plus a little breathing room reads as a designed
   tile rather than a cut-out floating on an empty square. */
.evt-graphic-fill {
  background: linear-gradient(160deg, #f4f6f9 0%, #e9edf3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}
.evt-graphic-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.evt-hero-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.evt-hero-preview {
  --evt-graphic-size: 160px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px -14px rgba(16, 24, 40, 0.25);
}
.evt-preview-badge {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff1e8;
  color: var(--clr-events-orange);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.evt-preview-badge > .icon { margin: 0; }
.evt-tab-count {
  background: var(--clr-events-orange);
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 4px;
}
.acct-tab-btn.acct-tab-btn-active .evt-tab-count { background: rgba(255, 255, 255, 0.3); }
.evt-preview-name { font-size: 1.3rem; font-weight: 800; color: #1c2530; line-height: 1.25; overflow-wrap: anywhere; }
.evt-preview-meta { font-size: 0.85rem; color: #5a6472; margin-top: 4px; }
.evt-preview-desc {
  font-size: 0.85rem;
  color: #444;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* ── Event Details popup (EventSelection's "Details" button, calendar listing popup) ──
   The event hero sits at the top of the popup instead of the plain header bar most
   .cal-popup instances use; right padding leaves room for the close button. */
/* Wider than the .cal-popup.wide default (640px) - a graphic tile plus an optional, wider
   logo tile plus the text info need more room than the square-graphic-only layout did.
   Needs the doubled-up selector to out-specificity .cal-popup.wide's own max-width. */
.evt-detail-popup { padding: 0; }
.cal-popup.wide.evt-detail-popup { max-width: 920px; }
.evt-detail-popup .evt-hero { padding: 1.5rem 3.25rem 0 1.5rem; }
.evt-detail-popup .evt-detail-body { padding-top: 1.25rem; }
@media (max-width: 520px) {
  .evt-hero { flex-direction: column; align-items: stretch; }
  .evt-graphic-group { flex-direction: column; align-items: center; }
  .evt-graphic, .evt-hero-preview .evt-graphic { width: 100%; max-width: 260px; align-self: center; }
  /* Stacked below the graphic - width matches the graphic's own cap, height follows from the
     same 2/1 aspect-ratio rather than a separate hardcoded number. */
  .evt-logo-tile { max-width: 260px; width: 100%; height: auto; }
  /* Stacked, so the close button floats over the tile's corner and the tile can stay centered. */
  .evt-detail-popup .evt-hero { padding-right: 1.5rem; }
}
.evt-detail-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}
.evt-detail-close:hover { background: rgba(0, 0, 0, 0.55); }
.evt-detail-body { padding: 1.5rem; }
.evt-detail-section { margin-top: 1.25rem; }
.evt-detail-section:first-child { margin-top: 0; }
.evt-detail-venue { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: #222; }
.evt-detail-venue > .icon { color: var(--clr-events-orange); margin-top: 3px; flex-shrink: 0; }
.evt-detail-schedule-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #333;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.evt-detail-schedule-row:last-child { border-bottom: none; }
.evt-detail-schedule-row > .icon { color: #888; }
.evt-detail-desc {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.55;
  background: #fbfbfc;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0;
}
.evt-detail-footer { padding: 1rem 1.5rem 1.5rem; margin-top: 0 !important; }


/* ── Consent checkbox ── */
.auth-check {
  padding: 0.75rem 1rem;
  background: #fbfbfc;
  border: 1.5px solid #e3e6ea;
  border-radius: 8px;
}
.auth-check.auth-check-on { border-color: var(--clr-events-orange); }
.auth-check .ui.checkbox label { line-height: 1.45; color: #1c2530; }

/* Scrollable Terms and Conditions text on Create Account */
.terms-box {
  max-height: 130px;
  overflow-y: auto;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  background: #fbfbfc;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
}
.terms-box p { margin: 0 0 0.5rem; }
.terms-box p:last-child { margin-bottom: 0; }
.terms-box-modal { max-height: 50vh; }

/* ── List paging (shared/ListPagination.tsx) ── */
.list-pager-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; font-size: 0.85rem; color: #5b6472; }
.list-pager-size .ui.dropdown { font-weight: 700; color: #1b3a5c; }
.list-pager-pages { display: flex; justify-content: center; margin-top: 1.1rem; }
.list-pager-pages .ui.pagination.menu { flex-wrap: wrap; box-shadow: none; border: 1px solid #e3e6ea; }
.list-pager-pages .ui.pagination.menu .item { color: #5b6472; }
.list-pager-pages .ui.pagination.menu .active.item { background: var(--clr-events-orange); color: #fff; font-weight: 700; }

/* "Cancelled" band across a campaign that was cancelled but is still showing (the ad slots clip it) */
.cancelled-ribbon {
	position: absolute;
	top: 50%;
	left: -4%;
	width: 108%;
	transform: translateY(-50%) rotate(-6deg);
	padding: 0.2em 0;
	background: rgba(208, 32, 31, 0.92);
	color: #fff;
	text-align: center;
	font-size: clamp(9px, 1.3vw, 16px);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	pointer-events: none;
	z-index: 3;
}
/* The same band across the top-left corner, clear of the text beside it */
.cancelled-ribbon.cancelled-ribbon-corner {
	top: 26px;
	left: -42px;
	width: 160px;
	transform: rotate(-45deg);
	font-size: 12px;
	letter-spacing: 0.14em;
}

/* ============================================================
   PHONE FIXES (from the Free Beta test): nothing may be wider than the screen
   ============================================================ */
/* The landing hero was sized by its scrolling ticker (5,000px of text), pushing the headline and buttons off the screen. */
.lp-hero-inner { width: 100%; min-width: 0; box-sizing: border-box; }
.lp-ticker-wrap { max-width: 100%; }
/* Account-type chips wrap onto more lines instead of running off both edges. */
.role-chip-group { flex-wrap: wrap; }
/* Seven equal calendar columns however long an event's name is. */
.cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day { min-width: 0; }
.cal-nav { flex-wrap: wrap; row-gap: 0.4rem; }
.cal-count { white-space: nowrap; }
@media (max-width: 600px) {
	/* A chip's help text sits at the bottom of the screen, as wide as the screen allows. */
	.role-chip-tooltip,
	.role-chip-wrap:nth-child(-n+2) .role-chip-tooltip,
	.role-chip-wrap:nth-last-child(-n+2) .role-chip-tooltip {
		position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; width: auto; transform: none;
	}
	.role-chip-tooltip::after { display: none; }
	.cal-legend-popup { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; min-width: 0; }
	/* The menu button sits where the name was, so the name gives way to the icon. */
	.user-menu-name { display: none; }
}
/* The app fills the window: without a height on the root, the blue (or dark landing) background stopped where the content
   ended and a white band showed underneath on tall screens. */
#root { height: 100%; }
/* No ads, no reserved strip: the page ends where its content does. */
.app.app-no-ads { padding-bottom: 0; }

/* ============================================================
   FORM MESSAGES: sign-up rules and inline problems (Beta feedback batch 2)
   ============================================================ */
.pw-rules { list-style: none; margin: -0.35rem 0 0.9rem; padding: 0; text-align: left; font-size: 0.82rem; }
.pw-rules li { display: flex; align-items: center; gap: 0.35rem; padding: 1px 0; }
.pw-rules .icon { margin: 0; }
.pw-rules .pw-unmet { color: #8f97a3; }
.pw-rules .pw-met { color: #16863b; }
.field-error-text { margin-top: 0.4rem; text-align: left; font-size: 0.85rem; font-weight: 600; color: #d0201f; }
/* A mail address is shown as typed, not in capitals (the dropdown header uppercases its text). */
.ui.dropdown.user-menu .menu > .header { text-transform: none !important; letter-spacing: normal !important; }
/* A short line saying why a button is greyed out, shown on the page and not only on hover (which a phone never has). */
.disabled-reason { margin: 0.5rem 0 0; font-size: 0.85rem; color: #5b6472; }
.disabled-reason .icon { margin-right: 0.3rem; color: #8f97a3; }
/* The reason a canceled event was canceled, under its status in the Events table. */
.cancel-reason-note { margin-top: 0.35rem; max-width: 220px; font-size: 0.78rem; color: #5b6472; white-space: normal; overflow-wrap: anywhere; }

/* ── Landing page: "Coming up on EventsRUs" row ── */
.lp-section-soft { background: #f4f7fb; padding: 4.5rem 2rem; }
.lp-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.lp-upcoming-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: #0a1628;
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lp-upcoming-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(10,22,40,0.14); }
.lp-upcoming-card:focus-visible { outline: 3px solid #ff6f00; outline-offset: 2px; }
.lp-upcoming-pic {
  flex: 0 0 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef7;
  color: #7a8aa3;
}
.lp-upcoming-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-upcoming-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; padding: 0.85rem 1rem; }
.lp-upcoming-type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #c25800; }
.lp-upcoming-name { font-size: 1.05rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.lp-upcoming-meta { font-size: 0.88rem; color: #4a5870; }
.lp-upcoming-meta i.icon { margin-right: 0.35rem; color: #7a8aa3; }
.lp-upcoming-more { display: flex; justify-content: center; margin-top: 2rem; }

/* ── Landing page: footer ── */
.lp-footer { background: #080f1e; color: #aab6c8; padding: 2rem; }
.lp-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.lp-footer-brand { display: flex; flex-direction: column; gap: 0.15rem; }
.lp-footer-brand strong { color: #fff; font-size: 1.05rem; }
.lp-footer-brand span { font-size: 0.82rem; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.lp-footer-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.92rem;
  color: #d5deeb;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lp-footer-link:hover { color: #fff; }
.lp-footer-link:focus-visible { outline: 2px solid #ff9800; outline-offset: 3px; }
.lp-footer-copy { flex-basis: 100%; font-size: 0.8rem; }

@media (max-width: 600px) {
  .lp-section-soft { padding: 3rem 1rem; }
  .lp-upcoming-grid { grid-template-columns: 1fr; }
  .lp-upcoming-pic { flex-basis: 80px; }
  .lp-footer { padding: 1.5rem 1rem; }
}

/* ── Accessibility (round-2 testing) ── */
/* The keyboard can always see where it is. */
button:focus-visible, a:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .ui.dropdown:focus-visible {
  outline: 3px solid #0b57d0;
  outline-offset: 2px;
}

/* Anyone who asks their system for less motion gets none: the ticker, fades, slides and hover lifts. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .lp-ticker-track { animation: none !important; }
}
