:root {
	--bg-dark: #040810;
	--bg-card: rgba(13, 22, 38, 0.75);
	--bg-card-hover: rgba(20, 32, 54, 0.85);
	--border-card: rgba(255, 255, 255, 0.08);

	--accent-emerald: #10b981;
	--accent-emerald-glow: rgba(16, 185, 129, 0.3);
	--accent-gold: #f59e0b;
	--accent-gold-glow: rgba(245, 158, 11, 0.3);
	--accent-cyan: #06b6d4;
	--accent-red: #ef4444;

	--text-main: #f8fafc;
	--text-muted: #94a3b8;
	--text-dim: #64748b;

	--font-heading: "Orbitron", sans-serif;
	--font-body: "Montserrat", sans-serif;
	--radius-lg: 20px;
	--radius-md: 12px;
	--radius-sm: 8px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: var(--font-body);
	-webkit-tap-highlight-color: transparent;
}

body {
	background-color: var(--bg-dark);
	color: var(--text-main);
	min-height: 100vh;
	padding-bottom: 90px;
	background-image:
		radial-gradient(
			circle at 10% 20%,
			rgba(16, 185, 129, 0.07) 0%,
			transparent 40%
		),
		radial-gradient(
			circle at 90% 80%,
			rgba(245, 158, 11, 0.05) 0%,
			transparent 40%
		);
	background-attachment: fixed;
	overflow-x: hidden;
}

/* Header Navbar App */
.app-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(4, 8, 16, 0.85);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border-card);
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

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

.brand-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(
		135deg,
		var(--accent-emerald),
		var(--accent-cyan)
	);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	box-shadow: 0 0 15px var(--accent-emerald-glow);
}

