/* TS Coupon Tracker — mobile first.
   Spalvas keisk cia, viename bloke. */
.tsct {
	--tsct-ink: #1b1a17;
	--tsct-mut: #7d7a72;
	--tsct-line: #e7e3dc;
	--tsct-soft: #f7f5f1;
	--tsct-pay: #1f6b4a;
	--tsct-r: 14px;

	max-width: 640px;
	margin-inline: auto;
	color: var(--tsct-ink);
	font: inherit;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

.tsct *,
.tsct *::before,
.tsct *::after { box-sizing: border-box; }

/* --- ivadas ir forma ------------------------------------------------ */

.tsct__intro { margin-bottom: 1.25rem; }
.tsct__title { margin: 0 0 .35rem; font-size: clamp(1.35rem, 5.5vw, 1.75rem); line-height: 1.2; }
.tsct__lede { margin: 0; color: var(--tsct-mut); max-width: 46ch; }

.tsct__label {
	display: block;
	margin-bottom: .4rem;
	font-size: .85rem;
	color: var(--tsct-mut);
}

.tsct__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: .5rem;
}
.tsct__field { flex: 1 1 100%; min-width: 0; }
.tsct__field--pin { flex: 0 0 104px; }

/* Atejus per asmenine nuoroda kodo ir PIN vesti nereikia */
.tsct__form.is-link { display: none; }

