:root {
	--bg-0: #020617;
	--bg-1: #0f172a;
	--panel: rgba(15, 23, 42, 0.52);
	--panel-strong: rgba(15, 23, 42, 0.72);
	--panel-soft: rgba(15, 23, 42, 0.38);
	--line: rgba(255, 255, 255, 0.1);
	--line-strong: rgba(129, 140, 248, 0.45);
	--text: #f8fafc;
	--muted: #94a3b8;
	--accent: #818cf8;
	--accent-alt: #a78bfa;
	--ok: #34d399;
	--danger: #fb7185;
	--shadow-soft: 0 20px 50px rgba(2, 6, 23, 0.45);
	--shadow-strong: 0 24px 60px rgba(2, 6, 23, 0.6);
}

/* minor update */

:root[data-theme="light"] {
	--bg-0: #f8fafc;
	--bg-1: #e2e8f0;
	--panel: rgba(255, 255, 255, 0.78);
	--panel-strong: rgba(255, 255, 255, 0.9);
	--panel-soft: rgba(248, 250, 252, 0.86);
	--line: rgba(15, 23, 42, 0.14);
	--line-strong: rgba(79, 70, 229, 0.45);
	--text: #0f172a;
	--muted: #475569;
	--accent: #4f46e5;
	--accent-alt: #6366f1;
	--shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
	--shadow-strong: 0 24px 52px rgba(15, 23, 42, 0.16);
}

:root[data-theme="light"] body {
	background:
		radial-gradient(1200px circle at 0% -10%, rgba(99, 102, 241, 0.18), transparent 48%),
		radial-gradient(1000px circle at 100% 0%, rgba(14, 165, 233, 0.14), transparent 45%),
		radial-gradient(900px circle at 50% 120%, rgba(99, 102, 241, 0.1), transparent 42%),
		linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

:root[data-theme="light"] body::before {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 42%);
}

* {
	box-sizing: border-box;
}

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

html,
body {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	overflow-x: hidden;
	padding-left: env(safe-area-inset-left);
	padding-right: env(safe-area-inset-right);
	font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
	line-height: 1.55;
	color: var(--text);
	background:
		radial-gradient(1200px circle at 0% -10%, rgba(99, 102, 241, 0.28), transparent 48%),
		radial-gradient(1000px circle at 100% 0%, rgba(167, 139, 250, 0.22), transparent 45%),
		radial-gradient(900px circle at 50% 120%, rgba(56, 189, 248, 0.12), transparent 42%),
		linear-gradient(180deg, #020617 0%, #060f24 100%);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%);
	z-index: -1;
}

h1,
h2,
h3,
h4,
h5 {
	margin: 0;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -0.02em;
}

h1 {
	font-size: clamp(2rem, 3vw, 3.1rem);
	letter-spacing: -0.04em;
}

h2 {
	font-size: clamp(1.4rem, 2vw, 1.8rem);
}

h3 {
	font-size: 1.12rem;
}

h4,
h5 {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
}

button,
input,
select,
textarea {
	font-family: inherit;
}

button {
	border: 1px solid transparent;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(129, 140, 248, 0.9), rgba(167, 139, 250, 0.95));
	color: #eef2ff;
	max-width: 100%;
	padding: 10px 16px;
	font-size: 0.9rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	touch-action: manipulation;
	transition: transform 160ms ease, box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
	box-shadow: 0 12px 26px rgba(79, 70, 229, 0.25);
}

button:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px rgba(79, 70, 229, 0.32), inset 0 0 15px rgba(255, 255, 255, 0.2);
	filter: brightness(1.05);
}

button:active {
	transform: translateY(0);
}

.delete-event {
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.95));
	box-shadow: 0 12px 26px rgba(239, 68, 68, 0.25);
	color: white;
}

.delete-event:hover {
	box-shadow: 0 16px 30px rgba(239, 68, 68, 0.32), inset 0 0 15px rgba(255, 255, 255, 0.2);
}

