/* ==========================================================================
   TodayEarningTask Member App — design system
   Mobile-first. White surfaces, crimson for primary actions and highlights.
   ========================================================================== */

:root {
	--tet-primary: #9B1B30;
	--c-primary: var(--tet-primary);
	/* Static fallbacks; recomputed from the brand colour when color-mix() is available. */
	--c-primary-dark: #7F1627;
	--c-primary-50: #FBF1F3;
	--c-primary-100: #F5E3E6;
	--c-primary-ring: rgba(155, 27, 48, .32);

	--c-text: #15171C;
	--c-text-2: #3A3F4B;
	--c-muted: #5F6573;
	--c-faint: #8A909C;
	--c-border: #E7E8EC;
	--c-border-strong: #D5D8DF;
	--c-bg: #F6F7F9;
	--c-surface: #FFFFFF;
	--c-surface-2: #F9FAFB;

	--c-success: #17733A;   --c-success-bg: #E7F5EC;
	--c-warning: #8F5300;   --c-warning-bg: #FFF3E0;
	--c-danger: #B42318;    --c-danger-bg: #FDECEA;
	--c-info: #2450C9;      --c-info-bg: #EAF0FD;
	--c-neutral-bg: #EFF0F3;

	--r-sm: 10px;
	--r-md: 12px;
	--r-lg: 16px;
	--r-xl: 20px;
	--shadow-sm: 0 1px 2px rgba(16, 18, 24, .05);
	--shadow-md: 0 1px 2px rgba(16, 18, 24, .04), 0 6px 20px rgba(16, 18, 24, .06);
	--shadow-lg: 0 12px 40px rgba(16, 18, 24, .14);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--sidebar-w: 264px;
	--header-h: 64px;
	--bottom-nav-h: 64px;
	--safe-bottom: env(safe-area-inset-bottom, 0px);
}

@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--c-primary-dark: color-mix(in srgb, var(--c-primary) 82%, #000);
		--c-primary-50: color-mix(in srgb, var(--c-primary) 6%, #fff);
		--c-primary-100: color-mix(in srgb, var(--c-primary) 13%, #fff);
		--c-primary-ring: color-mix(in srgb, var(--c-primary) 32%, transparent);
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.tet-body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; color: var(--c-text); }
p { margin: 0; }
a { color: var(--c-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-primary-ring); outline-offset: 2px; }
.tet-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tet-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: var(--r-md); text-decoration: none; font-weight: 600; transition: top .15s; }
.tet-skip:focus { top: 12px; }
.tet-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tet-ico-sm { width: 16px; height: 16px; }
.tet-ico-lg { width: 24px; height: 24px; }
.tet-num { font-variant-numeric: tabular-nums; }
.tet-muted { color: var(--c-muted); }
.tet-faint { color: var(--c-faint); }
.tet-small { font-size: 13px; }
.tet-strong { font-weight: 700; }
.tet-nowrap { white-space: nowrap; }
.tet-noscript { padding: 24px; text-align: center; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Boot loader ---------- */
.tet-boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; background: #fff; }
.tet-boot img { width: 72px; height: auto; }
.tet-boot-bar { width: 120px; height: 4px; border-radius: 4px; background: var(--c-primary-100); overflow: hidden; position: relative; }
.tet-boot-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--c-primary); border-radius: 4px; animation: tet-slide 1.1s ease-in-out infinite; }
@keyframes tet-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- Layout ---------- */
.tet-layout { min-height: 100vh; }
.tet-sidebar { display: none; }
.tet-main { min-width: 0; padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px); }
.tet-content { width: 100%; max-width: 1160px; margin: 0 auto; padding: 16px 16px 24px; }
.tet-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; animation: tet-fade .22s ease-out; }
@keyframes tet-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (min-width: 768px) {
	.tet-content { padding: 24px 24px 32px; }
	.tet-page { gap: 20px; }
}
@media (min-width: 1024px) {
	.tet-layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; }
	.tet-sidebar { display: flex; }
	.tet-main { padding-bottom: 0; }
	.tet-bottom-nav { display: none !important; }
	.tet-content { padding: 28px 32px 40px; }
}

/* ---------- Sidebar (desktop) ---------- */
.tet-sidebar {
	position: sticky; top: 0; height: 100vh; flex-direction: column;
	background: var(--c-surface); border-right: 1px solid var(--c-border);
	padding: 18px 14px 14px; overflow-y: auto;
}
.tet-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; text-decoration: none; color: var(--c-text); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.tet-brand img { width: 44px; height: auto; }
.tet-nav-group { margin-bottom: 14px; }
.tet-nav-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-faint); padding: 6px 12px; }
.tet-nav-link {
	display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-md);
	color: var(--c-text-2); text-decoration: none; font-weight: 500; font-size: 14.5px; position: relative;
	transition: background .12s, color .12s;
}
.tet-nav-link:hover { background: var(--c-surface-2); color: var(--c-text); }
.tet-nav-link[aria-current="page"] { background: var(--c-primary-50); color: var(--c-primary); font-weight: 600; }
.tet-nav-link[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c-primary); }
.tet-nav-link .tet-ico { color: currentColor; opacity: .9; }
.tet-nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--c-primary); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.tet-sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--c-border); }