.tsct__input {
	width: 100%;
	min-width: 0;
	height: 52px;
	padding: 0 1rem;
	border: 1px solid var(--tsct-line);
	border-radius: var(--tsct-r);
	background: #fff;
	color: inherit;
	font-size: 16px; /* mazesnis dydis iOS priartina puslapi */
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.tsct__input::placeholder { color: #b9b5ac; font-weight: 400; letter-spacing: .04em; }
.tsct__input:focus-visible { outline: 2px solid var(--tsct-ink); outline-offset: 2px; }

.tsct__input--pin {
	text-align: center;
	letter-spacing: .3em;
	text-indent: .3em;
	text-transform: none;
}

.tsct__btn {
	flex: 1 1 auto;
	height: 52px;
	padding: 0 1.35rem;
	border: 0;
	border-radius: var(--tsct-r);
	background: var(--tsct-ink);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease;
}
.tsct__btn:hover { opacity: .85; }
.tsct__btn:disabled { opacity: .45; cursor: default; }
.tsct__btn:focus-visible { outline: 2px solid var(--tsct-ink); outline-offset: 2px; }

.tsct__msg { margin: .85rem 0 0; color: var(--tsct-mut); font-size: .95rem; }
.tsct__msg:not(.is-on) { display: none; }
.tsct__msg.is-error { color: #9c3126; }

/* --- pagrindinis skaicius ------------------------------------------- */

.tsct-hero {
	margin-top: 1.5rem;
	padding: 1.35rem 1.25rem 1.5rem;
	background: var(--tsct-soft);
	border-radius: var(--tsct-r);
}

.tsct-hero__tag {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .5rem .75rem;
	margin-bottom: 1.1rem;
}
.tsct-hero__code {
	font-weight: 700;
	letter-spacing: .08em;
	font-size: .95rem;
}
.tsct-hero__rate { color: var(--tsct-mut); font-size: .85rem; }

.tsct-hero__label { margin: 0; color: var(--tsct-mut); font-size: .9rem; }
.tsct-hero__value {
	margin: .1rem 0 0;
	font-size: clamp(2.5rem, 13vw, 3.5rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
	color: var(--tsct-pay);
}
.tsct-hero__sub { margin: .6rem 0 0; color: var(--tsct-mut); font-size: .92rem; max-width: 34ch; }

/* --- trys skaiciai --------------------------------------------------- */

.tsct-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .5rem;
	margin-top: .5rem;
}
.tsct-stat {
	min-width: 0;
	padding: .9rem .75rem;
	border: 1px solid var(--tsct-line);
	border-radius: var(--tsct-r);
}
.tsct-stat__v {
	display: block;
	font-size: clamp(.95rem, 4vw, 1.1rem);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.tsct-stat__l { display: block; margin-top: .2rem; color: var(--tsct-mut); font-size: .78rem; }
.tsct-stat__n { display: block; margin-top: .15rem; color: #a5a199; font-size: .72rem; }

/* --- menesiu juostos ------------------------------------------------- */

.tsct-bars {
	display: flex;
	align-items: flex-end;
	gap: .4rem;
	height: 108px;
	margin-top: 1.5rem;
	padding-bottom: .25rem;
}
.tsct-bars__col {
	flex: 1 1 0;
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	gap: .25rem;
}
.tsct-bars__val { font-size: .7rem; color: var(--tsct-mut); font-variant-numeric: tabular-nums; }
.tsct-bars__bar {
	width: 100%;
	background: #ded9d0;
	border-radius: 5px 5px 2px 2px;
	min-height: 4px;
}
.tsct-bars__col:last-child .tsct-bars__bar { background: var(--tsct-pay); }
.tsct-bars__col:last-child .tsct-bars__val { color: var(--tsct-pay); font-weight: 700; }
.tsct-bars__lbl { font-size: .7rem; color: var(--tsct-mut); text-transform: lowercase; }

/* --- uzsakymu sarasas ------------------------------------------------ */

.tsct-log { margin-top: 1.75rem; }

.tsct-log__month {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin: 1.5rem 0 .25rem;
	padding-bottom: .4rem;
	border-bottom: 1px solid var(--tsct-line);
	font-size: .82rem;
	font-weight: 600;
	color: var(--tsct-mut);
}
.tsct-log__month:first-child { margin-top: 0; }
.tsct-log__msum { color: var(--tsct-ink); font-variant-numeric: tabular-nums; }

.tsct-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0 .75rem;
	padding: .7rem 0;
	border-bottom: 1px solid var(--tsct-line);
}
.tsct-row__date { font-weight: 600; font-variant-numeric: tabular-nums; }
.tsct-row__no { color: var(--tsct-mut); font-weight: 400; font-size: .85em; }
.tsct-row__pay {
	text-align: right;
	font-weight: 700;
	color: var(--tsct-pay);
	font-variant-numeric: tabular-nums;
}
.tsct-row__meta {
	grid-column: 1 / -1;
	margin-top: .15rem;
	color: var(--tsct-mut);
	font-size: .82rem;
}

.tsct-note { margin: 1rem 0 0; color: #a5a199; font-size: .78rem; }

/* --- tuscia busena --------------------------------------------------- */

.tsct-empty {
	margin-top: .5rem;
	padding: 1.15rem 1.25rem;
	border: 1px dashed var(--tsct-line);
	border-radius: var(--tsct-r);
}
.tsct-empty p { margin: 0; }
.tsct-empty__hint { margin-top: .5rem !important; color: var(--tsct-mut); font-size: .88rem; }

/* --- krovimasis ------------------------------------------------------ */

.tsct-skel { margin-top: 1.5rem; }
.tsct-skel__hero,
.tsct-skel__row {
	background: var(--tsct-soft);
	border-radius: var(--tsct-r);
	animation: tsct-pulse 1.3s ease-in-out infinite;
}
.tsct-skel__hero { height: 168px; margin-bottom: .5rem; }
.tsct-skel__row { height: 46px; margin-bottom: .5rem; }
.tsct-skel__row.short { width: 60%; }

@keyframes tsct-pulse { 50% { opacity: .5; } }

@media (prefers-reduced-motion: reduce) {
	.tsct-skel__hero,
	.tsct-skel__row { animation: none; }
	.tsct__btn { transition: none; }
}

/* --- platesni ekranai ------------------------------------------------ */

@media (min-width: 600px) {
	.tsct__field { flex: 1 1 auto; }
	.tsct__btn { flex: 0 0 auto; padding: 0 1.75rem; }
	.tsct-hero { padding: 1.75rem 1.75rem 2rem; }
	.tsct-stats { gap: .75rem; }
	.tsct-stat { padding: 1rem 1.1rem; }
	.tsct-row { padding: .8rem 0; }
	.tsct-row__meta { font-size: .85rem; }
	.tsct-bars { height: 132px; gap: .6rem; }
}

@media (max-width: 359px) {
	.tsct-stats { grid-template-columns: 1fr; }
}
