/* =============================================
   Eventifa — Main Stylesheet (v2 Refactor)
   Minimal · Modern · Consistent
   ============================================= */

/* --- Layout --- */
.main {
	position: relative;
	padding: 0 16px 48px;
	max-width: 1280px;
	margin: 104px auto 0;
	min-height: calc(100vh - 200px);
}

@media (min-width: 1200px) {
	.main {
		padding: 0 24px 64px;
	}
}

.main__title {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 24px;
}

.main__title h1 {
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--text);
	line-height: 1.3;
}

.main__title h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text);
	line-height: 1.3;
}

.main__title h3 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text);
}

.main__title p {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-secondary);
}

.main-section-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 28px;
	margin-top: 48px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
	.main-section-header {
		margin-top: 32px;
		flex-direction: column;
		align-items: flex-start;
	}
	.main-section-header .main__filter {
		width: 100%;
	}
}

.main-section-header .main__title {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 0;
}

.main-section-header .main__title .section-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--primary);
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

.main-section-header .main__title h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
	margin: 0;
}

.main-section-header .main__title h2::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 24px;
	border-radius: 2px;
	background: var(--primary);
	flex-shrink: 0;
}

.main__filter {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.filter-search {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--bg-muted);
	border-radius: 100px;
	padding: 0 14px;
	height: 38px;
	border: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-search:focus-within {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-soft);
}

.filter-search__icon {
	flex-shrink: 0;
	color: var(--text-muted);
	margin-right: 8px;
}

.filter-search input {
	flex: 1;
	min-width: 140px;
	background: none;
	color: var(--text);
	font-size: 0.85rem;
	padding: 0;
	height: 100%;
	border: none;
	outline: none;
}

.filter-search input::placeholder {
	color: var(--text-muted);
}

.filter-flags {
	display: flex;
	align-items: center;
	gap: 6px;
	position: relative;
	padding-left: 8px;
}

.filter-flags::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 18px;
	background: var(--border);
}

.filter-flags__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	transition: transform 0.2s, box-shadow 0.2s;
}

.filter-flags__item:hover {
	transform: scale(1.15);
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.filter-flags__item img {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: block;
}

.main__load {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 44px;
	border-radius: var(--radius-md);
	background: var(--primary);
	color: var(--text-inverse);
	font-size: 0.875rem;
	font-weight: 500;
	margin: 32px auto 0;
}

.main__load:hover {
	background: var(--primary-hover);
	color: var(--text-inverse);
}

/* --- Header --- */
.header {
	position: fixed;
	top: 16px;
	left: 0;
	right: 0;
	z-index: 101;
	padding: 0 16px;
	transition: top 0.3s ease, padding 0.3s ease;
}

.header--scrolled {
	top: 0;
	padding: 0;
}

.header__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
	background: var(--bg-glass);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-radius: 16px;
	border: 1px solid var(--border);
	transition: border-radius 0.3s ease, border-width 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, max-width 0.3s ease;
}

.header--scrolled .header__content {
	max-width: 100%;
	border-radius: 0;
	border-width: 0;
	border-bottom-width: 1px;
	border-color: transparent;
	border-bottom-color: var(--border);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.header__logo {
	display: flex;
	align-items: center;
}

.header__logo a {
	display: block;
}

.header__logo img {
	width: 100px;
	height: auto;
}

.nav-links-con {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-links-con a {
	display: flex;
	align-items: center;
	padding: 8px 18px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-secondary);
	border-radius: 8px;
	transition: all 0.2s ease;
}

.nav-links-con a:hover {
	background: var(--bg-muted);
	color: var(--text);
}

.nav-links-con a.active {
	background: var(--primary-soft);
	color: var(--primary);
	font-weight: 600;
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--text-secondary);
}

.theme-toggle:hover {
	background: var(--bg-muted);
	color: var(--text);
}

.theme-toggle svg {
	width: 20px;
	height: 20px;
}

.lang-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 18px;
	color: var(--text-secondary);
	font-size: 0.8rem;
	font-weight: 700;
	border: 1px solid var(--border);
}

.lang-toggle:hover {
	background: var(--bg-muted);
	color: var(--text);
}

/* --- RTL / Persian support --- */
html.lang-fa,
html.lang-fa body {
	font-family: "Vazirmatn", "Google Sans Flex", system-ui, sans-serif;
}

html.lang-fa .header__nav,
html.lang-fa .footer-content,
html.lang-fa .breadcrumb,
html.lang-fa .sidebar__nav {
	direction: rtl;
}

html.lang-fa .breadcrumb__item:first-child::before,
html.lang-fa .breadcrumb__item + .breadcrumb__item::before {
	transform: scaleX(-1);
}

html.lang-fa .event-card,
html.lang-fa .article__content,
html.lang-fa .venue-section__info,
html.lang-fa .profile,
html.lang-fa .dashbox {
	text-align: right;
}

[dir="auto"] {
	unicode-bidi: plaintext;
}