/* ---------- Header ---------- */
.tet-header {
	position: sticky; top: 0; z-index: 40; height: var(--header-h);
	display: flex; align-items: center; gap: 12px; padding: 0 16px;
	background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--c-border);
}
.tet-header-brand { display: flex; align-items: center; }
.tet-header-brand img { width: 40px; height: auto; }
.tet-header-title { font-size: 17px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tet-header-actions { display: flex; align-items: center; gap: 6px; }
.tet-icon-btn {
	width: 42px; height: 42px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent;
	display: inline-grid; place-items: center; color: var(--c-text-2); position: relative; text-decoration: none;
}
.tet-icon-btn:hover { background: var(--c-surface-2); color: var(--c-text); }
.tet-icon-btn .tet-dot { position: absolute; top: 7px; right: 7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--c-primary); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.tet-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--c-primary-100); color: var(--c-primary); display: grid; place-items: center; font-weight: 700; font-size: 14px; overflow: hidden; flex: none; }
.tet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tet-avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.tet-profile-btn { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 3px; border: 1px solid var(--c-border); border-radius: 999px; background: #fff; }
.tet-profile-btn:hover { border-color: var(--c-border-strong); }
.tet-profile-btn .tet-ico { width: 16px; height: 16px; color: var(--c-muted); margin-right: 4px; }
.tet-header-status { display: none; }
@media (min-width: 768px) {
	.tet-header { padding: 0 24px; }
	.tet-header-status { display: inline-flex; }
}
@media (min-width: 1024px) {
	.tet-header { padding: 0 32px; }
	.tet-header-brand { display: none; }
	.tet-header-title { font-size: 19px; }
}

/* Dropdown menu */
.tet-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; animation: tet-pop .14s ease-out; }
@keyframes tet-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.tet-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--c-border); margin-bottom: 6px; }
.tet-menu-head strong { display: block; }
.tet-menu a, .tet-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); border: 0; background: none; text-decoration: none; color: var(--c-text-2); font-size: 14.5px; text-align: left; }
.tet-menu a:hover, .tet-menu button:hover { background: var(--c-surface-2); color: var(--c-text); }
.tet-menu .is-danger { color: var(--c-danger); }
.tet-rel { position: relative; }

/* Banners */
.tet-banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; font-size: 14px; }
.tet-banner .tet-ico { margin-top: 1px; }
.tet-banner-preview { background: #1B1D24; color: #fff; justify-content: center; text-align: center; font-weight: 600; font-size: 13px; padding: 8px 16px; }
.tet-banner-preview b { color: #FFD166; }
.tet-banner-announce { background: var(--c-primary-50); color: var(--c-primary-dark); border-bottom: 1px solid var(--c-primary-100); }
.tet-banner-close { margin-left: auto; background: none; border: 0; color: inherit; padding: 2px; border-radius: 6px; }

/* ---------- Bottom navigation (mobile / tablet) ---------- */
.tet-bottom-nav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
	display: grid; grid-template-columns: repeat(5, 1fr);
	height: calc(var(--bottom-nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
	background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-top: 1px solid var(--c-border);
}
.tet-bottom-link {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	text-decoration: none; color: var(--c-faint); font-size: 11.5px; font-weight: 600; background: none; border: 0; position: relative;
}
.tet-bottom-link .tet-ico { width: 22px; height: 22px; }
.tet-bottom-link[aria-current="page"] { color: var(--c-primary); }
.tet-bottom-link[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-primary); }

/* Bottom sheet ("More") */
.tet-sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 17, 22, .45); z-index: 80; animation: tet-fadein .18s ease-out; }
@keyframes tet-fadein { from { opacity: 0; } to { opacity: 1; } }
.tet-sheet {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; max-height: 86vh; overflow-y: auto;
	background: #fff; border-radius: 22px 22px 0 0; padding: 10px 16px calc(20px + var(--safe-bottom));
	animation: tet-up .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes tet-up { from { transform: translateY(100%); } to { transform: none; } }
.tet-sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--c-border-strong); margin: 0 auto 12px; }
.tet-sheet h2 { font-size: 17px; margin: 4px 4px 12px; }
.tet-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.tet-sheet-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: var(--r-lg); background: var(--c-surface-2); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text-2); font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.25; }
.tet-sheet-item .tet-ico { color: var(--c-primary); width: 22px; height: 22px; }
.tet-sheet-item[aria-current="page"] { border-color: var(--c-primary); background: var(--c-primary-50); color: var(--c-primary); }
@media (min-width: 600px) { .tet-sheet-grid { grid-template-columns: repeat(4, 1fr); } .tet-sheet { left: 50%; right: auto; width: 560px; transform: translateX(-50%); animation: none; } }

/* ---------- Page heading ---------- */
.tet-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tet-page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.tet-page-head p { color: var(--c-muted); margin-top: 4px; }
@media (min-width: 768px) { .tet-page-head h1 { font-size: 26px; } }
.tet-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tet-section-title h2 { font-size: 16.5px; font-weight: 700; }
.tet-section-title a { font-size: 14px; font-weight: 600; text-decoration: none; }

/* ---------- Cards ---------- */
.tet-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.tet-card-pad { padding: 16px; }
@media (min-width: 768px) { .tet-card-pad { padding: 20px; } }
.tet-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0; }
.tet-card-head h2, .tet-card-head h3 { font-size: 16px; font-weight: 700; }
@media (min-width: 768px) { .tet-card-head { padding: 20px 20px 0; } }
.tet-card-link { transition: border-color .15s, box-shadow .15s, transform .15s; text-decoration: none; color: inherit; display: block; }
.tet-card-link:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.tet-grid { display: grid; gap: 12px; }
.tet-grid-2 { grid-template-columns: 1fr; }
.tet-grid-4 { grid-template-columns: repeat(2, 1fr); }
.tet-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .tet-grid-2 { grid-template-columns: 1fr 1fr; } .tet-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .tet-grid { gap: 16px; } }
@media (min-width: 1024px) { .tet-grid-4 { grid-template-columns: repeat(4, 1fr); } .tet-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.tet-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tet-grid > *, .tet-page > *, .tet-stack > * { min-width: 0; }
.tet-row-flex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tet-spacer { flex: 1; }

/* Welcome */
.tet-welcome { display: flex; align-items: center; gap: 14px; }
.tet-welcome h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 768px) { .tet-welcome h1 { font-size: 25px; } }
.tet-welcome-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* Wallet / stat cards */
.tet-stat { padding: 16px; display: grid; gap: 6px; position: relative; overflow: hidden; }
.tet-stat-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.tet-stat-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--c-primary-50); color: var(--c-primary); display: grid; place-items: center; flex: none; }
.tet-stat-ico .tet-ico { width: 18px; height: 18px; }
.tet-stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tet-stat-value small { font-size: .6em; font-weight: 700; margin-right: 3px; color: inherit; opacity: .75; }
.tet-stat-foot { font-size: 12.5px; color: var(--c-muted); }
@media (min-width: 768px) { .tet-stat { padding: 20px; } .tet-stat-value { font-size: 26px; } }
.tet-stat-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.tet-stat-primary .tet-stat-label, .tet-stat-primary .tet-stat-foot { color: rgba(255, 255, 255, .82); }
.tet-stat-primary .tet-stat-ico { background: rgba(255, 255, 255, .16); color: #fff; }
.tet-stat-primary::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.tet-stat-link { color: inherit; text-decoration: none; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.tet-stat-primary .tet-stat-link { color: #fff; }

.tet-wallet-hero { padding: 20px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.tet-wallet-hero .tet-stat-value { font-size: 32px; }
@media (min-width: 768px) { .tet-wallet-hero { padding: 24px; } .tet-wallet-hero .tet-stat-value { font-size: 38px; } }
.tet-wallet-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); }
.tet-wallet-split div small { display: block; font-size: 12px; opacity: .8; }
.tet-wallet-split div strong { font-variant-numeric: tabular-nums; font-size: 15px; }
.tet-card:not(.tet-stat-primary) .tet-wallet-split { border-top-color: var(--c-border); }
.tet-wallet-contains { display: flex; flex-wrap: wrap; gap: 6px; }

/* Quick actions */
.tet-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 768px) { .tet-quick { grid-template-columns: repeat(8, 1fr); } }
.tet-quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: var(--r-lg); text-decoration: none; color: var(--c-text-2); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; transition: background .12s; }
.tet-quick a:hover { background: var(--c-surface-2); }
.tet-quick-ico { width: 46px; height: 46px; border-radius: 15px; background: var(--c-primary-50); color: var(--c-primary); display: grid; place-items: center; }
.tet-quick-ico .tet-ico { width: 22px; height: 22px; }