input,
select {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	color: var(--text);
	font-size: 0.95rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(15, 23, 42, 0.48);
	outline: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input::placeholder {
	color: rgba(148, 163, 184, 0.92);
}

input:focus,
select:focus {
	border-color: var(--line-strong);
	box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
	background: rgba(15, 23, 42, 0.7);
}

a {
	color: #c7d2fe;
	text-decoration: none;
	border-bottom: 1px dashed rgba(199, 210, 254, 0.4);
	transition: border-color 180ms ease, color 180ms ease;
}

a:hover {
	color: #e0e7ff;
	border-bottom-color: rgba(224, 231, 255, 0.8);
}

:root[data-theme="light"] input,
:root[data-theme="light"] select {
	background: rgba(255, 255, 255, 0.86);
	color: var(--text);
}

:root[data-theme="light"] input::placeholder {
	color: rgba(71, 85, 105, 0.82);
}

:root[data-theme="light"] input:focus,
:root[data-theme="light"] select:focus {
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

:root[data-theme="light"] a {
	color: #4338ca;
	border-bottom-color: rgba(67, 56, 202, 0.4);
}

:root[data-theme="light"] a:hover {
	color: #312e81;
	border-bottom-color: rgba(49, 46, 129, 0.62);
}

:root[data-theme="light"] .mode-control,
:root[data-theme="light"] .profile-card,
:root[data-theme="light"] .search-shell,
:root[data-theme="light"] .table-wrap,
:root[data-theme="light"] .block,
:root[data-theme="light"] .console,
:root[data-theme="light"] .toast {
	background: rgba(255, 255, 255, 0.86);
}

:root[data-theme="light"] .console {
	color: #0f172a;
	box-shadow: inset 0 2px 10px rgba(148, 163, 184, 0.28);
}

:root[data-theme="light"] .search-shortcut {
	color: #334155;
	background: rgba(255, 255, 255, 0.88);
	border-color: rgba(15, 23, 42, 0.18);
}

:root[data-theme="light"] .side-nav-link {
	color: #4338ca;
}

:root[data-theme="light"] .side-nav-link:hover {
	color: #0f172a;
	background: rgba(79, 70, 229, 0.08);
}

:root[data-theme="light"] .side-nav-link.active {
	color: #312e81;
}

:root[data-theme="light"] .pill {
	color: #1e293b;
	background: rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] label,
:root[data-theme="light"] th,
:root[data-theme="light"] .made-by {
	color: #334155;
}

:root[data-theme="light"] .mobile-menu-btn {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(79, 70, 229, 0.42);
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

:root[data-theme="light"] .mobile-menu-bar {
	background: #3730a3;
}

:root[data-theme="light"] .mobile-menu-backdrop {
	background: rgba(15, 23, 42, 0.22);
}

:root[data-theme="light"] .mini-card.accent {
	background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(255, 255, 255, 0.92));
}

:root[data-theme="light"] .event-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
	border-color: rgba(15, 23, 42, 0.12);
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .event-card::before {
	background: radial-gradient(circle, rgba(79, 70, 229, 0.24), transparent 70%);
}

:root[data-theme="light"] .event-card:hover {
	border-color: rgba(79, 70, 229, 0.4);
	box-shadow: 0 18px 34px rgba(79, 70, 229, 0.16);
}

img,
svg {
	max-width: 100%;
	height: auto;
}

:where(p, li, h1, h2, h3, h4, h5, td, th, .muted, .profile-name, .profile-meta, .event-card-copy, .widget-note, .made-by) {
	overflow-wrap: anywhere;
}

.app-shell {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	min-height: 100vh;
	gap: 22px;
	padding: 20px;
	align-items: start;
}

.mobile-menu-btn,
.mobile-menu-backdrop {
	display: none;
}

.mobile-menu-btn {
	position: fixed;
	top: calc(12px + env(safe-area-inset-top));
	left: calc(12px + env(safe-area-inset-left));
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 12px;
	border: 1px solid rgba(129, 140, 248, 0.5);
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 12px 26px rgba(2, 6, 23, 0.52);
	z-index: 220;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.mobile-menu-bar {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 999px;
	background: #c7d2fe;
	transition: transform 220ms ease, opacity 220ms ease;
	transform-origin: center;
}

.mobile-menu-btn.is-open .mobile-menu-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open .mobile-menu-bar:nth-child(2) {
	opacity: 0;
}

.mobile-menu-btn.is-open .mobile-menu-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-backdrop {
	position: fixed;
	inset: 0;
	border: 0;
	background: rgba(2, 6, 23, 0.6);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
	z-index: 200;
	padding: 0;
	box-shadow: none;
	cursor: default;
}

.mobile-menu-backdrop.show {
	opacity: 1;
	pointer-events: auto;
}

.sidebar {
	position: sticky;
	top: 20px;
	height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--panel-strong);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: var(--shadow-strong);
	overflow: hidden;
}

.sidebar::after {
	content: "";
	position: absolute;
	inset: auto -20% -30% -20%;
	height: 40%;
	background: radial-gradient(circle at 50% 0%, rgba(129, 140, 248, 0.3), transparent 68%);
	pointer-events: none;
}

.sidebar-inner {
	position: relative;
	z-index: 1;
}

.brand-lockup {
	display: grid;
	gap: 4px;
	margin-bottom: 20px;
}

.brand-mark {
	font-size: 1.52rem;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.brand-sub {
	font-size: 0.72rem;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-weight: 700;
}

.profile-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: rgba(15, 23, 42, 0.55);
	margin-bottom: 20px;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.avatar {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #dbeafe, #c4b5fd);
	color: #0f172a;
	font-weight: 800;
	font-size: 0.9rem;
}

.profile-name {
	margin: 0;
	font-size: 0.93rem;
	font-weight: 700;
}

.profile-meta {
	margin: 3px 0 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.side-nav {
	display: grid;
	gap: 10px;
}

.side-nav-link {
	position: relative;
	width: 100%;
	justify-content: flex-start;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid transparent;
	background: transparent;
	box-shadow: none;
	color: #a5b4fc;
	font-weight: 600;
	gap: 10px;
}

.side-nav-link:hover {
	border-color: var(--line);
	background: rgba(255, 255, 255, 0.03);
	transform: none;
	box-shadow: none;
	color: #e2e8f0;
}

.side-nav-link.active {
	border-color: rgba(129, 140, 248, 0.42);
	background: rgba(129, 140, 248, 0.14);
	color: #e0e7ff;
}

.side-nav-link.active::before {
	content: "";
	position: absolute;
	left: -14px;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 30px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--accent), var(--accent-alt));
	box-shadow: 0 0 24px rgba(129, 140, 248, 0.55);
}

.nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	opacity: 0.9;
}

.nav-icon svg,
.search-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mode-control {
	position: relative;
	z-index: 1;
	padding: 14px;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: rgba(15, 23, 42, 0.58);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.mini-label,
.section-kicker,
.eyebrow,
.topbar-search > span,
.stat-label,
.widget-label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.sidebar-cta {
	position: relative;
	width: 100%;
	padding: 11px 14px 11px 44px;
	justify-content: flex-start;
	border-radius: 999px;
	border: 1px solid rgba(129, 140, 248, 0.5);
	background: rgba(99, 102, 241, 0.24);
	box-shadow: none;
}

.toggle-knob {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(224, 231, 255, 0.9);
	transition: transform 220ms ease, background 220ms ease;
}

.toggle-text {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.sidebar-cta.is-organizer {
	background: rgba(79, 70, 229, 0.54);
	border-color: rgba(167, 139, 250, 0.65);
}

.sidebar-cta.is-organizer .toggle-knob {
	transform: translate(12px, -50%);
	background: #c4b5fd;
}

.workspace {
	min-width: 0;
	display: grid;
	gap: 22px;
	padding: 4px 0 0;
}

.topbar-copy,
.section-head > div,
.card-head > h2,
.card-head > p {
	min-width: 0;
}

.topbar {
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 24px;
	background: var(--panel);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: var(--shadow-soft);
}

.topbar-actions {
	margin-top: 14px;
	display: flex;
	justify-content: flex-end;
}

.theme-toggle {
	position: relative;
	padding: 10px 14px 10px 44px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(15, 23, 42, 0.42);
	color: var(--text);
	box-shadow: none;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.theme-toggle::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f8fafc, #cbd5e1);
	transition: transform 220ms ease, background 220ms ease;
}

.theme-toggle[aria-pressed="true"]::before {
	transform: translate(10px, -50%);
	background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.theme-toggle:hover {
	transform: none;
	filter: none;
	box-shadow: none;
	border-color: var(--line-strong);
}

.theme-toggle:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.24);
}

.theme-toggle-label {
	white-space: nowrap;
}

:root[data-theme="light"] .theme-toggle {
	background: rgba(255, 255, 255, 0.88);
}

.topbar-copy {
	position: relative;
	padding-right: 210px;
}

.made-by {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	line-height: 1.5;
	color: var(--muted);
	text-align: right;
}

.topbar h1 {
	margin: 10px 0 8px;
}

.sub {
	margin: 0;
	font-size: 1rem;
	color: var(--muted);
	max-width: 760px;
}

.topbar-search {
	margin-top: 20px;
	display: grid;
	gap: 8px;
	max-width: 760px;
}

.search-shell {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 10px 0 14px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: rgba(15, 23, 42, 0.48);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-shell:focus-within {
	border-color: var(--line-strong);
	box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
	background: rgba(15, 23, 42, 0.72);
}

.search-icon {
	color: var(--muted);
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.search-shell input {
	padding: 0;
	min-height: unset;
	min-width: 0;
	width: 100%;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 0.98rem;
}

.search-shell input:focus {
	box-shadow: none;
	background: transparent;
}

.search-shortcut {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #cbd5e1;
	background: rgba(15, 23, 42, 0.7);
	white-space: nowrap;
}

.dashboard {
	display: grid;
	gap: 24px;
	padding-bottom: 24px;
}

.hero-panel,
.card,
.mini-card,
.block,
.mini-widget,
.table-wrap,
.event-card {
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.hero-panel {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 20px;
	padding: 24px;
	border-radius: 24px;
	border: 1px solid var(--line);
	background: var(--panel);
	box-shadow: var(--shadow-soft);
}

.hero-chip-wrap {
	display: grid;
	gap: 10px;
	justify-items: end;
}

.hero-chip {
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid rgba(129, 140, 248, 0.44);
	background: rgba(129, 140, 248, 0.14);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #e0e7ff;
}

.hero-live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #bbf7d0;
}

.hero-live-dot,
.live-dot {
	position: relative;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ok);
	box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
	animation: pulse 1.8s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
	}
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.mini-widget {
	padding: 18px;
	border-radius: 20px;
	border: 1px solid var(--line);
	background: var(--panel);
	box-shadow: var(--shadow-soft);
	display: grid;
	gap: 12px;
}

.widget-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.widget-value {
	font-size: clamp(1.8rem, 2.8vw, 2.6rem);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.widget-note {
	margin: 0;
	color: var(--muted);
	font-size: 0.86rem;
}

.live-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #bbf7d0;
	border: 1px solid rgba(52, 211, 153, 0.4);
	background: rgba(16, 185, 129, 0.14);
}

.widget-progress {
	position: relative;
	height: 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.widget-progress-fill {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--accent), var(--accent-alt));
	transition: width 260ms ease;
}

.sparkline {
	display: flex;
	align-items: end;
	gap: 5px;
	height: 34px;
}

.sparkline-bar {
	width: 6px;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(129, 140, 248, 1), rgba(167, 139, 250, 0.7));
	opacity: 0.9;
}

.feature-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.82fr);
	gap: 16px;
	align-items: start;
}

