/* ==========================================================================
   Open Broker Network — mobile-first app UI
   Brand: cam (orange) · đen (black) · trắng (white)
   ========================================================================== */

:root {
	--orange: #EE5A24;
	--orange-600: #D9480F;
	--orange-400: #F7832F;
	--orange-50: #FFF2EB;
	--orange-100: #FFE3D3;
	--grad: linear-gradient(135deg, #E9471B 0%, #F26B1D 55%, #F7941D 100%);
	--black: #111111;
	--ink: #1B1B1F;
	--muted: #71717A;
	--line: #EEEEF0;
	--bg: #F5F5F7;
	--white: #FFFFFF;
	--ok: #16A34A;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 6px 22px rgba(17, 17, 17, .08);
	--shadow-sm: 0 2px 10px rgba(17, 17, 17, .06);
	--app-w: 480px;
	--top-h: 64px;
	--tab-h: 64px;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.45;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------ App shell */
.app {
	position: relative;
	max-width: var(--app-w);
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	background: var(--white);
	padding-bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
}
@media (min-width: 560px) {
	body { background: radial-gradient(1200px 600px at 50% -10%, #FFE8DC 0%, var(--bg) 60%); }
	.app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(17,17,17,.10); }
}

/* ------------------------------------------------------------------ Top bar */
.topbar {
	position: sticky; top: 0; z-index: 30;
	height: var(--top-h);
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 0 12px 0 16px;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar--back { padding-left: 4px; }
.topbar--back .brand { position: absolute; left: 50%; transform: translateX(-50%); }

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 44px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; color: var(--black); }
.brand__text b { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.brand__text span { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.brand--white .brand__text { color: #fff; }

.iconbtn {
	width: 44px; height: 44px; border-radius: 50%;
	display: inline-grid; place-items: center; position: relative; color: var(--black);
}
.iconbtn:active { background: var(--bg); }
.iconbtn .ic { width: 24px; height: 24px; }
.iconbtn--ghost { visibility: hidden; }
.topbar__bell .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px #fff; }

/* ------------------------------------------------------------------ Bottom tab bar */
.tabbar {
	position: fixed; z-index: 40; bottom: 0; left: 50%; transform: translateX(-50%);
	width: 100%; max-width: var(--app-w);
	height: calc(var(--tab-h) + var(--safe-b));
	padding-bottom: var(--safe-b);
	display: grid; grid-template-columns: repeat(5, 1fr);
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-top: 1px solid var(--line);
}
.tabbar__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	font-size: 11.5px; font-weight: 500; color: #3F3F46;
}
.tabbar__item .ic { width: 24px; height: 24px; }
.tabbar__item.is-active { color: var(--orange); font-weight: 700; }
.tabbar__item:active .ic { transform: scale(.92); }

/* ------------------------------------------------------------------ Buttons / chips */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 22px; border-radius: 999px;
	font-weight: 700; font-size: 15px; transition: transform .1s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(238, 90, 36, .28); }
.btn--ghost { background: var(--bg); color: var(--ink); }
.btn--text { background: none; color: var(--orange); height: 40px; }
.btn--text[disabled] { color: var(--muted); opacity: 1; }
.btn--block { width: 100%; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--sm .ic { width: 18px; height: 18px; }
.link { color: var(--orange); font-weight: 600; font-size: 14px; }

.chip {
	display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
	height: 34px; padding: 0 14px; border-radius: 999px;
	background: var(--bg); color: #3F3F46; font-size: 13.5px; font-weight: 600;
	border: 1px solid transparent; transition: all .15s;
}
.chip.is-active { background: var(--black); color: #fff; }
.chip--sm { height: 22px; padding: 0 8px; font-size: 11.5px; background: var(--orange-50); color: var(--orange-600); }
.chip--ok { height: 22px; padding: 0 8px; font-size: 11.5px; background: #ECFDF3; color: var(--ok); margin-left: 6px; }
.chip--ok .ic { width: 13px; height: 13px; stroke-width: 3; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 4px; margin: 0 -16px; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0 16px; }

.pill {
	display: inline-flex; align-items: center; gap: 6px; flex: none;
	height: 42px; padding: 0 18px; border-radius: 999px;
	background: var(--grad); color: #fff; font-weight: 700; font-size: 14.5px;
	box-shadow: 0 8px 22px rgba(238, 90, 36, .45);
}
.pill .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.pill--done { background: var(--orange); }

/* ------------------------------------------------------------------ Hero (home) */
.hero { position: relative; height: 210px; overflow: hidden; background: #2b2d5c; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,30,.82) 0%, rgba(10,12,30,.45) 55%, rgba(10,12,30,0) 100%); }
.hero__inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 20px; color: #fff; max-width: 82%; }
.hero__hello { font-size: 13px; opacity: .85; margin-bottom: 6px; }
.hero__title { font-size: 22px; line-height: 1.32; font-weight: 800; letter-spacing: -.2px; text-wrap: balance; }
.hero__bar { display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--orange); margin: 14px 0 10px; }
.hero__stats { font-size: 12.5px; opacity: .9; }
.hero__stats b { color: #FFB27D; }

.join-banner {
	display: flex; align-items: center; gap: 12px; margin: 14px 16px 0; padding: 12px 14px;
	border-radius: var(--radius); background: var(--orange-50); border: 1px solid var(--orange-100); color: var(--ink);
}
.join-banner > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.join-banner strong { font-size: 14.5px; }
.join-banner small { font-size: 12px; color: var(--muted); }
.join-banner__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.join-banner > .ic { color: var(--orange); width: 18px; height: 18px; }

/* ------------------------------------------------------------------ Sections */
.section { padding: 22px 0 4px; }
.section--flush { padding-top: 10px; }
.section__head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 12px; }
.section__head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.section__head h2 small { font-weight: 600; color: var(--muted); font-size: 14px; }
.section__head--day { padding-top: 18px; padding-bottom: 6px; }
.section__head--day h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.link-more { display: inline-flex; align-items: center; color: var(--orange); font-weight: 600; font-size: 14px; }
.link-more .ic { width: 16px; height: 16px; stroke-width: 2.4; }

.page-head { padding: 18px 16px 10px; }
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.page-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

/* ------------------------------------------------------------------ Project cards */
.hscroll {
	display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
	padding: 2px 16px 14px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.pcard { scroll-snap-align: start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s; }
.pcard:active { transform: scale(.98); }
.pcard__img { position: relative; display: block; aspect-ratio: 16 / 11; background: var(--bg); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ok); font-size: 11px; font-weight: 700; font-style: normal; }
.pcard__badge .ic { width: 13px; height: 13px; stroke-width: 3; }
.pcard__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.pcard__body strong { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: inline-flex; align-items: center; gap: 5px; color: #52525B; font-size: 13px; }
.meta .ic { width: 16px; height: 16px; }

.plist { padding: 0 16px; }
.prow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prow:last-of-type { border-bottom: 0; }
.prow__img { width: 104px; height: 68px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg); flex: none; }
.prow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prow__body strong { font-size: 16px; font-weight: 700; }
.prow__chev { color: #3F3F46; width: 20px; height: 20px; }
.prow .meta { flex-wrap: wrap; white-space: nowrap; row-gap: 4px; }
.prow .chip--ok { margin-left: 2px; }

/* ------------------------------------------------------------------ Project cover + tabs */
.cover { position: relative; height: 220px; overflow: hidden; background: #222; }
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%); }
.cover__inner { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px; color: #fff; }
.cover__title { font-size: 24px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.cover__meta { font-size: 14px; opacity: .92; margin-top: 4px; }
.cover__meta i { font-style: normal; margin: 0 4px; opacity: .7; }

.tabs__bar {
	position: sticky; top: var(--top-h); z-index: 20;
	display: flex; gap: 22px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line);
	overflow-x: auto; scrollbar-width: none;
}
.tabs__bar button { position: relative; height: 50px; font-size: 15px; font-weight: 500; color: #3F3F46; white-space: nowrap; }
.tabs__bar button.is-active { color: var(--orange); font-weight: 700; }
.tabs__bar button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--orange); }
.tabs__panel { padding-bottom: 12px; }

.filter-box { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.filter-box--sticky { position: sticky; top: var(--top-h); z-index: 15; padding-bottom: 12px; }
.searchbox { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--bg); color: #52525B; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.searchbox input::placeholder { color: #8A8A93; }
.searchbox:focus-within { box-shadow: 0 0 0 2px var(--orange-100); background: #fff; }
.searchbox--lg { height: 50px; }
.filter-empty { padding: 30px 0; text-align: center; color: var(--muted); }

.notice-card { display: flex; gap: 10px; align-items: flex-start; margin: 14px 16px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--orange-50); color: #7C2D12; font-size: 13.5px; }
.notice-card .ic { color: var(--orange); width: 20px; height: 20px; margin-top: 1px; }

/* ------------------------------------------------------------------ Video rows */
.vlist { padding: 4px 16px; }
.vrow { position: relative; display: flex; align-items: center; gap: 4px; padding: 8px 0; }
.vrow__link { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; }
.vrow__thumb { position: relative; flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.vrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-time { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: 11.5px; font-weight: 600; font-style: normal; letter-spacing: .2px; }
.badge-lock { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; }
.badge-lock .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.vrow__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--orange); }
.vrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vrow__title { font-size: 15px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vrow__project { font-size: 12.5px; color: var(--orange-600); font-weight: 600; }
.vrow__meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.vrow__meta .ic { width: 15px; height: 15px; }
.vrow__meta .now { color: var(--orange); font-weight: 700; }
.vrow__more { width: 36px; height: 36px; color: #3F3F46; }
.vrow__more .ic { width: 20px; height: 20px; }
.vrow__playing { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; margin: 0 3px; }
.vrow__playing .ic { width: 14px; height: 14px; margin-left: 2px; }
.vrow.is-current { background: var(--orange-50); margin: 0 -16px; padding: 10px 16px; }
.vrow.is-hidden { display: none; }

.vlist--playlist { max-height: 470px; overflow-y: auto; overscroll-behavior: contain; padding-top: 0; scrollbar-width: thin; }

/* ------------------------------------------------------------------ Player / watch */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player__poster, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player.is-locked .player__poster { filter: blur(6px) brightness(.45); transform: scale(1.08); }
.player__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.player__btn { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(17,17,17,.62); color: #fff; backdrop-filter: blur(4px); transition: transform .15s, background .2s; }
.player__btn .ic { width: 34px; height: 34px; margin-left: 4px; }
.player__play:hover .player__btn { background: var(--orange); transform: scale(1.05); }
.player__time { position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.player__time .ic { width: 12px; height: 12px; }
.player__lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; text-align: center; color: #fff; font-size: 13px; }
.player__lock p { max-width: 320px; opacity: .92; }
.player__lock strong { font-size: 15px; }
.player__lockicon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.player__lock .btn { height: 42px; font-size: 14px; }

.watch { padding: 16px 16px 6px; }
.watch__title { font-size: 19px; font-weight: 800; line-height: 1.32; letter-spacing: -.2px; }
.watch__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.watch__meta i { font-style: normal; opacity: .6; margin: 0 2px; }

.actions { display: flex; gap: 8px; margin: 16px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.actions::-webkit-scrollbar { display: none; }
.act { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; transition: background .15s, color .15s; }
.act .ic { width: 19px; height: 19px; }
.act span { display: inline-flex; align-items: center; gap: 6px; }
.act .act__on { display: none; }
.act.is-on { background: var(--orange-100); color: var(--orange); }
.act.is-on .act__on { display: inline-flex; }
.act.is-on .act__off { display: none; }
.act--icon { width: 40px; padding: 0; justify-content: center; }
.act.pop .ic { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }

.proj-chip { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.proj-chip img { width: 56px; height: 36px; object-fit: cover; border-radius: 8px; }
.proj-chip span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.proj-chip small { font-size: 11.5px; color: var(--muted); }
.proj-chip strong { font-size: 14.5px; }
.proj-chip .ic { width: 18px; height: 18px; color: var(--muted); }

.desc { margin-top: 12px; border-radius: var(--radius-sm); background: var(--bg); padding: 12px 14px; }
.desc summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.desc .prose { margin-top: 8px; font-size: 14px; color: #3F3F46; }

.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.pager__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.pager__btn .ic { width: 16px; height: 16px; }
.pager__btn--next { background: var(--black); color: #fff; border-color: var(--black); margin-left: auto; }

/* ------------------------------------------------------------------ Project info / docs */
.tabs__panel[data-panel="info"], .tabs__panel[data-panel="docs"] { padding: 16px; }
.lead { font-size: 15.5px; color: #3F3F46; margin-bottom: 14px; }
.facts { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts__row { display: grid; grid-template-columns: 22px 104px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts__row:last-child { border-bottom: 0; }
.facts__row .ic { color: var(--orange); width: 20px; height: 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.prose { font-size: 15px; line-height: 1.65; color: #27272A; }
.prose h3 { font-size: 17px; margin: 18px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.prose li::marker { color: var(--orange); }
.prose--page { padding: 0 16px 20px; }

.docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.docs__item { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.docs__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange); }
.docs__name { flex: 1; font-weight: 600; font-size: 14.5px; }
.docs__item > .ic { width: 18px; height: 18px; color: var(--muted); }
.docs__item.is-locked { opacity: .75; }

/* ------------------------------------------------------------------ Account */
.acc-head { background: var(--grad); color: #fff; padding: 18px 16px 26px; border-radius: 0 0 22px 22px; }
.acc-head .brand { justify-content: center; display: flex; margin-bottom: 18px; }
.acc-user { display: flex; align-items: center; gap: 14px; }
.acc-user > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.acc-user strong { font-size: 20px; font-weight: 700; }
.acc-user small { font-size: 15px; opacity: .9; }
.acc-user > .ic { width: 22px; height: 22px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--orange); display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.avatar .ic { width: 36px; height: 36px; }
.acc-body { padding: 16px; margin-top: -8px; display: flex; flex-direction: column; gap: 14px; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.card--pad { padding: 18px 16px; }
.card__title { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.menu { padding: 2px 14px; }
.menu a { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 600; }
.menu a:last-child { border-bottom: 0; }
.menu a > .ic:first-child { color: var(--orange); width: 24px; height: 24px; }
.menu a span { flex: 1; }
.menu a em { font-style: normal; font-weight: 500; font-size: 14px; color: var(--muted); }
.menu a > .ic:last-child { width: 18px; height: 18px; color: #52525B; }
.menu__danger span { color: var(--ink); }
.benefits { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.benefits li { display: flex; gap: 8px; align-items: center; }
.benefits .ic { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.6; }
.app-version { text-align: center; font-size: 12px; color: #A1A1AA; }

/* ------------------------------------------------------------------ Forms / auth */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: #3F3F46; }
.field > span small { font-weight: 500; color: var(--muted); }
.field input { height: 50px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; outline: 0; transition: border-color .15s; }
.field input:focus { border-color: var(--orange); }
.field input:disabled { background: var(--bg); color: var(--muted); }
.phone-input { display: flex; align-items: center; height: 54px; border-radius: 12px; border: 1.5px solid var(--line); overflow: hidden; transition: border-color .15s; }
.phone-input:focus-within { border-color: var(--orange); }
.phone-input em { font-style: normal; font-weight: 700; padding: 0 12px 0 16px; border-right: 1px solid var(--line); color: var(--ink); }
.phone-input input { flex: 1; height: 100%; border: 0; padding: 0 14px; font-size: 18px; font-weight: 600; letter-spacing: .5px; outline: 0; background: transparent; }

.auth { padding: 12px 20px 20px; }
.auth__head { text-align: center; padding: 10px 0 20px; }
.auth__head img { margin: 0 auto 12px; width: 72px; }
.auth__head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.auth__head p { color: var(--muted); margin-top: 4px; }
.auth__head p b { color: var(--orange); }
.auth__project { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin-bottom: 18px; border-radius: 12px; background: var(--orange-50); font-size: 13.5px; }
.auth__project img { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; }
.terms { font-size: 12px; color: var(--muted); text-align: center; }
.otp-hint { text-align: center; color: #3F3F46; font-size: 14.5px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { width: 100%; min-width: 0; padding: 0; height: 56px; text-align: center; font-size: 24px; font-weight: 800; border-radius: 12px; border: 1.5px solid var(--line); outline: 0; background: #fff; caret-color: var(--orange); }
.otp input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-50); }
.otp.is-error input { border-color: #DC2626; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.devcode { text-align: center; font-size: 13.5px; padding: 10px; border-radius: 10px; background: #FEF9C3; color: #713F12; }
.devcode b { font-size: 18px; letter-spacing: 3px; }
.dev-note { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 18px; font-size: 12px; color: var(--muted); }
.dev-note .ic { width: 15px; height: 15px; color: var(--orange); }
.form-error { color: #DC2626; font-size: 13.5px; text-align: center; }

.pick { display: flex; flex-direction: column; gap: 8px; }
.pick__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.pick__item input { position: absolute; opacity: 0; pointer-events: none; }
.pick__item img { width: 56px; height: 36px; border-radius: 8px; object-fit: cover; }
.pick__item > span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.pick__item small { color: var(--muted); font-size: 12px; }
.pick__check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #D4D4D8; display: grid; place-items: center; color: transparent; }
.pick__check .ic { width: 15px; height: 15px; stroke-width: 3; }
.pick__item:has(input:checked) { border-color: var(--orange); background: var(--orange-50); }
.pick__item:has(input:checked) .pick__check { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ------------------------------------------------------------------ Empty / search */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 24px; }
.empty__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-50); color: var(--orange); margin-bottom: 6px; }
.empty__icon .ic { width: 30px; height: 30px; }
.empty h3 { font-size: 17px; font-weight: 800; }
.empty p { color: var(--muted); font-size: 14px; max-width: 300px; }
.empty .btn { margin-top: 10px; height: 44px; }
.search-idle .section__head { padding-top: 16px; }
.recent { margin-top: 8px; }
.search-results .section__head { padding-top: 14px; padding-bottom: 4px; }
.search-results.is-loading { opacity: .5; }

/* ------------------------------------------------------------------ Bottom sheet / toast */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); animation: fade .2s ease; }
.sheet__panel {
	position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: 100%; max-width: var(--app-w);
	padding: 8px 12px calc(14px + var(--safe-b));
	background: #fff; border-radius: 20px 20px 0 0;
	animation: up .25s cubic-bezier(.2,.8,.2,1);
}
.sheet__grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: #D4D4D8; margin: 4px auto 10px; }
.sheet__title { padding: 0 10px 8px; font-weight: 700; font-size: 14.5px; color: #3F3F46; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__item { display: flex; align-items: center; gap: 14px; width: 100%; height: 52px; padding: 0 10px; border-radius: 12px; font-size: 15.5px; font-weight: 600; text-align: left; }
.sheet__item:active { background: var(--bg); }
.sheet__item .ic { color: var(--orange); }
.sheet__item.is-on .ic { fill: var(--orange); }
.sheet__cancel { width: 100%; height: 48px; margin-top: 6px; border-radius: 12px; background: var(--bg); font-weight: 700; }
@keyframes up { from { transform: translate(-50%, 100%); } }
@keyframes fade { from { opacity: 0; } }

.toast {
	position: fixed; z-index: 70; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
	transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	max-width: calc(min(var(--app-w), 100vw) - 40px);
	padding: 11px 18px; border-radius: 999px; background: rgba(17,17,17,.92); color: #fff;
	font-size: 14px; font-weight: 600; text-align: center; transition: all .25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Small phones */
@media (max-width: 360px) {
	.hero__title { font-size: 19px; }
	.vrow__thumb { width: 112px; }
	.brand__text b, .brand__text span { font-size: 15px; }
}
