/* Eventixa Account: route-specific layout and behavior only. */

.evx-account,
.evx-account * {
	box-sizing: border-box;
	font-size: 14px;
}


.evx-account a {
	color: var(--evx-primary);
	text-decoration: none !important;
}

.evx-account svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
	width: 20px;
    height: 20px;
    stroke-width: 1.25;
}

.evx-account-notice {
	margin: 0 0 20px;
}

/* Auth */
.evx-account--guest {
	padding: 20px
}

.evx-account-auth {
	max-width: 500px;
	margin: 0 auto
}

.evx-auth-card {
	display: none;
	background: var(--evx-surface);
	border: 1px solid var(--evx-border);
	border-radius: 5px;
	padding: 20px
}

.evx-auth-card--register {
	max-width: 500px;
	margin: 0 auto
}

.evx-auth-card.is-active {
	display: block
}

.evx-auth-hero {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--evx-primary-soft);
	color: var(--evx-primary);
	margin-bottom:10px;
}
.evx-auth-hero svg {
    width: 30px;
    height: 30px;
}
.evx-auth-card h2 {
	text-align: center;
	font-size: 18px;
	line-height: 1.2;
	margin: 0 0 5px
}

.evx-auth-card>p {
	text-align: center;
	color: var(--evx-text-muted);
	font-size: 14px;
	margin: 0 0 15px
}

.evx-auth-form {
	display: flex;
	flex-direction: column;
	gap: 10px
}

.evx-form-grid {
	display: grid;
	gap: 16px
}

.evx-form-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr))
}

.evx-input-wrap {
	border: 1px solid #d8dfeb;
	border-radius: 5px;
	display: flex;
	align-items: center;
	padding: 0 0 0 10px;
	gap: 0;
	background: var(--evx-surface);
	color: var(--evx-text-muted);
}
.evx-profile-card .evx-input-wrap {
    padding: 0;
    border: none;
}
label.evx-form-field {
    line-height: unset;
}
.evx-auth-form .evx-input {
    border-radius: 0;
	margin-left: 5px;
	background:var(--evx-surface);
	border-width: 0 !important;
}
.evx-auth-form .evx-input::placeholder{
	font: 14px;
}
.evx-input-wrap input, .evx-input-wrap input:focus, .evx-input-wrap input:hover, .evx-input-wrap input:read-write {
	box-shadow: none;
	outline: 0;
	min-width: 0;
	font-size: 14px;
	border-color: var(--evx-border);
	padding-left:0;
}
.evx-profile-form .evx-input-wrap input, .evx-profile-form .evx-input-wrap input:focus, .evx-profile-form .evx-input-wrap input:hover, .evx-profile-form .evx-input-wrap input:read-write{
	border-width: 1px;
}
.evx-password-toggle, .evx-password-toggle:hover, .evx-password-toggle:focus {
    border: 0;
    background: transparent;
    cursor: pointer;
	color: var(--evx-primary);
    padding: 10px;
}

.evx-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px
}
.evx-auth-form input[type=checkbox]:checked:before {
    content: "";
    margin-bottom: -1px;
    color: var(--evx-primary);
    font-weight: 600;
    width: 20px;
    line-height: 1.4;
}
.evx-checkbox input {
	width: 20px;
	height: 20px;
	accent-color: var(--evx-primary);
	flex: 0 0 auto;
	margin:0;
}

.evx-checkbox--terms {
	margin-top: 0
}

button.evx-btn-account {
	background: var(--evx-primary);
	color: var(--evx-surface);
	text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
}

button.evx-btn-account:hover {
    background: var(--evx-primary-hover);
	background-color: var(--evx-primary-hover);
    color: #fff;
	border-color: transparent;
}

.evx-primary-btn--auto {
	width: auto;
	padding: 0 20px
}

.evx-auth-separator {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0
}

.evx-auth-separator:before,
.evx-auth-separator:after {
	content: "";
	height: 1px;
	background: var(--evx-border);
	flex: 1
}

.evx-auth-separator span {
	color: var(--evx-text-muted)
}

.evx-auth-switch button[type=button] {
	border: none;
    background: transparent;
    color: var(--evx-primary);
	font-weight: 700;
	padding:0;
	font-size: 14px;
}

/* Account shell */

.evx-account-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	margin: 0 0 15px;
	border-radius:5px;
	border: 1px solid var(--evx-border);
    color: var(--evx-text-primary);
}

.evx-account-shell {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 20px;
	align-items: start
}

.evx-account-drawer {
	background: var(--evx-surface);
	border: 1px solid var(--evx-border);
	border-radius: 5px;
	padding: 10px;
	display: none;
}
.evx-drawer__overlay{
	display: none;
}
.evx-account-userbox {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 5px 5px 15px;
	border-bottom: 1px solid var(--evx-border);
	margin-bottom: 15px;
	min-width: 0
}

