/* WIN META – Giao diện hồng neon / hồng pastel */
:root {
  --neon: #ff3fb4;
  --neon2: #ff7ad1;
  --pastel: #ffc8e8;
  --ink: #fff4fb;
  --muted: #f3bfdc;
  --bg1: #2a0620;
  --bg2: #5c0c43;
  --glass: rgba(255, 120, 200, .14);
  --glass-b: rgba(255, 160, 220, .45);
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg1); overflow: hidden;
  display: flex; flex-direction: column; height: 100dvh;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(60% 40% at 50% 35%, rgba(255, 63, 180, .35), transparent 70%),
    radial-gradient(80% 50% at 50% 100%, rgba(255, 63, 180, .35), transparent 70%),
    linear-gradient(180deg, #4a0a37 0%, var(--bg1) 45%, #3d0830 100%);
}
.bg::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 14%; height: 120px;
  background: radial-gradient(50% 30% at 50% 50%, rgba(255, 120, 210, .55), transparent 70%);
  filter: blur(8px); }
.petals span { position: absolute; top: -20px; width: 12px; height: 10px; border-radius: 12px 0 12px 0;
  background: linear-gradient(135deg, #ffd6ec, #ff8fcf); opacity: .8; animation: fall linear infinite; }
@keyframes fall { to { transform: translate(-80px, 110vh) rotate(540deg); } }

/* ---------- Thanh trên ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 6px; z-index: 5; }
.glass-btn { width: 46px; height: 46px; border-radius: 15px; border: 1.5px solid var(--glass-b);
  background: var(--glass); box-shadow: 0 0 14px rgba(255, 63, 180, .45), inset 0 0 10px rgba(255, 180, 230, .2);
  display: grid; place-items: center; backdrop-filter: blur(8px); flex: none; }
.brand { display: flex; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.brand-name { font-size: 26px; font-weight: 900; letter-spacing: 1px;
  text-shadow: 0 0 8px var(--neon), 0 0 22px var(--neon); white-space: nowrap; }
.brand-sub { font-size: 12.5px; color: var(--muted); }
.logo-inf { color: #fff; text-shadow: 0 0 6px var(--neon), 0 0 16px var(--neon); font-weight: 900; }
.mini-avatar { width: 0; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 3%;
  border: 2px solid var(--neon2); box-shadow: 0 0 12px var(--neon); opacity: 0; transition: .5s; background: #5c0c43; }
body.chatting .mini-avatar { width: 40px; opacity: 1; }
body.speaking .mini-avatar { animation: talkglow .6s ease-in-out infinite alternate; }
@keyframes talkglow { to { box-shadow: 0 0 22px 4px var(--neon); } }

/* ---------- Khu vực giữa ---------- */
main { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; scroll-behavior: smooth; }
.hero { position: relative; height: 100%; min-height: 470px; transition: all .6s cubic-bezier(.4, 0, .2, 1); transform-origin: 50% 0; }
body.chatting .hero { height: 0; min-height: 0; opacity: 0; visibility: hidden; transform: scale(.25); pointer-events: none; overflow: hidden; }
.neon-heart { position: absolute; left: 50%; top: 4%; width: min(92vw, 470px); height: auto; transform: translateX(-50%);
  stroke: #ff6fcf; stroke-width: 7; filter: drop-shadow(0 0 6px var(--neon)) drop-shadow(0 0 18px var(--neon)); opacity: .9;
  animation: heartbeat 4s ease-in-out infinite; }
@keyframes heartbeat { 50% { opacity: .65; } }
.bubble { position: absolute; right: 3%; top: 3%; max-width: 46%; z-index: 3; padding: 12px 16px; font-size: 15.5px; line-height: 1.35;
  background: rgba(120, 10, 80, .55); border: 2px solid var(--neon2); border-radius: 26px; text-align: center;
  box-shadow: 0 0 16px var(--neon), inset 0 0 12px rgba(255, 120, 210, .35); backdrop-filter: blur(6px); }
.bubble::after { content: ""; position: absolute; left: 14px; bottom: -12px; border: 10px solid transparent; border-top-color: var(--neon2); border-bottom: 0; transform: skewX(25deg); }
.stage { position: absolute; left: 50%; top: 2%; bottom: 2%; transform: translateX(-50%); display: flex; justify-content: center; z-index: 1; pointer-events: none; }
.char { position: relative; height: 100%; aspect-ratio: 354 / 1200; transform-origin: 50% 100%; }
.char img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.char-base { filter: drop-shadow(0 0 10px rgba(255, 120, 210, .55)); }
.char-head { -webkit-mask-image: linear-gradient(180deg, #000 0 13%, transparent 18.5%); mask-image: linear-gradient(180deg, #000 0 13%, transparent 18.5%);
  transform-origin: 51% 16%; }
.animate .char { animation: breathe 4.2s ease-in-out infinite; }
.animate .char-head { animation: tilt 7s ease-in-out infinite; }
body.speaking .animate .char-head { animation: tilt 7s ease-in-out infinite, nod .45s ease-in-out infinite alternate; }
@keyframes breathe { 50% { transform: scale(1.006, 1.012); } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(1.6deg); } 65% { transform: rotate(-1.1deg); } }
@keyframes nod { to { translate: 0 .35%; } }
.floor-ring { position: absolute; bottom: -1.5%; left: 50%; width: 330%; max-width: 92vw; height: 56px; transform: translateX(-50%);
  border-radius: 50%; border: 3px solid #ffd0ee; box-shadow: 0 0 18px var(--neon), inset 0 0 18px var(--neon); z-index: -1; }
.cards { position: absolute; inset: auto 0 18% 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 46%; padding: 0 14px; z-index: 2; }
.card { min-height: 104px; border-radius: var(--radius); border: 1.6px solid var(--glass-b); background: rgba(120, 10, 80, .45);
  box-shadow: 0 0 14px rgba(255, 63, 180, .5), inset 0 0 14px rgba(255, 140, 215, .25); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 14.5px; line-height: 1.2; padding: 10px 6px; transition: transform .15s; }
.card svg { width: 38px; height: 38px; stroke: #fff; filter: drop-shadow(0 0 5px var(--neon)); stroke-width: 1.8; }
.card:active { transform: scale(.96); }

/* ---------- Tin nhắn ---------- */
.chat { padding: 8px 12px 20px; display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.msg { max-width: 92%; padding: 11px 15px; border-radius: 20px; line-height: 1.55; font-size: 15.5px; word-wrap: break-word; overflow-wrap: anywhere; position: relative; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, #ff4fb9, #d61f8f); border-bottom-right-radius: 6px; box-shadow: 0 0 12px rgba(255, 63, 180, .45); }
.msg.assistant { align-self: flex-start; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 160, 220, .25); border-bottom-left-radius: 6px; }
.msg.system-note { align-self: center; background: rgba(0, 0, 0, .25); font-size: 13px; color: var(--muted); border-radius: 12px; }
.msg img.att { max-width: 220px; max-height: 220px; border-radius: 12px; display: block; margin: 4px 0; }
.msg .file-chip { display: inline-block; font-size: 12.5px; background: rgba(0, 0, 0, .2); border-radius: 8px; padding: 3px 8px; margin: 2px 4px 2px 0; }
.msg p { margin: .35em 0; } .msg ul, .msg ol { margin: .3em 0; padding-left: 1.3em; }
.msg h1, .msg h2, .msg h3 { font-size: 1.08em; margin: .6em 0 .3em; color: var(--pastel); }
.msg a { color: #ffd0ee; }
.msg code { background: rgba(0, 0, 0, .35); padding: 1px 5px; border-radius: 5px; font-family: Consolas, "Cascadia Mono", monospace; font-size: .9em; }
.msg pre { background: #1d0416; border: 1px solid rgba(255, 120, 210, .25); border-radius: 12px; padding: 34px 12px 12px; overflow-x: auto; position: relative; }
.msg pre code { background: none; padding: 0; font-size: 13px; white-space: pre; }
.msg pre .copy { position: absolute; top: 6px; right: 6px; font-size: 12px; border: 0; background: rgba(255, 63, 180, .3); border-radius: 8px; padding: 3px 9px; }
.msg pre .lang { position: absolute; top: 8px; left: 12px; font-size: 11px; color: var(--muted); }
.msg table { border-collapse: collapse; display: block; overflow-x: auto; } .msg td, .msg th { border: 1px solid rgba(255, 160, 220, .3); padding: 4px 8px; }
.msg .meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg .meta button { background: none; border: 0; color: var(--muted); padding: 2px 4px; font-size: 12px; }
.msg.thinking .dots::after { content: "●●●"; letter-spacing: 3px; animation: dots 1.2s infinite; color: var(--neon2); }
@keyframes dots { 50% { opacity: .3; } }
.status-line { font-size: 12.5px; color: var(--muted); font-style: italic; }

/* ---------- Ô nhập ---------- */
.composer-wrap { padding: 4px 10px calc(10px + var(--safe-b)); z-index: 5; }
.composer-meta { display: flex; gap: 6px; align-items: center; padding: 0 4px 6px; overflow-x: auto; }
.pill { border: 1px solid var(--glass-b); background: var(--glass); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; white-space: nowrap; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: #999; margin-left: auto; flex: none; }
.sync-dot.ok { background: #5cf2a0; box-shadow: 0 0 6px #5cf2a0; }
.attach-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 4px 6px; }
.attach-row:empty { display: none; }
.att-chip { display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .3); border: 1px solid var(--glass-b); border-radius: 12px; padding: 4px 8px; font-size: 12.5px; max-width: 220px; }
.att-chip img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.att-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-chip button { border: 0; background: none; font-size: 15px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 34px;
  background: rgba(110, 10, 75, .55); border: 1.5px solid var(--glass-b); box-shadow: 0 0 20px rgba(255, 63, 180, .5); backdrop-filter: blur(8px); }
.round-btn { width: 50px; height: 50px; border-radius: 50%; flex: none; border: 1.5px solid var(--glass-b); background: rgba(255, 120, 200, .12); display: grid; place-items: center; font-size: 20px; }
.round-btn.voice { background: radial-gradient(circle at 40% 35%, #ff7ad1, #e0148e); box-shadow: 0 0 18px var(--neon); border-color: #ffd0ee; }
.input-box { flex: 1; display: flex; align-items: flex-end; background: rgba(255, 255, 255, .08); border-radius: 26px; border: 1px solid rgba(255, 170, 225, .3); min-width: 0; }
.input-box textarea { flex: 1; resize: none; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; padding: 13px 4px 13px 16px; max-height: 160px; min-width: 0; }
.input-box textarea::placeholder { color: #f0b5d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { border: 0; background: none; width: 46px; height: 48px; display: grid; place-items: center; flex: none; }
.icon-btn.rec, .round-btn.rec { color: #fff; animation: rec 1s infinite; }
@keyframes rec { 50% { filter: drop-shadow(0 0 8px #ff2a7a); opacity: .6; } }

/* ---------- Menu trái ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: .25s; z-index: 20; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(84vw, 330px); z-index: 21; transform: translateX(-102%); transition: .28s;
  background: linear-gradient(180deg, #4a0a37, #240519); border-right: 1px solid var(--glass-b); box-shadow: 0 0 30px rgba(255, 63, 180, .4);
  display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 16px) 10px 12px; overflow-y: auto; }
.drawer.open { transform: none; }
.drawer-head { font-size: 22px; font-weight: 900; padding: 4px 10px 14px; text-shadow: 0 0 10px var(--neon); }
.drawer > button { text-align: left; border: 0; background: none; padding: 12px 12px; border-radius: 14px; font-size: 16px; }
.drawer > button:active, .drawer > button:hover { background: var(--glass); }
.drawer-sub { font-size: 12px; color: var(--muted); padding: 14px 12px 4px; text-transform: uppercase; letter-spacing: 1px; }
.recent button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: #ffe3f3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent button.active { background: var(--glass); }
.drawer-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 12px; }

/* ---------- Bảng toàn màn hình ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: linear-gradient(180deg, #3d0830, #1f0416); }
.sheet[hidden] { display: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px; border-bottom: 1px solid rgba(255, 160, 220, .2); }
.sheet-head h2 { margin: 0; font-size: 19px; flex: 1; text-shadow: 0 0 10px var(--neon); }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 14px calc(30px + var(--safe-b)); max-width: 860px; width: 100%; margin: 0 auto; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 4px; }
.tabs button { border: 1px solid var(--glass-b); background: none; border-radius: 999px; padding: 7px 13px; white-space: nowrap; font-size: 14px; }
.tabs button.on { background: var(--neon); border-color: var(--neon); box-shadow: 0 0 10px var(--neon); }
.box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 160, 220, .22); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.box h4 { margin: 0 0 6px; font-size: 15.5px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12.5px; }
.badge { font-size: 11.5px; border-radius: 999px; padding: 2px 8px; background: rgba(255, 255, 255, .12); }
.badge.ok { background: rgba(70, 220, 140, .25); color: #b8ffd8; } .badge.warn { background: rgba(255, 190, 60, .25); color: #ffe3a8; } .badge.err { background: rgba(255, 70, 100, .25); color: #ffc0cc; }
.btn { border: 1px solid var(--glass-b); background: var(--glass); border-radius: 12px; padding: 9px 14px; font-size: 14.5px; }
.btn.primary { background: linear-gradient(135deg, #ff4fb9, #d61f8f); border-color: #ffb3e1; box-shadow: 0 0 12px rgba(255, 63, 180, .5); font-weight: 600; }
.btn.danger { border-color: #ff7b9c; color: #ffc0cc; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 10px; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea.field {
  width: 100%; background: rgba(0, 0, 0, .3); color: var(--ink); border: 1px solid var(--glass-b); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; outline: none; }
textarea.field { min-height: 90px; resize: vertical; }
label.fld { display: block; margin: 10px 0 4px; font-size: 13.5px; color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.switch input { width: 46px; height: 26px; accent-color: var(--neon); }
.list-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px solid rgba(255, 160, 220, .12); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.steps .step { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255, 160, 220, .2); }
.steps .ico { width: 24px; text-align: center; flex: none; }
.steps details { margin-top: 4px; } .steps pre { white-space: pre-wrap; font-size: 12.5px; background: rgba(0, 0, 0, .3); padding: 8px; border-radius: 8px; max-height: 300px; overflow: auto; }
.qr { background: #fff; padding: 10px; border-radius: 12px; width: 220px; }
mark { background: rgba(255, 63, 180, .5); color: #fff; border-radius: 3px; }

/* ---------- Trò chuyện trực tiếp ---------- */
.live { position: fixed; inset: 0; z-index: 40; background: radial-gradient(60% 50% at 50% 40%, #6a0f4d, #1f0416); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: calc(24px + var(--safe-b)); }
.live[hidden] { display: none; }
.live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.live.cam video { display: block; }
.live-char { position: absolute; top: 4%; bottom: 28%; left: 50%; transform: translateX(-50%); transition: .4s; }
.live-char img { height: 100%; filter: drop-shadow(0 0 16px rgba(255, 63, 180, .8)); animation: breathe 4.2s ease-in-out infinite; transform-origin: 50% 100%; }
.live.cam .live-char { top: auto; bottom: 26%; left: auto; right: 10px; transform: none; height: 30%; }
.live.speaking .live-char img { animation: breathe 4.2s infinite, talk .5s ease-in-out infinite alternate; }
@keyframes talk { to { filter: drop-shadow(0 0 30px #ff3fb4); } }
.live-status { position: relative; font-size: 17px; font-weight: 600; text-shadow: 0 0 10px var(--neon); margin-bottom: 6px; }
.live-text { position: relative; max-width: 92%; max-height: 22vh; overflow-y: auto; text-align: center; font-size: 15px; background: rgba(0, 0, 0, .35); border-radius: 14px; padding: 8px 12px; margin-bottom: 14px; }
.live-text:empty { display: none; }
.live-controls { position: relative; display: flex; gap: 14px; }
.live-controls .round-btn { width: 58px; height: 58px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.live-controls .round-btn.off { opacity: .45; }
.live-controls .end { background: #e0245e; }

/* ---------- Hộp thoại & thông báo ---------- */
.dialog-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; }
.dialog-scrim[hidden] { display: none; }
.dialog { width: min(480px, 100%); max-height: 86vh; overflow-y: auto; background: linear-gradient(180deg, #55103f, #2a0620); border: 1px solid var(--glass-b); border-radius: 20px; padding: 18px; box-shadow: 0 0 30px rgba(255, 63, 180, .45); }
.dialog h3 { margin: 0 0 10px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%); z-index: 60; background: rgba(30, 4, 22, .95); border: 1px solid var(--neon2); border-radius: 14px; padding: 10px 16px; max-width: 90vw; box-shadow: 0 0 16px rgba(255, 63, 180, .5); font-size: 14.5px; }

@media (min-width: 900px) {
  .cards { inset: auto 0 22% 0; gap: 18px 360px; max-width: 900px; margin: 0 auto; }
  .bubble { right: calc(50% - 400px); max-width: 300px; }
}
@media (max-height: 640px) { .cards { bottom: 10%; } .card { min-height: 84px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
body.chatting .petals { opacity: .3; }

/* ---------- 3.0: trang trí theo ảnh mẫu (hoa anh đào, sóng ánh sáng, tim bay, logo) ---------- */
.sakura { position: absolute; width: 150px; height: 140px; filter: drop-shadow(0 0 6px rgba(255, 150, 210, .7)); opacity: .97; animation: sway 6s ease-in-out infinite; transform-origin: 50% 50%; }
.s-tl { left: -30px; top: 96px; transform: rotate(8deg); }
.s-r { right: -34px; top: 47%; transform: scaleX(-1) rotate(-6deg); animation-delay: -2s; }
.s-bl { left: -34px; bottom: 118px; width: 128px; transform: rotate(-4deg); opacity: .9; animation-delay: -4s; }
@keyframes sway { 50% { translate: 0 3px; } }
.waves { position: absolute; left: -5%; width: 110%; bottom: 17%; height: 120px; fill: none; stroke: #ff7fd0; stroke-width: 1.4;
  filter: drop-shadow(0 0 4px var(--neon)) drop-shadow(0 0 10px var(--neon)); opacity: .75; }
.waves path:nth-child(2) { stroke: #ffc1e6; stroke-width: .9; opacity: .8; }
.waves path:nth-child(3) { stroke-width: .7; opacity: .6; }
.waves path { animation: wave 9s ease-in-out infinite alternate; }
@keyframes wave { to { transform: translateX(-12px); } }
.float-heart { position: absolute; right: 37%; top: 4%; font-size: 30px; z-index: 3; filter: drop-shadow(0 0 8px var(--neon)); animation: floaty 3.2s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) scale(1.06); } }
.logo-w { width: 46px; height: 30px; vertical-align: -5px; stroke: #fff; stroke-width: 3.2; filter: drop-shadow(0 0 4px var(--neon)) drop-shadow(0 0 10px var(--neon)); }
.logo-w .w { display: none; }
.brand-sub { font-size: 13px; color: #ffe1f2; letter-spacing: .2px; }
.bubble { border-radius: 50% / 46%; padding: 16px 22px; }
.floor-ring.r2 { width: 220%; height: 34px; bottom: 0; border-width: 2px; opacity: .7; }
body.chatting .sakura, body.chatting .waves { opacity: .25; }
@media (prefers-reduced-motion: reduce) { .sakura, .waves path, .float-heart { animation: none; } }
/* nguồn tham khảo trên Internet & thẻ hành động trên máy tính */
.sources { margin-top: 8px; font-size: 13px; border-top: 1px dashed rgba(255, 170, 220, .4); padding-top: 6px; }
.sources a { color: #ffd3ee; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-card { border: 1.5px solid var(--glass-b); background: rgba(120, 10, 80, .45); border-radius: 16px; padding: 10px 12px; margin: 6px 0; }
.action-card .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.file-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 170, 220, .15); font-size: 14px; }
.file-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.update-banner { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 64px); transform: translateX(-50%); z-index: 50; max-width: 92vw;
  background: rgba(90, 8, 60, .95); border: 1.5px solid var(--neon2); border-radius: 16px; padding: 10px 14px; box-shadow: 0 0 18px var(--neon); font-size: 14px; display: flex; gap: 10px; align-items: center; }

/* 3.0 tinh chỉnh theo ảnh mẫu: nền hồng sáng hơn, tim dày, bong bóng không che mặt, thẻ gọn */
.bg { background:
    radial-gradient(70% 45% at 50% 32%, rgba(255, 80, 190, .55), transparent 72%),
    radial-gradient(90% 45% at 50% 92%, rgba(255, 70, 185, .55), transparent 70%),
    linear-gradient(180deg, #8a1763 0%, #6d0f4e 45%, #7a135a 100%); }
.neon-heart { stroke: #ff8ad8; stroke-width: 10; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px var(--neon)) drop-shadow(0 0 26px var(--neon)); opacity: .95; }
.bubble { right: 2%; top: 6%; max-width: 41%; font-size: 14.5px; padding: 14px 18px; background: rgba(150, 20, 100, .6); }
.float-heart { right: 40%; top: 2%; }
.card { min-height: 92px; border: 2px solid #ff9ee0; background: rgba(160, 20, 110, .42);
  box-shadow: 0 0 10px var(--neon), 0 0 22px rgba(255, 63, 180, .55), inset 0 0 16px rgba(255, 150, 220, .35); }
.card svg { width: 34px; height: 34px; }
.floor-ring { border-color: #fff; box-shadow: 0 0 10px #fff, 0 0 24px var(--neon), 0 0 40px var(--neon), inset 0 0 18px var(--neon); }
.float-heart { right: 26%; top: 0; font-size: 26px; }
.s-r { top: 31%; }
@media (min-width: 900px) { .bubble { right: calc(50% - 420px); max-width: 280px; top: 12%; } .float-heart { right: calc(50% - 250px); top: 6%; } .s-r { top: 34%; } }
.box a { color: #ffc9ea; }