.card,
.feature-card {
	padding: 24px;
	border-radius: 24px;
	border: 1px solid var(--line);
	background: var(--panel);
	box-shadow: var(--shadow-soft);
}

.section-head,
.card-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: end;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.section-head > *,
.card-head > * {
	min-width: 0;
}

.featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(230px, 1fr);
	grid-auto-rows: minmax(220px, auto);
	gap: 16px;
}

.event-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	border-radius: 20px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.3));
	box-shadow: var(--shadow-soft);
	transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms ease, border-color 150ms ease;
	transform-style: preserve-3d;
	perspective: 1200px;
}

.event-card::before {
	content: "";
	position: absolute;
	inset: -40% 38% auto auto;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(129, 140, 248, 0.35), transparent 70%);
	opacity: 0;
	transition: opacity 240ms ease;
	pointer-events: none;
}

.event-card:hover {
	transform: translateY(-6px) scale(1.02);
	border-color: rgba(129, 140, 248, 0.62);
	box-shadow: 0 28px 52px rgba(67, 56, 202, 0.35);
}

.event-card.is-tilting {
	transition: box-shadow 150ms ease, border-color 150ms ease;
}

.event-card:hover::before {
	opacity: 1;
}

.event-card-large {
	grid-row: span 2;
}

.event-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.event-card h3 {
	font-size: 1.16rem;
	line-height: 1.3;
}

.event-card-copy {
	margin: 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.event-card-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.event-card-meta div {
	display: grid;
	gap: 3px;
}

.event-card-meta span {
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.event-card-meta strong {
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.35;
}

.event-card-footer {
	margin-top: auto;
	display: flex;
	justify-content: flex-end;
}

.stack-panel {
	display: grid;
	gap: 16px;
}

.mini-card {
	padding: 20px;
	border-radius: 20px;
	border: 1px solid var(--line);
	background: var(--panel);
	box-shadow: var(--shadow-soft);
}

.mini-card.accent {
	background: linear-gradient(160deg, rgba(99, 102, 241, 0.2), rgba(15, 23, 42, 0.58));
	border-color: rgba(129, 140, 248, 0.34);
}

.mini-actions {
	display: grid;
	gap: 10px;
}

.mini-actions button {
	width: 100%;
}

.muted {
	margin: 0;
	color: var(--muted);
}

.filters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
	gap: 14px;
	align-items: end;
	margin-bottom: 20px;
}

label {
	display: grid;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #e2e8f0;
}

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(15, 23, 42, 0.42);
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

table {
	width: 100%;
	min-width: 930px;
	border-collapse: separate;
	border-spacing: 0;
}

th,
td {
	padding: 14px 16px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
	font-size: 0.88rem;
}

th {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: #cbd5e1;
	background: rgba(255, 255, 255, 0.03);
}

th:first-child {
	border-top-left-radius: 18px;
}

th:last-child {
	border-top-right-radius: 18px;
}

tr:last-child td {
	border-bottom: 0;
}

tbody tr {
	transition: background 180ms ease;
}

tbody tr:hover {
	background: rgba(129, 140, 248, 0.08);
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 16px;
	margin: 16px 0 22px;
	border-bottom: 1px solid var(--line);
}

.tab {
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.02);
	color: var(--muted);
	box-shadow: none;
}

.tab:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #f1f5f9;
	box-shadow: none;
	transform: none;
}

.tab.active {
	color: #e0e7ff;
	border-color: rgba(129, 140, 248, 0.62);
	background: rgba(129, 140, 248, 0.2);
}

.panel {
	display: none;
}