.brand-title {
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	background: linear-gradient(to right, #ffffff, #cbd5e1);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.brand-subtitle {
	font-size: 11px;
	color: var(--accent-emerald);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Controls Header (Dev Mode Button & Profile) */
.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.btn-dev-toggle {
	background: rgba(245, 158, 11, 0.15);
	border: 1px solid var(--accent-gold);
	color: var(--accent-gold);
	font-family: var(--font-heading);
	font-size: 11px;
	padding: 6px 12px;
	border-radius: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.btn-dev-toggle:hover {
	background: var(--accent-gold);
	color: #000;
}

.btn-dev-toggle.active {
	background: var(--accent-gold);
	color: #000;
	box-shadow: 0 0 12px var(--accent-gold-glow);
}

/* Layout Main Container */
.container {
	max-width: 600px;
	margin: 0 auto;
	padding: 16px;
}

/* Banner de Início do Desafio */
.hero-banner {
	background: linear-gradient(
		135deg,
		rgba(16, 185, 129, 0.15),
		rgba(6, 182, 212, 0.1)
	);
	border: 1px solid rgba(16, 185, 129, 0.3);
	border-radius: var(--radius-lg);
	padding: 24px 20px;
	margin-bottom: 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-banner::after {
	content: "";
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200px;
	height: 200px;
	background: radial-gradient(
		circle,
		var(--accent-emerald-glow) 0%,
		transparent 70%
	);
	pointer-events: none;
}

.hero-title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 8px;
	color: #fff;
}

.hero-desc {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.5;
	margin-bottom: 18px;
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent-emerald), #059669);
	color: #ffffff;
	border: none;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	padding: 14px 28px;
	border-radius: 30px;
	cursor: pointer;
	box-shadow: 0 4px 20px var(--accent-emerald-glow);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

/* Card de Progresso & Metas */
.stats-card {
	background: var(--bg-card);
	border: 1px solid var(--border-card);
	border-radius: var(--radius-lg);
	padding: 18px;
	margin-bottom: 24px;
	backdrop-filter: blur(12px);
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
	text-align: center;
}

.stat-box {
	padding: 8px;
}

.stat-value {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 800;
	color: var(--accent-emerald);
}

.stat-value.gold {
	color: var(--accent-gold);
}

.stat-label {
	font-size: 11px;
	color: var(--text-muted);
	text-transform: uppercase;
	margin-top: 4px;
	font-weight: 500;
}

.progress-bar-bg {
	grid-column: span 3;
	height: 8px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	overflow: hidden;
	margin-top: 10px;
}

.progress-bar-fill {
	height: 100%;
	background: linear-gradient(
		to right,
		var(--accent-emerald),
		var(--accent-cyan)
	);
	width: 0%;
	transition: width 0.6s ease;
	border-radius: 10px;
}

/* Abas e Filtros de Fases */
.phase-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border-card);
	padding-bottom: 10px;
}

.tab-btn {
	flex: 1;
	background: transparent;
	border: 1px solid var(--border-card);
	color: var(--text-muted);
	padding: 12px;
	border-radius: var(--radius-md);
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.tab-btn.active {
	background: rgba(16, 185, 129, 0.15);
	border-color: var(--accent-emerald);
	color: var(--accent-emerald);
}

/* Timeline Lista de Dias */
.days-feed {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 24px;
}

.feed-phase-header {
	margin: 18px 2px 2px;
	font-family: var(--font-display, "Orbitron", sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--accent-emerald, #10b981);
}

.day-card {
	background: var(--bg-card);
	border: 1px solid var(--border-card);
	border-radius: var(--radius-md);
	padding: 16px;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.day-card.unlocked {
	border-color: rgba(16, 185, 129, 0.3);
	cursor: pointer;
}

.day-card.unlocked:hover {
	border-color: var(--accent-emerald);
	background: var(--bg-card-hover);
	transform: translateY(-2px);
}

.day-card.locked {
	opacity: 0.65;
	background: rgba(10, 15, 26, 0.6);
	border-color: rgba(255, 255, 255, 0.04);
	filter: grayscale(1); /* cinza e inacessível até liberar */
}

/* Card de porta entre a Pré-Ativação e o Desafio */
.challenge-gate-card {
	margin: 14px 0 4px;
	padding: 18px 16px;
	border-radius: var(--radius-md);
	background: linear-gradient(
		135deg,
		rgba(16, 185, 129, 0.12),
		rgba(10, 15, 26, 0.9)
	);
	border: 1px solid rgba(16, 185, 129, 0.35);
}

.gate-title {
	font-family: var(--font-display, "Orbitron", sans-serif);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: var(--accent-emerald, #10b981);
	margin-bottom: 6px;
}

.gate-desc {
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-muted, #94a3b8);
	margin-bottom: 14px;
}

.gate-btn {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, #f59e0b, #ef4444);
	color: #fff;
	font-family: var(--font-display, "Orbitron", sans-serif);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1px;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.gate-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
}

.gate-btn-muted {
	background: linear-gradient(135deg, #64748b, #334155);
}

.gate-btn-pause {
	background: linear-gradient(135deg, #f59e0b, #d97706);
}

.day-card.completed {
	border-color: var(--accent-emerald);
	background: rgba(16, 185, 129, 0.06);
}

.day-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.day-badge {
	font-family: var(--font-heading);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 12px;
	text-transform: uppercase;
}

.day-badge.prep {
	background: rgba(6, 182, 212, 0.2);
	color: var(--accent-cyan);
}

.day-badge.challenge {
	background: rgba(16, 185, 129, 0.2);
	color: var(--accent-emerald);
}

.status-icon {
	font-size: 16px;
}

.day-title {
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 4px;
}

.day-subtitle {
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.4;
}

.lock-info {
	margin-top: 10px;
	font-size: 11px;
	color: var(--accent-gold);
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

/* Modal / Drawer do Conteúdo do Dia */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(12px);
	z-index: 200;
	display: none;
	justify-content: center;
	align-items: flex-end;
}

.modal-overlay.active {
	display: flex;
}

.modal-content {
	background: #09111e;
	border: 1px solid var(--border-card);
	border-top-left-radius: 24px;
	border-top-right-radius: 24px;
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
	position: relative;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
	animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
}

.modal-section {
	margin-bottom: 20px;
}

.modal-section-title {
	font-family: var(--font-heading);
	font-size: 13px;
	color: var(--accent-emerald);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.task-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.task-item {
	background: var(--bg-card);
	border: 1px solid var(--border-card);
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.task-item.completed {
	border-color: var(--accent-emerald);
	background: rgba(16, 185, 129, 0.1);
}

.task-checkbox {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 2px solid var(--text-dim);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	margin-top: 2px;
	transition: all 0.2s ease;
}

.task-item.completed .task-checkbox {
	background: var(--accent-emerald);
	border-color: var(--accent-emerald);
	color: #000;
}

.task-text-title {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}

.task-text-desc {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 2px;
}

.tip-box {
	background: rgba(245, 158, 11, 0.1);
	border-left: 3px solid var(--accent-gold);
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	color: #fef08a;
	line-height: 1.5;
}

/* ==================================================================
   CONTEÚDO DO DIA: vídeo, markdown e foto do marco
   ================================================================== */

/* Card de Vídeo do Dia */
.video-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--bg-card);
	border: 1px solid rgba(6, 182, 212, 0.25);
	border-radius: var(--radius-md);
	padding: 14px;
}

.video-card-info {
	flex: 1;
	min-width: 0;
}

.video-card-title {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	line-height: 1.4;
}

.video-card-meta {
	font-size: 11px;
	color: var(--text-muted);
	margin-top: 4px;
}

.video-watch-btn {
	flex-shrink: 0;
	padding: 10px 16px;
	font-size: 12px;
	background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
	box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
	text-decoration: none;
	border-radius: 24px;
}

/* Conteúdo Markdown do Dia */
.md-body {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.65;
}

.md-body h2 {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin: 18px 0 8px;
}

.md-body h3 {
	font-family: var(--font-body);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--accent-cyan);
	margin: 14px 0 6px;
}

.md-body p {
	margin: 0 0 10px;
}

.md-body ul,
.md-body ol {
	margin: 0 0 10px;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.md-body li {
	margin: 0;
}

.md-body strong {
	color: #fff;
	font-weight: 700;
}

.md-body a {
	color: var(--accent-cyan);
	text-decoration: underline;
	word-break: break-word;
}

.md-body blockquote {
	background: rgba(245, 158, 11, 0.08);
	border-left: 3px solid var(--accent-gold);
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	margin: 0 0 12px;
	color: #fef08a;
}

.md-body code {
	background: rgba(255, 255, 255, 0.08);
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 12px;
	color: var(--accent-cyan);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	word-break: break-all;
}

.md-body hr {
	border: none;
	border-top: 1px solid var(--border-card);
	margin: 14px 0;
}

/* Seção Foto do Marco */
.photo-milestone-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--accent-gold);
	margin-bottom: 8px;
}

.photo-card {
	background: var(--bg-card);
	border: 1px dashed rgba(16, 185, 129, 0.35);
	border-radius: var(--radius-md);
	padding: 16px;
}

.photo-status {
	font-size: 12.5px;
	color: var(--text-muted);
	margin-bottom: 12px;
	line-height: 1.5;
}

.photo-status.has-photo {
	color: var(--accent-emerald);
	font-weight: 600;
}

.photo-preview-wrap {
	margin-bottom: 12px;
	text-align: center;
}

.photo-preview {
	max-width: 100%;
	max-height: 260px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-card);
	background: rgba(255, 255, 255, 0.04);
}

.photo-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.photo-input-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.photo-upload-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none;
}

.photo-hint {
	margin-top: 10px;
	font-size: 11px;
	color: var(--text-dim);
	text-align: center;
	line-height: 1.5;
}

/* Destaque pulsante do card P-1 (gate da Foto Oficial) */
.day-card.highlight-pulse {
	animation: highlightPulse 1.3s ease 2;
	border-color: var(--accent-gold);
}

@keyframes highlightPulse {
	0%,
	100% {
		box-shadow: 0 0 0 rgba(245, 158, 11, 0);
	}
	50% {
		box-shadow: 0 0 24px var(--accent-gold-glow);
	}
}

/* Bottom Navigation Bar */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(4, 8, 16, 0.92);
	backdrop-filter: blur(20px);
	border-top: 1px solid var(--border-card);
	display: flex;
	justify-content: space-around;
	padding: 10px 0;
	z-index: 100;
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--text-muted);
	font-size: 10px;
	font-family: var(--font-heading);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nav-item.active {
	color: var(--accent-emerald);
}

.nav-icon {
	font-size: 18px;
}

/* Aba Lista de Compras */
.shopping-cat {
	margin-bottom: 20px;
}

.shopping-cat-title {
	font-family: var(--font-heading);
	font-size: 14px;
	color: var(--accent-gold);
	margin-bottom: 10px;
	border-bottom: 1px solid rgba(245, 158, 11, 0.2);
	padding-bottom: 4px;
}

.shopping-item-card {
	background: var(--bg-card);
	border: 1px solid var(--border-card);
	padding: 12px;
	border-radius: var(--radius-sm);
	margin-bottom: 8px;
}

.shopping-item-name {
	font-weight: 700;
	font-size: 14px;
	color: #fff;
}

.shopping-item-tip {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 4px;
}

/* ==================================================================
   NOVOS ESTILOS (login, toasts, confirm, loading, offline, métricas)
   ================================================================== */

/* Acessibilidade: foco visível */
:focus-visible {
	outline: 2px solid var(--accent-emerald);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Inputs */
.input-field {
	width: 100%;
	padding: 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-card);
	border-radius: var(--radius-md);
	color: #fff;
	font-size: 16px;
	transition: border-color 0.2s ease;
}

.input-field:focus {
	border-color: var(--accent-emerald);
	outline: none;
}

textarea.input-field {
	resize: vertical;
	font-family: var(--font-body);
}

/* Botões utilitários */
.btn-secondary {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--border-card);
	color: var(--text-main);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 30px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.14);
}