[data-theme="dark"] .theme-icon-light {
	display: none;
}
[data-theme="dark"] .theme-icon-dark {
	display: block;
}

.theme-icon-dark {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-icon-light {
		display: none;
	}
	:root:not([data-theme="light"]) .theme-icon-dark {
		display: block;
	}
}

.header__btn {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	padding: 6px;
	border-radius: 8px;
}

.header__btn:hover {
	background: var(--bg-muted);
}

.header__btn span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--text-secondary);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.header__btn span:nth-child(2) {
	width: 14px;
}

.header__btn span:nth-child(3) {
	width: 10px;
}

@media (min-width: 1200px) {
	.header__btn {
		display: none;
	}
}

@media (max-width: 1199px) {
	.nav-links-con {
		display: none;
	}
}

/* --- Sidebar --- */
.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 280px;
	background: var(--bg-elevated);
	border-right: 1px solid var(--border);
	z-index: 102;
	transform: translateX(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.sidebar--active {
	transform: translateX(0);
}

.sidebar__logo {
	display: flex;
	align-items: center;
	height: 64px;
	padding: 0 20px;
	border-bottom: 1px solid var(--border);
}

.sidebar__logo img {
	width: 100px;
	height: auto;
}

.sidebar__nav {
	display: flex;
	flex-direction: column;
	padding: 16px 0;
	gap: 2px;
}

.sidebar__nav-item {
	width: 100%;
}

.sidebar__nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-secondary);
	transition: all 0.2s ease;
	margin: 0 8px;
	border-radius: 8px;
}

.sidebar__nav-link svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.sidebar__nav-link svg *[fill] {
	fill: var(--text-muted);
	transition: fill 0.2s;
}

.sidebar__nav-link:hover {
	background: var(--bg-muted);
	color: var(--text);
}

.sidebar__nav-link:hover svg *[fill] {
	fill: var(--text-secondary);
}

.sidebar__nav-link--active {
	background: var(--primary-soft);
	color: var(--primary);
}

.sidebar__nav-link--active svg *[fill] {
	fill: var(--primary);
}

/* --- Hero / Slider --- */
#hero {
	width: 100%;
}

.hero__slide {
	display: flex !important;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	width: 100%;
	aspect-ratio: 28/15;
	min-height: 260px;
	position: relative;
	padding: 32px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	cursor: pointer;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero__slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(45deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
	z-index: 1;
}

.hero__title {
	position: relative;
	z-index: 2;
	color: #fff;
	font-size: clamp(1.5rem, 4vw, 2.75rem);
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 4px;
	max-width: 80%;
}

.hero__text {
	position: relative;
	z-index: 2;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1rem;
	line-height: 1.5;
}

.hero__slide.past::before {
	background: linear-gradient(45deg, var(--danger-start), var(--danger-end));
}

#hero .owl-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

#hero .owl-dot span {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--text-muted);
	transition: all 0.3s ease;
}

#hero .owl-dot.active span {
	width: 24px;
	border-radius: 4px;
	background: var(--primary);
}

.main__nav {
	display: none;
	position: absolute;
	bottom: 50%;
	transform: translateY(50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bg-glass);
	color: var(--text);
	z-index: 5;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
}

.main__nav svg {
	width: 20px;
	height: 20px;
}

.main__nav--prev {
	left: -20px;
}

.main__nav--next {
	right: -20px;
}

@media (min-width: 1200px) {
	.main__nav {
		display: flex;
	}
	#hero .owl-dots {
		justify-content: flex-end;
		padding-right: 68px;
		margin-top: -30px;
		margin-bottom: 24px;
	}
}

.slider-section {
	margin-top: 24px;
}

.events-section {
	margin-top: 0;
}

.row--grid {
	margin-left: -10px;
	margin-right: -10px;
}
.row--grid > [class*="col-"] {
	padding-left: 10px;
	padding-right: 10px;
}

/* --- Event Card --- */
.event-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-elevated);
	border: 1px solid var(--border-subtle);
	margin-bottom: 16px;
}

.event-card:hover {
	border-color: var(--border);
}

.event-card__media {
	position: relative;
	overflow: hidden;
}

.event-card__media img {
	width: 100%;
	aspect-ratio: 7/5;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.event-card:hover .event-card__media img {
	transform: scale(1.03);
}

/* --- Upsell Carousel (single page) --- */
.main__carousel-wrap {
	position: relative;
	margin-top: -8px;
}

.main__carousel--events .event-card {
	margin-bottom: 0;
	transform: scale(0.96);
	transition: transform 0.3s;
}

.main__carousel--events .event-card:hover {
	transform: scale(1);
}

.main__carousel--events .event-card__cta {
	font-size: 0.8rem;
	padding: 6px 16px;
}

.event-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
}

.event-card__title {
	margin: 0;
}

.event-card__title a {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--text);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.event-card__title a:hover {
	color: var(--primary);
}

.event-card__meta {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.4;
}