/* Task summary tiles */
.tet-task-tile { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.tet-task-tile .tet-stat-ico { width: 40px; height: 40px; border-radius: 12px; }
.tet-task-tile > div { min-width: 0; flex: 1; }
.tet-task-tile strong { display: block; font-size: 14.5px; }
.tet-task-tile span.tet-muted { font-size: 13px; }

/* ---------- Buttons ---------- */
.tet-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: var(--r-md); border: 1.5px solid transparent;
	font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; line-height: 1;
	transition: background .14s, border-color .14s, color .14s, box-shadow .14s, transform .06s; user-select: none;
}
.tet-btn:active:not(:disabled) { transform: translateY(1px); }
.tet-btn:disabled, .tet-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.tet-btn-primary { background: var(--c-primary); color: #fff; }
.tet-btn-primary:hover:not(:disabled) { background: var(--c-primary-dark); }
.tet-btn-secondary { background: #fff; border-color: var(--c-border-strong); color: var(--c-text); }
.tet-btn-secondary:hover:not(:disabled) { border-color: var(--c-primary); color: var(--c-primary); }
.tet-btn-soft { background: var(--c-primary-50); color: var(--c-primary); }
.tet-btn-soft:hover:not(:disabled) { background: var(--c-primary-100); }
.tet-btn-ghost { background: transparent; color: var(--c-text-2); }
.tet-btn-ghost:hover:not(:disabled) { background: var(--c-surface-2); }
.tet-btn-danger { background: #fff; border-color: #F2C4BF; color: var(--c-danger); }
.tet-btn-danger:hover:not(:disabled) { background: var(--c-danger-bg); }
.tet-btn-whatsapp { background: #128C4B; color: #fff; }
.tet-btn-whatsapp:hover:not(:disabled) { background: #0E7A40; }
.tet-btn-white { background: #fff; color: var(--c-primary); }
.tet-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: var(--r-sm); }
.tet-btn-lg { min-height: 52px; padding: 0 22px; font-size: 15.5px; }
.tet-btn-block { width: 100%; }
.tet-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.tet-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-color: rgba(255, 255, 255, .9) rgba(255, 255, 255, .9) rgba(255, 255, 255, .9) transparent; animation: tet-spin .7s linear infinite; }
.tet-btn-secondary.is-loading::after, .tet-btn-soft.is-loading::after, .tet-btn-ghost.is-loading::after, .tet-btn-danger.is-loading::after { border-color: var(--c-primary) var(--c-primary) var(--c-primary) transparent; }
@keyframes tet-spin { to { transform: rotate(360deg); } }
.tet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tet-actions-stretch > .tet-btn { flex: 1 1 160px; }

/* ---------- Badges ---------- */
.tet-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--c-neutral-bg); color: var(--c-text-2); line-height: 1.5; }
.tet-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.tet-badge-plain::before { display: none; }
.tet-badge-success { background: var(--c-success-bg); color: var(--c-success); }
.tet-badge-warning { background: var(--c-warning-bg); color: var(--c-warning); }
.tet-badge-danger { background: var(--c-danger-bg); color: var(--c-danger); }
.tet-badge-info { background: var(--c-info-bg); color: var(--c-info); }
.tet-badge-primary { background: var(--c-primary-50); color: var(--c-primary); }
.tet-badge-on-dark { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Lists ---------- */
.tet-list { list-style: none; margin: 0; padding: 0; }
.tet-list > li + li { border-top: 1px solid var(--c-border); }
.tet-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 60px; }
@media (min-width: 768px) { .tet-item { padding: 14px 20px; } }
.tet-item-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-text-2); flex: none; border: 1px solid var(--c-border); }
.tet-item-ico.is-credit { background: var(--c-success-bg); color: var(--c-success); border-color: transparent; }
.tet-item-ico.is-debit { background: var(--c-primary-50); color: var(--c-primary); border-color: transparent; }
.tet-item-body { flex: 1; min-width: 0; }
.tet-item-title { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.tet-item-sub { color: var(--c-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tet-item-end { text-align: right; display: grid; justify-items: end; gap: 3px; flex: none; }
.tet-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tet-amount.is-credit { color: var(--c-success); }
.tet-amount.is-debit { color: var(--c-text); }
.tet-item.is-unread { background: var(--c-primary-50); }
.tet-item.is-unread .tet-item-title::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); margin-left: 8px; vertical-align: middle; }
button.tet-item { width: 100%; border: 0; background: none; text-align: left; }
button.tet-item:hover, a.tet-item:hover { background: var(--c-surface-2); }
a.tet-item { text-decoration: none; color: inherit; }

/* Key/value list */
.tet-kv { display: grid; gap: 0; margin: 0; }
.tet-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--c-border); }
.tet-kv > div:last-child { border-bottom: 0; }
.tet-kv dt { color: var(--c-muted); }
.tet-kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ---------- Tabs / segmented ---------- */
.tet-tabs { position: relative; display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--c-border); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.tet-tabs::-webkit-scrollbar { display: none; }
.tet-tab { flex: 1 0 auto; padding: 9px 14px; border-radius: 10px; border: 0; background: none; color: var(--c-muted); font-weight: 600; font-size: 14px; text-decoration: none; text-align: center; white-space: nowrap; }
.tet-tab:hover { color: var(--c-text); }
.tet-tab[aria-selected="true"], .tet-tab[aria-current="page"] { background: var(--c-primary); color: #fff; box-shadow: 0 2px 8px rgba(155, 27, 48, .25); }
.tet-tab .tet-count { margin-left: 6px; font-size: 12px; opacity: .85; }

/* ---------- Forms ---------- */
.tet-form { display: grid; gap: 16px; }
.tet-field { display: grid; gap: 6px; align-content: start; }
.tet-label { font-weight: 600; font-size: 14px; color: var(--c-text-2); }
.tet-label .tet-req { color: var(--c-primary); margin-left: 2px; }
.tet-input, .tet-select, .tet-textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md);
	border: 1.5px solid var(--c-border-strong); background: #fff; font-size: 16px; /* 16px stops iOS zoom */
	transition: border-color .12s, box-shadow .12s; appearance: none; -webkit-appearance: none;
}
.tet-textarea { min-height: 96px; resize: vertical; }
.tet-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235F6573' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.tet-input:hover, .tet-select:hover, .tet-textarea:hover { border-color: #BFC3CC; }
.tet-input:focus, .tet-select:focus, .tet-textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-ring); }
.tet-input[aria-invalid="true"], .tet-select[aria-invalid="true"] { border-color: var(--c-danger); }
.tet-input:read-only { background: var(--c-surface-2); }
.tet-help { font-size: 13px; color: var(--c-muted); }
.tet-error-text { font-size: 13px; color: var(--c-danger); font-weight: 600; }
.tet-input-group { position: relative; }
.tet-input-group .tet-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-weight: 600; pointer-events: none; }
.tet-input-group .tet-prefix + .tet-input { padding-left: 44px; }
.tet-input-group .tet-suffix-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.tet-input-group .tet-input.has-suffix { padding-right: 52px; }
.tet-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--c-text-2); cursor: pointer; }
.tet-check input { width: 20px; height: 20px; accent-color: var(--c-primary); margin: 1px 0 0; flex: none; }
.tet-form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .tet-form-row { grid-template-columns: 1fr 1fr; } }