.panel.active {
	display: block;
	animation: panelIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.block {
	display: grid;
	gap: 12px;
	margin-top: 14px;
	padding: 18px;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: rgba(15, 23, 42, 0.45);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.hidden {
	display: none;
}

.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid var(--line);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: rgba(255, 255, 255, 0.04);
	color: #dbeafe;
}

.status-delayed {
	color: #fecaca;
	border-color: rgba(251, 113, 133, 0.4);
	background: rgba(251, 113, 133, 0.14);
}

:root[data-theme="light"] .status-delayed {
	color: #b91c1c;
	border-color: rgba(225, 29, 72, 0.4);
	background: rgba(225, 29, 72, 0.12);
}

.status-expected {
	color: #fde68a;
	border-color: rgba(245, 158, 11, 0.4);
	background: rgba(245, 158, 11, 0.14);
}

:root[data-theme="light"] .status-expected {
	color: #b45309;
	border-color: rgba(217, 119, 6, 0.4);
	background: rgba(217, 119, 6, 0.12);
}

.status-scheduled {
	color: #bbf7d0;
	border-color: rgba(52, 211, 153, 0.4);
	background: rgba(16, 185, 129, 0.14);
}

:root[data-theme="light"] .status-scheduled {
	color: #047857;
	border-color: rgba(5, 150, 105, 0.4);
	background: rgba(5, 150, 105, 0.12);
}

.open-link,
.delete-event {
	max-width: 100%;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 0.76rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-weight: 700;
}

.delete-event {
	background: rgba(251, 113, 133, 0.18);
	border-color: rgba(251, 113, 133, 0.48);
	color: #fecdd3;
	box-shadow: none;
}

.delete-event:hover {
	box-shadow: 0 12px 24px rgba(225, 29, 72, 0.25);
	filter: brightness(1.03);
}

.console {
	margin-top: 14px;
	min-height: 160px;
	max-height: 320px;
	overflow: auto;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: rgba(2, 6, 23, 0.82);
	color: #dbeafe;
	white-space: pre-wrap;
	font-family: "JetBrains Mono", "Consolas", monospace;
	font-size: 0.85rem;
	line-height: 1.5;
	box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
}

.toast {
	position: fixed;
	right: max(22px, env(safe-area-inset-right));
	bottom: max(22px, env(safe-area-inset-bottom));
	padding: 12px 18px;
	border-radius: 12px;
	border: 1px solid rgba(129, 140, 248, 0.45);
	background: rgba(15, 23, 42, 0.92);
	color: #e0e7ff;
	font-size: 0.86rem;
	font-weight: 600;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 14px 30px rgba(2, 6, 23, 0.48);
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 220ms ease, transform 220ms ease;
	z-index: 100;
}

.toast.show {
	opacity: 1;
	transform: translateY(0);
}

#overview,
#events,
#roles,
#console {
	scroll-margin-top: 96px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ANIMATION SYSTEM
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ────────────────────────────────────────────────────── */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--accent), var(--accent-alt), #38bdf8);
	width: 0%;
	z-index: 1000;
	transition: width 0.1s ease-out;
	box-shadow: 0 0 12px rgba(129, 140, 248, 0.9);
	border-radius: 0 2px 2px 0;
}

/* ── Scroll-Reveal Entrance ─────────────────────────────────────────────────── */
.reveal {
	opacity: 0;
	transform: translateY(36px);
	transition:
		opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Slide-in variants */
.reveal-left {
	opacity: 0;
	transform: translateX(-40px);
	transition:
		opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

.reveal-left.is-visible {
	opacity: 1;
	transform: translateX(0);
}

.reveal-right {
	opacity: 0;
	transform: translateX(40px);
	transition:
		opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

.reveal-right.is-visible {
	opacity: 1;
	transform: translateX(0);
}

/* Scale-up entrance */
.reveal-scale {
	opacity: 0;
	transform: scale(0.88);
	transition:
		opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

.reveal-scale.is-visible {
	opacity: 1;
	transform: scale(1);
}

/* ── Staggered Delays ───────────────────────────────────────────────────────── */
.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }
.stagger-5 { transition-delay: 0.30s; }
.stagger-6 { transition-delay: 0.36s; }
.stagger-7 { transition-delay: 0.42s; }
.stagger-8 { transition-delay: 0.48s; }

/* ── Ambient Floating Background Orbs ───────────────────────────────────────── */
body::after {
	content: "";
	position: fixed;
	top: -20%;
	left: -10%;
	width: 70vw;
	height: 70vh;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(129, 140, 248, 0.06), transparent 65%);
	pointer-events: none;
	z-index: -1;
	animation: floatOrb1 18s ease-in-out infinite;
}

@keyframes floatOrb1 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25% { transform: translate(12vw, 8vh) scale(1.08); }
	50% { transform: translate(5vw, 18vh) scale(0.95); }
	75% { transform: translate(-8vw, 6vh) scale(1.04); }
}

/* Second orb via sidebar pseudo — only on large screens */
@media (min-width: 901px) {
	.workspace::before {
		content: "";
		position: fixed;
		bottom: -15%;
		right: -10%;
		width: 55vw;
		height: 55vh;
		border-radius: 50%;
		background: radial-gradient(circle, rgba(167, 139, 250, 0.05), transparent 60%);
		pointer-events: none;
		z-index: -1;
		animation: floatOrb2 22s ease-in-out infinite;
	}
}

@keyframes floatOrb2 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	30% { transform: translate(-10vw, -6vh) scale(1.06); }
	60% { transform: translate(-4vw, -14vh) scale(0.96); }
	80% { transform: translate(6vw, -3vh) scale(1.02); }
}

/* ── Heading Shimmer ────────────────────────────────────────────────────────── */
.topbar h1 {
	background: linear-gradient(
		120deg,
		var(--text) 0%,
		var(--text) 35%,
		var(--accent) 50%,
		var(--text) 65%,
		var(--text) 100%
	);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
	0%, 100% { background-position: 200% center; }
	50% { background-position: -50% center; }
}

/* ── Sparkline Bar Grow ─────────────────────────────────────────────────────── */
.sparkline-bar {
	transform-origin: bottom;
	animation: barGrow 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sparkline-bar:nth-child(1) { animation-delay: 0.08s; }
.sparkline-bar:nth-child(2) { animation-delay: 0.14s; }
.sparkline-bar:nth-child(3) { animation-delay: 0.20s; }
.sparkline-bar:nth-child(4) { animation-delay: 0.26s; }
.sparkline-bar:nth-child(5) { animation-delay: 0.32s; }
.sparkline-bar:nth-child(6) { animation-delay: 0.38s; }
.sparkline-bar:nth-child(7) { animation-delay: 0.44s; }

@keyframes barGrow {
	from {
		transform: scaleY(0);
		opacity: 0;
	}
	to {
		transform: scaleY(1);
		opacity: 0.9;
	}
}

/* ── Progress Bar Animated Fill ─────────────────────────────────────────────── */
.widget-progress-fill {
	animation: progressFill 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes progressFill {
	from { width: 0 !important; }
}

/* Add a subtle glow sweep on the progress bar */
.widget-progress-fill::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.3) 50%,
		transparent 100%
	);
	background-size: 200% 100%;
	animation: progressSweep 2.4s ease-in-out 1.4s infinite;
}

