/* ==========================================================================
   thedientu – Trang quản lý cho chủ quán (/quan-ly)
   Thanh bên tối sang trọng trên máy tính, thanh dưới trên điện thoại.
   ========================================================================== */

:root {
	--bg: #F3F5F8;
	--surface: #FFFFFF;
	--surface-2: #F7F9FB;
	--ink: #17202B;
	--muted: #5B6672;
	--line: #E3E8ED;
	--tap: #2856E8;
	--tap-ink: #FFFFFF;
	--tap-soft: #E8EEFE;
	--gold: #8A6416;        /* vàng đậm cho chữ: 5,36:1 trên trắng */
	--gold-bright: #C99A3B; /* vàng sáng cho viền, điểm nhấn, không dùng cho chữ */
	--gold-soft: #FBF3E2;
	--ok: #1E7A4C;
	--ok-soft: #E3F4EA;
	--err: #B33A2B;
	--err-soft: #FBE9E6;
	--side: #0E141B;
	--side-2: #151D27;
	--side-ink: #C9D2DC;
	--shadow: 0 1px 2px rgba(14, 20, 27, .04), 0 10px 30px rgba(14, 20, 27, .06);
	--radius: 18px;
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0D1217;
		--surface: #161D25;
		--surface-2: #1B232D;
		--ink: #E8EDF2;
		--muted: #9AA6B2;
		--line: #26303B;
		--tap: #7395FF;
		--tap-ink: #0B1220;
		--tap-soft: #1C2945;
		--gold: #E2B95C;
		--gold-bright: #E2B95C;
		--gold-soft: #2B2516;
		--ok: #4CC488;
		--ok-soft: #13301F;
		--err: #FF8A7A;
		--err-soft: #3A1F1B;
		--side: #090D12;
		--side-2: #10161D;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
.tdo [hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.tdo { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; }
.tdo a { color: var(--tap); }
.tdo img { max-width: 100%; display: block; }
.tdo code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.tdo .icon { width: 1.2em; height: 1.2em; flex: none; }
.tdo :focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 6px; }
.tdo-skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 10px; }
.tdo-skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { .tdo * { transition: none !important; animation: none !important; } }

/* Thương hiệu */
.tdo-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none; }
.tdo-brand__mark {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
	background: linear-gradient(140deg, #2856E8, #1A3BA8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.tdo-brand__mark .icon { width: 22px; height: 22px; }
.tdo-brand b { display: block; font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; }
.tdo-brand b span { color: #8FA9FF; }
.tdo-brand small { display: block; color: var(--side-ink); font-size: .74rem; opacity: .8; }

/* Thanh bên (máy tính) */
.tdo-side {
	position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 30;
	display: none; flex-direction: column; gap: 22px; padding: 24px 16px 18px;
	background: radial-gradient(120% 60% at 0% 0%, rgba(40, 86, 232, .18), transparent 60%), linear-gradient(180deg, var(--side), var(--side-2));
	color: var(--side-ink); border-right: 1px solid rgba(255, 255, 255, .04);
}
.tdo-side::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(201, 154, 59, .45), transparent); }
.tdo-side .tdo-brand { padding: 0 8px; }

.tdo-shop {
	display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
	background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06);
}
.tdo-shop__logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; }
.tdo-shop__logo--text {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--brand, #2856E8); color: var(--on-brand, #fff); font-weight: 800; font-size: 1.1rem;
}
.tdo-shop__text { min-width: 0; }
.tdo-shop__text b { display: block; color: #fff; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdo-shop__text small { display: block; font-size: .78rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tdo-nav { display: flex; flex-direction: column; gap: 4px; }
.tdo-nav a, .tdo-side__foot a {
	display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px;
	color: var(--side-ink); text-decoration: none; font-weight: 600; transition: background .15s, color .15s;
}
.tdo-nav a:hover, .tdo-side__foot a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.tdo-nav a.is-on { background: linear-gradient(90deg, rgba(40, 86, 232, .35), rgba(40, 86, 232, .08)); color: #fff; box-shadow: inset 3px 0 0 var(--gold-bright); }
.tdo-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 12px; }
.tdo-side__foot a { font-weight: 500; font-size: .92rem; min-height: 42px; }

/* Thanh trên + thanh dưới (điện thoại) */
.tdo-top {
	position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 60px; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
	background: linear-gradient(180deg, var(--side), var(--side-2)); color: #fff;
}
.tdo-top__shop { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tdo-top__shop .tdo-shop__logo { width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; }
.tdo-top__shop b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdo-top__out { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--side-ink) !important; }
.tdo-top__out .icon { width: 22px; height: 22px; }

.tdo-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
	display: grid; grid-template-columns: repeat(5, 1fr);
	padding: 6px 6px max(6px, env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-top: 1px solid var(--line);
}
.tdo-tabbar a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
	color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; border-radius: 12px;
}
.tdo-tabbar .icon { width: 22px; height: 22px; }
.tdo-tabbar a.is-on { color: var(--tap); background: var(--tap-soft); }