.btn-block {
	width: 100%;
	justify-content: center;
}

.btn-icon {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--border-card);
	color: var(--text-muted);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-icon:hover {
	color: #fff;
	border-color: var(--accent-emerald);
}

/* Tela de Login */
.login-view {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background:
		radial-gradient(
			circle at 10% 20%,
			rgba(16, 185, 129, 0.12) 0%,
			transparent 40%
		),
		radial-gradient(
			circle at 90% 80%,
			rgba(245, 158, 11, 0.08) 0%,
			transparent 40%
		),
		var(--bg-dark);
}

.login-card {
	width: 100%;
	max-width: 420px;
	background: var(--bg-card);
	border: 1px solid var(--border-card);
	border-radius: var(--radius-lg);
	padding: 32px 24px;
	backdrop-filter: blur(12px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.login-brand {
	justify-content: center;
	margin-bottom: 24px;
}

.login-title {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 800;
	text-align: center;
	margin-bottom: 8px;
	color: #fff;
}

.login-desc {
	font-size: 13px;
	color: var(--text-muted);
	text-align: center;
	line-height: 1.5;
	margin-bottom: 20px;
}

.login-label {
	display: block;
	font-size: 11px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 14px 0 6px;
	font-weight: 600;
}

.login-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text-dim);
	font-size: 12px;
	margin: 16px 0 4px;
}

