/* Tableau de bord agent - Tourism Marketplace (voir tm-tokens.css pour les variables) */

.tm-dashboard {
	max-width: 980px;
	margin: 2.5em auto;
	padding: 0 20px;
	font-family: var(--tm-font-body);
	color: var(--tm-ink);
}

.tm-dashboard-login {
	max-width: 480px;
	background: var(--tm-white);
	border-radius: var(--tm-radius);
	box-shadow: var(--tm-shadow);
	padding: 32px;
}

/* ---- Bandeau d'en-tête ---- */

.tm-dashboard-header {
	background: linear-gradient(120deg, var(--tm-ink) 0%, #26394F 100%);
	border-radius: var(--tm-radius);
	padding: 32px 36px;
	margin-bottom: 24px;
	color: var(--tm-white);
	position: relative;
	overflow: hidden;
}

.tm-dashboard-header::after {
	content: "";
	position: absolute;
	top: -40px;
	right: -40px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: rgba(227, 169, 58, 0.18);
}

.tm-dashboard-header .tm-eyebrow {
	color: var(--tm-gold);
}

.tm-dashboard-header h2 {
	margin: 0;
	font-size: 1.9rem;
	color: var(--tm-white);
}

/* ---- Statistiques ---- */

.tm-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.tm-stat-card {
	background: var(--tm-white);
	border-radius: var(--tm-radius);
	box-shadow: var(--tm-shadow);
	padding: 20px;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tm-stat-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--tm-shadow-hover);
}

.tm-stat-card.tm-stat-highlight {
	background: linear-gradient(135deg, var(--tm-gold) 0%, #F0C674 100%);
}

.tm-stat-value {
	display: block;
	font-family: var(--tm-font-mono);
	font-size: 1.6em;
	font-weight: 700;
	color: var(--tm-ink);
	margin-bottom: 4px;
}

.tm-stat-label {
	display: block;
	font-size: 0.82em;
	color: var(--tm-ink-soft);
}

.tm-stat-highlight .tm-stat-label {
	color: #6B4E00;
}

/* ---- Sections ---- */

.tm-dashboard-section {
	background: var(--tm-white);
	border-radius: var(--tm-radius);
	box-shadow: var(--tm-shadow);
	padding: 28px 32px;
	margin-bottom: 24px;
}

.tm-dashboard-section h3 {
	font-size: 1.3rem;
	margin: 0 0 18px;
}

.tm-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.tm-section-header h3 {
	margin: 0;
}

.tm-empty-state {
	background: var(--tm-sand);
	border: 1.5px dashed var(--tm-line);
	border-radius: var(--tm-radius-sm);
	padding: 24px;
	text-align: center;
	color: var(--tm-ink-soft);
}

/* ---- Abonnement ---- */

.tm-plan-summary {
	background: var(--tm-sand);
	border-radius: var(--tm-radius-sm);
	padding: 18px 20px;
}

.tm-plan-expiry {
	color: var(--tm-ink-soft);
	font-weight: 400;
}

.tm-plan-usage {
	margin: 10px 0;
	padding-left: 20px;
	font-family: var(--tm-font-mono);
	font-size: 0.85rem;
}

.tm-plan-usage li {
	margin-bottom: 4px;
}

/* ---- Galerie (gestion) ---- */

.tm-gallery-manage {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 10px 0;
}

.tm-gallery-manage-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-weight: 400;
	font-size: 0.8em;
}

.tm-gallery-manage-item img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: var(--tm-radius-sm);
	border: 1px solid var(--tm-line);
}

/* ---- Bloc "Ma page publique" façon carte d'embarquement ---- */

.tm-boarding-pass {
	display: flex;
	background: var(--tm-ink);
	border-radius: var(--tm-radius);
	overflow: hidden;
	color: var(--tm-white);
	position: relative;
}

.tm-boarding-pass::after {
	content: "";
	position: absolute;
	left: 220px;
	top: 0;
	bottom: 0;
	width: 0;
	border-left: 2px dashed rgba(255, 255, 255, 0.25);
}

.tm-boarding-pass .tm-notch-top,
.tm-boarding-pass .tm-notch-bottom {
	content: "";
	position: absolute;
	left: 210px;
	width: 20px;
	height: 20px;
	background: var(--tm-sand);
	border-radius: 50%;
	z-index: 2;
}

.tm-boarding-pass .tm-notch-top {
	top: -10px;
}

.tm-boarding-pass .tm-notch-bottom {
	bottom: -10px;
}

.tm-boarding-pass-stub {
	width: 220px;
	flex-shrink: 0;
	background: #16222F;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tm-boarding-pass-stub img {
	width: 100%;
	max-width: 150px;
	border-radius: 8px;
	background: var(--tm-white);
	padding: 8px;
}

.tm-boarding-pass-info {
	flex: 1;
	padding: 24px 28px;
}

.tm-boarding-pass-info .tm-eyebrow {
	color: var(--tm-gold);
}

.tm-boarding-pass-info p {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 16px;
}

.tm-boarding-pass-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

@media (max-width: 640px) {
	.tm-boarding-pass {
		flex-direction: column;
	}
	.tm-boarding-pass::after,
	.tm-boarding-pass .tm-notch-top,
	.tm-boarding-pass .tm-notch-bottom {
		display: none;
	}
	.tm-boarding-pass-stub {
		width: 100%;
	}
}

/* ---- Tableaux ---- */

.tm-table {
	width: 100%;
	border-collapse: collapse;
}

.tm-table th,
.tm-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--tm-line);
	text-align: left;
	font-size: 0.92rem;
}

.tm-table th {
	font-family: var(--tm-font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tm-ink-soft);
	background: var(--tm-sand);
}

.tm-table tbody tr:hover {
	background: var(--tm-sand);
}

.tm-table .tm-highlight-col {
	font-family: var(--tm-font-mono);
	font-weight: 700;
	color: var(--tm-clay);
}

@media (max-width: 640px) {
	.tm-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}