/* Choice cards (wallet / payment method selection) */
.tet-choices { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tet-choices { grid-template-columns: 1fr 1fr; } .tet-choices-3 { grid-template-columns: repeat(3, 1fr); } }
.tet-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--c-border-strong); border-radius: var(--r-lg); background: #fff; cursor: pointer; transition: border-color .12s, background .12s; }
.tet-choice:hover { border-color: #BFC3CC; }
.tet-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tet-choice:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-50); box-shadow: 0 0 0 1px var(--c-primary) inset; }
.tet-choice:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--c-primary-ring); }
.tet-choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.tet-choice-body { flex: 1; min-width: 0; }
.tet-choice-body strong { display: block; font-size: 14.5px; }
.tet-choice-body span { font-size: 13px; color: var(--c-muted); }
.tet-choice-mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c-border-strong); flex: none; display: grid; place-items: center; }
.tet-choice:has(input:checked) .tet-choice-mark { border-color: var(--c-primary); background: var(--c-primary); box-shadow: inset 0 0 0 3px #fff; }
.tet-method-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; letter-spacing: -0.02em; }

/* Alerts (inline) */
.tet-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; align-items: flex-start; }
.tet-alert .tet-ico { margin-top: 1px; width: 18px; height: 18px; }
.tet-alert-info { background: var(--c-info-bg); color: #1A3D9E; }
.tet-alert-warning { background: var(--c-warning-bg); color: #7A4700; }
.tet-alert-danger { background: var(--c-danger-bg); color: #8E1C13; }
.tet-alert-success { background: var(--c-success-bg); color: #125C2E; }
.tet-alert-neutral { background: var(--c-surface-2); color: var(--c-text-2); border: 1px solid var(--c-border); }
.tet-alert strong { display: block; }
.tet-alert > div { flex: 1; min-width: 0; }

/* ---------- Progress ---------- */
.tet-progress { height: 10px; border-radius: 999px; background: var(--c-neutral-bg); overflow: hidden; }
.tet-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--c-primary); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.tet-progress-lg { height: 12px; }
.tet-progress-on-dark { background: rgba(255, 255, 255, .22); }
.tet-progress-on-dark > span { background: #fff; }
.tet-ring { --p: 0; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c-primary) calc(var(--p) * 1%), var(--c-neutral-bg) 0); flex: none; }
.tet-ring > span { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }

/* Stepper (welcome bonus stages) */
.tet-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tet-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
.tet-step:last-child { padding-bottom: 0; }
.tet-step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--c-border); }
.tet-step:last-child::before { display: none; }
.tet-step.is-approved::before { background: var(--c-success); }
.tet-step-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--c-border-strong); color: var(--c-muted); font-weight: 800; font-size: 14px; z-index: 1; }
.tet-step.is-approved .tet-step-mark { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.tet-step.is-pending .tet-step-mark { border-color: #E5A13B; color: var(--c-warning); background: var(--c-warning-bg); }
.tet-step.is-available .tet-step-mark { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-50); }
.tet-step.is-rejected .tet-step-mark { border-color: var(--c-danger); color: var(--c-danger); background: var(--c-danger-bg); }
.tet-step.is-locked .tet-step-mark { background: var(--c-surface-2); }
.tet-step-card { padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--c-border); background: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tet-step-card > div:first-child { flex: 1 1 180px; min-width: 0; }
.tet-step-card strong { display: block; font-size: 15px; }
.tet-step.is-locked .tet-step-card { background: var(--c-surface-2); }

/* Countdown */
.tet-countdown { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--c-surface-2); border: 1px solid var(--c-border); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.tet-countdown .tet-ico { width: 18px; height: 18px; color: var(--c-primary); }
.tet-countdown.is-warning { background: var(--c-warning-bg); border-color: #F3D19E; color: var(--c-warning); }
.tet-countdown.is-warning .tet-ico { color: currentColor; }
.tet-countdown.is-expired { background: var(--c-danger-bg); border-color: #F2C4BF; color: var(--c-danger); }
.tet-countdown-big { font-size: 28px; padding: 10px 20px; }

/* ---------- Task card ---------- */
.tet-task-hero { display: grid; gap: 16px; }
.tet-task-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.tet-task-title { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.tet-task-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tet-meta-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--c-surface-2); border: 1px solid var(--c-border); font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.tet-meta-chip .tet-ico { width: 16px; height: 16px; color: var(--c-primary); }
.tet-reward-chip { background: var(--c-primary-50); border-color: var(--c-primary-100); color: var(--c-primary); }
.tet-instructions { padding: 14px 16px; border-radius: var(--r-md); background: var(--c-surface-2); border: 1px solid var(--c-border); white-space: pre-line; color: var(--c-text-2); font-size: 14.5px; }

/* Timeline (task status progression) */
.tet-timeline { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 6px; margin: -6px; }
.tet-timeline::-webkit-scrollbar { display: none; }
.tet-tl-step { display: flex; align-items: center; gap: 8px; flex: none; font-size: 12.5px; font-weight: 700; color: var(--c-faint); }
.tet-tl-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c-border-strong); background: #fff; display: grid; place-items: center; }
.tet-tl-dot .tet-ico { width: 13px; height: 13px; stroke-width: 3; }
.tet-tl-step.is-done { color: var(--c-success); }
.tet-tl-step.is-done .tet-tl-dot { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.tet-tl-step.is-current { color: var(--c-primary); }
.tet-tl-step.is-current .tet-tl-dot { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-ring); }
.tet-tl-line { width: 28px; height: 2px; background: var(--c-border); margin: 0 8px; flex: none; }
.tet-tl-line.is-done { background: var(--c-success); }

/* ---------- Upload ---------- */
.tet-upload { display: grid; gap: 12px; }
.tet-upload-zone { border: 2px dashed var(--c-border-strong); border-radius: var(--r-lg); padding: 20px 16px; text-align: center; background: var(--c-surface-2); display: grid; gap: 12px; justify-items: center; transition: border-color .12s, background .12s; }
.tet-upload-zone.is-drag { border-color: var(--c-primary); background: var(--c-primary-50); }
.tet-upload-zone .tet-upload-ico { width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--c-primary); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.tet-upload-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tet-upload-preview { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border); background: #0F1115; }
.tet-upload-preview img { width: 100%; max-height: 360px; object-fit: contain; }
.tet-upload-preview .tet-upload-remove { position: absolute; top: 10px; right: 10px; }
.tet-upload-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--c-muted); }
.tet-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Sharing numbers ---------- */
.tet-number { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; align-items: center; }
@media (min-width: 768px) { .tet-number { grid-template-columns: auto 1fr auto; padding: 16px 20px; } }
.tet-number-idx { width: 36px; height: 36px; border-radius: 11px; background: var(--c-surface-2); border: 1px solid var(--c-border); display: grid; place-items: center; font-weight: 800; color: var(--c-muted); font-size: 14px; }
.tet-number.is-done .tet-number-idx { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.tet-number.is-active { background: var(--c-primary-50); }
.tet-number.is-active .tet-number-idx { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.tet-number-phone { font-weight: 700; font-size: 16px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tet-number-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 768px) { .tet-number-actions { grid-column: auto; } }
.tet-message-box { position: relative; padding: 14px 16px; border-radius: var(--r-md); background: #F0FAF3; border: 1px solid #CFEBD8; white-space: pre-line; font-size: 14.5px; color: #173524; }

/* ---------- Referral network ---------- */
.tet-ref-link { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border: 1.5px solid var(--c-border-strong); border-radius: var(--r-md); background: var(--c-surface-2); }
.tet-ref-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--c-text-2); }
.tet-levels { display: grid; gap: 8px; }
.tet-level-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: none; text-align: left; width: 100%; }
.tet-level-row:hover { background: var(--c-surface-2); }
.tet-level-row[aria-pressed="true"] { border-color: var(--c-primary-100); background: var(--c-primary-50); }
.tet-level-tag { height: 32px; border-radius: 10px; background: var(--c-primary); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.tet-level-bar { height: 10px; border-radius: 6px; background: var(--c-neutral-bg); overflow: hidden; }
.tet-level-bar > span { display: block; height: 100%; background: var(--c-primary); border-radius: inherit; opacity: .85; }
.tet-level-count { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.tet-tree { display: grid; gap: 10px; justify-items: center; padding: 8px 0; }
.tet-tree-node { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 14px; }
.tet-tree-branch { width: 2px; height: 16px; background: var(--c-border-strong); }
.tet-tree-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tet-tree-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c-border); background: #fff; font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.tet-tree-more { background: var(--c-surface-2); color: var(--c-muted); }

/* ---------- Media cards (games / promotions) ---------- */
.tet-media { overflow: hidden; display: flex; flex-direction: column; }
.tet-media-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--c-primary-50), var(--c-primary-100)); display: grid; place-items: center; color: var(--c-primary); overflow: hidden; }
.tet-media-img img { width: 100%; height: 100%; object-fit: cover; }
.tet-media-img .tet-ico { width: 40px; height: 40px; opacity: .7; }
.tet-media-body { padding: 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.tet-media-body h3 { font-size: 16px; }
.tet-media-foot { padding: 0 16px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Channel card ---------- */
.tet-channel-card { display: grid; gap: 16px; }
.tet-channel-head { display: flex; gap: 14px; align-items: center; }
.tet-channel-logo { width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--c-border); background: #fff; display: grid; place-items: center; padding: 8px; flex: none; }
.tet-verified { display: inline-flex; align-items: center; gap: 4px; color: #128C4B; font-size: 13px; font-weight: 700; }

/* ---------- Skeleton ---------- */
.tet-skel { position: relative; overflow: hidden; background: #ECEEF2; border-radius: 8px; }
.tet-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: tet-shimmer 1.3s infinite; }
@keyframes tet-shimmer { 100% { transform: translateX(100%); } }
.tet-skel-line { height: 12px; }
.tet-skel-title { height: 22px; width: 45%; }
.tet-skel-block { height: 120px; border-radius: var(--r-lg); }
.tet-skel-circle { width: 40px; height: 40px; border-radius: 50%; flex: none; }

/* ---------- Empty / error states ---------- */
.tet-state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 20px; }
.tet-state-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-faint); border: 1px solid var(--c-border); }
.tet-state-ico .tet-ico { width: 28px; height: 28px; }
.tet-state.is-error .tet-state-ico { background: var(--c-danger-bg); color: var(--c-danger); border-color: transparent; }
.tet-state h3 { font-size: 17px; }
.tet-state p { color: var(--c-muted); max-width: 420px; }
.tet-state .tet-actions { justify-content: center; margin-top: 6px; }