.event-card__location {
	font-size: 0.85rem;
	color: var(--text-muted);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.event-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: var(--text-inverse);
	font-size: 0.85rem;
	font-weight: 600;
	margin-top: 4px;
	transition: all 0.2s ease;
}

.event-card__cta:hover {
	background: var(--primary-hover);
	color: var(--text-inverse);
}

.event-card__cta svg {
	width: 18px;
	height: 18px;
}

.featured-ribbon,
.limited-ribbon {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 6px;
	z-index: 5;
}

.featured-ribbon {
	background: var(--primary);
	color: #fff;
}

.limited-ribbon {
	background: var(--warning);
	color: #fff;
}

/* --- Event Grid (alt style) --- */
.event {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	width: 100%;
	aspect-ratio: 7/5;
	border-radius: var(--radius-lg);
	position: relative;
	overflow: hidden;
	padding: 20px;
	margin-bottom: 16px;
}

.event::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
	z-index: 2;
}

.event.past::before {
	background: linear-gradient(45deg, rgba(255, 42, 42, 0.4), rgba(182, 0, 0, 0.15));
}

.event > * {
	position: relative;
	z-index: 3;
}

.event__date {
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 2px;
}

.event__time {
	font-size: 0.8rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 8px;
}

.event__title a {
	color: #fff;
	font-size: clamp(0.85rem, 1.2vw, 1rem);
	font-weight: 600;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.event__title a:hover {
	color: var(--primary);
}

.event__address {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.4;
}

.event__ticket {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	background: var(--bg-glass);
	color: var(--text);
	font-size: 0.8rem;
	font-weight: 600;
	z-index: 4;
	backdrop-filter: blur(4px);
}

.event__ticket:hover {
	background: var(--primary);
	color: #fff;
}

.event__ticket svg {
	width: 16px;
	height: 16px;
}

.event__out {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 14px;
	border-radius: var(--radius-sm);
	background: var(--danger);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	z-index: 4;
}

/* --- Breadcrumb --- */
.breadcrumb {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 16px 0;
	padding: 8px 14px;
	flex-wrap: nowrap;
	overflow-x: auto;
	white-space: nowrap;
	background: var(--bg-muted);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	scrollbar-width: none;
}

.breadcrumb::-webkit-scrollbar {
	display: none;
}

.breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--text-muted);
	position: relative;
	flex-shrink: 0;
}

.breadcrumb__item:first-child::before {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10.55 2.532a2.25 2.25 0 0 1 2.9 0l6.75 5.692c.507.428.8 1.057.8 1.72v9.803a1.75 1.75 0 0 1-1.75 1.75h-3.5a1.75 1.75 0 0 1-1.75-1.75v-5.5a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25v5.5a1.75 1.75 0 0 1-1.75 1.75h-3.5A1.75 1.75 0 0 1 3 19.747V9.944c0-.663.293-1.292.8-1.72l6.75-5.692z'/></svg>") no-repeat center / contain;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M10.55 2.532a2.25 2.25 0 0 1 2.9 0l6.75 5.692c.507.428.8 1.057.8 1.72v9.803a1.75 1.75 0 0 1-1.75 1.75h-3.5a1.75 1.75 0 0 1-1.75-1.75v-5.5a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25v5.5a1.75 1.75 0 0 1-1.75 1.75h-3.5A1.75 1.75 0 0 1 3 19.747V9.944c0-.663.293-1.292.8-1.72l6.75-5.692z'/></svg>") no-repeat center / contain;
}

.breadcrumb__item + .breadcrumb__item::before {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	margin-right: 2px;
	opacity: 0.5;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9.71,18.71a1,1,0,0,1-1.42-1.42L13.59,12,8.29,6.71A1,1,0,1,1,9.71,5.29l6,6a1,1,0,0,1,0,1.42Z'/></svg>") no-repeat center / contain;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9.71,18.71a1,1,0,0,1-1.42-1.42L13.59,12,8.29,6.71A1,1,0,1,1,9.71,5.29l6,6a1,1,0,0,1,0,1.42Z'/></svg>") no-repeat center / contain;
}

.breadcrumb__item a {
	color: var(--text-muted);
	padding: 4px 8px;
	margin: -4px -8px;
	border-radius: var(--radius-sm);
	transition: color 0.15s, background 0.15s;
}

.breadcrumb__item a:hover {
	color: var(--primary);
	background: var(--primary-soft);
}

.breadcrumb__item--active {
	color: var(--text);
	font-weight: 600;
}

/* --- Buttons --- */
.hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border-radius: var(--radius-md);
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.hero__btn--primary {
	background: var(--primary);
	color: #fff;
}

.hero__btn--primary:hover {
	background: var(--primary-hover);
	color: #fff;
}

.hero__btn--green {
	background: var(--success);
	color: #fff;
}

.hero__btn--green:hover {
	opacity: 0.9;
}

.hero__btn--red {
	background: var(--danger);
	color: #fff;
	cursor: default;
}

.hero__btn--orange {
	background: var(--warning);
	color: #fff;
}

.hero__btn--orange:hover {
	opacity: 0.9;
}

