/* WW design system — landing + shared components (Giai đoạn 1). */
:root {
  --g-quiz: #f97316; --g-quiz-bg: #ffedd5; --g-quiz-ink: #c2410c;
  --g-reflex: #ec4899; --g-reflex-bg: #fce7f3; --g-reflex-ink: #be185d;
  --g-arrange: #10b981; --g-arrange-bg: #d1fae5; --g-arrange-ink: #047857;
  --g-discover: #8b5cf6; --g-discover-bg: #ede9fe; --g-discover-ink: #6d28d9;
  --hero-from: #0ea5e9; --hero-to: #6366f1;
  --cta: #facc15; --cta-ink: #422006;
  --ink: #0f172a; --ink-2: #475569; --line: #e2e8f0; --page: #f5f7fa;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 14px 30px rgba(15, 23, 42, 0.14);
}

#app.wrap.lp-mode { max-width: none; margin: 0; padding: 0; }
.lp { color: var(--ink); }
.lp-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.lp-nav-actions { display: flex; align-items: center; gap: 8px; }
.lp-nav .btn-primary, .lp-nav .btn-secondary { min-height: 40px; padding: 8px 14px; font-size: 15px; }

/* Hero */
.lp-hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; overflow: hidden; position: relative; }
.lp-hero::before, .lp-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.lp-hero::before { width: 420px; height: 420px; right: -120px; top: -160px; }
.lp-hero::after { width: 260px; height: 260px; left: -80px; bottom: -120px; }
.lp-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: center; padding: 48px 20px 56px; }
.lp-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.lp-hero h1 { font-size: 46px; line-height: 1.12; margin: 14px 0 12px; color: #fff; letter-spacing: -0.01em; }
.lp-hero h1 .lp-hl { color: var(--cta); }
.lp-hero p.lp-lead { font-size: 19px; line-height: 1.5; margin: 0 0 22px; color: rgba(255, 255, 255, 0.92); max-width: 560px; }
.lp-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 12px; background: var(--cta); color: var(--cta-ink); font-weight: 700; font-size: 18px; min-height: 52px; padding: 12px 22px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15); transition: transform 0.08s ease, box-shadow 0.08s ease; }
.btn-cta:hover { transform: translateY(-1px); }
.btn-cta:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15); }
.btn-ghost-light { display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, 0.7); background: transparent; color: #fff; border-radius: 12px; font-weight: 700; font-size: 18px; min-height: 52px; padding: 10px 20px; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

.lp-join { margin-top: 26px; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25); max-width: 520px; }
.lp-join-title { font-weight: 700; font-size: 16px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.lp-join form { display: flex; gap: 8px; }
.lp-join input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 17px; min-height: 50px; box-sizing: border-box; }
.lp-join input:focus { outline: none; border-color: var(--hero-from); }
.lp-join .btn-primary { min-height: 50px; padding: 10px 20px; font-size: 17px; white-space: nowrap; }
.lp-join-hint { margin: 8px 2px 0; font-size: 13px; color: var(--ink-2); }
.lp-join-error { margin: 8px 2px 0; font-size: 14px; color: #b91c1c; }

.lp-hero-art { position: relative; min-height: 320px; }
.lp-mascot { position: absolute; width: 230px; left: 50%; top: 50%; transform: translate(-50%, -50%); animation: lp-bob 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.25)); }
.lp-float { position: absolute; width: 150px; border-radius: 14px; border: 4px solid #fff; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25); background: #fff; }
.lp-float-1 { left: 0; top: 14px; transform: rotate(-8deg); }
.lp-float-2 { right: 0; top: 40px; transform: rotate(7deg); }
.lp-float-3 { right: 18px; bottom: 6px; transform: rotate(-5deg); }
@keyframes lp-bob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -56%); } }
@media (prefers-reduced-motion: reduce) { .lp-mascot { animation: none; } }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: -28px auto 0; position: relative; z-index: 2; }
.lp-step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.lp-step-num { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; }
.lp-step:nth-child(1) .lp-step-num { background: var(--g-quiz); }
.lp-step:nth-child(2) .lp-step-num { background: var(--g-arrange); }
.lp-step:nth-child(3) .lp-step-num { background: var(--g-discover); }
.lp-step strong { display: block; font-size: 17px; margin-bottom: 2px; }
.lp-step div > span { color: var(--ink-2); font-size: 15px; line-height: 1.4; }

