/* Auto Post Tool — site styles. Palette (26/9/2026, after vn.svo.ai): navy #0F2352, blue #1F48A8 (hover #4A5FE2),
   accents red #FF1A1A + cyan #00B0F2, headings #3E425B, secondary text #5E728C. Colours live only in :root below. */
:root {
  --ink: #3e425b;
  --ink-2: #4b5470;
  --muted: #5e728c;
  --line: #e3e8f1;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --navy: #0f2352;
  --navy-2: #16306b;
  --accent: #1f48a8;
  --accent-dark: #4a5fe2;      /* hover */
  --accent-soft: #e8eefb;
  --accent-rgb: 31, 72, 168;
  --orange: #ff1a1a;           /* "hot" accent = brand red (name kept so older rules still work) */
  --orange-dark: #d90f0f;
  --orange-soft: #ffeceb;
  --cyan: #00b0f2;
  --cyan-dark: #0086b8;
  --cyan-soft: #e0f6fe;
  --grad-hot: linear-gradient(135deg, #ff1a1a 0%, #00b0f2 100%);
  --green: #0f9f6e;
  --red: #d64545;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 18, 41, .06), 0 10px 30px rgba(17, 18, 41, .08);
  --shadow-lg: 0 2px 4px rgba(15, 35, 82, .06), 0 24px 60px rgba(15, 35, 82, .18);
  /* fonts like smilemotor.vn (self-hosted in assets/fonts/, full Vietnamese support) */
  --font-tieu-de: "Baloo 2", "Segoe UI", system-ui, Arial, sans-serif;
  --font-chu: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font: var(--font-chu);
  /* surfaces (light) — dark values are further down */
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, .92);
  --line-strong: #cfd6e4;
  --input-line: #d3dae7;
  --link: var(--accent);
  --danger-soft: #fff5f5;
  --illus-bg: #eef3fc;
  --tabbar-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2, h3 { font-family: var(--font-tieu-de); font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { background: var(--bg-soft); padding: .1em .35em; border-radius: 6px; font-size: .92em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.inline { display: inline; margin: 0; }
.hidden { display: none !important; }
.grad-text { background: linear-gradient(90deg, #ff4d4d, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-tieu-de); font-weight: 800; color: var(--ink); font-size: 1.2rem; letter-spacing: 0; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-icon { display: none; border-radius: 9px; }
.brand-full img { display: block; height: 42px; width: auto; }
.site-footer .brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links a.active, .nav-links a:hover { color: var(--link); text-decoration: none; }
.nav-links a.btn { color: #fff; }
.nav-sep { width: 1px; height: 22px; background: var(--line); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.link-btn:hover { color: var(--link); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
/* language switch EN | VI (always visible, also on phones) */
.nav-end { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); flex: none; }
.lang-switch a { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); line-height: 1.5; }
.lang-switch a:hover { text-decoration: none; color: var(--accent); }
.lang-switch a.on { background: var(--accent); color: #fff; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { left: 12px; }
.plan-alert a { font-weight: 700; white-space: nowrap; }
.bank-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.bank-box dt { color: var(--muted); font-size: .9rem; }
.bank-box dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .bank-box dl { grid-template-columns: 1fr; gap: 0; } .bank-box dt { margin-top: 8px; } }
.plan-cell { white-space: nowrap; }
/* Vietnamese: no forced capitals (keeps "vnđ" lower-case and tone marks readable) */
html[lang="vi"] .eyebrow { text-transform: none; letter-spacing: .02em; font-size: .82rem; }
/* big buttons use the heading font; small buttons keep the body font */
.btn:not(.btn-sm) { font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.05rem; line-height: 1.2; padding-top: 11px; padding-bottom: 11px; }

/* (mini app styles: see the end of this file) */
.install-btn { color: var(--accent); font-weight: 650; }
.ios-install { border: 0; border-radius: 18px; padding: 22px; max-width: min(420px, calc(100% - 32px)); box-shadow: var(--shadow-lg); }
.ios-install::backdrop { background: rgba(17, 18, 41, .45); }
.ios-install ol { padding-left: 20px; margin: 0 0 16px; }
.ios-install li { margin-bottom: 8px; }
@media (display-mode: standalone) { .site-footer { padding-bottom: 12px; } }
.qr-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.qr-row figure { margin: 0; text-align: center; }
.qr-row img { display: block; width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; image-rendering: pixelated; }
.qr-row figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; max-width: 180px; }
.legal-note { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .92rem; }
@media (max-width: 980px) {
  .nav-end { gap: 10px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .link-btn { padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .nav-links a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav-sep { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: .98rem; cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .2s, transform .08s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .28); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-orange { background: var(--orange-dark); color: #fff; box-shadow: 0 6px 18px rgba(255, 26, 26, .28); }
.btn-orange:hover { background: #b80c0c; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-danger { background: var(--surface); color: var(--red); border-color: #f1c9c9; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 7px 13px; font-size: .88rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; box-shadow: none; }
/* "Continue with TikTok": plain black text button, TikTok logo NOT reproduced */
.btn-tiktok { background: #000; color: #fff; }
.btn-tiktok:hover { background: #222; }

/* hero + 3D scene */
.hero { position: relative; padding: 76px 0 64px; color: #fff; overflow: hidden; background:
  radial-gradient(820px 460px at 88% -8%, rgba(0, 176, 242, .28) 0%, rgba(0, 176, 242, 0) 62%),
  radial-gradient(700px 380px at -8% 30%, rgba(255, 26, 26, .20) 0%, rgba(255, 26, 26, 0) 60%),
  var(--navy); }
.hero h1 { color: #fff; }
.hero .lead { color: #c9d4ea; }
.hero .eyebrow { color: #8fe0ff; background: rgba(0, 176, 242, .16); }
.hero .trust { color: #b3c2de; }
.hero .trust span::before { color: var(--cyan); }
.hero .btn-primary { box-shadow: 0 8px 22px rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .18); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); background: var(--orange-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.trust span::before { content: "✓ "; color: var(--green); font-weight: 700; }

.scene { perspective: 1400px; height: 460px; position: relative; }
.stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(14deg) rotateY(-18deg); transition: transform .25s ease-out; will-change: transform; }
.layer { position: absolute; border-radius: 22px; background: #fff; color: var(--ink); border: 1px solid rgba(15, 35, 82, .10); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 24px 60px rgba(0, 0, 0, .35); }
.layer-cal { left: 4%; top: 12%; width: 74%; height: 70%; transform: translateZ(0); padding: 18px; }
.layer-phone { right: 2%; top: 2%; width: 38%; height: 88%; transform: translateZ(90px); background: var(--grad-hot); border: 6px solid #0a1838; border-radius: 30px; overflow: hidden; }
.layer-chip { left: -2%; bottom: 4%; transform: translateZ(140px); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: .92rem; }
.layer-chip2 { right: 30%; bottom: -2%; transform: translateZ(60px); padding: 10px 14px; font-size: .85rem; font-weight: 600; }
.cal-head { display: flex; justify-content: space-between; align-items: center; font-weight: 750; font-size: .95rem; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.cal-grid i { display: block; height: 44px; border-radius: 9px; background: var(--bg-soft); position: relative; }
.cal-grid i.a::after, .cal-grid i.b::after, .cal-grid i.c::after { content: ""; position: absolute; left: 6px; right: 6px; height: 8px; border-radius: 4px; }
.cal-grid i.a::after { top: 8px; background: var(--accent); }
.cal-grid i.b::after { top: 20px; background: var(--orange); }
.cal-grid i.c::after { top: 30px; background: var(--cyan); }
.phone-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 14px; color: #fff; }
.phone-ui b { font-size: .95rem; }
.phone-ui small { opacity: .85; font-size: .78rem; }
.phone-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); margin-top: 10px; overflow: hidden; }
.phone-bar::after { content: ""; display: block; height: 100%; width: 65%; background: #fff; border-radius: 3px; animation: grow 3.2s ease-in-out infinite; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(15, 159, 110, .15); flex: none; }
.float-a { animation: floaty 6s ease-in-out infinite; }
.float-b { animation: floaty 7s ease-in-out -2s infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes grow { 0% { width: 10%; } 60% { width: 100%; } 100% { width: 100%; } }
@media (max-width: 960px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .scene { height: 360px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
  .scene { height: 300px; }
  .stage { transform: rotateX(8deg) rotateY(-10deg); }
}
/* Static fallback: reduced motion or weak devices (class set by app.js) */
@media (prefers-reduced-motion: reduce) {
  .stage { transform: none !important; transition: none; }
  .float-a, .float-b, .phone-bar::after { animation: none; }
}
.no-3d .stage { transform: none !important; }
.no-3d .layer { transform: none !important; }
.no-3d .float-a, .no-3d .float-b { animation: none; }

/* tilt cards */
.tilt { transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .2s; will-change: transform; }
.tilt:hover { box-shadow: var(--shadow-lg); }

/* sections */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(145deg, var(--accent-soft), var(--surface)); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .12), 0 6px 14px rgba(var(--accent-rgb), .12); transform: translateZ(30px); }
.feature-icon.orange { color: var(--orange-dark); background: linear-gradient(145deg, var(--orange-soft), var(--surface)); box-shadow: inset 0 0 0 1px rgba(255, 26, 26, .18), 0 6px 14px rgba(255, 26, 26, .12); }
.feature-icon svg { width: 22px; height: 22px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 54px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(145deg, var(--accent), var(--cyan)); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: .92rem; box-shadow: 0 6px 14px rgba(var(--accent-rgb), .3); }

/* pricing */
.price-card { max-width: 460px; margin: 0 auto; text-align: left; border: 2px solid var(--accent); }
.price { font-family: var(--font-tieu-de); font-size: 3rem; font-weight: 800; letter-spacing: 0; line-height: 1.15; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.check-list li { padding: 6px 0 6px 30px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* forms */
.auth-card { max-width: 460px; margin: 56px auto; }
.form-row { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--input-line); border-radius: 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.check.disabled { color: var(--muted); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px; cursor: pointer; font-weight: 550; margin: 0; }
.radio-row input { accent-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: 13px; padding: 16px; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }

/* toggle switch */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }

/* alerts & badges */
.flashes { margin-top: 16px; }
.alert { padding: 12px 16px; border-radius: 11px; margin-bottom: 10px; border: 1px solid; font-size: .95rem; }
.alert-info { background: #eef1ff; border-color: #d3d8fb; color: #2b2f7a; }
.alert-success { background: #e8f8f1; border-color: #bfe9d6; color: #0c6b4c; }
.alert-warn { background: #fff6e8; border-color: #f5ddb0; color: #7a5412; }
.alert-error { background: #fdecec; border-color: #f5c6c6; color: #8a2020; }
.badge { display: inline-block; font-size: .76rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-green { background: #e3f7ee; color: #0c7a54; }
.badge-amber { background: #fff3d6; color: #8a5a00; }
.badge-orange { background: var(--cyan-soft); color: #00658c; }
.badge-red { background: #fde8e8; color: #a42828; }
.badge-blue { background: var(--accent-soft); color: var(--accent-dark); }
.badge-gray { background: #eef0f4; color: #4b5064; }

/* app pages */
.dash { padding: 30px 0 64px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.dash-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0; }
.dash-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 24px; }
.dash-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.acc > div { min-width: 0; overflow-wrap: anywhere; }
.acc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acc:last-child { border-bottom: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); flex: none; }
.acc-name { font-weight: 650; line-height: 1.3; }
.acc-meta { font-size: .82rem; color: var(--muted); }
.acc form { margin-left: auto; }
.swatch { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: none; }
.creator-box { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; background: var(--bg-soft); margin-bottom: 16px; }
.preview { width: 100%; max-height: 420px; background: #000; border-radius: 13px; display: block; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
td.num, th.num { text-align: right; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.notice-box { background: var(--bg-soft); border-radius: 13px; padding: 14px 16px; font-size: .9rem; color: var(--ink-2); }
.progress { height: 8px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width .2s; }

/* planner */
.plan-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); }
.seg a { padding: 8px 14px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.seg a.on { background: var(--accent); color: #fff; }
.seg a:hover { text-decoration: none; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.plan-grid.week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.plan-grid.day { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .plan-grid, .plan-grid.week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .plan-grid, .plan-grid.week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .plan-grid, .plan-grid.week { grid-template-columns: 1fr; } }
.plan-day { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 150px; box-shadow: 0 1px 2px rgba(17, 18, 41, .04); transition: background .15s, border-color .15s; }
.plan-day.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.plan-day.drop { background: var(--accent-soft); border-color: var(--accent); }
.plan-day h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: flex; justify-content: space-between; margin: 2px 2px 8px; }
.plan-day h4 a { color: inherit; }
.slot { display: block; border-radius: 10px; padding: 7px 8px 7px 11px; margin-bottom: 7px; font-size: .82rem; line-height: 1.35; background: var(--bg-soft); border-left: 5px solid var(--c, var(--accent)); position: relative; }
.slot[draggable=true] { cursor: grab; }
.slot.dragging { opacity: .45; }
.slot b { display: block; font-size: .8rem; }
.slot .t { font-weight: 750; font-variant-numeric: tabular-nums; }
.slot .st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.st-scheduled { background: var(--accent); }
.st-published { background: var(--green); }
.st-failed { background: var(--red); }
.st-inbox { background: var(--cyan); }
.st-processing, .st-uploading { background: var(--accent-dark); }
.st-cancelled { background: #b5b8c8; }
.legend .st { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.slot-actions { display: flex; gap: 8px; margin-top: 4px; font-size: .78rem; }
.slot-actions button, .slot-actions a { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; }
.empty-day { font-size: .8rem; color: var(--muted); padding: 6px 2px; }

/* stats */
.kpi { padding: 18px; }
.kpi .v { font-family: var(--font-tieu-de); font-size: 1.9rem; font-weight: 800; letter-spacing: 0; }
.kpi .l { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kpi .d { font-size: .82rem; font-weight: 650; }
.up { color: var(--green); }
.down { color: var(--red); }
.chart-box { position: relative; height: 290px; }
.vthumb { width: 42px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }

/* legal pages */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal li { margin-bottom: .4em; }
.legal table td, .legal table th { font-size: .9rem; }

/* footer */
.site-footer { background: var(--navy); color: #c9d4ea; padding: 48px 0 24px; }
.site-footer .brand { color: #fff; }
.site-footer .muted { color: #9fb0cf; }
.site-footer a { color: #e3ebfa; }
.site-footer a:hover { color: #8fe0ff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4, .footer-grid .foot-h { font-weight: 700; margin-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #8fa3c7; margin-bottom: 10px; }
.footer-grid a:not(.brand) { display: block; color: #e3ebfa; padding: 3px 0; font-size: .93rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }


/* =====================================================================
   MINI APP (phones + "Add to home screen") — 27/9/2026
   ===================================================================== */
.tabbar, .app-back, .app-title, .mobile-only { display: none; }
.desk-only { }
.icon-btn { background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--bg-soft); }

/* dark mode (follows the phone / computer setting), SVO palette */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef9; --ink-2: #c9d4ea; --muted: #9fb0cf; --line: #24376a; --line-strong: #34497f; --input-line: #34497f;
    --bg: #0b1838; --bg-soft: #10204a; --surface: #13244c; --header-bg: rgba(11, 24, 56, .9);
    --accent-soft: rgba(74, 95, 226, .2); --orange-soft: rgba(255, 26, 26, .14); --cyan-soft: rgba(0, 176, 242, .16);
    --link: #8fb0ff; --danger-soft: rgba(214, 69, 69, .14); --illus-bg: #1a2f63;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  }
  .alert-info { background: rgba(74, 95, 226, .16); border-color: rgba(74, 95, 226, .4); color: #c7d4ff; }
  .alert-success { background: rgba(15, 159, 110, .16); border-color: rgba(15, 159, 110, .4); color: #9ee6c8; }
  .alert-warn { background: rgba(245, 180, 60, .14); border-color: rgba(245, 180, 60, .38); color: #f6d69a; }
  .alert-error { background: rgba(214, 69, 69, .16); border-color: rgba(214, 69, 69, .42); color: #ffb4b4; }
  .badge-green { background: rgba(15, 159, 110, .2); color: #7fe0b8; }
  .badge-amber { background: rgba(245, 180, 60, .18); color: #f6d69a; }
  .badge-orange { background: rgba(0, 176, 242, .18); color: #8fe0ff; }
  .badge-red { background: rgba(214, 69, 69, .2); color: #ffb4b4; }
  .badge-blue { background: rgba(74, 95, 226, .22); color: #c7d4ff; }
  .badge-gray { background: rgba(255, 255, 255, .08); color: var(--ink-2); }
  .btn-danger { border-color: rgba(214, 69, 69, .5); color: #ff9c9c; }
  .btn-tiktok { background: #fff; color: #000; }
  .btn-tiktok:hover { background: #e8eef9; }
  .nav-toggle span { background: var(--ink); }
  .layer { background: var(--surface); }
  .section-soft { background: #0d1c42; }
  .eyebrow { color: #ff9b9b; }
  .preview { background: #000; }
  select, input, textarea { color-scheme: dark; }
}

/* thin progress bar while the next page loads */
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--orange), var(--cyan)); opacity: 0; pointer-events: none; }
.nav-progress.go { opacity: 1; width: 85%; transition: width 8s cubic-bezier(.1, .7, .2, 1), opacity .2s; }

/* smooth page changes: View Transitions where supported, simple fade otherwise */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@supports not (view-transition-name: none) { main { animation: page-in .22s ease-out; } }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  main { animation: none !important; }
}

/* toasts */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70; width: min(440px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
body.has-tabbar .toasts { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; font-size: .95rem; font-weight: 600; color: #fff; background: #13244c; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; border-left: 5px solid var(--cyan); }
.toast.in { opacity: 1; transform: none; }
.toast-success { border-left-color: #22c58b; }
.toast-error { border-left-color: var(--orange); }

/* skeletons */
.skeleton { position: relative; overflow: hidden; background: var(--bg-soft); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 1.2s infinite; }
@media (prefers-color-scheme: dark) { .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); } }
@keyframes shimmer { to { transform: translateX(100%); } }
.chart-box.skeleton canvas { visibility: hidden; }
.skeleton-box .sk-circle { width: 44px; height: 44px; border-radius: 50%; display: block; flex: none; }
.skeleton-box .sk-lines { flex: 1; display: grid; gap: 8px; }
.skeleton-box .sk-line { display: block; height: 12px; }
.skeleton-box .sk-line.short { width: 55%; }

/* empty states + illustrations */
.empty { text-align: center; padding: 18px 8px; }
.empty .illus svg { width: 150px; height: auto; }
.empty-t { font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.15rem; margin: 6px 0 2px; color: var(--ink); }
.empty .muted { max-width: 30em; margin: 0 auto 14px; }
.illus { display: flex; justify-content: center; }

/* bottom sheets (onboarding, iPhone install guide) */
dialog.sheet { border: 0; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px; width: min(440px, calc(100% - 24px)); max-width: none; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog.sheet::backdrop { background: rgba(8, 18, 45, .55); backdrop-filter: blur(2px); }
@media (max-width: 760px) {
  dialog.sheet { margin: auto 0 0; width: 100%; border-radius: 22px 22px 0 0; animation: sheet-up .28s ease-out; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ios-install h3 { text-align: center; margin-top: 8px; }
.ios-steps { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.ios-steps li { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border-radius: 14px; padding: 12px 14px; font-weight: 600; }
.step-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); color: var(--link); display: grid; place-items: center; flex: none; box-shadow: var(--shadow); }
.onb-slide { display: none; text-align: center; }
.onb-slide.on { display: block; animation: page-in .25s ease-out; }
.onb-slide h2 { font-size: 1.45rem; margin: 6px 0 6px; }
.onb-step { font-size: .8rem; font-weight: 700; color: var(--link); margin: 10px 0 0; letter-spacing: .03em; }
.onb-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0; }
.onb-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line-strong); transition: width .2s; }
.onb-dots i.on { width: 22px; background: var(--accent); }
.onb-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

/* install banner (dashboard) */
.install-banner { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px 10px 12px; margin-bottom: 18px; box-shadow: var(--shadow); }
.install-banner img { border-radius: 10px; flex: none; }
.install-banner > div { flex: 1; line-height: 1.35; }
html.standalone .install-banner, html.standalone [data-install] { display: none !important; }

/* planner: date strip (phones) */
.day-strip { display: none; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .mobile-only { display: block; }
  .desk-only { display: none !important; }
  /* app bar: back + page title, no big brand */
  body.has-tabbar .site-header .nav { min-height: 56px; gap: 8px; }
  body.has-tabbar .brand-full { display: none; }
  body.has-tabbar .brand-icon { display: block; }
  .brand-full img { height: 36px; }
  body.has-tabbar .app-title { display: block; flex: 1; min-width: 0; font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.2rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.has-tabbar .app-back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -8px; border-radius: 12px; color: var(--ink); flex: none; }
  body.has-tabbar .app-back svg { width: 24px; height: 24px; }
  body.has-tabbar .app-back ~ .brand { display: none; }
  body.has-tabbar .nav-links { top: calc(56px + env(safe-area-inset-top)); }
  body.has-tabbar .dash-head h1 { font-size: 1.5rem; }
  body.page-dashboard .dash-head h1 { font-size: 1.35rem; }
  /* dashboard on phones: recent posts first, the composer lives behind the "+ Post" tab */
  body.page-dashboard .dash-grid > .stack:last-child { order: -1; }
  body.page-dashboard #composer { display: none; }
  body.page-dashboard .dash-head .actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }

  /* bottom tab bar with a floating "+ Post" button */
  body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); }
  body.has-tabbar .site-footer { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    min-height: var(--tabbar-h); background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 4px max(4px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-right)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px; color: var(--muted); font-size: .7rem; font-weight: 600; line-height: 1.15; text-align: center; -webkit-tap-highlight-color: transparent; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.on { color: var(--link); }
  .tabbar .ic { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 14px; transition: background .15s; }
  .tabbar a.on .ic { background: var(--accent-soft); }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar a.fab .ic { width: 56px; height: 56px; border-radius: 18px; margin-top: -26px; color: #fff; background: linear-gradient(140deg, var(--orange), #ff5a3c 40%, var(--cyan)); box-shadow: 0 10px 22px rgba(255, 26, 26, .35), 0 0 0 4px var(--bg); }
  .tabbar a.fab svg { width: 28px; height: 28px; }
  .tabbar a.fab.on .ic { background: linear-gradient(140deg, var(--accent), var(--cyan)); }

  /* touch: >= 44px targets, 16px inputs (no zoom on iPhone) */
  input, select, textarea { font-size: 16px !important; }
  input[type=datetime-local] { min-height: 46px; }
  .btn { min-height: 46px; }
  .btn-sm { min-height: 44px; padding: 9px 14px; }
  .nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; }
  .lang-switch a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; }
  .radio-row label { min-height: 46px; }
  .check { min-height: 32px; }
  .slot-actions summary { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; }
  .seg a { display: inline-flex; align-items: center; min-height: 44px; }
  .card { padding: 18px; border-radius: 18px; }
  .dash { padding: 16px 0 24px; }
  .wrap { width: calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)); }

  /* planner as a day-by-day list with a swipeable date strip */
  .day-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; margin: 0 -4px 6px; scrollbar-width: none; }
  .day-strip::-webkit-scrollbar { display: none; }
  .day-strip .chip { scroll-snap-align: center; flex: none; width: 54px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
  .day-strip .chip:hover { text-decoration: none; }
  .day-strip .chip.today { background: var(--accent); border-color: var(--accent); color: #fff; }
  .day-strip .dw { font-size: .7rem; font-weight: 700; opacity: .8; }
  .day-strip .dn { font-family: var(--font-tieu-de); font-weight: 800; font-size: 1.25rem; line-height: 1; }
  .day-strip .dots { display: flex; gap: 3px; height: 6px; }
  .day-strip .dots i { width: 6px; height: 6px; border-radius: 50%; }
  .plan-toolbar .legend { display: none; }
  .plan-grid, .plan-grid.week { grid-template-columns: 1fr; gap: 10px; }
  .plan-day { min-height: 0; padding: 12px; scroll-margin-top: 80px; }
  .plan-day.is-empty { padding: 8px 12px; opacity: .75; }
  .plan-day.is-empty h4 { margin-bottom: 0; }
  .plan-day.is-empty .empty-day { display: none; }
  .plan-day h4 { font-size: .9rem; }
  .slot { padding: 10px 12px 10px 14px; font-size: .92rem; border-radius: 12px; }
  .slot b { font-size: .88rem; }
  .slot-actions { font-size: .9rem; }
  .plan-grid.swipe-left { animation: swipe-l .25s ease-in forwards; }
  .plan-grid.swipe-right { animation: swipe-r .25s ease-in forwards; }

  /* stats: big number cards, charts fit the screen */
  .kpi { padding: 14px; }
  .kpi .v { font-size: 2rem; line-height: 1.1; }
  .kpi .l { font-size: .74rem; }
  .grid-4 { gap: 10px; }
  .chart-box { height: 220px; }
  .table-wrap table { font-size: .88rem; }

  /* recent posts: cards instead of a table */
  #recent thead { display: none; }
  #recent table, #recent tbody { display: block; }
  #recent tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  #recent tr:last-child { border-bottom: 0; }
  #recent td { display: block; border: 0; padding: 0; }
  #recent td:first-child { grid-column: 1 / -1; font-weight: 600; }
  #recent td:nth-child(2), #recent td:nth-child(3) { font-size: .82rem; color: var(--muted); }
  #recent td:nth-child(2) { grid-column: 1; }
  #recent td:nth-child(3) { grid-column: 1; }
  #recent td:nth-child(4) { grid-column: 2; grid-row: 2 / span 2; align-self: center; text-align: right; max-width: 170px; }
  #recent td:nth-child(4) .badge { white-space: normal; }
}

/* file picker: a big, friendly button */
input[type=file] { padding: 10px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 10px 16px; margin-right: 12px; background: var(--accent-soft); color: var(--link); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--accent); color: #fff; }
@keyframes swipe-l { to { opacity: 0; transform: translateX(-30px); } }
@keyframes swipe-r { to { opacity: 0; transform: translateX(30px); } }

/* opened from the home screen */
html.standalone body { overscroll-behavior-y: none; }
html.standalone body.has-tabbar .site-footer { display: none; }

/* =====================================================================
   v3 (28/9/2026): AIDA home, short labels + "i" tips, compact date/time picker,
   month calendar, library clip cards, review before posting, stats, payment page
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h2-sm { font-size: 1.5rem; }
.lbl { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.link-btn.danger, .icon-btn.danger { color: var(--red); }
.icon-btn { display: inline-grid; place-items: center; text-decoration: none !important; color: var(--ink-2); }
.pf { vertical-align: -2px; flex: none; }

/* "i" tip */
.tip { display: inline; position: relative; }
.tip > summary { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); color: var(--muted);
  font: italic 700 11px/1 var(--font-chu); cursor: pointer; list-style: none; vertical-align: 1px; margin-left: 2px; }
.tip > summary::-webkit-details-marker { display: none; }
.tip > summary:hover, .tip[open] > summary { border-color: var(--accent); color: var(--accent); }
.tip[open] > .tip-body { display: block; margin: 8px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line);
  font: 400 .86rem/1.5 var(--font-chu); color: var(--ink-2); max-width: 34em; text-transform: none; letter-spacing: 0; }

/* segmented radio (Post now / Schedule …) */
.seg-2, .seg-3 { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-2 label, .seg-3 label { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--ink-2); text-align: center; position: relative; }
.seg-2 input, .seg-3 input { position: absolute; opacity: 0; pointer-events: none; }
.seg-2 label:has(input:checked), .seg-3 label:has(input:checked) { background: var(--accent); color: #fff; }
.seg-2 label:has(input:focus-visible), .seg-3 label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -3px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .86rem; padding: 7px 12px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.chk-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.consent { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.consent p { margin-bottom: 8px; }

/* date + time picker */
.dtp-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.dtp input[type=date], .dtp input[type=time] { width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--input-line); border-radius: 11px; min-height: 44px; }
.dtp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dtp-chips button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; min-height: 32px; }
.dtp-chips button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--link); }

/* plan banner with a button, soft block */
.plan-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.plan-alert .btn { flex: none; }
.plan-block { text-align: center; }
.plan-block .onb-actions .btn { width: 100%; }

/* footer contact */
.foot-contact { font-style: normal; display: grid; gap: 2px; color: #c9d4ea; margin-top: 8px; }
.site-footer .foot-contact a { display: inline; padding: 0; }

/* ---------- home (AIDA) ---------- */
.hero3 { padding: 64px 0 56px; }
.hero3 h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.hero-note { color: #b3c2de; font-size: .9rem; margin: 0; }
.trust-line { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .85rem; color: #b3c2de; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px 12px; }
.pain-phone { display: flex; justify-content: center; }
.pp-frame { width: min(300px, 100%); border-radius: 36px; padding: 26px 16px 22px; background: linear-gradient(160deg, #1b2f66, #0a1636); border: 7px solid #07102a;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06); color: #fff; }
.pp-time { font-family: var(--font-tieu-de); font-weight: 800; font-size: 3.6rem; text-align: center; line-height: 1; letter-spacing: 1px; }
.pp-date { text-align: center; font-size: .85rem; color: #aebcdc; margin: 4px 0 18px; }
.pp-note { background: rgba(255,255,255,.1); border-radius: 16px; padding: 10px 12px; margin-top: 8px; font-size: .84rem; line-height: 1.35; display: grid; gap: 2px; }
.pp-note b { font-size: .78rem; color: #cfe0ff; font-weight: 700; }
.pp-late { background: rgba(255,26,26,.22); border: 1px solid rgba(255,26,26,.35); }
.pp-pfs { display: flex; gap: 8px; margin-top: 4px; }
.pp-pfs i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; position: relative; }
.pp-pfs i::after { content: ""; position: absolute; right: -3px; top: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); border: 2px solid #13244c; }
.pp-pfs i.done::after { background: #22c58b; }
.pains .card { box-shadow: none; }
.pain h3 { font-size: 1.12rem; margin-top: 2px; }
.pain p { margin: 0; }
.src { font-size: .8rem; white-space: nowrap; }
.eve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eve-tag { display: inline-block; font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.eve-before .eve-tag { background: var(--orange-soft); color: var(--orange-dark); }
.eve-after .eve-tag { background: #e3f7ee; color: #0c7a54; }
.eve-after { border: 2px solid rgba(15,159,110,.35); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline b { font-family: var(--font-tieu-de); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.eve-before .timeline li:nth-child(n+3) b { color: var(--orange-dark); }
.compare { margin-top: 20px; padding: 8px 18px; }
.compare th[scope=row] { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); width: 22%; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:nth-child(3) { font-weight: 600; }
.compare thead th:last-child { color: var(--green); }
.gets .get h3 { font-size: 1.08rem; margin-top: 2px; }
.gets .get { padding: 4px 2px; }
.how3 { margin-top: 56px; display: grid; gap: 18px; }
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps3 li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-soft); border-radius: 16px; padding: 18px; }
.steps3 .n { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-tieu-de);
  background: linear-gradient(145deg, var(--accent), var(--cyan)); }
.steps3 h3 { font-size: 1.05rem; margin: 4px 0 4px; }
.steps3 p { margin: 0; font-size: .92rem; }
.pf-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .9rem; color: var(--muted); background: var(--surface); }
.pf-chip small { font-weight: 500; font-size: .76rem; }
.pf-chip.on { color: var(--ink); border-color: rgba(15,159,110,.45); }
.pf-chip.on small { color: var(--green); }
.final-cta { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
@media (max-width: 960px) { .eve-grid, .steps3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .hero3 { padding: 36px 0 36px; }
  .pp-frame { width: 250px; padding: 20px 12px 16px; } .pp-time { font-size: 2.8rem; }
  .gets { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 78px 1fr; gap: 8px; }
  .compare { padding: 4px 10px; } .compare table { font-size: .84rem; } .compare th, .compare td { padding: 8px 5px; }
  .section { padding: 52px 0; }
}

/* ---------- overview ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; color: var(--ink); box-shadow: var(--shadow); }
.tile:hover { text-decoration: none; border-color: var(--line-strong); }
.tile .v { font-family: var(--font-tieu-de); font-weight: 800; font-size: 1.8rem; line-height: 1.1; }
.tile .l { font-size: .84rem; color: var(--muted); }
.tile.hot .v { color: var(--orange-dark); }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); position: relative; }
.post-list > li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: var(--c, var(--accent)); }
.post-list > li:last-child { border-bottom: 0; }
.pl-time { font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.05rem; line-height: 1.1; display: grid; font-variant-numeric: tabular-nums; min-width: 48px; }
.pl-time small { font-family: var(--font-chu); font-weight: 500; font-size: .74rem; color: var(--muted); }
.pl-main { display: grid; gap: 2px; min-width: 0; }
.pl-main b { font-weight: 600; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-main small { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pl-main small.err { color: var(--red); }
.pending-card { text-align: center; max-width: 620px; margin: 0 auto; }
.use-case-form { text-align: left; margin-top: 16px; }
.acc .btn-sm { min-width: 64px; }
.review-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- library ---------- */
.lib-grid { grid-template-columns: 320px 1fr; }
.drop { display: flex; align-items: center; gap: 14px; border: 2px dashed var(--line-strong); border-radius: 16px; padding: 18px; cursor: pointer; margin-bottom: 12px; font-weight: 500; }
.drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.7rem; font-weight: 700; color: #fff; background: linear-gradient(140deg, var(--orange), var(--cyan)); }
.upload-card { position: relative; }
.visually-hidden-file { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); padding: 0; border: 0; }
.upload-card textarea { min-height: 64px; }
.clip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.clip { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(17,18,41,.04); }
.clip.is-sched { border-left: 4px solid var(--accent); }
.clip-ic { width: 52px; height: 64px; border-radius: 10px; background: var(--bg-soft); color: var(--accent); display: grid; place-items: center; align-content: center; gap: 2px; }
.clip-ic small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.clip-main { min-width: 0; display: grid; gap: 3px; }
.clip-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-cap summary { cursor: pointer; font-size: .86rem; color: var(--muted); list-style: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-cap summary::-webkit-details-marker { display: none; }
.clip-cap[open] summary { white-space: normal; }
.clip-act { display: flex; align-items: center; gap: 4px; }
.clip-act form { margin: 0; }
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px; }
@media (max-width: 760px) {
  .lib-grid { grid-template-columns: 1fr; }
  .clip { grid-template-columns: 44px minmax(0, 1fr); }
  .clip-ic { width: 44px; height: 56px; }
  .clip-act { grid-column: 1 / -1; justify-content: flex-end; }
  .clip-act > .btn, .clip-act > .pop { flex: 1; }
  .pop > summary { width: 100%; }
  .pop-body { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}

/* bottom sheet with a form */
dialog.sheet-lg { width: min(560px, calc(100% - 24px)); max-height: 92vh; overflow-y: auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sheet-head h2 { font-size: 1.3rem; margin: 0; }
@media (max-width: 760px) { dialog.sheet-lg { width: 100%; max-height: 90vh; } }

/* ---------- calendar (month / week / day) ---------- */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cal-nav, .cal-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-nav .icon-btn { font-size: 1.7rem; width: 38px; height: 38px; }
.cal-title { font-size: 1.45rem; margin: 0 0 0 6px; }
.cal-page .legend { margin-bottom: 12px; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.cal-day { grid-template-columns: minmax(0, 680px); }
.calg { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.cal-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-wd span { padding: 8px 10px; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mc { aspect-ratio: 1 / 1; min-height: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; overflow: hidden; transition: background .12s; position: relative; }
.mc:nth-child(7n) { border-right: 0; }
.mc:hover { background: var(--bg-soft); }
.mc.out .mc-d { opacity: .45; }
.mc.past .ev { opacity: .75; }
.mc.sel { background: var(--accent-soft); }
.mc.drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.mc-d { align-self: flex-start; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; font-weight: 700; font-size: .86rem; color: var(--ink); }
.mc-d:hover { text-decoration: none; background: var(--line); }
.mc.today .mc-d { background: var(--orange-dark); color: #fff; }
.mc-evs { display: grid; gap: 3px; min-width: 0; }
.ev { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: .74rem; line-height: 1.25; padding: 2px 5px; border-radius: 6px; background: var(--bg-soft); color: var(--ink); }
.ev[draggable=true] { cursor: grab; }
.ev.dragging { opacity: .4; }
.ev-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.ev-t { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.ev-x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.evs-published .ev-t::after, .ev.evs-inbox .ev-t::after { content: " ✓"; color: var(--green); }
.ev.evs-failed { box-shadow: inset 0 0 0 1px var(--red); }
.ev.evs-failed .ev-t { color: var(--red); }
.ev.evs-paused { opacity: .6; }
.ev.evs-unconfirmed { background: transparent; outline: 1px dashed var(--c); outline-offset: -1px; }
.ev-more { border: 0; background: none; padding: 0 5px; font: inherit; font-size: .74rem; font-weight: 700; color: var(--link); text-align: left; cursor: pointer; }
.mc-dots { display: none; }
.cal-week .mc { aspect-ratio: auto; min-height: 420px; }
.cal-week .ev { flex-wrap: wrap; }
.cal-week .ev-x { white-space: normal; flex-basis: 100%; }
.day-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dl-head h2 { font-size: 1.15rem; margin: 0; }
.dl-empty { margin: 6px 0 4px; }
.stt-failed { color: var(--red); } .stt-published, .stt-inbox { color: var(--green); } .stt-paused, .stt-unconfirmed { color: #8a5a00; }
@media (max-width: 1100px) { .cal-layout { grid-template-columns: minmax(0, 1fr) 280px; } .cal-month .ev-x { display: none; } }
@media (max-width: 760px) {
  .cal-nav { width: 100%; }
  .cal-title { font-size: 1.25rem; order: -1; margin: 0 auto 0 0; }
  .mc-d { align-self: center; }
  .cal-bar { gap: 8px; }
  .cal-tools { width: 100%; justify-content: space-between; }
  .cal-layout { grid-template-columns: 1fr; gap: 12px; }
  .mc { padding: 3px; gap: 2px; align-items: center; }
  .mc-d { min-width: 28px; height: 28px; font-size: .88rem; padding: 0; }
  .mc-evs, .ev-more { display: none; }
  .mc-dots { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
  .mc-dots i { width: 6px; height: 6px; border-radius: 50%; }
  .mc.sel .mc-d { box-shadow: 0 0 0 2px var(--accent); }
  .cal-wd span { padding: 6px 0; text-align: center; font-size: .7rem; }
  .cal-week .mc { min-height: 0; aspect-ratio: 1 / 1.3; }
  .day-panel { position: static; box-shadow: none; }
  .calg.swipe-left { animation: swipe-l .25s ease-in forwards; }
  .calg.swipe-right { animation: swipe-r .25s ease-in forwards; }
}

/* ---------- review before posting ---------- */
.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rv { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; box-shadow: var(--shadow); }
.rv.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.rv video { width: 130px; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 12px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.rv-head b { font-size: 1rem; }
.rv textarea { min-height: 70px; }
.rv .grid-2 { gap: 10px; }
.rv-ok { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; cursor: pointer; }
.rv-ok input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.rv-bar { position: sticky; bottom: 0; z-index: 25; background: var(--header-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 16px; }
.rv-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.has-tabbar .rv-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (max-width: 760px) {
  .rv { grid-template-columns: 1fr; }
  .rv video { width: 100%; max-height: 260px; aspect-ratio: auto; }
}

/* ---------- stats ---------- */
.kpis { margin-bottom: 18px; }
.kpi3 { padding: 16px 18px; }
.kpi3 .l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi3 .v { font-family: var(--font-tieu-de); font-weight: 800; font-size: 2rem; line-height: 1.15; margin: 2px 0; font-variant-numeric: tabular-nums; }
.kpi3 .d { font-size: .8rem; font-weight: 700; }
.kpi3 .d .cmp { display: block; font-weight: 500; color: var(--muted); }
.kpi3 .d.up { color: var(--green); } .kpi3 .d.down { color: var(--red); } .kpi3 .d.flat { color: var(--muted); }
.chart-card .chart-box { height: 300px; }
.seg-sm button { padding: 6px 10px; font-size: .82rem; }
.acc-pick { width: auto; padding: 7px 10px; }
.top-list { list-style: none; padding: 0; margin: 0; }
.top-list li { display: grid; grid-template-columns: 22px 45px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.top-list li:last-child { border-bottom: 0; }
.top-list .rank { font-family: var(--font-tieu-de); font-weight: 800; color: var(--muted); text-align: center; }
.top-list .vthumb { width: 45px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); display: block; }
.tl-main { display: grid; gap: 2px; min-width: 0; }
.tl-main > a, .tl-main > b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stats-wait { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.sw-preview { color: var(--accent); opacity: .35; }
.sw-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.sw-tiles i { height: 54px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.sw-preview svg { width: 100%; height: 120px; }
.sw-text { text-align: center; }
@media (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi3 { padding: 12px 14px; } .kpi3 .v { font-size: 1.6rem; }
  .chart-card .chart-box { height: 220px; }
  .chart-card .card-title { flex-wrap: wrap; }
  .stats-wait { grid-template-columns: 1fr; }
  .sw-preview { order: 2; }
}

/* ---------- payment ---------- */
.pay-amount { font-family: var(--font-tieu-de); font-weight: 800; font-size: 2.4rem; margin: 14px 0 6px; line-height: 1.1; }
.pay-amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pay-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; margin-top: 8px; }
.qr-box { width: 220px; height: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: grid; place-items: center; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; display: block; }
.pay-rows { margin: 0; display: grid; gap: 10px; }
.pay-rows > div { display: grid; gap: 1px; }
.pay-rows dt { color: var(--muted); font-size: .84rem; }
.pay-rows dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.copy { border: 1px solid var(--line); background: var(--surface); color: var(--link); border-radius: 8px; padding: 3px 9px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; min-height: 30px; }
@media (max-width: 620px) { .pay-grid { grid-template-columns: 1fr; } .qr-box { margin: 0 auto; } }
.contact-dl { margin: 0; display: grid; gap: 10px; }
.contact-dl dt { color: var(--muted); font-size: .84rem; }
.contact-dl dd { margin: 0; font-weight: 600; }

/* password field with show / hide, inline errors */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 74px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--link); font: inherit; font-size: .84rem; font-weight: 700; padding: 6px 8px; cursor: pointer; }
.field-err { color: var(--red); font-size: .84rem; margin-top: 4px; }
input[aria-invalid=true] { border-color: var(--red); }

@media (prefers-color-scheme: dark) {
  .eve-after .eve-tag { background: rgba(15,159,110,.2); color: #7fe0b8; }
  .consent { background: rgba(255,255,255,.04); }
}

@media (max-width: 760px) { body.has-tabbar:not(.page-dashboard) .dash-head h1 { display: none; } body.has-tabbar .dash-head { margin-bottom: 14px; } }
@media (prefers-color-scheme: dark) {
  .eve-before .eve-tag, .eve-before .timeline li:nth-child(n+3) b { color: #ff9b9b; }
  .compare thead th:last-child, .pf-chip.on small, .kpi3 .d.up { color: #4ade9a; }
  .tile.hot .v { color: #ff8a8a; }
}

/* v3 part 2: Google button, "or" divider, channels, extra destinations */
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; font-family: var(--font-chu) !important; font-weight: 600 !important; font-size: .98rem !important; }
.btn-google:hover { background: #f8faff; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ch-h { display: flex; align-items: center; gap: 6px; }
.ch-note { background: var(--bg-soft); border-radius: 10px; padding: 8px 10px; }
.dests { padding: 14px; }
.dest-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dest { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; margin: 0; font-weight: 600; font-size: .9rem; cursor: pointer; }
.dest:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--link); }
.dest input { accent-color: var(--accent); }
.pf-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pf-box label:not(.check):not(.switch) { display: flex; align-items: center; gap: 6px; }

@media (prefers-color-scheme: dark) { .pf-tt-main { fill: #fff; } }

/* v3 part 2: channel picker, monthly / yearly pricing, payment confirmation */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick-grid form { margin: 0; }
.pick-tile { width: 100%; height: 100%; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; padding: 18px 12px 16px;
  border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .08s; }
.pick-tile:hover, .pick-tile:focus-visible { border-color: var(--accent); box-shadow: 0 8px 24px rgba(var(--accent-rgb), .16); outline: none; }
.pick-tile:focus-visible { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .35); }
.pick-tile:active { transform: scale(.98); }
.pick-tile.is-off { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.pick-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-soft); }
.pick-name { font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.pick-d { font-size: .8rem; color: var(--muted); line-height: 1.35; }
@media (prefers-color-scheme: dark) { .pick-ic { background: #fff; } }

.price-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; margin: 0 auto; align-items: stretch; }
.price-opt { display: grid; align-content: start; gap: 6px; position: relative; }
.price-opt .btn { margin-top: 10px; }
.price-opt.best { border: 2px solid var(--accent); box-shadow: 0 16px 40px rgba(var(--accent-rgb), .18); }
.po-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.price-feats { max-width: 820px; margin: 22px auto 0; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.plan-opt { position: relative; display: grid; gap: 4px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; margin: 0; font-weight: 500; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt:has(input:checked), .plan-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.po-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.po-price { font-family: var(--font-tieu-de); font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.po-price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.po-note { font-size: .8rem; color: var(--muted); }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-of-type { border-bottom: 0; }
@media (max-width: 639px) { .price-2 { grid-template-columns: 1fr; } .price-opt.best { order: -1; } }

/* 28/9 pricing: 2 cards side by side from 640px, gaps, yearly card raised, features in 2 columns */
.price-2 { gap: 20px; align-items: end; }
.price-opt { margin: 0; }
.price-opt.best { padding-top: 30px; padding-bottom: 30px; }
.price-feats { display: block; margin: 24px auto 0; }
.feats-2 { display: grid; grid-template-columns: 1fr; gap: 0 24px; }
@media (min-width: 640px) { .feats-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .price-2 { align-items: stretch; } }

/* 28/9: medium widths (tablets, ~810px) — calendar full width, day list below */
@media (max-width: 1024px) { .cal-layout { grid-template-columns: 1fr; } .day-panel { position: static; } .cal-month .ev-x { display: inline; } }

/* ---- cover image (18/10/2026) ---- */
.cover-box { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cover-grid { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; margin-top: 8px; }
.cover-thumb { position: relative; width: 120px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; }
.cover-thumb canvas, .cover-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cover-thumb img.hidden, .cover-thumb canvas.hidden { display: none; }
.cover-tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .62); }
.cover-side label { display: block; }
.cover-range { width: 100%; margin: 6px 0 10px; accent-color: var(--accent); height: 28px; }
.cover-own { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.cover-own label.btn { cursor: pointer; display: inline-flex; align-items: center; }
.cover-side .hint { margin: 4px 0 0; }
@media (max-width: 520px) {
  .cover-grid { grid-template-columns: 96px 1fr; gap: 12px; }
  .cover-thumb { width: 96px; }
}