/* --- Buy ticket / views cards --- */
.buy-ticket-card {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: auto;
	padding: 10px 18px 10px 12px;
	border-radius: 18px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buy-ticket-card--primary {
	background: linear-gradient(135deg, var(--primary), var(--primary-hover));
	box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.buy-ticket-card--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.45);
}

.buy-ticket-card--muted {
	background: var(--bg-muted);
	cursor: default;
}

.buy-ticket-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	flex-shrink: 0;
}

.buy-ticket-card--muted .buy-ticket-card__icon {
	background: var(--bg-elevated);
	color: var(--text-secondary);
}

.buy-ticket-card__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.25;
}

.buy-ticket-card__title {
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
}

.buy-ticket-card--muted .buy-ticket-card__title {
	color: var(--text-secondary);
}

.buy-ticket-card__subtitle {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.72rem;
	font-weight: 500;
}

.buy-ticket-card__arrow {
	color: #fff;
	margin-left: 2px;
	opacity: 0.85;
	transition: transform 0.2s ease;
}

.buy-ticket-card--primary:hover .buy-ticket-card__arrow {
	transform: translateX(3px);
}

.views-card {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: auto;
	padding: 10px 20px 10px 12px;
	border-radius: 18px;
	background: linear-gradient(135deg, var(--primary), var(--primary-hover));
	box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

.views-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	flex-shrink: 0;
}

.views-card__icon svg {
	width: 20px;
	height: 20px;
}

.views-card__count {
	font-weight: 700;
	color: #fff;
	font-size: 0.9rem;
}

.views-card__label {
	color: #fff;
	opacity: 0.85;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* --- Single Event Hero --- */
.single-hero-wrap {
	position: relative;
	width: auto;
	margin-left: -24px;
	margin-right: -24px;
	margin-top: 0;
	overflow: hidden;
}

@media (max-width: 575px) {
	.single-hero-wrap {
		margin-left: -8px;
		margin-right: -8px;
	}
}

.single-hero-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 350px;
	object-fit: cover;
	object-position: center;
	display: block;
}

@media (max-width: 575px) {
	.single-hero-img {
		aspect-ratio: 16 / 9;
		min-height: 220px;
		max-height: none;
	}
}

@media (min-width: 576px) and (max-width: 991px) {
	.single-hero-img {
		aspect-ratio: 16 / 9;
		min-height: 320px;
		max-height: none;
	}
}

.single-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 100%);
	z-index: 1;
}

.single-hero-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	padding: 24px;
	max-width: 1280px;
	margin: 0 auto;
}

@media (max-width: 575px) {
	.single-hero-content {
		padding: 16px;
	}
}

.top-section {
	padding-top: 24px;
}

.top-section .event-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 12px;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.top-section .event-name {
		font-size: 1.5rem;
	}
}

.limited-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	background: var(--warning);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.article {
	margin-top: 24px;
}

.article__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.article__place,
.article__date {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.article__place svg,
.article__date svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--text-muted);
}

.article__place:hover {
	color: var(--primary);
}

.article__content {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text);
}

.article__content img {
	width: 100%;
	border-radius: var(--radius-md);
	margin: 16px 0;
}

.article__content h1,
.article__content h2,
.article__content h3,
.article__content h4 {
	font-weight: 600;
	color: var(--text);
	margin: 24px 0 12px;
	line-height: 1.3;
}

.article__content h1 { font-size: 1.75rem; }
.article__content h2 { font-size: 1.5rem; }
.article__content h3 { font-size: 1.25rem; }
.article__content h4 { font-size: 1.1rem; }

.article__content p {
	margin-bottom: 16px;
}

.article__content p:last-child {
	margin-bottom: 0;
}

.description-body {
	background: rgba(0, 0, 0, 0.25);
	border-radius: var(--radius-lg);
	padding: 20px 24px;
	margin-top: 12px;
}

.article__content a {
	color: var(--primary);
	font-weight: 500;
}

.article__content ul {
	margin-bottom: 16px;
	padding-left: 20px;
}

.article__content ul li {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-secondary);
	position: relative;
	padding-left: 16px;
}

.article__content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--primary);
}

/* --- Dashbox / Tables --- */
.dashbox {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-top: 16px;
}

.dashbox__table-wrap {
	overflow-x: auto;
	padding: 16px;
}

.dashbox__table-scroll {
	min-width: 600px;
}

.main__table {
	width: 100%;
	border-collapse: collapse;
}

.main__table th,
.main__table td {
	padding: 12px 16px;
	text-align: left;
	font-size: 0.875rem;
	white-space: nowrap;
}

.main__table thead th {
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-bottom: 1px solid var(--border);
}

.main__table tbody tr {
	border-bottom: 1px solid var(--border);
}

.main__table tbody tr:last-child {
	border-bottom: none;
}

.main__table tbody td {
	color: var(--text);
}

.main__table .text-center {
	text-align: center;
}