/* ---------- Toasts ---------- */
.tet-toasts { position: fixed; z-index: 200; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px); display: grid; gap: 8px; pointer-events: none; }
@media (min-width: 1024px) { .tet-toasts { left: auto; right: 24px; bottom: 24px; width: 380px; } }
.tet-toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: #1B1D24; color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: tet-toast-in .22s cubic-bezier(.2, .8, .2, 1); }
.tet-toast .tet-ico { width: 18px; height: 18px; margin-top: 1px; }
.tet-toast.is-success .tet-ico { color: #7BE0A0; }
.tet-toast.is-error .tet-ico { color: #FF9C94; }
.tet-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes tet-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Dialog ---------- */
.tet-dialog-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(15, 17, 22, .5); display: grid; place-items: end center; padding: 0; animation: tet-fadein .15s ease-out; }
@media (min-width: 600px) { .tet-dialog-backdrop { place-items: center; padding: 20px; } }
.tet-dialog { width: 100%; max-width: 440px; background: #fff; border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + var(--safe-bottom)); box-shadow: var(--shadow-lg); animation: tet-up .2s cubic-bezier(.2, .8, .2, 1); display: grid; gap: 14px; }
@media (min-width: 600px) { .tet-dialog { border-radius: 22px; padding: 24px; animation: tet-pop .16s ease-out; } }
.tet-dialog h2 { font-size: 19px; }
.tet-dialog p { color: var(--c-muted); }
.tet-dialog .tet-actions { justify-content: flex-end; margin-top: 4px; }
.tet-dialog-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--c-primary-50); color: var(--c-primary); }
.tet-dialog-ico.is-danger { background: var(--c-danger-bg); color: var(--c-danger); }
@media (max-width: 599px) { .tet-dialog .tet-actions { display: grid; grid-template-columns: 1fr 1fr; } .tet-dialog .tet-actions .tet-btn { width: 100%; } }