@keyframes progressSweep {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

.widget-progress-fill {
	position: relative;
	overflow: hidden;
}

/* ── Console Typing Cursor ──────────────────────────────────────────────────── */
.console::after {
	content: "▌";
	display: inline;
	color: var(--accent);
	animation: blink 1s steps(1) infinite;
	margin-left: 2px;
}

@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* ── Side Nav Link Ripple ───────────────────────────────────────────────────── */
.side-nav-link {
	overflow: hidden;
	position: relative;
}

.side-nav-link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
		rgba(167, 139, 250, 0.45) 0%, 
		rgba(129, 140, 248, 0.15) 30%, 
		transparent 60%);
	opacity: 0;
	transition: opacity 200ms ease;
	pointer-events: none;
	mix-blend-mode: screen;
}

.side-nav-link:hover::after {
	opacity: 1;
}

/* ── Card Hover Glow (global) ───────────────────────────────────────────────── */
.mini-widget,
.mini-card,
.card,
.feature-card,
.hero-panel {
	transition:
		transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 280ms ease,
		border-color 280ms ease;
}

.mini-widget:hover,
.mini-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 22px 44px rgba(79, 70, 229, 0.18);
	border-color: rgba(129, 140, 248, 0.38);
}

/* ── Widget Value Count-Up (JS drives this class) ───────────────────────────── */
.count-up {
	display: inline-block;
	transition: transform 0.15s ease;
}

.count-up.tick {
	transform: scale(1.08);
}