.main__table-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	border-radius: var(--radius-sm);
	font-size: 0.8rem;
	font-weight: 500;
	white-space: nowrap;
	transition: opacity 0.2s;
}

.main__table-btn--edit {
	background: var(--primary);
	color: #fff;
}

.main__table-btn:hover {
	opacity: 0.85;
}

/* --- Profile --- */
.profile {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 0;
}

@media (min-width: 768px) {
	.profile {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.profile__user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.profile__meta h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}

.profile__meta span {
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.profile__tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: var(--bg-muted);
	border-radius: var(--radius-md);
	overflow-x: auto;
}

.profile__tabs a {
	display: flex;
	align-items: center;
	padding: 8px 16px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-secondary);
	border-radius: 8px;
	transition: all 0.2s;
	white-space: nowrap;
}

.profile__tabs a:hover {
	color: var(--text);
}

.profile__tabs a.active {
	background: var(--bg-elevated);
	color: var(--text);
	box-shadow: var(--shadow-sm);
}

.tab-content > .tab-pane {
	display: none;
}

.tab-content > .tab-pane.active {
	display: block;
}

.profile__logout {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.profile__logout:hover {
	color: var(--primary);
}

.profile__logout svg {
	width: 20px;
	height: 20px;
}

.profile-order-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 16px;
	margin-bottom: 12px;
}

.profile-order-item h2 {
	font-size: 1.1rem;
	font-weight: 600;
}

.profile-order-item .divider {
	height: 1px;
	background: var(--border);
}

.ticket-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.ticket-status-badge--valid {
	background: var(--primary-soft);
	color: var(--primary);
}

.ticket-status-badge--used {
	background: rgba(34, 197, 94, 0.12);
	color: #22c55e;
}

.ticket-status-badge--past {
	background: var(--bg-muted);
	color: var(--text-secondary);
}

.ticket-status-badge--refunded {
	background: rgba(239, 68, 68, 0.12);
	color: #ef4444;
}

.insurance-claim-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
	text-transform: capitalize;
	background: var(--bg-muted);
	color: var(--text-secondary);
}

.insurance-claim-badge--approved,
.insurance-claim-badge--paid {
	background: rgba(34, 197, 94, 0.12);
	color: #22c55e;
}

.insurance-claim-badge--rejected,
.insurance-claim-badge--expired {
	background: rgba(239, 68, 68, 0.12);
	color: #ef4444;
}

.insurance-claim-number {
	display: inline-flex;
	align-items: center;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--text-secondary);
	letter-spacing: 0.02em;
}

.profile-order-item .download-ticket {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border-radius: var(--radius-sm);
	background: var(--info);
	color: #fff;
	font-weight: 500;
	font-size: 0.875rem;
	cursor: pointer;
	transition: opacity 0.2s;
}

.profile-order-item .download-ticket:hover {
	opacity: 0.85;
}

/* --- Forms --- */
.sign__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px;
	width: 100%;
	max-width: 420px;
}

.sign__form--contacts,
.sign__form--profile {
	max-width: 100%;
}

[data-theme="dark"] .sign__form--contacts .sign__input,
[data-theme="dark"] .sign__form--profile .sign__input,
[data-theme="dark"] .sign__form--contacts .sign__textarea,
[data-theme="dark"] .sign__form--profile .sign__textarea {
	background: var(--bg);
	border-color: var(--border);
	color: var(--text);
}
[data-theme="dark"] .sign__form--contacts .sign__input:focus,
[data-theme="dark"] .sign__form--profile .sign__input:focus,
[data-theme="dark"] .sign__form--contacts .sign__textarea:focus,
[data-theme="dark"] .sign__form--profile .sign__textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-soft);
}

.sign__title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}

.sign__label {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 4px;
	display: block;
}

.sign__group {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.sign__input,
.sign__textarea {
	width: 100%;
	padding: 12px 16px;
	background: var(--bg-muted);
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	color: var(--text);
	font-size: 0.95rem;
	transition: all 0.2s;
}

.sign__input:focus,
.sign__textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-soft);
}

.sign__textarea {
	min-height: 120px;
	resize: vertical;
}

.password-guide {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.password-guide li {
	position: relative;
	padding-left: 18px;
	font-size: 0.78rem;
	color: var(--text-secondary);
	transition: color 0.2s;
}

.password-guide li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bg-muted);
	border: 1px solid var(--text-secondary);
	transform: translateY(-50%);
	transition: all 0.2s;
}

.password-guide li.is-valid {
	color: var(--primary);
}

.password-guide li.is-valid::before {
	background: var(--primary);
	border-color: var(--primary);
}

.sign__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 46px;
	border-radius: var(--radius-md);
	background: var(--primary);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	transition: all 0.2s;
}

.sign__btn:hover:not(:disabled) {
	background: var(--primary-hover);
}

.sign__btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.sign__delimiter {
	font-size: 0.85rem;
	color: var(--text-muted);
	text-align: center;
}

.sign__text {
	font-size: 0.85rem;
	color: var(--text-secondary);
	text-align: center;
}