.login-divider::before,
.login-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border-card);
}

.login-error {
	margin-top: 14px;
	padding: 12px;
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.4);
	border-radius: var(--radius-sm);
	color: #fca5a5;
	font-size: 13px;
	text-align: center;
}

.login-error.success {
	background: rgba(16, 185, 129, 0.12);
	border-color: rgba(16, 185, 129, 0.4);
	color: #6ee7b7;
}

.login-error.error {
	background: rgba(239, 68, 68, 0.12);
	border-color: rgba(239, 68, 68, 0.4);
	color: #fca5a5;
}

.login-error.show {
	display: block;
}

/* Banner Offline */
.offline-banner {
	position: sticky;
	top: 0;
	z-index: 150;
	background: rgba(245, 158, 11, 0.15);
	border-bottom: 1px solid rgba(245, 158, 11, 0.4);
	color: #fef08a;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	padding: 8px 16px;
}

/* Toasts */
.toast-container {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 400;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: calc(100% - 32px);
	max-width: 400px;
	pointer-events: none;
}

.toast {
	background: rgba(13, 22, 38, 0.95);
	border: 1px solid var(--border-card);
	border-left: 3px solid var(--accent-cyan);
	color: var(--text-main);
	padding: 12px 16px;
	border-radius: var(--radius-md);
	font-size: 13px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

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

.toast-success {
	border-left-color: var(--accent-emerald);
}

.toast-error {
	border-left-color: var(--accent-red);
}

.toast-info {
	border-left-color: var(--accent-cyan);
}

/* Modal de Confirmação */
.confirm-content {
	max-width: 380px;
	margin: 0 auto;
	border-radius: var(--radius-lg);
	text-align: center;
	top: auto;
	bottom: auto;
}

.confirm-message {
	font-size: 15px;
	color: var(--text-main);
	line-height: 1.6;
	margin-bottom: 20px;
	font-weight: 500;
}

.confirm-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

/* Skeleton Loading */
.skeleton {
	height: 90px;
	border-radius: var(--radius-md);
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.04) 25%,
		rgba(255, 255, 255, 0.1) 50%,
		rgba(255, 255, 255, 0.04) 75%
	);
	background-size: 200% 100%;
	animation: shimmer 1.4s infinite;
	margin-bottom: 14px;
}

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