.tdo-main { padding: 20px 16px 110px; max-width: 1180px; margin: 0 auto; outline: none; }

@media (min-width: 960px) {
	.tdo-side { display: flex; }
	.tdo-top, .tdo-tabbar { display: none; }
	.tdo-body { margin-left: 264px; }
	.tdo-main { padding: 36px 40px 56px; }
}

/* Đầu trang con */
.tdo-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.tdo-eyebrow { margin: 0 0 4px; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tdo-title { margin: 0 0 6px; font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.tdo-lead { margin: 0; color: var(--muted); max-width: 680px; }
.tdo-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 4px; color: var(--muted) !important; text-decoration: none; font-weight: 600; font-size: .9rem; }
.tdo-back:hover { color: var(--tap) !important; }
.tdo-h2 { margin: 0 0 14px; font-size: 1.1rem; }

/* Thông báo */
.tdo-flash {
	display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; font-weight: 600;
	animation: tdo-in .35s ease-out;
}
.tdo-flash .icon { margin-top: 2px; }
.tdo-flash--ok { background: var(--ok-soft); color: var(--ok); }
.tdo-flash--error { background: var(--err-soft); color: var(--err); }
@keyframes tdo-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Thẻ số liệu */
.tdo-stats { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.tdo-stat {
	display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tdo-stat--hero {
	grid-column: 1 / -1; position: relative; overflow: hidden; border: 0; color: #fff;
	background: radial-gradient(100% 140% at 100% 0%, rgba(201, 154, 59, .35), transparent 55%), linear-gradient(135deg, #1A2A55, #2856E8);
}
.tdo-stat--hero::after {
	content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 26px rgba(255, 255, 255, .04), 0 0 0 54px rgba(255, 255, 255, .03);
}
.tdo-stat__label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tdo-stat--hero .tdo-stat__label { color: rgba(255, 255, 255, .75); }
.tdo-stat__num { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tdo-stat--hero .tdo-stat__num { font-size: 3rem; }
.tdo-stat__sub { font-size: .85rem; color: var(--muted); }
.tdo-stat--hero .tdo-stat__sub { color: rgba(255, 255, 255, .8); }
@media (min-width: 720px) {
	.tdo-stats { grid-template-columns: 1.4fr 1fr 1fr; }
	.tdo-stat--hero { grid-column: auto; }
}

/* Khối */
.tdo-panel {
	padding: 20px; margin-bottom: 16px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tdo-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.tdo-panel__head h2 { margin: 0; font-size: 1.05rem; }
.tdo-panel__head h2 small { color: var(--muted); font-weight: 500; }
.tdo-chip { padding: 4px 12px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: .82rem; }
.tdo-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; font-size: .9rem; }
.tdo-note, .tdo-help { color: var(--muted); font-size: .86rem; margin: 10px 0 0; }

.tdo-grid { display: grid; gap: 0 16px; }
@media (min-width: 1000px) {
	.tdo-grid { grid-template-columns: 2fr 1fr; }
	.tdo-grid--edit { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}
.tdo-grid > * { min-width: 0; }

.tdo-empty { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.tdo-empty .icon { width: 36px; height: 36px; color: var(--gold-bright); }
.tdo-empty p { margin: 0; }
.tdo-empty b { color: var(--ink); }

/* Biểu đồ */
.tdo-chart .chart { display: block; width: 100%; height: 200px; }
.tdo-chart--sm .chart { height: 130px; }
.chart__grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart__label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart rect { transition: opacity .15s; }
.chart rect:hover { opacity: .75; }

.tdo-split { display: flex; gap: 3px; height: 14px; border-radius: 99px; overflow: hidden; margin: 8px 0 14px; }
.tdo-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tdo-legend li { display: flex; align-items: center; gap: 8px; }
.tdo-legend i { width: 10px; height: 10px; border-radius: 3px; }
.tdo-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Xếp hạng thẻ */
.tdo-rank { list-style: none; margin: 0; padding: 0; }
.tdo-rank a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 46px; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; color: inherit; text-decoration: none; }
.tdo-rank a:hover { background: var(--surface-2); }
.tdo-rank__name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdo-rank__name small { color: var(--muted); }
.tdo-rank__bar { grid-column: 2; grid-row: 2; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: -4px; }
.tdo-rank__bar i { display: block; height: 100%; border-radius: 99px; }
.tdo-rank__num { grid-column: 3; grid-row: 1 / span 2; text-align: right; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tdo-dot {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
	background: var(--c, var(--tap)); color: #fff; grid-row: 1 / span 2;
}
.tdo-dot .icon { width: 20px; height: 20px; }
.tdo-dot--soft { background: var(--tap-soft); color: var(--tap); }

/* Danh sách thẻ */
.tdo-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tdo-card {
	display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: inherit !important;
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.tdo-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(14, 20, 27, .12); }
.tdo-card.is-off { opacity: .65; }
.tdo-card__visual {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 120px; padding: 16px 18px; color: #fff;
	background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .2), transparent 55%), var(--c);
}
.tdo-card__nfc { position: absolute; right: 14px; top: 14px; opacity: .85; }
.tdo-card__nfc .icon { width: 22px; height: 22px; }
.tdo-card__ico.icon { width: 30px; height: 30px; }
.tdo-card__type { font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.tdo-card__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 16px; }
.tdo-card__body b { font-size: 1.02rem; }
.tdo-card__body small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdo-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: .82rem; }

.tdo-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.tdo-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tdo-status--active { background: var(--ok-soft); color: var(--ok); }
.tdo-status--disabled { background: var(--surface-2); color: var(--muted); }
.tdo-status--unassigned { background: var(--gold-soft); color: var(--gold); }

/* Form */
.tdo-form { margin: 0; }
.tdo-field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.tdo-field > label, .tdo-field > legend { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9rem; padding: 0; }
.tdo-field label small, .tdo-field legend small { color: var(--muted); font-weight: 500; }
.tdo input[type="text"], .tdo input[type="tel"], .tdo input[type="email"], .tdo input[type="password"], .tdo input[type="url"], .tdo input[type="number"], .tdo select, .tdo textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
	border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 16px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.tdo input:focus, .tdo select:focus, .tdo textarea:focus { outline: none; border-color: var(--tap); background: var(--surface); box-shadow: 0 0 0 4px var(--tap-soft); }
.tdo input[type="file"] { width: 100%; min-height: 44px; font: inherit; font-size: .9rem; color: var(--muted); }
.tdo input[type="file"]::file-selector-button {
	min-height: 44px; margin-right: 12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px;
	background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.tdo input[type="file"]::file-selector-button:hover { border-color: var(--tap); color: var(--tap); }
.tdo-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .tdo-row { grid-template-columns: 1fr 1fr; } }
.tdo-check { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: .9rem; cursor: pointer; }
.tdo-check input { width: 18px; height: 18px; accent-color: var(--tap); }

.tdo-types { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.tdo-types--sm { grid-template-columns: repeat(3, 1fr); }
.tdo-type { position: relative; cursor: pointer; }
.tdo-type input { position: absolute; opacity: 0; pointer-events: none; }
.tdo-type span {
	display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 76px; padding: 12px; border-radius: 14px;
	border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: .88rem; transition: all .15s;
}
.tdo-type span .icon { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: var(--c); color: #fff; box-sizing: content-box; }
.tdo-type:hover span { border-color: var(--c); }
.tdo-type input:checked + span { border-color: var(--c); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.tdo-type input:focus-visible + span { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

.tdo-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.tdo-seg label { cursor: pointer; }
.tdo-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tdo-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.tdo-seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tdo-seg input:focus-visible + span { outline: 3px solid var(--gold-bright); }

.tdo-js .tdo-when { display: none; }
.tdo-js .tdo-when.is-on { display: block; animation: tdo-in .25s ease-out; }
.tdo-js [data-mode].is-hidden, .tdo-js [data-when-help].is-hidden { display: none; }

.tdo-toggle, .tdo-field > .tdo-toggle { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.tdo-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tdo-toggle__ui { position: relative; flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--line); transition: background .2s; margin-top: 2px; }
.tdo-toggle__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.tdo-toggle input:checked + .tdo-toggle__ui { background: var(--ok); }
.tdo-toggle input:checked + .tdo-toggle__ui::after { transform: translateX(20px); }
.tdo-toggle input:focus-visible + .tdo-toggle__ui { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.tdo-toggle b { display: block; }
.tdo-toggle small { display: block; color: var(--muted); font-size: .84rem; }

.tdo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tdo-actions--sticky {
	position: sticky; bottom: 76px; z-index: 5; padding: 12px; margin: 0 -4px 16px; border-radius: 16px;
	background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 960px) { .tdo-actions--sticky { bottom: 16px; } }

/* Nút */
.tdo-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
	border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none !important;
	transition: transform .12s, box-shadow .15s, background .15s;
}
.tdo-btn:active { transform: scale(.98); }
.tdo-btn--primary { background: linear-gradient(135deg, #2F5EF0, #1E46CF); color: #fff !important; box-shadow: 0 6px 18px rgba(40, 86, 232, .3); }
.tdo-btn--primary:hover { box-shadow: 0 10px 24px rgba(40, 86, 232, .38); }
.tdo-btn--dark { background: var(--ink); color: var(--surface) !important; }
.tdo-btn--ghost { background: var(--tap-soft); color: var(--tap) !important; }
.tdo-btn--sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.tdo-btn--block { display: flex; width: 100%; }
.tdo-btn--text-danger { background: none; color: var(--err) !important; padding: 0 6px; min-height: 40px; }
.tdo-danger { margin: 8px 0 0; }

/* Xem trước thẻ */
.tdo-preview__card {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; aspect-ratio: 1.586; padding: 20px; border-radius: 16px; color: #fff;
	background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%), var(--c); box-shadow: 0 18px 36px rgba(14, 20, 27, .2);
}
.tdo-preview__card .tdo-card__ico { position: absolute; left: 20px; top: 20px; }
.tdo-preview__card b { font-size: 1.15rem; }
.tdo-preview__card small { opacity: .85; }
.tdo-preview .tdo-help code { word-break: break-all; }

/* Menu */
.tdo-menus { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tdo-menu {
	display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tdo-menu.is-active { border-color: color-mix(in srgb, var(--gold-bright) 60%, var(--line)); box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow); }
.tdo-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tdo-menu h2 { margin: 0; font-size: 1.1rem; }
.tdo-menu p { margin: 0 0 8px; color: var(--muted); }
.tdo-menu__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tdo-menu__actions form { margin: 0; }
.tdo-menu--new { border-style: dashed; background: transparent; box-shadow: none; }
.tdo-menu--new .tdo-dot { margin-bottom: 4px; }

.tdo-items { display: grid; gap: 10px; margin-bottom: 14px; }
.tdo-item {
	display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 14px;
	background: var(--surface-2); border: 1px solid var(--line); transition: opacity .15s;
}
.tdo-item.is-deleted { opacity: .45; }
.tdo-item__move { display: flex; flex-direction: column; gap: 4px; }
.tdo-item__move button {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px;
	border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer;
}
.tdo-item__move button:hover { color: var(--tap); border-color: var(--tap); }
.tdo-item__fields { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.tdo-item__fields input { min-height: 44px !important; background: var(--surface) !important; }
.tdo-item__name { grid-column: 1 / -1; font-weight: 600 !important; }
.tdo-item__desc { grid-column: 1 / -1; }
.tdo-item__flags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; }
.tdo-item__flags label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.tdo-item__flags input { width: 18px; height: 18px; accent-color: var(--tap); }
.tdo-item__del { color: var(--err); margin-left: auto; }
@media (min-width: 760px) {
	.tdo-item__fields { grid-template-columns: 1fr 2fr 1fr; }
	.tdo-item__name { grid-column: auto; }
}

/* Thông tin quán */
.tdo-color { display: flex; align-items: center; gap: 12px; }
.tdo-color input[type="color"] { width: 56px; height: 48px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.tdo-color span { font-family: ui-monospace, Menlo, monospace; color: var(--muted); }
.tdo-mini { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.tdo-mini__head { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px 34px; background: var(--brand); color: var(--on-brand, #fff); }
.tdo-mini__head img, .tdo-mini__head span { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); font-weight: 800; font-size: 1.2rem; }
.tdo-mini__body { margin: -20px 14px 14px; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.tdo-mini__body small { display: block; color: var(--muted); font-size: .78rem; }
.tdo-mini__body b { display: block; margin-bottom: 10px; }
.tdo-mini__body i { display: block; padding: 10px; border-radius: 10px; background: var(--brand); color: var(--on-brand, #fff); text-align: center; font-style: normal; font-weight: 700; font-size: .88rem; }

/* Đăng nhập / kích hoạt */
.tdo-auth { min-height: 100vh; }
.tdo-auth__wrap { display: grid; min-height: 100vh; }
.tdo-auth__art {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 24px; padding: 24px 20px 28px; color: var(--side-ink);
	background: radial-gradient(90% 80% at 100% 0%, rgba(201, 154, 59, .22), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgba(40, 86, 232, .35), transparent 60%), var(--side);
}
.tdo-auth__stack { display: none; position: relative; height: 240px; }
.tdo-auth__card {
	position: absolute; display: flex; flex-direction: column; justify-content: space-between; width: 250px; aspect-ratio: 1.586; padding: 20px; border-radius: 16px;
	color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%), var(--c); box-shadow: 0 24px 48px rgba(0, 0, 0, .4);
}
.tdo-auth__card .icon { width: 32px; height: 32px; }
.tdo-auth__card b { font-size: 1.15rem; }
.tdo-auth__card:first-child { left: 10px; top: 0; transform: rotate(-8deg); }
.tdo-auth__card:nth-child(2) { left: 90px; top: 70px; transform: rotate(5deg); }
.tdo-auth__quote { margin: 0; font-size: 1.05rem; color: #fff; font-weight: 600; line-height: 1.5; display: none; }
.tdo-auth__main { display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 48px; }
.tdo-auth__box { width: 100%; max-width: 520px; }
.tdo-auth__box .tdo-title { font-size: 1.8rem; }
.tdo-auth__box .tdo-lead { margin-bottom: 20px; }
.tdo-auth__foot { margin-top: 20px; color: var(--muted); font-size: .88rem; }
@media (min-width: 900px) {
	.tdo-auth__wrap { grid-template-columns: minmax(380px, 44%) 1fr; }
	.tdo-auth__art { padding: 40px 48px; justify-content: space-between; }
	.tdo-auth__stack, .tdo-auth__quote { display: block; }
	.tdo-auth__quote { font-size: 1.35rem; max-width: 380px; }
	.tdo-auth__main { align-items: center; padding: 48px; }
}

.tdo-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tdo-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.tdo-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.tdo-success { text-align: center; }
.tdo-success__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%;
	background: var(--ok-soft); color: var(--ok); animation: tdo-pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
.tdo-success__icon .icon { width: 36px; height: 36px; }
.tdo-success .tdo-btn { margin-top: 10px; }
@keyframes tdo-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Minh họa chỗ in mã kích hoạt trên thẻ */
.tdo-where { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 14px; border-radius: 16px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold-bright) 30%, transparent); }
.tdo-where p { margin: 0; font-size: .9rem; color: var(--ink); }
.tdo-where__card {
	position: relative; flex: none; width: 112px; aspect-ratio: 1.586; border-radius: 10px; padding: 10px; color: #fff;
	background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%), #B33A2B; box-shadow: 0 8px 18px rgba(14, 20, 27, .2);
	display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 3px;
}
.tdo-where__card .tdo-card__nfc { right: auto; left: 9px; top: 8px; }
.tdo-where__card .tdo-card__nfc .icon { width: 16px; height: 16px; }
.tdo-where__qr {
	width: 30px; height: 30px; border-radius: 3px; background: #fff;
	background-image: linear-gradient(90deg, #17202B 3px, transparent 3px), linear-gradient(#17202B 3px, transparent 3px);
	background-size: 6px 6px; box-shadow: 0 0 0 2px #fff;
}
.tdo-where__code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .62rem; font-weight: 700; letter-spacing: .08em;
	padding: 1px 4px; border-radius: 4px; background: rgba(255, 255, 255, .92); color: #17202B; outline: 2px solid var(--gold-bright); outline-offset: 1px;
	animation: tdo-glow 2s ease-in-out infinite;
}
@keyframes tdo-glow { 50% { outline-color: transparent; } }
.tdo .tdo-code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: .18em; text-transform: lowercase; }
.tdo .tdo-code-input::placeholder { text-transform: none; letter-spacing: .02em; font-family: var(--font); font-size: 1rem; }

/* Thẻ thanh toán, trang nhiều liên kết, mã QR thẻ */
.tdo-help--top { margin: 0 0 14px; }
.tdo-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9rem; }
.tdo-label small { color: var(--muted); font-weight: 500; }
.tdo-more { margin: 0 0 16px; border-radius: 14px; border: 1px dashed var(--line); padding: 12px 14px; }
.tdo-more summary { min-height: 44px; padding: 11px 0; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--tap); }
.tdo-more[open] summary { margin-bottom: 4px; }
.tdo-thumb img { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; margin-top: 10px; }
.tdo-links { display: grid; gap: 10px; margin-bottom: 10px; }
.tdo-link-row { display: grid; gap: 8px; grid-template-columns: 1fr; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tdo-link-row input, .tdo-link-row select { min-height: 44px !important; background: var(--surface) !important; }
.tdo-link-row__del { color: var(--err); min-height: 44px; }
@media (min-width: 640px) { .tdo-link-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; } .tdo-link-row__del { justify-self: end; } }
.tdo-cardqr { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tdo-cardqr__img { flex: none; width: 108px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.tdo-cardqr__img svg { display: block; width: 100%; height: auto; }
.tdo-cardqr b { display: block; }
.tdo-cardqr .tdo-help { margin: 2px 0 10px; }
.tdo-replace summary { min-height: 44px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tdo-replace[open] summary { margin-bottom: 8px; }
.tdo-replace form { margin-top: 12px; }

/* Menu: ảnh món, song ngữ */
.tdo-item__photo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tdo-item__photo img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.tdo-item__file { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px dashed var(--line); color: var(--tap); font-weight: 600; font-size: .86rem; cursor: pointer; background: var(--surface); }
.tdo-item__file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tdo-item__file.has-file { border-style: solid; border-color: var(--ok); color: var(--ok); }
[data-menu-form][data-bilingual="0"] .tdo-en { display: none; }
[data-menu-form][data-langs="0"] .tdo-zhko { display: none; }
[data-menu-form][data-mode="service"] [data-food-only] { display: none; }
.tdo-zhko { border-style: dashed !important; }
.tdo-en { border-style: dashed !important; }
[data-menu-form] .tdo-toggle { margin-top: 4px; }

/* Đợt 2: lịch theo giờ, nhân viên, đánh giá Google */
.tdo-extra { margin: 4px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tdo-schedule summary { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.tdo-rules { display: grid; gap: 10px; margin-bottom: 10px; }
.tdo-rule { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tdo-rule input, .tdo-rule select { min-height: 44px !important; background: var(--surface) !important; }
.tdo-rule__time { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.tdo-rule__time label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.tdo-rule__time input { width: auto !important; }
.tdo-rule__days { display: flex; flex-wrap: wrap; gap: 6px; }
.tdo-day { cursor: pointer; }
.tdo-day input { position: absolute; opacity: 0; pointer-events: none; }
.tdo-day span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .82rem; color: var(--muted); }
.tdo-day input:checked + span { background: var(--tap); border-color: var(--tap); color: var(--tap-ink, #fff); }
.tdo-day input:focus-visible + span { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.tdo-rule__do { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tdo-rule__do { grid-template-columns: 150px minmax(0, 1fr); } }
.tdo-rule__foot { display: flex; align-items: center; gap: 10px; }
.tdo-rule__foot input { flex: 1; }

.tdo-shortcuts { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) { .tdo-shortcuts { grid-template-columns: 1fr 1fr; } }
.tdo-shortcut { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink) !important; text-decoration: none; transition: transform .15s; }
.tdo-shortcut:hover { transform: translateY(-2px); }
.tdo-shortcut .tdo-dot { grid-row: auto; flex: none; }
.tdo-shortcut b { display: block; }
.tdo-shortcut small { display: block; color: var(--muted); }
.tdo-shortcut__go.icon { margin-left: auto; color: var(--muted); }

.tdo-rank__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 6px; }
.tdo-rank__row .tdo-dot { font-weight: 800; }
.tdo-rank__num small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.tdo-podium { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.tdo-podium__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; overflow: hidden; }
.tdo-podium__item::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--m); }
.tdo-podium__rank { position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--m); color: #fff; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.tdo-podium__avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tap-soft); color: var(--tap); font-weight: 800; font-size: 1.3rem; box-shadow: 0 0 0 3px var(--m); }
.tdo-podium__num { font-size: 1.8rem; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.tdo-podium__item small { color: var(--muted); }

.tdo-search { display: grid; gap: 4px; }
.tdo-places { display: grid; gap: 10px; }
.tdo-place { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.tdo-place .tdo-dot { grid-row: auto; flex: none; }
.tdo-place__text { flex: 1; min-width: 0; }
.tdo-place__text b { display: block; }
.tdo-place__text small { display: block; color: var(--muted); font-size: .84rem; }
@media (max-width: 560px) { .tdo-place { flex-wrap: wrap; } .tdo-place .tdo-btn { width: 100%; } }
.tdo-star { color: var(--star, #E8A21A); font-size: .7em; margin-left: 4px; }
.tdo-stat--hero .tdo-star { color: #FFD27A; }
.tdo-copy { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tdo-copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: none; padding: 0; }

/* ---------------------------------------------------------------------------
 * Gói dịch vụ, mã QR in giấy
 * ------------------------------------------------------------------------- */
.tdo-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.tdo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tdo-billbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 600; }
.tdo-billbar > span { flex: 1 1 220px; }
.tdo-billbar .icon { width: 20px; height: 20px; flex: none; }
.tdo-billbar--ok { color: var(--ink); }
.tdo-billbar--ok .icon { color: var(--tap); }
.tdo-billbar--warn { background: var(--gold-soft); border-color: var(--gold-bright); color: var(--gold); }
.tdo-billbar--bad { background: var(--err-soft); border-color: var(--err); color: var(--err); }

.tdo-bill { display: grid; gap: 16px; margin: 0 0 16px; padding: 22px; border-radius: var(--radius); background: var(--side); color: #E8EDF2; box-shadow: var(--shadow); border-top: 3px solid var(--ok); }
.tdo-bill--warn { border-top-color: var(--gold-bright); }
.tdo-bill--bad { border-top-color: #FF8A7A; }
.tdo-bill__main { display: grid; gap: 4px; justify-items: start; }
.tdo-bill__badge { padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(76, 196, 136, .16); color: #7BE0AE; }
.tdo-bill--warn .tdo-bill__badge { background: rgba(226, 185, 92, .16); color: #E2B95C; }
.tdo-bill--bad .tdo-bill__badge { background: rgba(255, 138, 122, .16); color: #FF9F92; }
.tdo-bill__label { margin-top: 8px; color: #9AA6B2; font-size: .85rem; }
.tdo-bill__date { font-size: clamp(1.9rem, 6vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.tdo-bill__sub { color: #C9D2DC; font-size: .92rem; max-width: 52ch; }
.tdo-bill__nums { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tdo-bill__nums div { flex: 1 1 120px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.tdo-bill__nums dt { color: #9AA6B2; font-size: .78rem; }
.tdo-bill__nums dd { margin: 2px 0 0; font-size: 1.3rem; font-weight: 800; }
.tdo-bill__nums .is-bad dd { color: #FF9F92; }
@media (min-width: 900px) { .tdo-bill { grid-template-columns: 1fr auto; align-items: end; } .tdo-bill__nums { max-width: 420px; } }

.tdo-pay { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 4px 0 6px; }
.tdo-pay__qr { width: 180px; max-width: 100%; aspect-ratio: 1; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.tdo-pay__qr svg { display: block; width: 100%; height: auto; }
.tdo-pay__info { flex: 1 1 200px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .9rem; }
.tdo-pay__info dt { color: var(--muted); }
.tdo-pay__info dd { margin: 0; overflow-wrap: anywhere; }
.tdo-panel .tdo-btn + .tdo-btn, .tdo-panel .tdo-help + .tdo-btn { margin-top: 10px; }

.tdo-ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.tdo-ticks li { position: relative; padding-left: 26px; }
.tdo-ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

.tdo-newqr { margin-bottom: 16px; }
.tdo-newqr summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 700; list-style: none; }
.tdo-newqr summary::-webkit-details-marker { display: none; }
.tdo-newqr summary small { margin-left: auto; color: var(--muted); font-weight: 600; }
.tdo-newqr summary .icon { color: var(--tap); }
.tdo-kind { color: var(--muted); font-size: .78rem; }

/* Chọn gói Cơ bản / Chuyên nghiệp */
.tdo-seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none; }
.tdo-seg a.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tdo-plans__head { margin-top: 8px; }
.tdo-plans { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 760px) { .tdo-plans { grid-template-columns: 1fr 1fr; } }
.tdo a.tdo-plan, .tdo-plan { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); min-width: 0; }
.tdo-plan:hover { border-color: var(--tap); }
.tdo-plan.is-on { border-color: var(--tap); box-shadow: 0 0 0 4px var(--tap-soft), var(--shadow); }
.tdo-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tdo-plan__top b { font-size: 1.1rem; }
.tdo-plan__price { color: var(--muted); font-weight: 600; }
.tdo-plan__price b { font-size: 1.8rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.tdo-plan .tdo-ticks { font-size: .92rem; }
.tdo-plan__pick { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
.tdo-plan.is-on .tdo-plan__pick { background: var(--tap); border-color: var(--tap); color: var(--tap-ink); }

.tdo-gift__row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.tdo-gift__row:first-of-type { border-top: 0; padding-top: 0; }
.tdo-gift__row b { margin-right: 6px; }
.tdo-gift__row .tdo-chip { display: inline-block; margin-top: 4px; font-size: .75rem; }
.tdo-gift__row.is-locked { opacity: .72; }
.tdo-gift__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft); color: var(--gold); }
.tdo-gift__icon .icon { width: 22px; height: 22px; }

.tdo-upsell { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 32px 20px; }
.tdo-upsell__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--gold-soft); color: var(--gold); }
.tdo-upsell__icon .icon { width: 30px; height: 30px; }
.tdo-upsell .tdo-lead, .tdo-upsell .tdo-help { max-width: 52ch; }
.tdo-upsell .tdo-btn { margin-top: 10px; }
.tdo-lock { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); font-weight: 600; font-size: .9rem; }
.tdo-lock a { color: inherit; font-weight: 800; }

/* Bản 1.5: góp ý của khách, quy tắc ghi nhận nhân viên, nút điền nhanh link */
.tdo-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--err); color: #fff; font-style: normal; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tdo-feedback { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tdo-feedback li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.tdo-feedback li.is-new { border-color: var(--tap); }
.tdo-feedback__msg { margin: 0 0 8px; font-size: 1rem; white-space: normal; overflow-wrap: anywhere; }
.tdo-feedback__meta, .tdo-feedback__contact { margin: 0 0 8px; color: var(--muted); font-size: .86rem; }
.tdo-feedback form { margin: 0; }
.tdo-rules { margin-top: 16px; }
.tdo-rules h2 { margin: 0 0 10px; font-size: 1rem; }
.tdo-list { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.tdo-rank__qr { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.tdo-link-btn { min-height: 32px; padding: 0; border: 0; background: none; color: var(--tap); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.tdo-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tdo-table th, .tdo-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tdo-table th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.tdo-down { color: var(--err); }

/* Đặt lịch, sổ tay khách lưu trú (bản 1.6) */
.tdo input[type="time"], .tdo input[type="date"], .tdo input[type="datetime-local"] {
	width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
	border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 16px;
}
.tdo-table-wrap { overflow-x: auto; margin-top: 12px; }
.tdo-bk li { display: grid; gap: 2px; }
.tdo-bk li > form { display: inline; }
.tdo-bk__confirm { display: grid !important; gap: 10px; margin: 6px 0 8px !important; }
.tdo-bk__confirm label { display: grid; gap: 4px; font-weight: 600; font-size: .86rem; }
@media (min-width: 720px) { .tdo-bk__confirm { grid-template-columns: 1.3fr 1fr auto; align-items: end; } }
.tdo-bk__msg { display: grid; gap: 8px; margin: 6px 0 8px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); background: var(--surface); }
.tdo-bk__msg p { margin: 0; font-size: .88rem; overflow-wrap: anywhere; }
.tdo-bk__msg .tdo-btn { justify-self: start; }
.tdo-bk__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tdo-bk .tdo-chip { margin-left: 6px; vertical-align: 1px; }
.tdo-guide-lang { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.tdo-guide-lang summary { min-height: 40px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.tdo-guide-lang[open] summary { margin-bottom: 8px; }
.tdo-guide-lang .tdo-field:last-child { margin-bottom: 0; }
.tdo-guide-lang textarea { min-height: 64px; resize: vertical; }
.tdo-sub-label { display: block; margin: 10px 0 4px; font-size: .86rem; font-weight: 600; }
details.tdo-panel > summary { min-height: 44px; display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* Khách gọi, tích điểm (bản 1.7) */
.tdo-calls { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tdo-call { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.tdo-call--bill { border-color: var(--gold-bright); }
.tdo-call--order { border-color: var(--tap); }
.tdo-call.is-late { box-shadow: inset 4px 0 0 var(--err); }
.tdo-call__table { min-width: 64px; padding: 6px 8px; border-radius: 12px; background: var(--ink); color: var(--surface); text-align: center; }
.tdo-call__table small { display: block; font-size: .7rem; opacity: .8; }
.tdo-call__table b { display: block; font-size: 1.5rem; line-height: 1.1; overflow-wrap: anywhere; }
.tdo-call__body b { display: block; font-size: 1.05rem; }
.tdo-call__body span { color: var(--muted); font-size: .86rem; }
.tdo-call__note { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: .95rem; white-space: normal; }
.tdo-call form { margin: 0; }
@media (max-width: 520px) { .tdo-call { grid-template-columns: auto minmax(0, 1fr); } .tdo-call form { grid-column: 1 / -1; } .tdo-call form .tdo-btn { width: 100%; } }
.tdo-lt-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0 0 14px; }
.tdo-lt-stats span { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.tdo-lt-stats b { display: block; color: var(--ink); font-size: 1.3rem; }

/* Bảng tại bàn */
.tdo-hub-tables td { vertical-align: middle; }
.tdo-input-sm { width: 9em; max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.tdo-nowrap { white-space: nowrap; }
.tdo-muted { color: var(--muted); }
.tdo-own { margin-top: 10px; }
.tdo-own[hidden] { display: none; }
.tdo-call--ask { border-color: #33507A; }

