/* ZeroFee Tools - Love & Relationship family theme */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pink: #ec4899; --rose: #f43f5e; --purple: #a855f7; --deep: #9d174d;
  --ink: #1e293b; --muted: #64748b; --line: #f3d1de; --bg: #fff7fa; --card: #ffffff;
  --ok: #16a34a; --gold: #d97706;
}
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
#main { padding: 30px 0 10px; }
.app-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 22px 0; box-shadow: 0 8px 30px rgba(236,72,153,.08); }
.btn { border: none; border-radius: 12px; padding: 12px 22px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: transform .08s ease, filter .15s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--rose)); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: #fdf2f8; color: var(--deep); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fce7f3; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.mode-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-size: .92rem; cursor: pointer; color: var(--ink); font-weight: 600; }
.mode-tab.active { background: linear-gradient(135deg, var(--pink), var(--rose)); border-color: transparent; color: #fff; }
.deck { perspective: 800px; }
.qcard { background: linear-gradient(160deg, #fff 0%, #fdf2f8 100%); border: 2px solid var(--line); border-radius: 20px; padding: 40px 28px; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 10px 34px rgba(236,72,153,.12); animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.96); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.qcard .qmode { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: 12px; }
.qcard .qtext { font-size: 1.35rem; font-weight: 700; line-height: 1.45; color: var(--ink); }
.qcard .qcount { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.deck-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.progress { height: 8px; background: #fce7f3; border-radius: 999px; overflow: hidden; margin-top: 16px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--pink), var(--rose)); width: 0%; transition: width .3s ease; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field textarea, .field select { display: block; width: 100%; padding: 10px 12px; font-size: .95rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--pink); border-color: var(--pink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } .qcard .qtext { font-size: 1.15rem; } .app-card { padding: 18px; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1e293b; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 999; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.scoreboard { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 16px 0; }
.score-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .92rem; }
.score-pill b { color: var(--deep); }
.verdict { background: #fdf2f8; border: 1px dashed var(--pink); border-radius: 12px; padding: 14px 18px; margin-top: 14px; font-weight: 600; color: var(--deep); text-align: center; }
.hidden { display: none !important; }
.list-row { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: .92rem; }
.list-row .grow { flex: 1; }
.mini-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: .82rem; cursor: pointer; font-weight: 600; color: var(--deep); }
.mini-btn:hover { background: #fdf2f8; }

.sim-banner { background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid #d97706; border-radius: 12px; padding: 12px 18px; margin: 18px 0; font-size: .95rem; }
.chat-grid { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .chat-grid { grid-template-columns: 1fr; } }
.sender-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.phone { width: 340px; max-width: 100%; margin: 0 auto; background: #0b141a; border-radius: 38px; border: 10px solid #1f2937; overflow: hidden; box-shadow: 0 14px 44px rgba(2,6,23,.25); }
.ph-head { background: #075e54; color: #fff; padding: 14px 14px 12px; display: flex; align-items: center; gap: 8px; }
.ph-back { font-size: 1.2rem; opacity: .9; }
.ph-avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: none; }
#phAvatarA { background: #f472b6; } #phAvatarB { background: #60a5fa; }
.ph-names { display: flex; flex-direction: column; line-height: 1.25; }
.ph-names small { color: #d1fae5; font-size: .72rem; }
.ph-msgs { padding: 14px 10px; min-height: 320px; max-height: 440px; overflow-y: auto; background-color: #0b141a; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.5px); background-size: 20px 20px; }
.msg-row { display: flex; margin-bottom: 8px; align-items: flex-end; gap: 4px; }
.msg-row.b { justify-content: flex-end; }
.bubble { max-width: 82%; padding: 8px 10px 5px; border-radius: 12px; font-size: .92rem; line-height: 1.45; color: #111b21; position: relative; word-wrap: break-word; }
.msg-row.a .bubble { background: #ffffff; border-top-left-radius: 3px; }
.msg-row.b .bubble { background: #d9fdd3; border-top-right-radius: 3px; }
.bubble .meta { display: block; text-align: right; font-size: .68rem; color: #667781; margin-top: 2px; }
.bubble .meta .ticks { color: #53bdeb; font-weight: 700; }
.msg-del { border: none; background: rgba(255,255,255,.85); color: #dc2626; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; line-height: 1; cursor: pointer; flex: none; }
.ph-foot { background: #f0f2f5; color: #8696a0; text-align: center; font-size: .75rem; padding: 8px; font-weight: 600; }