/* Templates */
.lp-section { padding: 44px 0 24px; }
.lp-section-head { text-align: center; margin-bottom: 18px; }
.lp-section-head h2 { font-size: 30px; margin: 0 0 6px; }
.lp-section-head p { margin: 0; color: var(--ink-2); font-size: 16px; }
.lp-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lp-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.lp-chips::-webkit-scrollbar { display: none; }
.lp-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 15px; }
.lp-chip .lp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.lp-chip .lp-count { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.lp-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.lp-chip.is-active .lp-count { color: rgba(255, 255, 255, 0.8); }
.lp-chip[data-group="quiz"] .lp-dot { background: var(--g-quiz); }
.lp-chip[data-group="reflex"] .lp-dot { background: var(--g-reflex); }
.lp-chip[data-group="arrange"] .lp-dot { background: var(--g-arrange); }
.lp-chip[data-group="discover"] .lp-dot { background: var(--g-discover); }
.lp-chip.is-active[data-group="quiz"] { background: var(--g-quiz); border-color: var(--g-quiz); }
.lp-chip.is-active[data-group="reflex"] { background: var(--g-reflex); border-color: var(--g-reflex); }
.lp-chip.is-active[data-group="arrange"] { background: var(--g-arrange); border-color: var(--g-arrange); }
.lp-chip.is-active[data-group="discover"] { background: var(--g-discover); border-color: var(--g-discover); }
.lp-chip.is-active .lp-dot { background: #fff; }
.lp-search { position: relative; flex: 0 1 280px; }
.lp-search input { width: 100%; box-sizing: border-box; border: 2px solid var(--line); border-radius: 999px; padding: 9px 14px 9px 38px; font-size: 15px; background: #fff; }
.lp-search input:focus { outline: none; border-color: var(--hero-from); }
.lp-search::before { content: "🔍"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: 0.6; }

.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 2px solid transparent; text-align: left; padding: 0; color: inherit; width: 100%; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.lp-card:hover, .lp-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.lp-card[data-group="quiz"]:hover { border-color: var(--g-quiz); }
.lp-card[data-group="reflex"]:hover { border-color: var(--g-reflex); }
.lp-card[data-group="arrange"]:hover { border-color: var(--g-arrange); }
.lp-card[data-group="discover"]:hover { border-color: var(--g-discover); }
.lp-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.lp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.lp-card:hover .lp-thumb img { transform: scale(1.04); }
.lp-tag { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15); }
.lp-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lp-card-body strong { font-size: 18px; line-height: 1.25; }
.lp-card-body > span { color: var(--ink-2); font-size: 14px; line-height: 1.4; flex: 1; }
.lp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.lp-group { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.lp-group[data-group="quiz"] { background: var(--g-quiz-bg); color: var(--g-quiz-ink); }
.lp-group[data-group="reflex"] { background: var(--g-reflex-bg); color: var(--g-reflex-ink); }
.lp-group[data-group="arrange"] { background: var(--g-arrange-bg); color: var(--g-arrange-ink); }
.lp-group[data-group="discover"] { background: var(--g-discover-bg); color: var(--g-discover-ink); }
.lp-start { font-size: 14px; font-weight: 700; color: #fff; border-radius: 10px; padding: 6px 12px; }
.lp-card[data-group="quiz"] .lp-start { background: var(--g-quiz); }
.lp-card[data-group="reflex"] .lp-start { background: var(--g-reflex); }
.lp-card[data-group="arrange"] .lp-start { background: var(--g-arrange-ink); }
.lp-card[data-group="discover"] .lp-start { background: var(--g-discover); }
.lp-empty { text-align: center; color: var(--ink-2); padding: 30px 0; }

.lp-footer { padding: 24px 0 40px; }
.lp-footer .donate-card { margin-top: 0; }

@media (max-width: 1024px) {
  .lp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-hero h1 { font-size: 38px; }
}
@media (max-width: 820px) {
  .lp-hero-inner { grid-template-columns: 1fr; padding: 32px 20px 48px; }
  .lp-hero-art { min-height: 220px; order: -1; }
  .lp-mascot { width: 160px; }
  .lp-float { width: 110px; }
  .lp-steps { grid-template-columns: 1fr; margin-top: -24px; }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lp-search { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .lp-container { padding: 0 14px; }
  .lp-hero h1 { font-size: 31px; }
  .lp-hero p.lp-lead { font-size: 17px; }
  .lp-hero-ctas .btn-cta, .lp-hero-ctas .btn-ghost-light { flex: 1 1 100%; }
  .lp-join form { flex-direction: column; }
  .lp-nav-actions .lp-hide-sm { display: none; }
  .lp-card-body strong { font-size: 16px; }
  .lp-card-body > span { font-size: 13px; }
  .lp-start { display: none; }
  .lp-section-head h2 { font-size: 25px; }
}

.lp-nav .lang-btn, .lp-nav .btn-primary, .lp-nav .btn-secondary { white-space: nowrap; }
@media (max-width: 520px) {
  .lp-nav .lang-btn { min-width: 0; padding: 4px 7px; }
  .lp-nav .btn-primary { padding: 6px 12px; font-size: 14px; min-height: 36px; }
  .lp-nav-actions { gap: 6px; }
}

/* Mầm non (game gvmn, chơi ngay không cần đăng nhập) */
:root { --g-kinder: #f59e0b; --g-kinder-bg: #fef3c7; --g-kinder-ink: #b45309; }
.lp-chip[data-group="kinder"] .lp-dot { background: var(--g-kinder); }
.lp-chip.is-active[data-group="kinder"] { background: var(--g-kinder); border-color: var(--g-kinder); }
.lp-card[data-group="kinder"]:hover { border-color: var(--g-kinder); }
.lp-group[data-group="kinder"] { background: var(--g-kinder-bg); color: var(--g-kinder-ink); }
.lp-card[data-group="kinder"] .lp-start { background: var(--g-kinder-ink); }

.lp-card[hidden] { display: none !important; }

/* Font bài học mặc định (file SVN-Avo: a, g một tầng) + trình soạn bài mầm non */
@font-face { font-family: "WW Bai Hoc"; src: url("/static/fonts/VNI-Avo.woff?v=2") format("woff"), url("/static/fonts/VNI-Avo.ttf") format("truetype"); font-display: block; }
.mn-editor { display: grid; gap: 10px; max-width: 860px; margin: 0 auto 16px; }
.mn-editor input, .mn-editor textarea, .mn-editor select { border: 2px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.mn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mn-head #mn-status { margin-left: auto; }
.mn-h2 { margin: 12px 0 0; font-size: 20px; }
.mn-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.mn-custom { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mn-custom input { flex: 1 1 200px; }
.mn-letters { display: flex; flex-wrap: wrap; gap: 10px; min-height: 64px; }
.mn-letter { display: inline-flex; align-items: center; gap: 4px; background: var(--g-kinder-bg); border: 2px solid var(--g-kinder); border-radius: 14px; padding: 4px 6px 4px 14px; }
.mn-glyph { font-size: 40px; line-height: 1.1; color: #422006; }
.mn-letter button { border: 0; background: transparent; font-size: 22px; color: var(--g-kinder-ink); width: 32px; height: 32px; border-radius: 8px; }
.mn-letter button:hover { background: #fde68a; }
.mn-preview { white-space: pre-line; font-size: 54px; line-height: 1.25; letter-spacing: 0.08em; background: #fffbeb; border: 2px dashed #fcd34d; border-radius: 16px; padding: 14px 18px; color: #1f2937; }
.mn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.mn-actions a { text-decoration: none; }

/* ===== App shell (GD2): top bar, Bai cua toi, admin users ===== */
.ww-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -16px -16px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fff; border-radius: 10px 10px 0 0; }
.ww-bar .brand { font-size: 18px; }
.ww-bar-nav { display: flex; gap: 4px; }
.ww-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; font-size: 15px; }
.ww-nav-link:hover { background: var(--page); color: var(--ink); }
.ww-nav-link.is-active { background: #e0f2fe; color: #0369a1; }
.ww-user { position: relative; }
.ww-user > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.ww-user > summary::-webkit-details-marker { display: none; }
.ww-user-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink); }
.ww-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); }
.ww-avatar.tone-blue { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.ww-avatar.tone-yellow { background: linear-gradient(135deg, #fb923c, #f43f5e); }
.ww-avatar.tone-admin { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.ww-user-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-hover); padding: 14px; display: grid; gap: 8px; }
.ww-user-pop strong { word-break: break-all; }
.ww-user-pop dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 13px; }
.ww-user-pop dt { color: var(--ink-2); }
.ww-user-pop dd { margin: 0; text-align: right; }
.ww-user-pop #logout { width: 100%; }
.ww-chip { justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--g-discover-bg); color: var(--g-discover-ink); }

.ww-page-head { padding-bottom: 18px; }
.ww-hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ww-hello h1 { margin: 2px 0 4px; font-size: 30px; display: flex; align-items: center; gap: 10px; }
.ww-hello p { margin: 0; }
.ww-eyebrow { color: var(--ink-2); font-weight: 600; }
.ww-count { font-size: 15px; background: var(--page); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 2px 10px; }

.ww-create h2 { font-size: 18px; margin: 4px 0; }
.ww-create-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ww-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.ww-tpl { display: grid; gap: 4px; text-align: left; padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: transform 0.08s ease, box-shadow 0.12s ease, border-color 0.12s ease; color: var(--ink); min-height: 0; }
.ww-tpl[hidden] { display: none !important; }
.ww-tpl:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ww-tpl img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 10px; background: var(--page); }
.ww-tpl strong { font-size: 14px; line-height: 1.25; }
.ww-tpl span { font-size: 12px; color: var(--ink-2); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ww-tpl[data-group="quiz"] { border-top: 4px solid var(--g-quiz); }
.ww-tpl[data-group="reflex"] { border-top: 4px solid var(--g-reflex); }
.ww-tpl[data-group="arrange"] { border-top: 4px solid var(--g-arrange); }
.ww-tpl[data-group="discover"] { border-top: 4px solid var(--g-discover); }
.ww-tpl[data-group="kinder"] { border-top: 4px solid var(--g-kinder); }
.ww-tpl[aria-pressed="true"] { border-color: var(--hero-from); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25); }
.ww-tpl[aria-pressed="true"]::after { content: "✓"; position: absolute; }
.ww-create-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ww-create-row input { flex: 1 1 260px; min-height: 46px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 16px; }
.ww-create-row .btn-primary { min-height: 46px; padding: 8px 18px; font-size: 16px; }
.ww-create-row .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.ww-desc summary { cursor: pointer; color: #0369a1; font-weight: 600; font-size: 14px; }
.ww-desc textarea { width: 100%; box-sizing: border-box; margin-top: 8px; min-height: 70px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; }

.ww-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ww-list-head h2 { margin: 0; }
.ww-act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ww-act { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.1s ease, box-shadow 0.15s ease; }
.ww-act[hidden] { display: none !important; }
.ww-act:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ww-act-thumb { display: block; background: var(--page); }
.ww-act-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.ww-act[data-group="quiz"] .ww-act-thumb { background: var(--g-quiz-bg); }
.ww-act[data-group="reflex"] .ww-act-thumb { background: var(--g-reflex-bg); }
.ww-act[data-group="arrange"] .ww-act-thumb { background: var(--g-arrange-bg); }
.ww-act[data-group="discover"] .ww-act-thumb { background: var(--g-discover-bg); }
.ww-act-body { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; }
.ww-act-body h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.ww-act-body h3 a { color: var(--ink); text-decoration: none; }
.ww-act-body h3 a:hover { text-decoration: underline; }
.ww-act-body p { margin: 0; color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ww-act-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ww-font-tag { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ww-act-actions { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.ww-act-actions .btn-primary { flex: 1; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.ww-btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 38px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--page); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.ww-btn-soft:hover { background: #e2e8f0; }
.ww-icon-btn { width: 38px; height: 38px; min-height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 16px; cursor: pointer; }
.ww-icon-btn:hover { background: var(--page); }
.ww-icon-btn.danger:hover { background: #fef2f2; border-color: #fecaca; }

/* admin users */
.admin-shell .admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-shell .admin-toolbar h2 { margin: 0; font-size: 24px; }
.admin-shell .admin-toolbar p { margin: 2px 0 0; }
.admin-shell .admin-kpis { display: flex; gap: 10px; }
.admin-shell .admin-kpi { min-width: 96px; border: none; border-radius: 14px; padding: 10px 14px; background: var(--g-quiz-bg); }
.admin-shell .admin-kpi:nth-child(2) { background: var(--g-discover-bg); }
.admin-shell .admin-kpi:nth-child(3) { background: var(--g-arrange-bg); }
.admin-shell .admin-kpi .label { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.admin-shell .admin-kpi .value { font-size: 26px; font-weight: 800; color: var(--ink); }
.ww-panel { border: 1px dashed #93c5fd; border-radius: 14px; background: #f0f9ff; padding: 10px 14px; margin-bottom: 12px; }
.ww-panel > summary { cursor: pointer; font-weight: 700; color: #0369a1; }
.ww-panel[open] > summary { margin-bottom: 10px; }
.admin-shell .admin-user-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.admin-shell .admin-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-shell .admin-tools input, .admin-shell .admin-tools select { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #fff; }
.admin-shell #admin-search { min-width: 220px; }
.admin-shell .admin-bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--page); margin-bottom: 10px; }
.admin-shell .admin-user-list { max-height: none; overflow: visible; display: grid; gap: 8px; padding: 0; }
.admin-shell .admin-user-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 10px 12px; transition: box-shadow 0.12s ease; }
.admin-shell .admin-user-item:hover { box-shadow: var(--shadow); }
.admin-shell .admin-user-item.is-open { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.admin-shell .admin-user-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; margin: 0; }
.admin-user-who { display: grid; min-width: 0; }
.admin-user-who .admin-user-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-user-plan { text-align: right; line-height: 1.4; }
.admin-shell .admin-user-actions { display: flex; gap: 6px; }
.admin-shell .admin-pill { font-weight: 700; padding: 4px 10px; }
.admin-shell .admin-pill.is-admin { background: var(--g-discover-bg); border-color: #c4b5fd; color: var(--g-discover-ink); }
.admin-shell .admin-user-main { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.admin-shell .admin-user-item.is-open .admin-user-main { display: grid; }
.admin-shell .admin-user-main input, .admin-shell .admin-user-main select { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.admin-user-save { display: flex; justify-content: flex-end; }
@media (max-width: 760px) {
  .ww-user-email { display: none; }
  .ww-nav-link span { display: none; }
  .ww-hello h1 { font-size: 24px; }
  .ww-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ww-act-grid { grid-template-columns: 1fr; }
  .admin-shell .admin-user-head { grid-template-columns: auto auto minmax(0, 1fr); }
  .admin-user-pills, .admin-user-plan, .admin-shell .admin-user-actions { grid-column: 2 / -1; }
  .admin-user-plan { text-align: left; }
  .admin-shell .admin-kpis { width: 100%; }
  .admin-shell .admin-kpi { flex: 1; }
}

/* ===== GD2 step 2 ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ww-act-actions { flex-wrap: wrap; }
.ww-act-actions .btn-primary { flex: 1 1 100%; }
.ww-act-actions .ww-btn-soft { flex: 1; }
.ww-list-head .lp-chips { flex: 1 1 auto; }
.mn-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mn-head .lp-group { font-size: 14px; }
#mn-status.ok { color: #047857; font-weight: 700; }
.mn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.mn-main .card, .mn-side .card { margin-bottom: 16px; }
.mn-box { border: none; border-radius: 18px; box-shadow: var(--shadow); padding: 20px; }
.mn-box h2 { margin: 0 0 4px; font-size: 20px; }
.mn-box > .muted { margin: 0 0 14px; font-size: 14px; }
.mn-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mn-title-input { width: 100%; box-sizing: border-box; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 22px; font-weight: 700; margin-top: 6px; }
.mn-tiles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; min-height: 80px; }
.mn-tile { position: relative; width: 78px; height: 78px; border-radius: 18px; display: grid; place-items: center; border: 3px solid; }
.mn-tile .mn-glyph { font-size: 46px; line-height: 1; }
.mn-tile button { position: absolute; top: -9px; right: -9px; width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.mn-tile[data-tone="quiz"], .mn-group-btn[data-tone="quiz"] { background: var(--g-quiz-bg); border-color: #fdba74; color: var(--g-quiz-ink); }
.mn-tile[data-tone="reflex"], .mn-group-btn[data-tone="reflex"] { background: var(--g-reflex-bg); border-color: #f9a8d4; color: var(--g-reflex-ink); }
.mn-tile[data-tone="arrange"], .mn-group-btn[data-tone="arrange"] { background: var(--g-arrange-bg); border-color: #6ee7b7; color: var(--g-arrange-ink); }
.mn-tile[data-tone="discover"], .mn-group-btn[data-tone="discover"] { background: var(--g-discover-bg); border-color: #c4b5fd; color: var(--g-discover-ink); }
.mn-tile[data-tone="sky"], .mn-group-btn[data-tone="sky"] { background: #e0f2fe; border-color: #7dd3fc; color: #0369a1; }
.mn-tile[data-tone="kinder"], .mn-group-btn[data-tone="kinder"] { background: #fef3c7; border-color: #fcd34d; color: #b45309; }
.mn-sub { margin: 0 0 6px; font-weight: 700; font-size: 14px; color: #334155; }
.mn-custom { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.mn-custom input { flex: 1 1 200px; min-height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px; font-size: 16px; }
.mn-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.mn-group-btn { border: 2px solid; border-radius: 12px; padding: 8px 14px; font-size: 20px; letter-spacing: 3px; min-height: 44px; cursor: pointer; font-family: 'WW Bai Hoc', 'VNI-Avo', Arial, sans-serif !important; }
.mn-group-btn:hover { filter: brightness(0.97); transform: translateY(-1px); }
.mn-font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.mn-font-card { display: grid; gap: 2px; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; cursor: pointer; color: var(--ink); min-height: 0; }
.mn-font-card[aria-pressed="true"] { border: 3px solid var(--hero-from); background: #f0f9ff; }
.mn-font-sample { font-size: 36px; line-height: 1.15; font-family: inherit; }
.mn-font-card > span:last-child { color: var(--ink-2); font-size: 13px; }
#mn-font-status { margin: 12px 0 0; }
#mn-font-status.ok { color: #047857; font-weight: 700; }
.mn-side { position: sticky; top: 12px; }
.mn-phone { background: var(--ink); border-radius: 28px; padding: 12px; box-shadow: var(--shadow-hover); margin-bottom: 16px; }
.mn-phone-screen { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(#bae6fd, #fef3c7); aspect-ratio: 4 / 3.4; }
.mn-phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-phone-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255, 255, 255, 0.95); border-radius: 14px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; }
.mn-phone-bar b { font-size: 44px; line-height: 1; color: #b45309; font-weight: 400; }
.mn-phone-bar span:last-child { margin-left: auto; }
.mn-phone > p { margin: 8px 0 0; text-align: center; color: #cbd5e1; font-size: 13px; }
.mn-actions-box { display: grid; gap: 10px; }
.mn-btn-play { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; background: #f59e0b; color: #422006; font-weight: 700; text-decoration: none; }
.mn-btn-share { min-height: 48px; font-size: 16px; }
.mn-room { display: grid; gap: 4px; border: 2px dashed #fcd34d; background: #fffbeb; border-radius: 14px; padding: 12px; }
.mn-room span { color: #78350f; font-size: 14px; margin-bottom: 6px; }
.mn-room .ww-btn-soft { justify-self: start; background: #fff; border-color: #f59e0b; color: #92400e; }

.ww-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.ww-banner span { flex: 1 1 260px; }
.admin-shell .admin-kpi:nth-child(2) { background: #ffedd5; }
.admin-shell .admin-kpi:nth-child(3) { background: var(--g-arrange-bg); }
.admin-shell .admin-kpi:nth-child(4) { background: #e0f2fe; }
.admin-shell .admin-kpi:nth-child(1) { background: var(--g-discover-bg); }
.admin-shell .admin-user-head { grid-template-columns: auto auto minmax(0, 1fr) auto auto auto auto; }
.ww-switch { position: relative; display: inline-flex; cursor: pointer; }
.ww-switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.ww-switch span[aria-hidden] { width: 44px; height: 26px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background 0.15s ease; }
.ww-switch span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3); transition: transform 0.15s ease; }
.ww-switch input:checked + span[aria-hidden] { background: #10b981; }
.ww-switch input:checked + span[aria-hidden]::after { transform: translateX(18px); }
.ww-switch input:focus-visible + span[aria-hidden] { outline: 3px solid rgba(14, 165, 233, 0.5); outline-offset: 2px; }
.ww-switch input:disabled + span[aria-hidden] { opacity: 0.5; }
.admin-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-drawer-head strong { word-break: break-all; }
@media (min-width: 1100px) {
  .admin-shell .admin-user-item.is-open .admin-user-main { position: fixed; right: 24px; top: 24px; z-index: 50; width: 360px; max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25); padding: 18px; margin: 0; grid-template-columns: 1fr 1fr; }
  .admin-shell .admin-user-item.is-open .admin-user-main .wide { grid-column: 1 / -1; }
}
@media (max-width: 1099px) { .admin-drawer-head { display: none; } }
@media (max-width: 900px) {
  .mn-layout { grid-template-columns: 1fr; }
  .mn-side { position: static; }
}
@media (max-width: 760px) {
  .admin-shell .admin-user-head { grid-template-columns: auto auto minmax(0, 1fr); }
  .ww-switch { grid-column: 2 / -1; }
}

/* ===== Support page + nudge ===== */
.ww-foot { display: flex; justify-content: center; gap: 16px; padding: 18px 0 28px; color: var(--ink-2); font-size: 14px; }
.ww-foot a { color: #b45309; font-weight: 700; text-decoration: none; }
.ww-foot a:hover { text-decoration: underline; }
.ww-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; }
.ww-nudge span { flex: 1 1 240px; font-weight: 700; }
.ww-support { padding: 40px 20px 60px; }
.ww-support-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 32px; max-width: 900px; margin: 0 auto; }
.ww-support-mascot { width: 84px; height: auto; }
.ww-support-text h1 { font-size: 34px; margin: 8px 0 10px; }
.ww-support-lead { font-size: 18px; line-height: 1.5; margin: 0 0 12px; }
.ww-support-free { display: inline-block; background: var(--g-arrange-bg); color: var(--g-arrange-ink); font-weight: 700; border-radius: 12px; padding: 8px 12px; margin: 0 0 12px; }
.ww-support-text .ww-btn-soft { margin-top: 8px; }
.ww-support-qr { margin: 0; text-align: center; background: linear-gradient(135deg, #fef3c7, #fce7f3); border-radius: 20px; padding: 18px; }
.ww-support-qr img { width: 100%; max-width: 260px; height: auto; border-radius: 14px; background: #fff; padding: 8px; box-sizing: border-box; }
.ww-support-qr figcaption { margin-top: 8px; color: #78350f; font-size: 14px; font-weight: 700; }
@media (max-width: 760px) { .ww-support-card { grid-template-columns: 1fr; padding: 20px; } .ww-support-text h1 { font-size: 26px; } }

/* ===== GD2 polish ===== */
.ww-act-actions { display: grid; grid-template-columns: 1fr 1fr 38px 38px; gap: 6px; }
.ww-act-actions .btn-primary { grid-column: 1 / -1; }
.ww-act-actions .ww-btn-soft { white-space: nowrap; padding: 6px 8px; font-size: 13px; min-width: 0; }
.ww-tpl { position: relative; }
.ww-tpl[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--hero-from); color: #fff; display: grid; place-items: center; font-weight: 800; border: 3px solid #fff; }
.ww-tpl span { max-height: 2.7em; }
.admin-shell .admin-kpi:nth-child(1) { background: #e0f2fe; }
.admin-shell .admin-kpi:nth-child(2) { background: var(--g-discover-bg); }
.admin-shell .admin-kpi:nth-child(3) { background: #ffedd5; }
.admin-shell .admin-kpi:nth-child(4) { background: var(--g-arrange-bg); }
.admin-shell .admin-user-filter { flex-direction: row; align-items: center; }
.admin-shell .admin-tools > * { width: auto; flex: 0 1 auto; box-sizing: border-box; }
.admin-shell .admin-tools #admin-search { flex: 1 1 220px; }
.admin-shell .admin-bulk-bar button { border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 6px 12px; min-height: 36px; font-size: 14px; }
.admin-shell .admin-bulk-bar button.btn-danger { color: #b91c1c; border-color: #fecaca; }
.admin-shell .admin-user-main > * { min-width: 0; width: 100%; box-sizing: border-box; }
.admin-shell .admin-user-main label { display: flex; align-items: center; gap: 6px; }
.admin-shell .admin-user-main label input { width: auto; min-height: 0; }
@media (min-width: 1100px) {
  .admin-shell .admin-user-item.is-open .admin-user-main { top: 90px; max-height: calc(100vh - 110px); grid-template-columns: 1fr; }
}

/* ===== Mobile landing fixes + order page + leads ===== */
.lp-mode .landing-sticky-cta { display: none !important; }
@media (max-width: 820px) {
  .lp-steps { margin-top: 20px; }
  .lp-hero-inner { padding-bottom: 32px; }
}
@media (max-width: 520px) {
  .lp-hero-art { min-height: 170px; }
  .lp-mascot { width: 118px; }
  .lp-float { width: 92px; border-width: 3px; }
  .lp-hero h1 { font-size: 28px; }
  .lp-nav-inner { min-height: 56px; gap: 8px; }
  .lp-nav .brand { font-size: 17px; gap: 6px; }
}
@media (max-width: 400px) {
  .lp-nav .brand > span:last-child { display: none; }
}
.ww-order-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, var(--g-discover), var(--g-reflex)); color: #fff; border-radius: 22px; padding: 24px 28px; margin: 24px 0 8px; }
.ww-order-band h2 { margin: 0 0 4px; font-size: 24px; color: #fff; }
.ww-order-band p { margin: 0; opacity: 0.92; }
.ww-order-band .btn-cta { text-decoration: none; }
.ww-foot { flex-wrap: wrap; }
.ww-order { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; padding: 32px 20px 20px; align-items: start; }
.ww-order-intro h1 { font-size: 34px; margin: 8px 0 10px; }
.ww-order-intro ul { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.ww-order-intro li { background: #fff; border-radius: 12px; padding: 10px 12px 10px 38px; position: relative; box-shadow: var(--shadow); }
.ww-order-intro li::before { content: "✓"; position: absolute; left: 12px; color: var(--g-arrange-ink); font-weight: 800; }
.ww-order-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 24px; }
#order-form { display: grid; gap: 14px; }
.ww-order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#order-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: #334155; }
#order-form input, #order-form select, #order-form textarea { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16px; font-weight: 400; width: 100%; box-sizing: border-box; background: #fff; }
#order-form input:focus, #order-form select:focus, #order-form textarea:focus { outline: none; border-color: var(--hero-from); }
.ww-order-types { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ww-order-types legend { font-weight: 700; font-size: 14px; color: #334155; margin-bottom: 6px; padding: 0; }
.ww-check-chip { position: relative; display: inline-flex !important; }
.ww-check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ww-check-chip span { border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; background: #fff; }
.ww-check-chip input:checked + span { background: var(--g-discover-bg); border-color: var(--g-discover); color: var(--g-discover-ink); }
.ww-check-chip input:focus-visible + span { outline: 3px solid rgba(14, 165, 233, 0.45); }
.ww-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ww-order-send { width: 100%; }
#order-msg:empty { display: none; }
.ww-order-done { display: grid; gap: 12px; justify-items: start; }
.ww-order-done p { font-size: 20px; font-weight: 700; margin: 0; }
.ww-lead { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.ww-lead[data-status="new"] { border-left: 5px solid var(--g-quiz); }
.ww-lead[data-status="contacted"] { border-left: 5px solid var(--hero-from); }
.ww-lead[data-status="won"] { border-left: 5px solid var(--g-arrange); }
.ww-lead[data-status="lost"] { opacity: 0.6; }
.ww-lead-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ww-lead-head select { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.ww-lead-meta { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.ww-lead-idea { margin: 8px 0 0; white-space: pre-wrap; }
@media (max-width: 820px) {
  .ww-order { grid-template-columns: 1fr; padding-top: 20px; }
  .ww-order-grid { grid-template-columns: 1fr; }
  .ww-order-intro h1 { font-size: 28px; }
  .ww-order-card { padding: 16px; }
}
.ww-order-done[hidden], #order-form[hidden] { display: none !important; }

/* ===== v5 mobile fixes ===== */
html { overflow-x: hidden; }
#new-activity-form > *, .ww-create > *, .ww-create-head > *, .ww-list-head > * { min-width: 0; }
.ww-create-head .lp-chips, .ww-list-head .lp-chips { max-width: 100%; }
.ww-tpl, .ww-act { min-width: 0; }
.ww-tpl img { max-width: 100%; }
.admin-shell, .admin-shell .card, .admin-shell .admin-toolbar > * { min-width: 0; }
@media (max-width: 760px) {
  .ww-bar { gap: 6px; padding: 8px 10px; margin: -6px -6px 12px; }
  .ww-bar .brand > span:last-child { display: none; }
  .ww-bar .spacer { display: none; }
  .ww-bar-nav { flex: 1; }
  .ww-bar .lang-btn { padding: 4px 6px; min-width: 0; font-size: 13px; }
  .ww-create-row .btn-primary { flex: 1 1 100%; white-space: normal; }
  .ww-create-head { display: block; }
  .ww-create-head h2 { margin-bottom: 8px; }
  .admin-shell .admin-toolbar { display: block; }
  .admin-shell .admin-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .admin-shell .admin-kpi { min-width: 0; }
  .admin-shell .admin-user-filter { flex-direction: column; align-items: stretch; }
  .admin-shell .admin-tools > *, .admin-shell .admin-tools #admin-search { flex: 1 1 140px; min-width: 0; width: 100%; }
  .admin-shell .admin-bulk-bar .spacer { display: none; }
  .admin-shell .admin-user-plan { display: none; }
  .ww-banner .btn-link { white-space: nowrap; }
}
@media (max-width: 760px) {
  .ww-bar { flex-wrap: nowrap; }
  .ww-bar-nav { flex: 1 1 auto; min-width: 0; }
  .ww-nav-link { padding: 8px 9px; }
}
.admin-shell .ww-page-head { padding-bottom: 2px; }
.admin-shell .ww-page-head .ww-bar { margin-bottom: 0; }
/* Chips wrap instead of hiding groups behind a horizontal scroll (Mầm non was off-screen on phones) */
.lp-chips { flex-wrap: wrap; overflow: visible; padding-bottom: 2px; }
@media (max-width: 520px) {
  .lp-chips { gap: 6px; }
  .lp-chip { padding: 6px 11px; font-size: 14px; }
  .lp-chip .lp-count { font-size: 12px; }
}

/* ===== v6: old editors on the new look ===== */
body:not(.game-mode) #app:not(.lp-mode) .card { border: none; border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
body:not(.game-mode) #app:not(.lp-mode) .card h1 { font-size: 26px; }
body:not(.game-mode) #app:not(.lp-mode) .card h2 { font-size: 20px; }
body:not(.game-mode) #app:not(.lp-mode) .card label { color: #334155; font-weight: 600; }
body:not(.game-mode) #app:not(.lp-mode) .card input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):not([type=hidden]), body:not(.game-mode) #app:not(.lp-mode) .card select, body:not(.game-mode) #app:not(.lp-mode) .card textarea { border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; min-height: 40px; font-size: 16px; background: #fff; box-sizing: border-box; }
body:not(.game-mode) #app:not(.lp-mode) .card textarea { min-height: 80px; }
body:not(.game-mode) #app:not(.lp-mode) .card input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):not([type=hidden]):focus, body:not(.game-mode) #app:not(.lp-mode) .card select:focus, body:not(.game-mode) #app:not(.lp-mode) .card textarea:focus { outline: none; border-color: var(--hero-from); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
body:not(.game-mode) #app:not(.lp-mode) .card button:not([class]), body:not(.game-mode) #app:not(.lp-mode) .card .btn-secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 14px; min-height: 40px; font-weight: 600; cursor: pointer; transition: background 0.12s ease; }
body:not(.game-mode) #app:not(.lp-mode) .card button:not([class]):hover { background: var(--page); }
body:not(.game-mode) #app:not(.lp-mode) .card button:not([class]):disabled { opacity: 0.55; cursor: not-allowed; }
body:not(.game-mode) #app:not(.lp-mode) .card form > button[type=submit]:not([class]), body:not(.game-mode) #app:not(.lp-mode) #save-quiz-btn, body:not(.game-mode) #app:not(.lp-mode) #airplane-save-questions, body:not(.game-mode) #app:not(.lp-mode) #memory-save-content { background: var(--hero-from); border-color: #0284c7; color: #fff; min-height: 46px; font-size: 16px; border-radius: 12px; }
body:not(.game-mode) #app:not(.lp-mode) .card form > button[type=submit]:not([class]):hover { background: #0284c7; }
body:not(.game-mode) #app:not(.lp-mode) #back-btn { background: var(--page); }
body:not(.game-mode) #app:not(.lp-mode) #share-game-btn { background: #e0f2fe; border-color: #7dd3fc; color: #0369a1; }
body:not(.game-mode) #app:not(.lp-mode) .card .list-item, body:not(.game-mode) #app:not(.lp-mode) .card .item-row { border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
body:not(.game-mode) #app:not(.lp-mode) .card input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--hero-from); }
body:not(.game-mode) #app:not(.lp-mode) .card hr { border: none; border-top: 1px dashed var(--line); margin: 14px 0; }
.lang-btn { white-space: nowrap; }
.ww-pop-lang { display: none; }
@media (max-width: 520px) {
  .ww-bar > .lang-switch { display: none; }
  .ww-pop-lang { display: block; }
  body:not(.game-mode) #app:not(.lp-mode) .card { padding: 14px; border-radius: 16px; }
}

/* Trang chờ duyệt: form xin kích hoạt (28/11) */
.ww-actreq { display: grid; gap: 18px; max-width: 620px; }
#activate-form { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fbfdff; }
#activate-form[hidden], #activate-done[hidden] { display: none !important; }
.ww-actreq-hint { margin: 0; font-weight: 600; }
#activate-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: #334155; }
#activate-form input, #activate-form textarea { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16px; font-weight: 400; width: 100%; box-sizing: border-box; background: #fff; font-family: inherit; }
#activate-form input[readonly] { background: #f1f5f9; color: #475569; }
#activate-form input:focus, #activate-form textarea:focus { outline: none; border-color: var(--hero-from); }
#activate-msg:empty { display: none; }
.ww-actreq-tg { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #334155; font-weight: 600; }
.ww-actreq-tg img { width: 96px; height: 96px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; padding: 4px; }
@media (max-width: 600px) { #activate-form .ww-order-grid { grid-template-columns: 1fr; } }

/* Công cụ Chia tiền du lịch trên trang chủ (01/12/2026) */
.ww-tool-band { display: flex; align-items: center; gap: 16px; background: #fff; border: 2px solid #fde68a; border-radius: 22px; padding: 18px 22px; margin: 24px 0 0; color: inherit; box-shadow: 0 8px 22px rgba(15,23,42,.06); }
.ww-tool-tx b a { color: inherit; text-decoration: none; }
.ww-tool-acts { margin-left: auto; display: flex; flex-direction: column; align-items: stretch; gap: 2px; flex: none; }
.ww-tool-go { text-decoration: none; text-align: center; }
.ww-tool-guide { color: #6d28d9; font-weight: 700; text-decoration: none; text-align: center; font-size: 14px; padding: 4px 8px; }
.ww-tool-ic { font-size: 40px; width: 64px; height: 64px; display: grid; place-items: center; background: #fef9c3; border-radius: 18px; flex: none; }
.ww-tool-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ww-tool-tx b { font-size: 19px; }
.ww-tool-tx span { color: #475569; }
.ww-tool-go { background: #fde047; color: #111827; font-weight: 800; border-radius: 999px; padding: 11px 18px; white-space: nowrap; flex: none; }
@media (max-width: 640px) { .ww-tool-band { flex-wrap: wrap; padding: 16px; gap: 12px; } .ww-tool-ic { width: 52px; height: 52px; font-size: 32px; } .ww-tool-tx { flex: 1; } .ww-tool-acts { margin-left: 0; width: 100%; } .ww-tool-go { width: 100%; box-sizing: border-box; } }

/* Cloudflare Turnstile (01/12/2026) */
.ww-ts { min-height: 0; margin: 4px 0; display: flex; justify-content: center; }
.ww-ts:empty { display: none; }