/* Estado de erro com retry */
.error-state {
	text-align: center;
	padding: 24px 16px;
	background: var(--bg-card);
	border: 1px dashed var(--border-card);
	border-radius: var(--radius-md);
}

.error-state p {
	color: var(--text-muted);
	font-size: 13px;
	margin-bottom: 14px;
	line-height: 1.5;
}

/* Métricas / Evolução */
.metrics-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 10px;
}

@media (min-width: 480px) {
	.metrics-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.water-result {
	margin-top: 16px;
	font-size: 14px;
	color: var(--accent-emerald);
	font-weight: 600;
	text-align: center;
	line-height: 1.5;
}

/* Botão push ativo */
.btn-primary.active-push {
	background: rgba(239, 68, 68, 0.2);
	border: 1px solid var(--accent-red);
	color: #fca5a5;
	box-shadow: none;
}

/* Gráfico */
#weightChart {
	width: 100%;
	max-height: 200px;
	display: none;
}

/* Garante que o atributo hidden sempre esconda (mesmo com display author CSS) */
[hidden] {
	display: none !important;
}

/* Modal de confirmação centralizado (não como bottom sheet) */
#confirmModal {
	align-items: center;
	padding: 20px;
}

/* Modal de instalação (tutorial Android + iPhone) */
.install-content {
	max-height: 88vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.install-content .modal-close {
	position: sticky;
	top: 0;
	float: right;
	z-index: 2;
}

.tutorial-block {
	margin-bottom: 22px;
}

.tutorial-title {
	font-family: var(--font-display, "Orbitron", sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--accent-emerald, #10b981);
	margin-bottom: 10px;
}

.tutorial-steps {
	margin: 0 0 14px 18px;
	padding: 0;
	color: var(--text-muted, #94a3b8);
	font-size: 13.5px;
	line-height: 1.65;
}

.tutorial-steps li {
	margin-bottom: 8px;
}

.tutorial-steps strong {
	color: #e2e8f0;
}

.tutorial-img {
	display: block;
	width: 100%;
	max-width: 320px;
	margin: 0 auto 12px;
	border-radius: var(--radius-md, 14px);
	border: 1px solid var(--border-card, #1e293b);
	background: #0b0f19;
}

/* Slots de foto de ângulo (antes/depois: frente, costas e lado) */
.photo-slots {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 6px;
}

.photo-slot {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border-card, #1e293b);
	border-radius: var(--radius-sm, 8px);
	padding: 12px;
}

.photo-slot-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.photo-slot-title {
	font-family: var(--font-display, "Orbitron", sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--accent-emerald, #10b981);
}

.photo-slot-status {
	font-size: 11px;
	font-weight: 600;
	color: var(--text-dim, #64748b);
}

.photo-slot-status.ok {
	color: var(--accent-emerald, #10b981);
}

.photo-slot-instrucao {
	font-size: 12px;
	line-height: 1.5;
	color: var(--text-muted, #94a3b8);
	margin-bottom: 10px;
}

.photo-slot .photo-preview-wrap {
	margin-top: 10px;
}

.photo-slot-pose {
	display: block;
	width: 100%;
	max-width: 220px;
	margin: 0 auto 10px;
	border-radius: var(--radius-sm, 8px);
	border: 1px solid var(--border-card, #1e293b);
}