/* ---------- Auth pages ---------- */
.tet-auth { min-height: 100vh; display: grid; background: #fff; }
@media (min-width: 960px) { .tet-auth { grid-template-columns: 1fr 1fr; } }
.tet-auth-side { display: none; position: relative; overflow: hidden; background: var(--c-primary); color: #fff; padding: 48px; align-content: space-between; }
@media (min-width: 960px) { .tet-auth-side { display: grid; } }
.tet-auth-side::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -180px; top: -160px; background: rgba(255, 255, 255, .07); }
.tet-auth-side::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; left: -140px; bottom: -120px; background: rgba(0, 0, 0, .08); }
.tet-auth-side > * { position: relative; z-index: 1; }
.tet-auth-side h2 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; max-width: 420px; }
.tet-auth-side p { color: rgba(255, 255, 255, .85); max-width: 420px; margin-top: 12px; font-size: 16px; }
.tet-auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.tet-auth-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.tet-auth-points .tet-ico { background: rgba(255, 255, 255, .16); border-radius: 8px; padding: 4px; width: 28px; height: 28px; }
.tet-auth-logo-white { display: inline-flex; background: #fff; border-radius: 16px; padding: 8px 12px; }
.tet-auth-logo-white img { width: 64px; }
.tet-auth-main { display: grid; place-items: center; padding: 28px 20px 40px; }
.tet-auth-card { width: 100%; max-width: 420px; display: grid; gap: 22px; }
.tet-auth-card .tet-auth-logo { width: 150px; margin: 0 auto 4px; }
@media (min-width: 960px) { .tet-auth-card .tet-auth-logo { display: none; } }
.tet-auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.tet-auth-card .tet-auth-sub { color: var(--c-muted); margin-top: 6px; }
.tet-auth-alt { text-align: center; color: var(--c-muted); font-size: 14.5px; }
.tet-auth-alt a { font-weight: 700; text-decoration: none; }
.tet-auth-home { font-size: 14px; color: var(--c-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tet-auth-home:hover { color: var(--c-primary); }

/* ---------- Status pages (offline / maintenance / 404) ---------- */
.tet-status-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 32px 20px; background: #fff; }
.tet-status-page img { width: 170px; height: auto; margin-bottom: 8px; }
.tet-status-page h1 { font-size: 24px; font-weight: 800; }
.tet-status-page p { color: var(--c-muted); max-width: 440px; }

/* ---------- Tables (desktop) ---------- */
.tet-table-wrap { overflow-x: auto; }
.tet-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tet-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-faint); font-weight: 700; padding: 12px 20px; border-bottom: 1px solid var(--c-border); background: var(--c-surface-2); white-space: nowrap; }
.tet-table td { padding: 13px 20px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.tet-table tr:last-child td { border-bottom: 0; }
.tet-table .is-right { text-align: right; }

/* Filters bar */
.tet-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tet-filters .tet-select { min-height: 42px; width: auto; min-width: 150px; font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.tet-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--c-border); font-size: 13.5px; color: var(--c-muted); }

/* Install page */
.tet-install-hero { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 28px 20px; }
.tet-install-icon { width: 96px; height: 96px; border-radius: 26px; box-shadow: var(--shadow-md); border: 1px solid var(--c-border); background: #fff; padding: 10px; }
.tet-ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--c-text-2); }

