/* ZeroFee Tools family theme - Love & Relationship (rose) */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --rose: #e11d48; --rose-dark: #9f1239; --pink: #ec4899; --ink: #1e293b; --muted: #64748b;
  --line: #e2e8f0; --bg: #fdf2f4; --card: #ffffff; --ok: #16a34a;
  --warn: #d97706; --bad: #dc2626;
}
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; }

/* header */
#siteHeader { background: linear-gradient(135deg, var(--rose-dark), var(--rose) 55%, var(--pink)); color: #fff; padding: 26px 0 0; }
.header-inner { display: flex; align-items: center; }
.brand { display: flex; gap: 14px; align-items: center; }
.hub-link { color: #fff; text-decoration: none; font-size: .85rem; opacity: .85; display: block; margin-bottom: 2px; }
.hub-link:hover { opacity: 1; text-decoration: underline; }
.brand-name { font-size: 1.7rem; line-height: 1.1; }
.brand-tag { opacity: .9; font-size: .9rem; }
.free-banner { text-align: center; font-size: .82rem; padding: 10px 16px 14px; opacity: .95; }

/* layout */
#main { padding: 30px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 18px; }
.tool-ui h2 { font-size: 1.2rem; margin: 18px 0 10px; color: var(--rose-dark); }

label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 400;
}
textarea { resize: vertical; font-family: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--rose); border-color: var(--rose); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

.tool-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.btn { border: none; border-radius: 10px; padding: 11px 22px; font-size: .95rem; font-weight: 700; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--rose-dark), var(--rose)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: #ffe4e6; color: var(--rose-dark); }
.btn-ghost:hover { background: #fecdd3; }

/* occasion tabs + category pills */
.occ-tabs, .cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.occ-tab, .cat-pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: .9rem; cursor: pointer; color: var(--ink); }
.occ-tab:hover, .cat-pill:hover { border-color: var(--rose); }
.occ-tab.active, .cat-pill.active { background: var(--rose); border-color: var(--rose); color: #fff; font-weight: 600; }

/* message cards */
.msg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.msg-card { background: #fff; border: 1px solid #fecdd3; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg-text { font-size: .95rem; line-height: 1.6; flex: 1; }
.copy-btn { align-self: flex-start; border: 1px solid var(--rose); background: #fff; color: var(--rose-dark); border-radius: 8px; padding: 7px 16px; font-size: .85rem; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: var(--rose); color: #fff; }
.copy-sm { padding: 5px 12px; font-size: .78rem; flex-shrink: 0; }

/* segmented control */
.seg-row { display: flex; gap: 26px; flex-wrap: wrap; margin: 6px 0 4px; }
.seg-label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.seg { display: inline-flex; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 999px; padding: 4px; gap: 4px; }
.seg-btn { border: none; background: transparent; border-radius: 999px; padding: 8px 18px; font-size: .9rem; cursor: pointer; color: var(--ink); }
.seg-btn.active { background: var(--rose); color: #fff; font-weight: 700; }

/* letter preview */
.letter-preview { background: #fffdf7; border: 1px solid #fde68a; border-radius: 12px; padding: 26px 28px; margin-top: 18px; box-shadow: 0 4px 18px rgba(159,18,57,.07); }
.letter-preview p { margin-bottom: 1.1em; line-height: 1.75; font-size: 1.02rem; }
.letter-preview .letter-sign { text-align: right; font-style: italic; margin-bottom: 0; color: var(--rose-dark); }

/* advice tool */
.ra-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 6px; }
.ra-emoji { font-size: 2rem; }
.ra-title { font-size: 1.25rem; color: var(--rose-dark); }
.ra-intro { color: #475569; margin-bottom: 14px; }
.ra-sec-title { font-size: 1.05rem; color: var(--rose-dark); margin: 18px 0 8px; }
.ra-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ra-list.ra-openers { list-style: none; }
ol.ra-list { list-style: decimal; padding-left: 22px; }
.ra-row { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.ra-text { flex: 1; font-size: .93rem; line-height: 1.55; }
.ra-tip { background: #fff1f2; border: 1px solid #fecdd3; border-radius: 10px; padding: 12px 16px; margin-top: 18px; font-size: .92rem; color: #7f1d2e; }

/* bucket list */
.bl-top { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.progress-wrap { flex: 1; min-width: 220px; }
.progress-bar { height: 14px; background: #ffe4e6; border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--rose)); border-radius: 999px; transition: width .3s ease; }
.bl-spotlight { background: linear-gradient(135deg, #fff1f2, #fce7f3); border: 2px dashed var(--rose); border-radius: 14px; padding: 18px 20px; margin: 14px 0; text-align: center; }
.bl-star { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--rose-dark); }
.bl-spot-text { font-size: 1.2rem; font-weight: 700; margin: 6px 0; }
.bl-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.bl-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.bl-item.done { opacity: .62; }
.bl-item.done .bl-text { text-decoration: line-through; }
.bl-check { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; font-weight: 400; margin: 0; }
.bl-check input { width: 18px; height: 18px; accent-color: var(--rose); flex-shrink: 0; }
.bl-text { font-size: .93rem; }
.bl-tag { font-size: .72rem; font-weight: 700; background: #ffe4e6; color: var(--rose-dark); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

/* goal cards */
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.goal-card { background: #fff; border: 1px solid #fecdd3; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.goal-top { display: flex; justify-content: space-between; align-items: center; }
.goal-tag { font-size: .72rem; font-weight: 700; background: #ffe4e6; color: var(--rose-dark); border-radius: 999px; padding: 3px 10px; }
.fav-btn { border: none; background: none; font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 4px; }
.fav-btn.active { color: var(--rose); }
.goal-title { font-size: 1.02rem; color: var(--rose-dark); }
.goal-desc { font-size: .9rem; color: #475569; flex: 1; }
.goal-action { font-size: .85rem; background: #fff7f7; border-left: 3px solid var(--rose); padding: 8px 10px; border-radius: 0 8px 8px 0; }
.rg-week { background: linear-gradient(135deg, #fff1f2, #fce7f3); border: 1px solid #fecdd3; border-radius: 14px; padding: 18px 20px; margin: 18px 0 6px; }
.rg-week-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.rg-week-title { font-size: 1.15rem; color: var(--rose-dark); }
.rg-week-note { font-size: .85rem; font-weight: 700; color: var(--rose-dark); margin-bottom: 8px; }
.rg-fav-title { font-size: 1.2rem; color: var(--rose-dark); margin: 26px 0 4px; }

/* emoji converter */
.density-wrap label { margin-bottom: 6px; }
input[type="range"] { width: 100%; accent-color: var(--rose); margin-top: 10px; }
.te-output { background: #fff; border: 1px dashed var(--rose); border-radius: 12px; padding: 18px 20px; margin-top: 16px; min-height: 90px; font-size: 1.05rem; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }

/* faq */
.faq-sec { margin: 34px 0 40px; }
.faq-sec h2 { margin-bottom: 14px; font-size: 1.3rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--rose); font-weight: 700; }
.faq[open] summary::before { content: "\2212 "; }
.faq p { padding: 0 18px 16px; color: #475569; }

#siteFooter { border-top: 1px solid var(--line); padding: 24px 0 34px; color: var(--muted); font-size: .88rem; text-align: center; background: #fff; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #1e293b; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
