/**
 * Aventure — Mon compte v1.1
 */

.avc-dashboard {
	--avc-glow: rgba(99, 102, 241, 0.45);
	max-width: 880px;
	margin: 0 auto 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
	animation: avc-fade-in 0.45s ease-out;
}

@keyframes avc-fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.avc-toast {
	padding: 0.75rem 1rem;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(74, 222, 128, 0.18), rgba(99, 102, 241, 0.15));
	border: 1px solid rgba(74, 222, 128, 0.35);
	color: #bbf7d0;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
}

/* Hero */
.avc-hero {
	position: relative;
	padding: 1.65rem 1.5rem 1.35rem;
	border-radius: var(--av-radius, 18px);
	background: linear-gradient(145deg, #0c1222 0%, #1a2744 45%, #1e1b4b 100%);
	border: 1px solid rgba(148, 163, 184, 0.2);
	box-shadow: var(--av-shadow, 0 20px 50px -20px rgba(15, 23, 42, 0.55));
	overflow: hidden;
}

.avc-hero__glow {
	position: absolute;
	top: -40%;
	right: -15%;
	width: 55%;
	height: 120%;
	background: radial-gradient(circle, var(--avc-glow) 0%, transparent 68%);
	pointer-events: none;
	opacity: 0.7;
}

.avc-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.15rem;
	z-index: 1;
}