/* Utilities */
.tet-mt-0 { margin-top: 0; }
.tet-hide-mobile { display: none; }
@media (min-width: 768px) { .tet-hide-mobile { display: initial; } .tet-hide-desktop { display: none !important; } }
.tet-divider { height: 1px; background: var(--c-border); margin: 4px 0; }
.tet-center { text-align: center; }

/* Grid containers: let children shrink to the screen instead of growing to their longest word or link. */
.tet-task-hero, .tet-form, .tet-field, .tet-upload, .tet-stat, .tet-wallet-hero, .tet-channel-card,
.tet-media-body, .tet-auth-card, .tet-dialog, .tet-kv, .tet-levels, .tet-steps { grid-template-columns: minmax(0, 1fr); }
.tet-card { min-width: 0; }
.tet-ref-link { min-width: 0; }

/* ---------- 1.1.0: chips, featured games, sponsored, promote ---------- */
.tet-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.tet-chips:empty { display: none; }
.tet-chip { flex: 0 0 auto; border: 1px solid var(--c-border-strong); background: var(--c-surface); color: var(--c-text, inherit); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 36px; }
.tet-chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.tet-chip:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.tet-game-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; border: 1px solid var(--c-border); }
.tet-media-featured { border: 1px solid color-mix(in srgb, var(--c-primary) 30%, transparent); }
.tet-sponsored { background: #FFF4D6; color: #7A5200; }
.tet-promo-price { font-size: 22px; font-weight: 700; }
.tet-account-card { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 12px; display: grid; gap: 4px; }
.tet-account-card .tet-num { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.tet-radio-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); padding: 12px; cursor: pointer; }
.tet-radio-card:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-50); }
.tet-radio-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tet-steps-line { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tet-steps-line li { display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* ---------- 1.3.0: Help Assistant ---------- */
.tet-chat { display: flex; flex-direction: column; }
.tet-chat-log { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; max-height: min(60vh, 560px); min-height: 220px; overflow-y: auto; background: var(--c-bg, #F7F7F9); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.tet-chat-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.tet-chat-msg.is-user { align-self: flex-end; flex-direction: row-reverse; }
.tet-chat-ava { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c-primary-50); color: var(--c-primary); }
.tet-chat-bubble { padding: 10px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--c-border); white-space: pre-line; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.tet-chat-msg.is-user .tet-chat-bubble { background: var(--c-primary); color: #fff; border-color: transparent; }
.tet-chat-msg.is-fallback .tet-chat-bubble { background: #FFF8E6; border-color: #F3DFA6; }
.tet-chat-msg.is-typing .tet-chat-bubble { color: var(--c-muted); font-style: italic; }
.tet-chat-time { display: block; margin-top: 4px; font-size: 11px; opacity: .65; }
.tet-chat-form { display: flex; gap: 8px; align-items: flex-end; }
.tet-chat-input { flex: 1; min-width: 0; resize: vertical; min-height: 46px; }
.tet-chat-links { font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; }
.tet-faq { border-bottom: 1px solid var(--c-border); padding: 12px 16px; }
.tet-faq:last-child { border-bottom: 0; }
.tet-faq summary { cursor: pointer; font-weight: 600; }
.tet-faq-body { margin-top: 8px; white-space: pre-line; color: var(--c-text, #222); font-size: 14.5px; }
@media (max-width: 560px) { .tet-chat-msg { max-width: 96%; } .tet-chat-form .tet-btn { padding-inline: 12px; } }

/* ---------- 1.5.0: live camera (verification) ---------- */
.tet-camera { display: grid; gap: 6px; }
.tet-camera-stage, .tet-camera-shot { border-radius: 14px; overflow: hidden; background: #111; max-width: 480px; }
.tet-camera-video, .tet-camera-shot img { display: block; width: 100%; height: auto; }
.tet-camera-video { transform: scaleX(-1); }

/* 1.6.0: referral code / comment to copy, numbered step lists in reward games and service tasks. */
.tet-refcode { display: grid; gap: 6px; padding: 10px 12px; border: 1px dashed var(--c-border, #d9dbe1); border-radius: 10px; background: var(--c-surface-2, #f7f8fa); }
.tet-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: var(--c-surface, #fff); border: 1px solid var(--c-border, #e1e3e8); word-break: break-word; }
.tet-code-link { font-size: 12px; font-weight: 500; word-break: break-all; max-width: 100%; }
.tet-howto { list-style: decimal; margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* 1.7.0: numbers already opened in WhatsApp (remembered on this phone). */
.tet-number.is-opened { background: color-mix(in srgb, #25d366 9%, transparent); box-shadow: inset 3px 0 0 #1fa855; }
.tet-btn-whatsapp.is-opened { opacity: .8; }
.tet-opened-tag { font-weight: 700; }
.tet-number:not(.is-opened):not(.is-done) .tet-btn-whatsapp { animation: tet-pulse-wa 2.4s ease-in-out infinite; }
@keyframes tet-pulse-wa { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .0); } 50% { box-shadow: 0 0 0 4px rgba(37, 211, 102, .25); } }
@media (prefers-reduced-motion: reduce) { .tet-number:not(.is-opened):not(.is-done) .tet-btn-whatsapp { animation: none; } }

/* 1.10.0: latest payments + Payment Proofs page */
.tet-payticker-window { overflow: hidden; padding: 0 0 10px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tet-payticker-track { display: flex; gap: 22px; margin: 0; padding: 0 14px; list-style: none; width: max-content; animation: tet-ticker 40s linear infinite; }
.tet-payticker-window:hover .tet-payticker-track { animation-play-state: paused; }
.tet-payticker-item { white-space: nowrap; font-size: .9rem; }
.tet-payticker-ok { color: var(--c-success, #1a7f37); font-weight: 700; margin-right: 4px; }
@keyframes tet-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tet-payticker-track { animation: none; flex-wrap: wrap; width: auto; } }
.tet-proofs-bare { max-width: 720px; margin: 0 auto; padding: 12px 16px 32px; }
.tet-proofs-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tet-proofs-brand { font-weight: 800; color: inherit; text-decoration: none; }
.tet-proofs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.tet-proof-card { margin: 0; background: var(--c-surface, #fff); border: 1px solid var(--c-border, #e6e6ea); border-radius: 14px; overflow: hidden; }
.tet-proof-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #f3f3f5; }
.tet-proof-card figcaption { padding: 8px 10px 10px; display: grid; gap: 2px; }
.tet-proof-amount { font-weight: 800; display: flex; align-items: center; gap: 4px; color: var(--c-success, #1a7f37); }

/* 1.13.0: proof panel (any order) + screen recording */
.tet-proof-step { border: 1px solid var(--c-border, #e6e6ea); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; background: var(--c-surface, #fff); }
.tet-proof-step.is-done { border-color: color-mix(in srgb, var(--c-success, #1a7f37) 40%, transparent); background: color-mix(in srgb, var(--c-success, #1a7f37) 5%, var(--c-surface, #fff)); }
.tet-proof-step-head { display: flex; align-items: center; gap: 8px; }
.tet-proof-step-n { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c-primary-50); color: var(--c-primary); font-weight: 700; font-size: 13px; flex: none; }
.tet-proof-step.is-done .tet-proof-step-n { background: var(--c-success, #1a7f37); color: #fff; }
.tet-proof-body { display: grid; gap: 6px; }
.tet-rec-code { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.tet-rec-code strong { font: 700 22px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; background: #fff4c2; color: #1d2327; padding: 2px 10px; border-radius: 8px; }
.tet-ok-text { color: var(--c-success, #1a7f37); font-weight: 600; }
.tet-warn-text { color: var(--c-danger, #b42318); font-weight: 600; }

/* 1.14.0 (Backend 1.15.0): VPN / proxy block message */
.tet-vpn-overlay{position:fixed;inset:0;z-index:9999;background:rgba(15,23,42,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.tet-vpn-card{background:var(--c-surface,#fff);color:var(--c-text,#111);border-radius:16px;max-width:400px;width:100%;padding:24px 20px;text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.25)}
.tet-vpn-card h2{margin:0 0 8px;font-size:20px}
.tet-vpn-card p{margin:0 0 16px;line-height:1.5}

/* 1.15.0: messages in Urdu + English (two lines) */
.tet-error-text, .tet-toast, .tet-vpn-card p, .tet-state.is-error p, .tet-alert, [data-check-result], .tet-field-error, .tet-upload-error, .tet-guided-status, .tet-guided-rec { white-space: pre-line; }

/* 1.15.0: "How to do it" help video */
.tet-help-bar { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.tet-auth-main .tet-help-bar { justify-content: center; margin: 0 0 14px; }
.tet-help-btn { font-weight: 700; }
.tet-help-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 12, 18, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tet-help-card { background: var(--c-surface, #fff); color: var(--c-text, #111); border-radius: 16px; width: 100%; max-width: 720px; padding: 12px; display: grid; gap: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.tet-help-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.tet-help-frame iframe, .tet-help-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 1.15.0: guided "Open number 1 … 5" */
.tet-guided { display: grid; gap: 10px; border-top: 1px solid var(--c-border, #e6e6ea); background: var(--c-primary-50, #eef8f2); }
.tet-guided-status { margin: 0; font-size: 14px; line-height: 1.5; }
.tet-guided-rec { margin: 0; padding: 8px 10px; border-radius: 10px; background: #fff4e5; color: #8a4b00; font-weight: 600; font-size: 14px; }
.tet-guided-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.tet-guided-dot { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: #fff; border: 2px solid var(--c-border, #d0d5dd); }
.tet-guided-dot.is-done { background: var(--c-primary, #0F7B4F); border-color: var(--c-primary, #0F7B4F); color: #fff; }
.tet-guided-done { display: grid; gap: 10px; }
.tet-btn-lg.tet-btn-whatsapp { font-size: 16px; padding: 14px 16px; }

/* 1.16.0: one Chats-list screenshot per group of numbers */
.tet-slot-list { display: grid; gap: 8px; }
.tet-slot { border: 1px solid var(--c-border, #e1e3e8); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; background: var(--c-surface, #fff); }
.tet-slot.is-done { border-color: var(--c-primary, #0F7B4F); background: var(--c-primary-50, #eef8f2); }
.tet-slot-numbers { color: var(--c-text-2, #555); word-break: break-word; }
.tet-two-lang { white-space: pre-line; }
.tet-guided-group { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: #fff4e5; }
.tet-guided, .tet-guided-group, .tet-guided-done, .tet-slot { grid-template-columns: minmax(0, 1fr); }
.tet-guided .tet-btn, .tet-slot .tet-btn { white-space: normal; height: auto; min-height: 44px; text-align: center; }

/* 1.17.0 (Backend 1.18.0): voice help, recording sessions, hidden numbers */
.tet-help-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tet-voice { display: inline-flex; }
.tet-voice audio { display: none; }
.tet-voice-btn { font-weight: 700; }
.tet-rec-card { border-left: 4px solid var(--c-primary, #2563eb); }
.tet-rec-card.is-open { border-left-color: #dc2626; }
.tet-rec-card.is-missing { border-left-color: #dc2626; background: #fff5f5; }
.tet-rec-card.is-delivered, .tet-rec-card.is-sent, .tet-rec-card.is-received { border-left-color: #16a34a; }
.tet-rec-send { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tet-rec-way { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding-top: 6px; border-top: 1px dashed var(--c-border, #e6e6ea); }
.tet-rec-way p, .tet-rec-ask p, .tet-rec-ask li { white-space: pre-line; }
.tet-rec-ask { text-align: start; display: grid; gap: 8px; }
.tet-rec-ask ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.tet-two-lang { white-space: pre-line; }
.tet-guided [data-guided-stop] { justify-self: center; white-space: pre-line; }
.tet-guided.is-hidden-numbers .tet-guided-dots { justify-content: center; }
.tet-badge-danger { background: #fee2e2; color: #b42318; }
.tet-rec-card .tet-btn, .tet-guided [data-guided-stop], .tet-dialog .tet-actions .tet-btn { white-space: normal; height: auto; min-height: 44px; line-height: 1.5; text-align: center; padding-top: 8px; padding-bottom: 8px; }
.tet-dialog .tet-actions { flex-wrap: wrap; }
.tet-dialog .tet-actions .tet-btn { flex: 1 1 140px; }
