:root {
	--teal-1: #bfe2ea;
	--teal-2: #79c0cf;
	--teal-3: #4aaec2;
	--blue-1: #2f72c8;
	--card-border: #d6dee6;
	--shadow-soft: 0 2px 10px rgba(0, 0, 0, .10);
	--bubble: 68px;
	--ticon-w: 84px;
	--line-w: 3px;
	--timeline-pad: 12px;
}

body {
	background: #f6f7f9;
}

.phone-frame {
	max-width: 450px;
	margin: 18px auto;
	background: #fff;
	border: 1px solid #d5d5d5;
	box-shadow: var(--shadow-soft);
}

/* TOP TABS – azonos magasság + fehér sáv alatta */
.top-switch {
	display: flex;
	padding: 0;
	margin: 0;
	flex-wrap: nowrap;
}

.top-switch .nav-item {
	flex: 1 1 0;
}

.top-switch .nav-link {
	width: 100%;
	border-radius: 0;
	border: 0;

	/* FIX: azonos magasság */
	height: 64px;
	/* állítsd 60-72px között ízlés szerint */
	padding: 10px 10px;

	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	background: var(--teal-1);
	color: #fff;

	/* középre igazítás mindkét sor esetén is */
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.05;
	white-space: normal;
}

.top-switch .nav-link.active {
	background: var(--teal-3);
	color: #fff;
}

/* FIX: 10–15px fehér sáv a gombok alatt */
.top-tabs-spacer {
	height: 12px;
	background: #fff;
}

.page-title {
	background: var(--blue-1);
	color: #fff;
	font-weight: 700;
	text-align: center;
	padding: 10px 12px;
	font-size: 1.05rem;
}

.section-pill {
	background: var(--teal-2);
	color: #fff;
	font-weight: 800;
	text-align: center;
	padding: 8px 12px;
	border-radius: .35rem;
	margin: 10px 12px;
	line-height: 1.15;
	text-transform: uppercase;
}

.brand-block {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 12px 2px 12px;
}

.brand-logo {
	width: 72px;
	height: 72px;
	border: 2px solid #222;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-logo i {
	font-size: 28px;
}

.brand-name {
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1.15;
	font-size: 1.05rem;
}

.meta {
	padding: 0 12px 8px 12px;
	font-size: .92rem;
}

.meta b {
	font-weight: 800;
}

.api-red {
	color: #e11d48;
	font-weight: 800;
}

.acc-header {
	background: var(--teal-2);
	color: #fff;
	font-weight: 800;
	border: 0;
	padding: 10px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.acc-header .left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.acc-header .left span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.acc-header .right {
	font-weight: 900;
	opacity: .95;
	display: flex;
	align-items: center;
	gap: 10px;
}

.acc-body {
	padding: 0;
	border-left: 1px solid var(--card-border);
	border-right: 1px solid var(--card-border);
	border-bottom: 1px solid var(--card-border);
}

.check-row {
	display: flex;
	gap: 10px;
	padding: 10px 10px;
	border-top: 1px solid #eef2f6;
	font-size: .86rem;
	align-items: flex-start;
}

.check-row:first-child {
	border-top: 0;
}

.check-text {
	flex: 1;
	color: #1f2937;
}

.check-score {
	width: 26px;
	text-align: right;
	font-weight: 800;
	color: #111827;
	flex: 0 0 auto;
}

.total-pill {
	margin: 10px 12px 8px 12px;
	background: var(--teal-2);
	color: #fff;
	font-weight: 900;
	text-align: center;
	padding: 9px 12px;
	border-radius: .35rem;
	text-transform: uppercase;
}

.hash-card {
	margin: 0 12px 10px 12px;
	border: 1px solid var(--card-border);
	border-radius: .45rem;
	padding: 10px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.hash-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.hash-left i {
	font-size: 22px;
}

.hash-text {
	min-width: 0;
}

.hash-text .t {
	font-weight: 900;
}

.hash-text .h {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: .72rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 190px;
	opacity: .85;
}

.cert-box {
	margin: 10px 12px;
	background: #dfe3e7;
	border-radius: .55rem;
	padding: 10px 12px;
	display: flex;
	gap: 10px;
	align-items: center;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
	font-weight: 700;
	justify-content: center;
	text-align: center;
	line-height: 1.15;
}

.cert-box i {
	font-size: 22px;
}

.timeline {
	position: relative;
	padding: 0 12px 0 var(--timeline-pad);
	margin: 8px 0 0 0;
}

.timeline:before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	background: #7fb6d7;
	border-radius: 999px;
	left: calc(var(--timeline-pad) + (var(--ticon-w) / 2) - (var(--line-w) / 2) + 0px);
	width: var(--line-w);
}

.t-item {
	position: relative;
	display: flex;
	gap: 10px;
	margin: 10px 0;
	align-items: stretch;
}

.t-icon {
	width: var(--ticon-w);
	flex: 0 0 var(--ticon-w);
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 8px;
}

.t-icon .bubble {
	width: var(--bubble);
	height: var(--bubble);
	border-radius: 50%;
	background: #fff;
	border: 2px solid #9bbad0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .08);

}

.t-icon .bubble i {
	font-size: 34px;
	/* ikon mérete is nő */
}

.t-card {
	flex: 1;
	/*border:1px solid var(--card-border);*/
	border-radius: .55rem;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
	padding: 10px;
	position: relative;
}

.t-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}