.evx-account-userbox div {
	min-width: 0
}

.evx-account-userbox strong {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

.evx-account-userbox small {
	display: block;
	color: var(--evx-text-muted);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

.evx-account-nav {
	display: flex;
	flex-direction: column;
	gap: 8px
}

.evx-account-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--evx-text-primary);
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none !important;
	outline: none !important;
	font-size: 14px;
}
.evx-account-nav a.is-active {
	background: var(--evx-primary-soft);
	color: var(--evx-primary);
}

.evx-account-nav a.is-logout {
	color: var(--evx-primary);
	border-top: 1px solid var(--evx-border);
	border-radius: 0;
	padding-top: 15px;
}

.evx-account-main {
	min-width: 0
}

.evx-dashboard-hero,
.evx-account-card {
	background: var(--evx-surface);
	border: 1px solid var(--evx-border);
	border-radius: 5px;
}

.evx-dashboard-hero {
	display: grid;
	grid-template-columns: minmax(170px, 230px) minmax(170px, 230px);
	gap: 20px;
	align-items: center;
	padding: 20px;
	margin-bottom: 20px;
}

.evx-dashboard-welcome {
	min-width: 0
}

.evx-dashboard-welcome h2 {
	margin: 0 0 8px;
	font-size: 25px;
	line-height: 1.2
}

.evx-dashboard-welcome p {
	margin: 0;
	color: var(--evx-text-muted)
}

.evx-stat-card {
	border: 1px solid var(--evx-border);
	border-radius: 5px;
	padding: 10px;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 15px;
	align-items: center;
	min-width: 0;
}

.evx-stat-card svg {
	grid-row: 1/3;
	width: 35px;
	height: 35px;
	padding: 5px;
	border-radius: 5px;
	background: #f0e7ff;
	color: #7c3aed
}

.evx-stat-card--green svg {
	background: #dcfce7;
	color: #16a34a
}

.evx-stat-card strong {
	font-size: 18px;
	line-height: 1;
}

.evx-stat-card span {
	color: var(--evx-text-muted);
}

.evx-account-card {
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: none;
}

.evx-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px
}

.evx-card-head h2,
.evx-card-head h3 {
	margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
}

.evx-card-head a {
	font-weight: 700
}

.evx-event-row {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr) auto auto;
	gap: 15px;
	align-items: center;
	color: var(--evx-text-primary) !important;
	padding: 10px 5px;
	border-bottom: 1px solid var(--evx-border);
	text-decoration: none !important;
}

.evx-event-row:last-child {
	border-bottom: 0
}

.evx-event-thumb {
	width: 100px;
	height: 70px;
	background: #eef2f7;
	border-radius: 8px;
	overflow: hidden
}

.evx-event-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.evx-event-info {
	min-width: 0;
	display: grid;
}
.evx-event-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 0px;
    line-height: 1;
    font-weight: 600;
}

.evx-event-info span {
	color: var(--evx-text-muted);
	font-size: 14px;
}


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

/* Tables and pagination */
.evx-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch
}

.evx-bookings-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--evx-border);
    border-radius: 5px;
    overflow: hidden;
    background: var(--evx-surface);
    min-width: 720px;
	margin:0;
}

.evx-bookings-table th,
.evx-bookings-table td {
	padding: 5px 10px;
	border: 0;
}
.evx-view-details-btn {
    margin-bottom: 5px;
}
.evx-bookings-table tr {
	cursor: pointer;
	font-size: 14px;
}

.evx-bookings-table tr:hover td {
	background: #fff8f5
}

.evx-bookings-table tr:last-child td {
	border-bottom: 0 !important
}

/* Profile */

.evx-profile-form {
	display: flex;
	flex-direction: column;
	gap: 18px
}

.evx-bookings-table th:last-child,
.evx-bookings-table td:last-child {
	text-align: right !important;
}

.evx-bookings-table tr:hover td {
	background: var(--evx-surface) !important;
}


/* AJAX/auth compact refinements */
.evx-primary-btn.is-loading,
.evx-account-nav a.is-loading {
	opacity: .72;
	pointer-events: none;
	cursor: progress
}

.evx-account-notices:empty {
	display: none
}

/* Account AJAX validation */
.evx-account .evx-field-error {
	font-size: 12px;
	color: var(--evx-danger);
}