.sign__text a {
	color: var(--primary);
	font-weight: 600;
}

.sign__text a:hover {
	color: var(--primary-hover);
}

.sign__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

/* --- Footer --- */
.footer {
	background: var(--bg-muted);
	padding: 32px 16px 16px;
	text-align: center;
	margin-top: 48px;
}

.footer-content {
	max-width: 500px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.footer-content img.brand-logo {
	width: 120px;
	height: auto;
}

.footer-content p {
	font-size: 0.875rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin: 0;
}

.footer-content a {
	color: var(--primary);
	font-weight: 500;
}

.footer-divider {
	width: 100%;
	height: 1px;
	background: var(--border);
	border: none;
	margin: 8px 0;
}

.footer-social ul {
	display: flex;
	justify-content: center;
	gap: 16px;
}

.footer-social ul img {
	width: 22px;
	height: 22px;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.footer-social ul img:hover {
	opacity: 1;
}

.footer__bottom {
	padding: 16px 0 0;
	margin-top: 16px;
	border-top: 1px solid var(--border);
}

.footer__bottom p {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin: 0;
}

/* --- Modal/Auth --- */
.modal {
	position: relative;
	background: var(--bg-elevated);
	margin: 40px auto;
	width: 100%;
	max-width: 400px;
	padding: 32px;
	border-radius: var(--radius-lg);
}

.modal--form {
	padding: 32px;
}

.auth-modal-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text);
	display: block;
	margin-bottom: 16px;
}

.modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--text-secondary);
}

.modal__close:hover {
	background: var(--bg-muted);
}

.modal__close svg {
	width: 20px;
	height: 20px;
}

.mfp-bg {
	background: rgba(0, 0, 0, 0.6);
}

.mfp-container {
	padding: 0 16px;
}

.checkout-con {
	margin-top: 16px;
}

.checkout-summery-con {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.checkout-summery-con > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.checkout-summery-title {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin: 0;
}

.checkout-summery-con > div > span {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text);
}

.checkout-summery-line {
	border: none;
	height: 1px;
	background: var(--border);
	margin: 4px 0;
}

/* --- Order Completion (v2) --- */
.oc {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 0 0 40px;
}

.oc__hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 32px 0 8px;
	text-align: center;
}

.oc__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--primary-soft);
	color: var(--primary);
	margin-bottom: 8px;
}

.oc__check svg {
	width: 44px;
	height: 44px;
}

.oc__title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--text);
	margin: 0;
	line-height: 1.3;
}

.oc__subtitle {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.5;
	max-width: 420px;
}

.oc__card {
	width: 100%;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.oc__card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid var(--border-subtle);
	background: var(--bg-muted);
}

.oc__card-header svg {
	flex-shrink: 0;
	color: var(--text-muted);
}

.oc__event {
	display: flex;
	gap: 20px;
	padding: 20px;
}

@media (max-width: 575px) {
	.oc__event {
		flex-direction: column;
	}
}

.oc__event-img {
	width: 140px;
	height: 100px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	flex-shrink: 0;
}

@media (max-width: 575px) {
	.oc__event-img {
		width: 100%;
		height: 180px;
	}
}

.oc__event-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.oc__event-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.oc__event-name {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text);
	margin: 0;
	line-height: 1.3;
}

.oc__event-org {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin: 0;
}

.oc__event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 4px;
}

.oc__meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.oc__meta-item svg {
	flex-shrink: 0;
	color: var(--text-muted);
}

.oc__customer {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.oc__customer-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}

.oc__customer-email {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin: 0;
}

.oc__customer-payment {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin: 4px 0 0;
	display: flex;
	align-items: center;
	gap: 4px;
}

.oc__tickets {
	padding: 16px 20px 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.oc__ticket-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border-subtle);
}

.oc__ticket-row:last-child {
	border-bottom: none;
}

.oc__ticket-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.oc__ticket-name {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text);
}

.oc__ticket-seat {
	font-size: 0.8rem;
	color: var(--text-muted);
	font-family: var(--font-mono);
}

.oc__ticket-qty {
	font-size: 0.85rem;
	color: var(--text-muted);
	font-weight: 500;
	white-space: nowrap;
}

.oc__ticket-total {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	text-align: right;
	min-width: 70px;
}

.oc__divider {
	height: 1px;
	background: var(--border-subtle);
	margin: 0 20px;
}

.oc__summary {
	padding: 12px 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.oc__summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.oc__summary-total {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text);
	padding-top: 8px;
	margin-top: 6px;
	border-top: 1px solid var(--border);
}

.oc__steps {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.oc__step {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.oc__step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--primary-soft);
	color: var(--primary);
	font-size: 0.8rem;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 1px;
}

.oc__step-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.oc__step-body h3 {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}

.oc__step-body p {
	font-size: 0.85rem;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.5;
}

.oc__step-body a {
	color: var(--primary);
	font-weight: 500;
}

.oc__step-body a:hover {
	color: var(--primary-hover);
}