.t-title {
	flex: 1 1 auto;
	min-width: 0;
}

.t-title .k {
	font-weight: 900;
}

.t-title .v {
	font-weight: 900;
	text-transform: uppercase;
	word-break: break-word;
}

.t-sub {
	font-size: .80rem;
	opacity: .85;
}

.t-grid {
	font-size: .86rem;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 10px;
	margin-top: 6px;
}

.btn-mini {
	background: #5aaec2;
	color: #fff;
	border: 0;
	padding: 6px 10px;
	font-weight: 800;
	border-radius: .35rem;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
}

.subtabs {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.subtab {
	flex: 1;
	background: #e9ecef;
	border: 0;
	padding: 7px 8px;
	border-radius: .45rem;
	font-weight: 700;
	font-size: .80rem;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
	text-align: center;
}

.cta-diff {
	margin: 14px 12px 8px 12px;
	background: #5aaec2;
	color: #fff;
	border: 0;
	width: calc(100% - 24px);
	padding: 14px 12px;
	border-radius: .55rem;
	font-weight: 900;
	box-shadow: var(--shadow-soft);
}

.footer {
	padding: 8px 12px 14px 12px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	font-size: .75rem;
	color: #6b7280;
}

.footer {
	padding: 8px 12px 14px 12px;
	display: flex;
	align-items: center;
	/* fontos: függőleges igazítás */
	justify-content: space-between;
	gap: 10px;
	font-size: .75rem;
	color: #6b7280;
}

.footer .powered {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.footer .tefood-logo {
	height: 16px;
	/* fix magasság – ez a legstabilabb */
	width: auto;
	/* arányt tart */
	display: block;
	/* ne baseline-hoz igazodjon */
	object-fit: contain;
}


/* Farm */
/* Farm header tipográfia közelebb az eredetihez */
.t-card--farm .t-title .k {
	color: #8b95a1;
	font-weight: 800;
}

.t-card--farm .t-title .v {
	color: #111;
	font-weight: 900;
	letter-spacing: .3px;
}

.t-card--farm .t-title .t-sub {
	color: #8b95a1;
	font-weight: 700;
}

.t-card[data-block="farm"] {
	border: 0 !important;
	box-shadow: none !important;
}

/* “More” gomb a képen láthatóbb “pill” jelleggel */
.btn-more {
	width: 110px;
	/* állítsd: 100–130px között, ízlés szerint */
	height: 44px;
	/* hasonló az eredetihez */
	padding: 0;
	/* ne a padding határozza meg a méretet */
	border-radius: 10px;
	/* pill-szerűbb */
	font-size: 1.05rem;
	font-weight: 800;

	display: inline-flex;
	/* középre igazítás */
	align-items: center;
	justify-content: center;
	flex: 0 0 110px;
}

.t-head .btn-more {
	flex: 0 0 auto;
	/* sose zsugorodjon */
}

/* A képen látható belső szürke panel */
.t-panel {
	margin-top: 10px;
	background: #f3f4f6;
	/* világos szürke */
	border-radius: 18px;
	padding: 16px;
}

/* A panelen belüli grid legyen szellősebb + nagyobb betű */
.t-grid--panel {
	grid-template-columns: 1fr auto;
	gap: 14px 18px;
	font-size: 1.05rem;
}

/* A két gomb a szürke panelben legyen, mint az eredetin */
.subtabs--panel {
	margin-top: 12px;
	gap: 14px;
}

.subtab--grey {
	background: #d1d5db;
	/* sötétebb szürke */
	border: 1px solid #c8ccd3;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .10);
	font-weight: 800;
	color: #111;
	padding: 10px 8px;
	line-height: 1.05;
}

/* Farm panel nézetváltás animáció */
.farm-panel {
	overflow: hidden;
	/* hogy az animáció ne lógjon ki */
}

.farm-view {
	transition: opacity .18s ease, transform .18s ease;
	will-change: opacity, transform;
}

.farm-view.is-hidden {
	display: none;
}

.farm-view.is-active {
	display: block;
	opacity: 1;
	transform: translateX(0);
}

.farm-view.is-enter {
	display: block;
	opacity: 0;
	transform: translateX(14px);
}

.farm-view.is-exit {
	opacity: 0;
	transform: translateX(-14px);
}

/* Feeding/Vaccination nézet fejléce */
.farm-view-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.farm-view-title {
	font-weight: 900;
	font-size: 1.05rem;
}

/* Back gomb */
.btn-back {
	border: 0;
	background: #e5e7eb;
	color: #111;
	font-weight: 900;
	border-radius: 10px;
	padding: 8px 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .10);
}

/* A Feeding/Vaccination nézet címét kicsit “header-szerűre” */
.farm-view-title {
	font-weight: 900;
	font-size: 1.05rem;
	margin-bottom: 12px;
}

/* Back gomb alul: egyedül legyen teljes szélességű */
.farm-view .subtabs--panel {
	margin-top: 14px;
}

.farm-view .subtabs--panel .subtab {
	flex: 1 1 100%;
}