/* ── Featured Event Card Enter ──────────────────────────────────────────────── */
.event-card {
	animation: cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.featured-grid .event-card:nth-child(1) { animation-delay: 0.1s; }
.featured-grid .event-card:nth-child(2) { animation-delay: 0.22s; }
.featured-grid .event-card:nth-child(3) { animation-delay: 0.34s; }

@keyframes cardEnter {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ── Stats Grid Widget Enter ────────────────────────────────────────────────── */
.mini-widget {
	animation: widgetEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stats-grid .mini-widget:nth-child(1) { animation-delay: 0.05s; }
.stats-grid .mini-widget:nth-child(2) { animation-delay: 0.13s; }
.stats-grid .mini-widget:nth-child(3) { animation-delay: 0.21s; }
.stats-grid .mini-widget:nth-child(4) { animation-delay: 0.29s; }

@keyframes widgetEnter {
	from {
		opacity: 0;
		transform: translateY(22px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ── Table Row Fade In ──────────────────────────────────────────────────────── */
tbody tr {
	animation: rowFadeIn 0.35s ease both;
}

tbody tr:nth-child(1) { animation-delay: 0.04s; }
tbody tr:nth-child(2) { animation-delay: 0.08s; }
tbody tr:nth-child(3) { animation-delay: 0.12s; }
tbody tr:nth-child(4) { animation-delay: 0.16s; }
tbody tr:nth-child(5) { animation-delay: 0.20s; }
tbody tr:nth-child(6) { animation-delay: 0.24s; }

@keyframes rowFadeIn {
	from {
		opacity: 0;
		transform: translateX(-12px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* ── Toast Bounce Entry ─────────────────────────────────────────────────────── */
.toast.show {
	animation: toastBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toastBounce {
	0% {
		opacity: 0;
		transform: translateY(24px) scale(0.92);
	}
	60% {
		opacity: 1;
		transform: translateY(-4px) scale(1.02);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ── Tab Underline Slide ────────────────────────────────────────────────────── */
.tab.active {
	position: relative;
}

.tab.active::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 20%;
	right: 20%;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--accent), var(--accent-alt));
	animation: tabSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tabSlideIn {
	from {
		transform: scaleX(0);
		opacity: 0;
	}
	to {
		transform: scaleX(1);
		opacity: 1;
	}
}

/* ── Sidebar Brand Pulse ────────────────────────────────────────────────────── */
.brand-mark {
	display: inline-block;
	animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
	0%, 100% { text-shadow: 0 0 0 transparent; }
	50% { text-shadow: 0 0 20px rgba(129, 140, 248, 0.35); }
}

/* ── Avatar Breathe ─────────────────────────────────────────────────────────── */
.avatar {
	animation: avatarBreathe 3.5s ease-in-out infinite;
}

@keyframes avatarBreathe {
	0%, 100% { box-shadow: 0 0 0 0 rgba(199, 210, 254, 0); }
	50% { box-shadow: 0 0 16px 4px rgba(199, 210, 254, 0.25); }
}

/* ── Sidebar Active Indicator Glow ──────────────────────────────────────────── */
.side-nav-link.active::before {
	animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {
	0%, 100% { box-shadow: 0 0 24px rgba(129, 140, 248, 0.55); }
	50% { box-shadow: 0 0 32px rgba(129, 140, 248, 0.85), 0 0 10px rgba(167, 139, 250, 0.4); }
}

/* ── Live Dot Enhanced Pulse ────────────────────────────────────────────────── */
.hero-live-dot::before,
.live-dot::before {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background: transparent;
	border: 1.5px solid rgba(52, 211, 153, 0.3);
	animation: dotRing 2.2s ease-out infinite;
}

@keyframes dotRing {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	100% {
		transform: scale(2.4);
		opacity: 0;
	}
}

/* ── Reduced Motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.reveal,
	.reveal-left,
	.reveal-right,
	.reveal-scale {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 1320px) {
	.app-shell {
		grid-template-columns: 252px minmax(0, 1fr);
	}

	.stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1140px) {
	.app-shell {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.sidebar {
		position: relative;
		top: 0;
		height: auto;
		padding: 16px;
		gap: 14px;
	}

	.sidebar-inner {
		display: grid;
		gap: 14px;
	}

	.side-nav-link.active::before {
		display: none;
	}

	.side-nav {
		display: flex;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}

	.side-nav-link {
		flex: 0 0 auto;
		min-width: 168px;
		justify-content: center;
	}

	.side-nav-link span:last-child {
		white-space: nowrap;
		font-size: 0.82rem;
	}

	.mode-control {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 12px;
	}

	.mode-control .mini-label {
		margin: 0;
		flex: 0 0 auto;
	}

	.sidebar-cta {
		width: auto;
		min-width: 172px;
	}

	.actions > button {
		flex: 1 1 170px;
	}

	.topbar-copy {
		padding-right: 0;
	}

	.topbar-actions {
		justify-content: flex-start;
	}

	.made-by {
		position: static;
		margin-top: 10px;
		text-align: left;
	}

	.feature-layout {
		grid-template-columns: 1fr;
	}

	.featured-grid {
		grid-template-columns: 1fr;
	}

	.event-card-large {
		grid-row: span 1;
	}
}

@media (max-width: 900px) {
	body.mobile-menu-open {
		overflow: hidden;
	}

	.mobile-menu-btn,
	.mobile-menu-backdrop {
		display: inline-flex;
	}

	.mobile-menu-btn {
		display: flex;
	}

	body {
		padding-top: calc(56px + env(safe-area-inset-top));
	}

	.sidebar {
		position: fixed;
		top: 10px;
		left: 10px;
		width: min(88vw, 320px);
		height: calc(100dvh - 20px);
		max-height: calc(100dvh - 20px);
		z-index: 210;
		transform: translateX(calc(-100% - 20px));
		opacity: 0;
		pointer-events: none;
		transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
		overflow-y: auto;
	}

	.sidebar.is-open {
		transform: translateX(0);
		opacity: 1;
		pointer-events: auto;
	}

	.app-shell {
		padding: 10px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
	}

	.workspace {
		padding-top: 0;
	}

	.grid2,
	.filters,
	.stats-grid {
		grid-template-columns: 1fr;
	}

	.topbar,
	.card,
	.feature-card,
	.hero-panel {
		padding: 18px;
	}

	.search-shortcut {
		display: none;
	}

	.hero-panel {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero-chip-wrap {
		justify-items: flex-start;
	}

	.actions button {
		width: 100%;
	}

	.side-nav-link {
		min-width: 150px;
		padding: 10px 12px;
	}

	.mode-control {
		flex-direction: column;
		align-items: stretch;
	}

	.sidebar-cta {
		width: 100%;
	}
}

@media (max-width: 760px) {
	.table-wrap {
		overflow: visible;
		border: 0;
		background: transparent;
	}

	table,
	tbody,
	tr,
	td {
		display: block;
		width: 100%;
		min-width: 0;
	}

	thead {
		display: none;
	}

	tbody {
		display: grid;
		gap: 12px;
	}

	tbody tr {
		border: 1px solid var(--line);
		border-radius: 14px;
		background: rgba(15, 23, 42, 0.55);
		padding: 0 12px;
	}

	tbody tr:hover {
		background: rgba(99, 102, 241, 0.12);
	}

	td {
		display: grid;
		grid-template-columns: minmax(90px, 42%) minmax(0, 1fr);
		gap: 8px;
		align-items: center;
		padding: 10px 0;
		font-size: 0.84rem;
		border-bottom: 1px dashed rgba(148, 163, 184, 0.24);
	}

	td::before {
		content: attr(data-label);
		font-size: 0.66rem;
		font-weight: 700;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--muted);
	}

	td:last-child {
		border-bottom: 0;
	}

	td[colspan] {
		display: block;
		border-bottom: 0;
		padding: 16px 0;
		text-align: center;
	}

	td[colspan]::before {
		content: none;
	}

	td[data-label="Link"] .open-link,
	td[data-label="Manage"] .delete-event {
		justify-self: stretch;
		width: 100%;
	}

	td > * {
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.app-shell {
		padding: 12px;
	}

	input,
	select,
	.search-shell input {
		font-size: 16px;
	}

	.sidebar,
	.topbar,
	.card,
	.feature-card,
	.hero-panel {
		border-radius: 18px;
		padding: 16px;
	}

	.sidebar-cta {
		padding-left: 40px;
	}

	.side-nav {
		display: grid;
		grid-template-columns: 1fr;
		overflow: visible;
	}

	.side-nav-link {
		min-width: 0;
		justify-content: flex-start;
	}

	.side-nav-link span:last-child {
		white-space: normal;
	}

	.event-card-meta {
		grid-template-columns: 1fr;
	}

	.topbar-actions {
		justify-content: flex-start;
	}

	.theme-toggle {
		width: 100%;
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	body {
		line-height: 1.45;
	}

	.app-shell {
		padding: 10px;
		gap: 12px;
	}

	.workspace,
	.dashboard {
		gap: 14px;
	}

	h1 {
		font-size: clamp(1.45rem, 7vw, 1.85rem);
	}

	h2 {
		font-size: clamp(1.14rem, 5.4vw, 1.35rem);
	}

	h3 {
		font-size: 1rem;
	}

	button {
		padding: 9px 12px;
		font-size: 0.82rem;
		border-radius: 11px;
	}

	.theme-toggle {
		padding: 8px 12px 8px 40px;
		font-size: 0.66rem;
	}

	input,
	select {
		min-height: 42px;
		padding: 10px 11px;
		border-radius: 11px;
	}

	.topbar-search {
		margin-top: 14px;
	}

	.search-shell {
		min-height: 48px;
		padding: 0 8px 0 11px;
		border-radius: 13px;
	}

	.search-icon {
		width: 16px;
		height: 16px;
	}

	.section-head,
	.card-head {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.section-head button,
	.card-head button {
		width: 100%;
	}

	.hero-chip-wrap {
		gap: 8px;
	}

	.hero-chip {
		font-size: 0.72rem;
		padding: 8px 12px;
	}

	.widget-value {
		font-size: clamp(1.5rem, 8vw, 1.95rem);
	}

	.event-card,
	.block,
	.mini-card {
		padding: 14px;
	}

	.event-card-footer {
		justify-content: stretch;
	}

	.event-card-footer .open-link {
		width: 100%;
	}

	.filters {
		gap: 10px;
		margin-bottom: 14px;
	}

	.tabs {
		gap: 8px;
		margin: 12px 0 16px;
		padding-bottom: 12px;
	}

	.tab {
		padding: 9px 10px;
		font-size: 0.78rem;
	}

	td {
		font-size: 0.81rem;
	}

	td::before {
		font-size: 0.62rem;
		letter-spacing: 0.08em;
	}

	td {
		grid-template-columns: minmax(84px, 40%) minmax(0, 1fr);
	}
}

@media (max-width: 375px) {
	.app-shell {
		padding: 8px;
		gap: 10px;
	}

	.sidebar,
	.topbar,
	.card,
	.feature-card,
	.hero-panel {
		border-radius: 14px;
		padding: 12px;
	}

	.workspace,
	.dashboard {
		gap: 12px;
	}

	.brand-mark {
		font-size: 1.22rem;
	}

	.brand-sub {
		font-size: 0.64rem;
		letter-spacing: 0.14em;
	}

	.profile-card {
		padding: 10px;
		gap: 8px;
		border-radius: 14px;
	}

	.avatar {
		width: 34px;
		height: 34px;
		font-size: 0.74rem;
	}

	.profile-name {
		font-size: 0.82rem;
	}

	.profile-meta {
		font-size: 0.62rem;
		letter-spacing: 0.1em;
	}

	.side-nav-link {
		padding: 9px 10px;
		font-size: 0.78rem;
		border-radius: 10px;
	}

	.mode-control {
		padding: 10px;
		border-radius: 12px;
	}

	.sidebar-cta {
		padding: 8px 10px 8px 34px;
		min-width: 0;
	}

	.toggle-knob {
		left: 8px;
		width: 16px;
		height: 16px;
	}

	.sidebar-cta.is-organizer .toggle-knob {
		transform: translate(8px, -50%);
	}

	.toggle-text {
		font-size: 0.72rem;
	}

	h1 {
		font-size: clamp(1.26rem, 6.6vw, 1.55rem);
	}

	h2 {
		font-size: clamp(1.06rem, 5.1vw, 1.24rem);
	}

	.eyebrow,
	.mini-label,
	.section-kicker,
	.topbar-search > span,
	.stat-label,
	.widget-label {
		font-size: 0.62rem;
		letter-spacing: 0.1em;
	}

	.sub {
		font-size: 0.84rem;
	}

	.made-by {
		font-size: 0.58rem;
		letter-spacing: 0.08em;
	}

	.search-shell {
		min-height: 44px;
		padding: 0 7px 0 10px;
	}

	.hero-chip {
		font-size: 0.65rem;
		padding: 7px 10px;
	}

	.hero-live {
		font-size: 0.72rem;
	}

	.hero-live-dot,
	.live-dot {
		width: 8px;
		height: 8px;
	}

	.stats-grid,
	.stack-panel,
	.featured-grid {
		gap: 10px;
	}

	.mini-widget,
	.mini-card,
	.event-card,
	.block {
		padding: 12px;
		border-radius: 14px;
	}

	.widget-value {
		font-size: clamp(1.25rem, 7.5vw, 1.62rem);
	}

	.widget-note {
		font-size: 0.76rem;
	}

	.live-pill {
		font-size: 0.58rem;
		padding: 3px 7px;
	}

	.sparkline {
		height: 25px;
		gap: 3px;
	}

	.sparkline-bar {
		width: 4px;
	}

	.section-head,
	.card-head {
		margin-bottom: 12px;
		padding-bottom: 12px;
	}

	.event-card h3 {
		font-size: 0.95rem;
	}

	.event-card-copy {
		font-size: 0.8rem;
	}

	.event-card-meta span {
		font-size: 0.6rem;
	}

	.event-card-meta strong {
		font-size: 0.79rem;
	}

	.pill {
		padding: 4px 8px;
		font-size: 0.58rem;
	}

	button,
	.tab {
		font-size: 0.75rem;
		padding: 8px 10px;
	}

	.console {
		min-height: 130px;
		padding: 12px;
		font-size: 0.73rem;
		border-radius: 12px;
	}

	tbody {
		gap: 10px;
	}

	tbody tr {
		padding: 0 10px;
		border-radius: 12px;
	}

	td {
		grid-template-columns: minmax(74px, 38%) minmax(0, 1fr);
		gap: 6px;
		padding: 8px 0;
		font-size: 0.77rem;
	}

	td::before {
		font-size: 0.56rem;
	}

	.open-link,
	.delete-event {
		padding: 7px 10px;
		font-size: 0.66rem;
	}

	.toast {
		left: max(10px, env(safe-area-inset-left));
		right: max(10px, env(safe-area-inset-right));
		bottom: max(10px, env(safe-area-inset-bottom));
		padding: 10px 12px;
		font-size: 0.76rem;
	}
}

@media (max-width: 340px) {
	h1 {
		font-size: 1.2rem;
	}

	.brand-mark {
		font-size: 1.1rem;
	}

	.search-shell {
		min-height: 40px;
	}

	.widget-value {
		font-size: 1.2rem;
	}

	td {
		grid-template-columns: 1fr;
		gap: 4px;
		align-items: start;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════════
   NEXT-LEVEL ANIMATIONS v2
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ────────────────────────────────────────────────────── */
#scrollProgressBar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: linear-gradient(90deg, var(--accent), var(--accent-alt), #38bdf8, var(--accent));
	background-size: 300% 100%;
	z-index: 9999;
	border-radius: 0 999px 999px 0;
	box-shadow: 0 0 12px rgba(129, 140, 248, 0.8), 0 0 24px rgba(129, 140, 248, 0.4);
	transition: width 80ms linear;
	animation: progressGradient 3s linear infinite;
}

@keyframes progressGradient {
	0% { background-position: 0% 50%; }
	100% { background-position: 300% 50%; }
}

/* ── Cursor Glow Orb ────────────────────────────────────────────────────────── */
#cursorGlow {
	position: fixed;
	pointer-events: none;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
	transform: translate(-50%, -50%);
	z-index: 0;
	transition: transform 0.12s ease-out;
	will-change: transform;
}

/* ── Button Click Ripple/Shockwave ──────────────────────────────────────────── */
.btn-ripple-wave {
	position: absolute;
	border-radius: 50%;
	transform: scale(0);
	background: rgba(255, 255, 255, 0.35);
	pointer-events: none;
	animation: btnRippleExpand 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes btnRippleExpand {
	to {
		transform: scale(4);
		opacity: 0;
	}
}

button {
	overflow: hidden;
}

/* ── 3D Card Tilt ───────────────────────────────────────────────────────────── */
.event-card {
	transform-style: preserve-3d;
	will-change: transform;
}

.event-card .card-tilt-shine {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(
		circle at var(--shine-x, 50%) var(--shine-y, 50%),
		rgba(255, 255, 255, 0.12),
		transparent 60%
	);
	pointer-events: none;
	opacity: 0;
	transition: opacity 200ms ease;
}

.event-card:hover .card-tilt-shine {
	opacity: 1;
}

/* ── Glitch Brand Name ──────────────────────────────────────────────────────── */
.brand-mark {
	position: relative;
}

.brand-mark.glitch-active {
	animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes glitch {
	0% { transform: translate(0); filter: none; }
	10% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
	20% { transform: translate(2px, -1px); clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
	30% { transform: translate(-1px, 2px); clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }
	40% { transform: translate(2px, 0); filter: hue-rotate(-90deg); }
	50% { transform: translate(-2px, 1px); clip-path: none; }
	60% { transform: translate(1px, -2px); filter: brightness(1.5); }
	70% { transform: translate(-1px, 0); }
	80% { transform: translate(2px, 1px); filter: none; }
	90% { transform: translate(-1px, -1px); }
	100% { transform: translate(0); filter: none; clip-path: none; }
}

/* ── Animated Sidebar Border Glow (desktop only) ─────────────────────────────── */
@media (min-width: 901px) {
	.sidebar {
		animation:
			sidebarSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) both,
			sidebarBorderGlow 4s ease-in-out 1s infinite;
	}
}

@keyframes sidebarBorderGlow {
	0%, 100% {
		box-shadow:
			var(--shadow-strong),
			0 0 0 1px rgba(129, 140, 248, 0.3),
			0 0 20px rgba(129, 140, 248, 0.1);
		border-color: rgba(129, 140, 248, 0.3);
	}
	25% {
		box-shadow:
			var(--shadow-strong),
			0 0 0 1px rgba(167, 139, 250, 0.55),
			0 0 30px rgba(167, 139, 250, 0.18);
		border-color: rgba(167, 139, 250, 0.55);
	}
	50% {
		box-shadow:
			var(--shadow-strong),
			0 0 0 1px rgba(56, 189, 248, 0.45),
			0 0 26px rgba(56, 189, 248, 0.14);
		border-color: rgba(56, 189, 248, 0.45);
	}
	75% {
		box-shadow:
			var(--shadow-strong),
			0 0 0 1px rgba(52, 211, 153, 0.4),
			0 0 22px rgba(52, 211, 153, 0.12);
		border-color: rgba(52, 211, 153, 0.4);
	}
}

/* ── Typewriter Cursor on Hero Sub ─────────────────────────────────────────── */
.typewriter-cursor {
	display: inline-block;
	width: 2px;
	height: 1em;
	background: var(--accent);
	margin-left: 3px;
	vertical-align: middle;
	border-radius: 2px;
	animation: cursorBlink 0.9s steps(1) infinite;
}

@keyframes cursorBlink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* ── Neon Glow Widget Value ─────────────────────────────────────────────────── */
.widget-value {
	animation: neonFlicker 4s ease-in-out infinite;
}

.tone-live .widget-value {
	animation: neonFlickerGreen 4s ease-in-out infinite;
}

@keyframes neonFlicker {
	0%, 100% { text-shadow: 0 0 6px rgba(129, 140, 248, 0.4), 0 0 14px rgba(129, 140, 248, 0.2); }
	20% { text-shadow: 0 0 10px rgba(167, 139, 250, 0.6), 0 0 22px rgba(129, 140, 248, 0.3); }
	50% { text-shadow: 0 0 4px rgba(129, 140, 248, 0.2); }
	80% { text-shadow: 0 0 12px rgba(56, 189, 248, 0.5), 0 0 20px rgba(129, 140, 248, 0.25); }
}

@keyframes neonFlickerGreen {
	0%, 100% { text-shadow: 0 0 6px rgba(52, 211, 153, 0.5), 0 0 14px rgba(52, 211, 153, 0.25); }
	40% { text-shadow: 0 0 12px rgba(52, 211, 153, 0.8), 0 0 24px rgba(52, 211, 153, 0.4); }
	70% { text-shadow: 0 0 4px rgba(52, 211, 153, 0.2); }
}

/* ── Particle Sparks on Mini Widget ────────────────────────────────────────── */
.mini-widget {
	position: relative;
	overflow: hidden;
}

.widget-particle {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	animation: particleDrift var(--p-dur, 3s) var(--p-delay, 0s) ease-in-out infinite;
}

@keyframes particleDrift {
	0% {
		opacity: 0;
		transform: translate(0, 0) scale(0);
	}
	20% {
		opacity: 0.8;
		transform: translate(var(--p-tx1, 10px), var(--p-ty1, -15px)) scale(1);
	}
	80% {
		opacity: 0.3;
		transform: translate(var(--p-tx2, 20px), var(--p-ty2, -40px)) scale(0.5);
	}
	100% {
		opacity: 0;
		transform: translate(var(--p-tx3, 25px), var(--p-ty3, -60px)) scale(0);
	}
}

/* ── Search bar focus glow pulse ────────────────────────────────────────────── */
.search-shell:focus-within {
	animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2); }
	50% { box-shadow: 0 0 0 6px rgba(129, 140, 248, 0.35), 0 0 20px rgba(129, 140, 248, 0.15); }
}

/* ── Topbar entrance drop ────────────────────────────────────────────────────── */
.topbar {
	animation: topbarDrop 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes topbarDrop {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Sidebar entrance slide (combined with border glow above) ────────────────── */
@keyframes sidebarSlide {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* ── Mini-card hover sparkle burst ──────────────────────────────────────────── */
.mini-card {
	position: relative;
	overflow: hidden;
}

.mini-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		circle at var(--card-mx, 50%) var(--card-my, 50%),
		rgba(129, 140, 248, 0.1),
		transparent 55%
	);
	opacity: 0;
	transition: opacity 300ms ease;
	pointer-events: none;
}

.mini-card:hover::after {
	opacity: 1;
}

/* ── Floating Action Badge Pulse ────────────────────────────────────────────── */
.hero-chip {
	animation: chipFloat 3s ease-in-out infinite;
}

@keyframes chipFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

/* ── Input focus shimmer border ─────────────────────────────────────────────── */
input:focus,
select:focus {
	animation: inputGlow 2s ease-in-out infinite;
}

@keyframes inputGlow {
	0%, 100% { box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2); }
	50% { box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.35), 0 0 14px rgba(129, 140, 248, 0.15); }
}

/* ── Loading shimmer on table rows ──────────────────────────────────────────── */
.table-shimmer td {
	background: linear-gradient(90deg, transparent 0%, rgba(129,140,248,0.06) 50%, transparent 100%);
	background-size: 200% 100%;
	animation: tableShimmer 1.5s ease-in-out infinite;
}

@keyframes tableShimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

/* ── Profile card avatar ring spin ─────────────────────────────────────────── */
.profile-card:hover .avatar {
	animation: avatarSpin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes avatarSpin {
	from { transform: rotate(-10deg) scale(0.92); }
	to { transform: rotate(0deg) scale(1.08); }
}

/* ── Button press spring ────────────────────────────────────────────────────── */
button:active {
	animation: btnSpring 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes btnSpring {
	0% { transform: scale(0.93); }
	60% { transform: scale(1.04); }
	100% { transform: scale(1); }
}

/* ── Panel tab switch morph ─────────────────────────────────────────────────── */
.panel.active {
	animation: panelMorph 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panelMorph {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
		filter: blur(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

/* ── Reduced Motion Overrides ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	#scrollProgressBar,
	#cursorGlow,
	.widget-particle,
	.hero-chip,
	.brand-mark,
	.topbar,
	.sidebar {
		animation: none !important;
		transition: none !important;
	}

	.sidebar::before {
		animation: none !important;
	}
}

@media (max-height: 760px) and (min-width: 901px) {
	.app-shell {
		gap: 14px;
		padding: 14px;
	}

	.sidebar {
		top: 14px;
		height: calc(100vh - 28px);
		padding: 14px;
	}

	.workspace,
	.dashboard {
		gap: 16px;
	}
}

@media (hover: none) {
	button:hover,
	.delete-event:hover,
	.event-card:hover {
		transform: none;
		filter: none;
	}

	.delete-event:hover,
	.event-card:hover {
		box-shadow: var(--shadow-soft);
	}
}