.oc__empty {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 48px 20px;
	text-align: center;
	color: var(--text-muted);
}

.oc__empty svg {
	opacity: 0.4;
}

.oc__empty p {
	font-size: 0.95rem;
	color: var(--text-secondary);
	margin: 0;
	max-width: 360px;
	line-height: 1.5;
}

.oc__actions {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	padding: 8px 0 0;
}

.oc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 24px;
	border-radius: var(--radius-md);
	font-size: 0.9rem;
	font-weight: 600;
	transition: all 0.2s ease;
	white-space: nowrap;
	cursor: pointer;
}

.oc__btn--primary {
	background: var(--primary);
	color: #fff;
	border: none;
}

.oc__btn--primary:hover {
	background: var(--primary-hover);
	color: #fff;
}

.oc__btn--outline {
	background: transparent;
	color: var(--text-secondary);
	border: 1px solid var(--border);
}

.oc__btn--outline:hover {
	background: var(--bg-muted);
	color: var(--text);
	border-color: var(--text-muted);
}

/* --- Organizer --- */
.organizer-info-con {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.organizer-info-con > div {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
}

.organizer-info-con img,
.organizer-info-con .logo-replacement {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--bg-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-secondary);
}

.organizer-info-con h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text);
	margin: 0;
}

.organizer-info-con p {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.6;
	margin: 0;
}

/* --- Country List --- */
/* --- Alerts --- */
.b-alert {
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: var(--radius-sm);
	padding: 12px 16px;
	font-size: 0.875rem;
	margin: 8px 0;
	color: var(--text);
}

.b-alert p {
	margin: 0;
}

.b-alert svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.successful.b-alert {
	border-left: 4px solid var(--success);
	background: var(--success-soft);
}

.error.b-alert {
	border-left: 4px solid var(--danger);
	background: var(--danger-soft);
}

.info.b-alert {
	border-left: 4px solid var(--info);
	background: var(--info-soft);
}

.warning.b-alert {
	border-left: 4px solid var(--warning);
	background: var(--warning-soft);
}

/* --- Countdown --- */
.campaign {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.counter {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 16px 0;
}

.counter .title {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 2px;
}

.counter .counter-boxes {
	display: flex;
	gap: 8px;
	align-items: center;
}

.counter .counter-boxes .count-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background: var(--bg-muted);
	border: 2px solid var(--border);
	border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
	.counter .counter-boxes .count-box {
		width: 64px;
		height: 64px;
	}
}

.counter .counter-boxes .count-box h1 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1;
	margin: 0;
}

@media (max-width: 768px) {
	.counter .counter-boxes .count-box h1 {
		font-size: 1.5rem;
	}
}

.counter .counter-boxes .count-box span {
	font-size: 0.65rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* --- Small Countdown (Cart) --- */
.s-counter {
	color: var(--success);
	font-size: 1.25rem;
	font-weight: 700;
}

#countdown-container {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px;
	background: var(--bg-muted);
	border-radius: var(--radius-md);
	margin-bottom: 16px;
}

/* --- Search Filters --- */
#search .main__filter-search {
	width: 100%;
}

/* --- Up Events Grid --- */
.up-events {
	padding: 0 8px;
}

.up-events > div {
	margin-top: 0;
}

/* --- Ticket Grid --- */
.ticket-groups {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-height: 50vh;
	overflow-y: auto;
}

.ticket-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ticket-group .tickets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 8px;
}

.ticket-group .tickets-grid .ticket-item {
	display: flex;
	flex-direction: column;
	padding: 12px;
	border-radius: var(--radius-sm);
	background: var(--bg-muted);
	position: relative;
}

.ticket-item.sold_out::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(235, 87, 87, 0.85);
	border-radius: var(--radius-sm);
	z-index: 3;
}

.ticket-item select {
	margin-top: 8px;
}

.tickets-grid .ticket-item span.remaining {
	color: var(--primary);
	font-size: 0.75rem;
	font-weight: 600;
}

.ticket-title-con {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.ticket-title-con > :nth-child(2) {
	width: 35%;
	text-align: right;
	font-size: 0.9rem;
}

#ticketForm {
	margin-top: 16px;
}

.order-table {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#order-items {
	display: flex;
	flex-direction: column;
}

#order-items > div {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
}

#order-items > div:last-child {
	border-bottom: none;
}

#order-items > div > span {
	font-size: 0.95rem;
	font-weight: 600;
}

/* --- Addon Section --- */
.addon-section {
	margin-top: 16px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.addon-section .cbx {
	width: 100%;
}

/* --- Loader --- */
.loader {
	display: none;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

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

.loading-container {
	position: absolute;
	inset: 0;
	z-index: 99;
	background: var(--overlay-medium);
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-lg);
}

.loading-container.active {
	display: flex;
}

/* --- Misc --- */
.text-center { text-align: center; }
.d-none { display: none; }
.d-flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.mt-2 { margin-top: 8px; }
.my-3 { margin: 16px 0; }

#callBtn svg,
.location-btn svg {
	margin-right: 0;
}

.buy-ticket-btn svg {
	width: 22px;
	height: 22px;
}

.disabled-sold_out {
	color: var(--text-muted) !important;
	font-weight: 500;
	cursor: default !important;
	opacity: 0.6;
	background: var(--bg-muted) !important;
}

.no-neary-event {
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-muted);
}