.evx-account .evx-field.is-error .evx-input-wrap {
	border-color: var(--evx-danger);
	box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.evx-account .evx-field.is-error input {
	color: var(--evx-danger)
}

.evx-account .evx-form-error {
    display: none;
    margin: 2px 0 0;
    padding: 10px;
    border-radius: 5px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: var(--evx-danger);
    font-size: 12px;
    line-height: 1.4;
}

.evx-account .evx-form-error.is-visible {
	display: block
}

.evx-account .evx-checkbox.is-error,
.evx-account [data-evx-field="agree_terms"].is-error {
	color: #be123c
}

.evx-account .evx-primary-btn.is-loading {
	opacity: .75;
	cursor: wait
}

/* My Account maintainability/accessibility refinements */
.evx-account a:focus-visible,
.evx-account button:focus-visible {
	outline: none;
}

.evx-account-nav a[aria-current="page"] {
	background: var(--evx-primary-soft);
	color: var(--evx-primary) !important
}

.evx-empty {
	padding: 18px;
	border: 1px dashed var(--evx-border);
	border-radius: 12px;
	background: #fffaf7;
	text-align: center;
	font-weight: 600
}

.evx-account-notice[role="alert"],
.evx-form-error[role="alert"] {
	scroll-margin-top: 24px
}

.evx-profile-form[data-evx-ajax-form] .evx-form-error {
	max-width: 100%
}

.evx-account .evx-form-error__list {
	margin: 0;
	padding-left: 18px
}

.evx-account .evx-form-error__list li+li {
	margin-top: 4px
}

/* Frontend Architecture Pass 4: account/bookings reusable component helpers. */

.evx-booking-details-list {
	display: grid;
	gap: 10px;
	margin: 0
}

.evx-booking-details-list>div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px
}

.evx-booking-details-list dt {
	font-weight: 700;
	color: var(--evx-text-muted, var(--evx-text-muted))
}

.evx-booking-details-list dd {
	margin: 0;
	font-weight: 800;
	color: var(--evx-text-primary, var(--evx-text-primary))
}

.evx-account-ticket-list {
	display: grid;
	gap: 12px
}

.evx-account-ticket-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid var(--evx-border, #eaecf0);
	border-radius: 10px;
	background: var(--evx-surface)
}

.evx-account-ticket-card strong {
	font-weight: 800;
	color: var(--evx-text-primary, var(--evx-text-secondary))
}

.evx-account-ticket-card span {
	color: var(--evx-text-muted, var(--evx-text-muted))
}

.evx-account-ticket-card em {
	font-style: normal;
	font-weight: 800;
	color: var(--evx-primary, #f97316)
}

.evx-invoice-summary {
	display: grid;
	gap: 10px
}

.evx-invoice-summary>div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px
}

.evx-invoice-summary span {
	color: var(--evx-text-muted, var(--evx-text-muted));
	font-weight: 700
}

.evx-invoice-summary strong {
	color: var(--evx-text-primary, var(--evx-text-primary));
	font-weight: 800
}

.evx-booking-status-timeline {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none
}

.evx-booking-status-timeline li {
	display: grid;
	grid-template-columns: 18px 1fr;
	column-gap: 10px;
	align-items: start;
	color: var(--evx-text-muted, var(--evx-text-muted))
}

.evx-booking-status-timeline li>span {
	width: 12px;
	height: 12px;
	margin-top: 5px;
	border-radius: 999px;
	border: 2px solid currentColor
}