.avc-hero__avatar {
	flex-shrink: 0;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.65rem;
	font-weight: 900;
	color: #fff;
	background: linear-gradient(135deg, var(--av-accent, #6366f1), var(--av-accent-2, #8b5cf6));
	box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.avc-hero__title {
	margin: 0.15rem 0 0.2rem;
	font-size: clamp(1.35rem, 4vw, 1.75rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--av-text, #f8fafc);
	letter-spacing: -0.02em;
}

.avc-hero__email {
	margin: 0;
	font-size: 0.9rem;
	color: var(--av-text-muted, #94a3b8);
	word-break: break-all;
}

.avc-hero__chips {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1.1rem;
	z-index: 1;
}

.avc-chip {
	display: inline-flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.45rem 0.85rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(6px);
}

.avc-chip__label {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--av-text-muted, #94a3b8);
}

.avc-chip strong {
	font-size: 0.95rem;
	color: var(--av-text, #f1f5f9);
}

.avc-chip--grade strong {
	color: #c7d2fe;
}

/* Grid */
.avc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem;
}

@media (max-width: 700px) {
	.avc-grid {
		grid-template-columns: 1fr;
	}
}

.avc-panel {
	padding: 1.2rem 1.25rem 1.15rem;
}

.avc-panel__head {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 1rem;
}

.avc-panel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 10px;
	font-size: 0.75rem;
	background: rgba(99, 102, 241, 0.25);
	color: #c7d2fe;
}

.avc-panel__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--av-text, #f1f5f9);
}

.avc-panel--session {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.avc-panel--session .avc-panel__head {
	margin-bottom: 0;
}

.avc-btn-logout {
	margin-left: auto;
}

/* Lists */
.avc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.avc-list__item {
	padding: 0.8rem 0.9rem;
	border-radius: 14px;
	background: rgba(15, 23, 42, 0.35);
	border: 1px solid rgba(148, 163, 184, 0.12);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.avc-list__item:hover {
	border-color: rgba(99, 102, 241, 0.35);
	background: rgba(30, 41, 59, 0.5);
}

.avc-list__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.45rem;
}

.avc-list__main strong {
	font-size: 0.92rem;
	color: var(--av-text, #f1f5f9);
}

.avc-list__sub {
	margin: 0.35rem 0 0;
	font-size: 0.8rem;
	color: var(--av-text-muted, #94a3b8);
}

.avc-link {
	display: inline-block;
	margin-top: 0.45rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #a5b4fc;
	text-decoration: none;
}

.avc-link:hover {
	color: #c7d2fe;
	text-decoration: underline;
}

.avc-pill {
	display: inline-block;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: rgba(148, 163, 184, 0.2);
	color: #cbd5e1;
}

.avc-pill--active,
.avc-pill--active {
	background: rgba(74, 222, 128, 0.22);
	color: #86efac;
}

.avc-pill--on-hold,
.avc-pill--pending {
	background: rgba(245, 158, 11, 0.22);
	color: #fcd34d;
}

.avc-empty {
	margin: 0 0 0.85rem;
	font-size: 0.88rem;
	color: var(--av-text-muted, #94a3b8);
	line-height: 1.45;
}

/* Payment cards */
.avc-pay-list {
	list-style: none;
	margin: 0 0 0.85rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.avc-pay {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	gap: 0.5rem 0.65rem;
	align-items: center;
	padding: 0.7rem 0.85rem;
	border-radius: 14px;
	background: rgba(15, 23, 42, 0.4);
	border: 1px solid rgba(148, 163, 184, 0.14);
}

.avc-pay__icon {
	font-size: 1.1rem;
	opacity: 0.6;
}

.avc-pay__info {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.avc-pay__brand {
	font-weight: 800;
	font-size: 0.82rem;
	color: var(--av-text, #f1f5f9);
}

.avc-pay__num {
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	color: var(--av-text-muted, #94a3b8);
}

.avc-pay__exp {
	font-size: 0.78rem;
	color: var(--av-text-muted, #94a3b8);
}

.avc-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

/* Danger zone */
.avc-panel--danger {
	border-color: rgba(248, 113, 113, 0.28);
	background: linear-gradient(160deg, rgba(30, 15, 20, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.avc-panel--danger .avc-panel__icon {
	background: rgba(248, 113, 113, 0.2);
	color: #fecaca;
}

.avc-panel--danger .avc-panel__title {
	color: #fecaca;
}

.avc-danger__text {
	margin: 0 0 0.9rem;
	font-size: 0.86rem;
	color: var(--av-text-muted, #94a3b8);
	line-height: 1.5;
}

.avc-delete-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.avc-delete-form__check,
.avc-delete-form__phrase {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.86rem;
	color: #e2e8f0;
}

.avc-delete-form__phrase input {
	max-width: 260px;
	padding: 0.55rem 0.7rem;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.3);
	background: rgba(15, 23, 42, 0.65);
	color: #f8fafc;
}

.avc-btn--danger {
	background: linear-gradient(135deg, #ef4444, #b91c1c);
	color: #fff;
}

.avc-btn--danger:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
}

.avc-notice {
	padding: 0.65rem 0.85rem;
	border-radius: 12px;
	font-size: 0.86rem;
}

.avc-notice--error {
	background: rgba(248, 113, 113, 0.12);
	color: #fecaca;
	border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Onglets */
.avc-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.35rem;
	padding: 0.35rem;
	border-radius: 14px;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.15);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.avc-panel__intro {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--av-text-muted, #94a3b8);
}

.avc-toast--error {
	background: linear-gradient(135deg, rgba(248, 113, 113, 0.18), rgba(127, 29, 29, 0.12));
	border-color: rgba(248, 113, 113, 0.4);
	color: #fecaca;
}

.avc-tabs__btn {
	flex: 1 1 auto;
	min-width: 7.5rem;
	padding: 0.55rem 0.85rem;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--av-text-muted, #94a3b8);
	font-family: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.avc-tabs__btn:hover {
	color: var(--av-text, #f1f5f9);
	background: rgba(255, 255, 255, 0.06);
}

.avc-tabs__btn.is-active {
	color: #fff;
	background: linear-gradient(135deg, var(--av-accent, #6366f1), var(--av-accent-2, #8b5cf6));
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.avc-tab-panels {
	margin-top: 0.25rem;
}

.avc-tab-panel {
	display: none;
	flex-direction: column;
	gap: 1.15rem;
}

.avc-tab-panel.is-active {
	display: flex;
}

/* Adresses */
.avc-address-preview {
	margin: 0 0 1rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: rgba(99, 102, 241, 0.1);
	border: 1px solid rgba(99, 102, 241, 0.22);
	font-size: 0.9rem;
	line-height: 1.55;
	color: #e2e8f0;
}

.avc-address-form {
	margin-top: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.avc-address-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem 0.85rem;
}

.avc-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.avc-field--wide,
.avc-field--address_1,
.avc-field--address_2 {
	grid-column: 1 / -1;
}

.avc-field__label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--av-text-muted, #94a3b8);
}

.avc-field__req {
	color: #f87171;
}

.avc-field__input {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	background: rgba(15, 23, 42, 0.55);
	color: var(--av-text, #f8fafc);
	font-family: inherit;
	font-size: 0.9rem;
}

.avc-field__input:focus {
	outline: none;
	border-color: rgba(99, 102, 241, 0.65);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.avc-copy-form {
	margin-top: 0.75rem;
}

.avc-wc-fallback {
	margin: 0.75rem 0 0;
	font-size: 0.82rem;
}

.avc-guest {
	padding: 2rem 1.5rem;
	text-align: center;
}

.avc-guest p {
	margin: 0 0 1rem;
	color: var(--av-text-muted, #94a3b8);
}

@media (max-width: 520px) {
	.avc-pay {
		grid-template-columns: auto 1fr;
	}
	.avc-pay__exp,
	.avc-pay .avc-pill {
		grid-column: 2;
	}
	.avc-address-form__grid {
		grid-template-columns: 1fr;
	}
	.avc-tabs__btn {
		min-width: 6.5rem;
		flex: 0 0 auto;
	}
}