#seating-chart {
	height: 100%;
	padding-bottom: 48px;
}

.invalid-seats-con {
	background: linear-gradient(to right, rgba(255, 65, 108, 0.5), rgba(255, 75, 43, 0.5));
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	color: rgba(255, 255, 255, 0.7);
	margin-top: 32px;
}

/* --- Plyr overrides --- */
.plyr__control {
	padding: 0;
}

.plyr__control svg {
	width: 22px;
	height: 22px;
}

.plyr__controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.plyr__tooltip {
	background: var(--bg-muted);
	color: var(--text);
	font-size: 0.85rem;
}

.plyr__time {
	font-size: 0.85rem;
	color: var(--text-muted);
}

/* --- Select2 --- */
.select2-container {
	width: auto !important;
}

.select2-container .select2-selection--single {
	height: 40px;
	background: transparent;
	border: none;
	border-radius: 0;
}

.select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 40px;
	color: var(--text);
	padding: 0 18px 0 0;
	font-size: 0.875rem;
}

.select2-dropdown {
	border: none;
	border-radius: var(--radius-md);
	background: var(--bg-muted);
	padding: 4px 0;
	min-width: 180px;
}

.select2-results__option {
	padding: 8px 16px;
	font-size: 0.875rem;
	color: var(--text);
}

/* --- Responsive --- */
@media (max-width: 575px) {
	.main {
		padding: 0 8px 24px;
	}
	.header__content {
		padding: 0 12px;
	}
	.filter-search input {
		min-width: 100px;
	}
}

@media (max-width: 767px) {
	.desktop-order-list {
		display: none;
	}
}

@media (min-width: 768px) {
	.mobile-order-list {
		display: none;
	}
}

/* --- Checkbox (custom) --- */
.checkbox-wrapper-4 .cbx {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	padding: 6px 0;
	user-select: none;
}

.checkbox-wrapper-4 .cbx span:first-child {
	position: relative;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 2px solid var(--border);
	flex-shrink: 0;
	margin-top: 2px;
	transition: all 0.2s;
}

.checkbox-wrapper-4 .cbx span:first-child svg {
	position: absolute;
	top: 2px;
	left: 1px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 16px;
	stroke-dashoffset: 16px;
	transition: all 0.3s ease;
}

.checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child {
	background: var(--primary);
	border-color: var(--primary);
}

.checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child svg {
	stroke-dashoffset: 0;
}

.checkbox-wrapper-4 .inp-cbx {
	position: absolute;
	visibility: hidden;
}

.col-actions {
	text-align: center;
}

.resale-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--radius-md);
	background: var(--primary-soft);
	color: var(--text);
	margin: 16px 0;
	text-decoration: none;
	transition: background 0.2s;
}

.resale-banner:hover {
	background: var(--primary-soft);
	opacity: 0.9;
}

.resale-banner__icon {
	color: var(--primary);
	flex-shrink: 0;
	display: flex;
}

.resale-banner__text {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.resale-banner__title {
	font-weight: 600;
	font-size: 0.95rem;
}

.resale-banner__subtitle {
	font-size: 0.8rem;
	color: var(--text-secondary);
}

.resale-banner__arrow {
	flex-shrink: 0;
	color: var(--primary);
}

.resale-earnings-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.resale-earnings-card {
	background: var(--bg-muted);
	border-radius: var(--radius-md);
	padding: 14px 16px;
}

.resale-earnings-card__label {
	font-size: 0.75rem;
	color: var(--text-secondary);
	font-weight: 500;
	margin-bottom: 4px;
}

.resale-earnings-card__value {
	font-size: 1.25rem;
	font-weight: 700;
}

.resale-listing-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	margin-bottom: 10px;
}

.resale-listing-row__main {
	font-weight: 600;
}

.resale-listing-row__note {
	font-size: 0.8rem;
	color: var(--text-secondary);
	margin-top: 4px;
}

.resale-listing-row__seat {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--primary);
	margin-top: 2px;
}

.resale-listing-row__end {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.resale-listing-row__actions {
	display: flex;
	gap: 8px;
}

.resale-listing-row__actions button {
	background: none;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 4px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	color: var(--text-secondary);
}

.resale-listing-row__actions button:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.resell-ticket-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 12px 0;
	max-height: 200px;
	overflow-y: auto;
}

.resell-ticket-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.resell-ticket-option input {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.resale-earnings-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.resale-listing-row {
		flex-direction: column;
	}

	.resale-listing-row__end {
		align-items: flex-start;
		width: 100%;
	}
}

.checkbox-wrapper-4 .inline-svg {
	position: absolute;
	width: 0;
	height: 0;
	pointer-events: none;
}