.evx-booking-status-timeline li.is-active {
	color: var(--evx-primary, #f97316)
}

.evx-booking-status-timeline strong {
	display: block;
	color: inherit
}

.evx-booking-status-timeline em {
	grid-column: 2;
	font-style: normal;
	font-size: 12px;
	color: var(--evx-text-muted, var(--evx-text-muted))
}

.evx-account-bookings-table .evx-status--rsvp {
	background: rgba(124, 58, 237, 0.12);
	color: #6d28d9;
	border-color: rgba(124, 58, 237, 0.22);
}

/* Frontend UI Phase 4: shared authentication/profile/password components. */
.evx-account .evx-profile-card,
.evx-account .evx-password-card {
	max-width: 760px;
}

.evx-account .evx-password-form {
	display: grid;
	gap: var(--evx-space-4);
}

.evx-account .evx-password-strength-hint {
	display: block;
	margin-top: calc(var(--evx-space-2) * -1);
	color: var(--evx-text-muted);
	font-size: var(--evx-font-size-sm);
}

.evx-account .evx-field__label {
	margin-bottom: var(--evx-space-2);
}


/* Frontend UI Phase 5: My Account shared component integration. */
.evx-account .evx-account-card.evx-ui-card>.evx-card-header,
.evx-account .evx-account-card.evx-ui-card>.evx-card-body {
	display: contents;
}

.evx-account .evx-account-card__action {
	flex: 0 0 auto;
}
.evx-account .evx-account-empty-state {
    min-height: 50px;
    font-size: 14px;
    font-weight: 500;
}
.evx-account .evx-account-empty-state h2 {
	display: none;
}

.evx-account .evx-account-empty-state p {
	margin: 0;
}

.evx-account .evx-account-avatar.evx-avatar {
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	border-radius: 50%;
}

.evx-account .evx-account-avatar.evx-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.evx-account .evx-stat-card.evx-ui-card {
	box-shadow: none;
}

.evx-account .evx-stat-card__icon {
	grid-row: 1 / 3;
	display: contents;
}

.evx-account .evx-account-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.evx-account .evx-view-details-btn.evx-btn {
	white-space: nowrap;
	font-size: 12px;
    font-weight: 500;
}

@media (max-width: 768px) {
	.evx-account--guest {
		padding: 10px;
	}
	.evx-account-auth {
		max-width: 100%;
	}
	.evx-auth-hero{
		width: 50px;
		height: 50px;
	}
	.evx-auth-card h2 {
		font-size: 16px;
	}
	.evx-auth-card>p{
		font-size: 12px;
	}
	.evx-account svg{
		width: 20px;
		height: 20px;
	}
	.evx-auth-hero svg {
		width: 30px;
		height: 30px;
	}
	.evx-form-grid--two {
		grid-template-columns: 1fr;
		gap:0;
	}
	.evx-auth-separator{
		margin: 10px 0;
	}
	.evx-checkbox--terms {
		font-size: 12px;
	}
	.evx-dashboard-hero {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0;
		gap: 10px;
		border: none;
	}

	.evx-dashboard-avatar {
		width: 64px !important;
		height: 64px !important
	}

	.evx-dashboard-welcome h2 {
		font-size: 20px
	}

	.evx-stat-card {
		grid-column: span 1;
		grid-template-columns: 44px 1fr;
		padding: 13px
	}

	.evx-stat-card svg {
		width: 44px;
		height: 44px;
		padding: 10px
	}

	.evx-stat-card strong {
		font-size: 23px
	}

	.evx-account-card {
		padding: 18px 14px
	}

	.evx-card-head {
		margin-bottom: 14px
	}

	.evx-event-row {
		grid-template-columns: 100px 1fr;
		align-items: start;
		padding: 14px 0;
	}

	.evx-event-thumb {
		width: 104px;
		height: 84px
	}

	.evx-event-info strong {
		font-size: 15px
	}

	.evx-event-row .evx-status {
		grid-column: 2;
		width: max-content
	}

	.evx-bookings-table {
		min-width: 0;
		border: 0;
		background: transparent
	}

	.evx-bookings-table,
	.evx-bookings-table thead,
	.evx-bookings-table tbody,
	.evx-bookings-table tr,
	.evx-bookings-table td {
		display: block;
		width: 100%
	}

	.evx-bookings-table thead {
		display: none
	}

	.evx-bookings-table tr {
		padding: 12px;
		margin-bottom: 12px;
		border: 1px solid var(--evx-border);
		border-radius: 10px;
		background: var(--evx-surface)
	}

	.evx-bookings-table td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 7px 0 !important;
		border: 0 !important;
		text-align: right !important
	}

	.evx-bookings-table td:before {
		content: attr(data-label);
		font-weight: 800;
		color: var(--evx-text-secondary);
		text-align: left
	}

	.evx-primary-btn--auto {
		width: 100%
	}

	.evx-account-menu-toggle {
        display: inline-flex;
    }
	.evx-account-sidebar--desktop {
        display: none;
    }
	.evx-account-drawer.is-open {
        transform: translateX(0);
    }
	.evx-account-drawer {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 86vw);
        z-index: 99999;
        border-radius: 0;
        transform: translateX(-105%);
        transition: transform .22s ease;
        overflow: auto;
		display: block;
    }
	.evx-account-shell {
        grid-template-columns: 1fr;
    }
	.evx-drawer-open .evx-drawer__overlay {
        opacity: 1;
        pointer-events: auto;
    }
	.evx-drawer__overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .55);
        z-index: 99998;
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }
	.evx-account-menu-open .evx-account-overlay {
        opacity: 1;
        pointer-events: auto;
    }
	.evx-drawer__panel .evx-account-menu-close {
        display: block;
        border: 0 !important;
        background: transparent !important;
        font-size: 34px;
        line-height: 1;
        margin: 0 0 10px;
        color: var(--evx-text-primary) !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
	.evx-view-link {
		grid-column: 2;
		width: max-content;
	}
	.evx-bookings-table td:last-child {
		justify-content: flex-start;
		text-align: left;
	}

	.evx-bookings-table td:last-child:before {
		display: none;
	}
}


@media (max-width: 720px) {
	

	
}


@media (min-width: 769px) and (max-width:1024px) {
	.evx-account-shell{
		grid-template-columns: 150px minmax(0, 1fr);
		gap: 15px;
	}
}

