/* ═════════ جعبه‌ابزار عاشقانه ═════════ */

/* ───── عمومی ───── */
.field { width: 100%; margin-top: 12px; padding: 13px 16px; border-radius: 14px; font: inherit; font-size: 15px;
  color: var(--text); background: rgba(0, 0, 0, .22); border: 1px solid var(--border); outline: none;
  transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: rgba(181, 169, 207, .6); }
.field:focus { border-color: color-mix(in srgb, var(--c1) 60%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 15%, transparent); }
.code-field { text-align: center; letter-spacing: 6px; font-weight: 800; font-size: 20px; font-family: ui-monospace, monospace; }

.btn-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }
.primary-btn:disabled { opacity: .55; cursor: default; transform: none; }

.ghost-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 14px;
  font-weight: 600; font-size: 14px; background: var(--glass-strong); border: 1px solid var(--border); }
.ghost-btn.danger { color: #ff8a8a; border-color: rgba(255, 107, 107, .35); }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--muted); background: var(--glass-strong); border: 1px solid var(--border); }

.form-error { color: #ff9b9b; font-size: 13px; margin-top: 10px; }
.form-error.center, .hint.center { text-align: center; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 8px; }
.test-note { margin-top: 14px; font-size: 12px; line-height: 1.9; color: #f5c96a; padding: 10px 12px; border-radius: 12px;
  background: rgba(245, 201, 106, .08); border: 1px dashed rgba(245, 201, 106, .3); }

/* ───── کارت اتصال ───── */
.connect-card { margin-top: 16px; padding: 20px; border-radius: 22px; background: var(--glass);
  border: 1px solid color-mix(in srgb, var(--c1) 30%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: cardIn .5s both; }
.connect-head { display: flex; gap: 14px; align-items: center; }
.connect-head h3 { font-size: 16px; font-weight: 800; }
.connect-head p { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.7; }
.connect-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }

.connect-card.waiting { text-align: center; }
.connect-label { color: var(--muted); font-size: 14px; }
.code-box { display: flex; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.code-box span { width: 34px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  font: 800 20px ui-monospace, monospace; background: rgba(0, 0, 0, .25);
  border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); }
.waiting-dots { margin-top: 14px; font-size: 13px; color: var(--muted); }
.waiting-dots span { animation: blink 1.4s infinite both; }
.waiting-dots span:nth-child(2) { animation-delay: .2s; }
.waiting-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }

.connect-card.paired { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.pair { display: flex; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px;
  border: 2px solid var(--bg); position: relative; }
.avatar.me { background: linear-gradient(135deg, var(--rose-1), var(--rose-2)); color: #2a0f1d; }
.avatar.partner { background: linear-gradient(135deg, var(--violet-1), var(--violet-2)); color: #160f2c; margin-right: -6px; }
.avatar.partner.online::after { content: ''; position: absolute; bottom: 0; left: 0; width: 11px; height: 11px;
  border-radius: 50%; background: #34d399; border: 2px solid var(--bg); }
.pair-heart { color: var(--c1); margin: 0 -2px 0 -4px; z-index: 1; animation: beat 1.8s infinite; display: inline-flex; }
.pair-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pair-text strong { font-size: 15px; }
.pair-text span { font-size: 12px; color: var(--muted); }
.pair-text span.is-online { color: #34d399; }
.leave-confirm { display: flex; gap: 6px; }
.leave-confirm .ghost-btn { padding: 8px 12px; font-size: 13px; }

/* ───── شبکه‌ی ابزارها ───── */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 22px;
  color: inherit; text-decoration: none; background: var(--glass); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s; animation: cardIn .5s both; }
.tool-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c1) 45%, transparent); }
.tool-card:active { transform: scale(.97); }
.tool-card.locked { opacity: .6; }
.tool-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px;
  color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--c1) 70%, transparent); }
.tool-title { font-weight: 800; font-size: 15px; }
.tool-desc { font-size: 12px; color: var(--muted); line-height: 1.7; }
.live-badge { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #ff8fab; }
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff4f7b;
  box-shadow: 0 0 0 0 rgba(255, 79, 123, .7); animation: livePing 1.6s infinite; }
@keyframes livePing { 70% { box-shadow: 0 0 0 7px rgba(255, 79, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 123, 0); } }

/* ───── صفحه‌ی ابزار ───── */
.tool-header { display: flex; align-items: center; gap: 12px; margin: 14px 0 20px; }
.back-btn.static { position: static; flex-shrink: 0; }
.tool-header-text { flex: 1; min-width: 0; }
.tool-header-text h1 { font-size: 22px; font-weight: 800; }
.tool-header-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); }
.presence { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.presence i { width: 8px; height: 8px; border-radius: 50%; background: #6b6385; }
.presence.on { color: #34d399; }
.presence.on i { background: #34d399; box-shadow: 0 0 10px #34d399; }
.gate .hint { text-align: center; }

/* ───── ضربان احساسی ───── */
.pulse-tool { display: flex; flex-direction: column; align-items: center; }
.pulse-stage { position: relative; width: 260px; height: 240px; display: grid; place-items: center; }
.pulse-glow { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--c1);
  filter: blur(70px); opacity: .45; }
.pulse-beat { position: relative; color: var(--c1); display: grid; place-items: center;
  filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--c1) 60%, transparent));
  animation: lubdub .7s ease-out both; }
.pulse-beat svg { position: relative; z-index: 1; }
.pulse-ring { position: absolute; inset: 0; margin: auto; width: 150px; height: 150px; border-radius: 50%;
  border: 2px solid var(--c1); animation: ringOut 1.1s ease-out both; }
@keyframes lubdub { 0% { transform: scale(1); } 14% { transform: scale(1.14); } 28% { transform: scale(1.02); }
  42% { transform: scale(1.09); } 70%, 100% { transform: scale(1); } }
@keyframes ringOut { from { transform: scale(.7); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.pulse-stage.is-offline .pulse-beat { color: #6b5a86; filter: none; }
.pulse-stage.is-offline .pulse-glow, .pulse-stage.is-offline .pulse-ring { opacity: .12; }

.pulse-readout { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.pulse-readout strong { font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pulse-readout span { color: var(--muted); font-size: 14px; }
.pulse-caption { margin-top: 12px; font-size: 18px; font-weight: 700; text-align: center; }
.emoji { font-size: 22px; }
.pulse-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.pulse-status i { width: 8px; height: 8px; border-radius: 50%; background: #6b6385; }
.pulse-status.on { color: #ff8fab; font-weight: 700; }
.pulse-status.on i { background: #ff4f7b; animation: livePing 1.6s infinite; }

.mood-panel { width: 100%; margin-top: 22px; padding: 18px; }
.mood-panel h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 16px;
  font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(0, 0, 0, .18); border: 1px solid var(--border);
  transition: transform .2s, background .2s, border-color .2s, color .2s; }
.mood:active { transform: scale(.94); }
.mood-emoji { font-size: 26px; }
.mood.active { color: var(--text); background: color-mix(in srgb, var(--c1) 18%, transparent);
  border-color: color-mix(in srgb, var(--c1) 55%, transparent); }

.toggles { display: flex; gap: 10px; margin-top: 16px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; font-size: 13px;
  font-weight: 600; color: var(--muted); background: var(--glass); border: 1px solid var(--border); transition: all .2s; }
.toggle.on { color: var(--c1); border-color: color-mix(in srgb, var(--c1) 50%, transparent);
  background: color-mix(in srgb, var(--c1) 12%, transparent); }

/* ───── لمس هم‌زمان ───── */
.touch-area { position: relative; height: min(62vh, 520px); border-radius: 28px; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c1) 14%, transparent), transparent 70%), rgba(0, 0, 0, .25);
  border: 1px solid var(--border); transition: box-shadow .4s, border-color .4s; }
.touch-grid { position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 22px 22px; }
.touch-heart { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--c1) 40%, transparent);
  pointer-events: none; transition: color .4s, transform .4s; }
.touch-area.partner .touch-heart, .touch-area.both .touch-heart { color: color-mix(in srgb, var(--c1) 70%, transparent); }
.touch-area.match { border-color: var(--c1); box-shadow: 0 0 60px -10px var(--c1), inset 0 0 80px -20px var(--c1); }
.touch-area.match .touch-heart { color: var(--c1); transform: scale(1.5); }
.touch-area.match .touch-heart svg { animation: lubdub .75s infinite; filter: drop-shadow(0 0 24px var(--c1)); }

.touch-dot { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  pointer-events: none; display: grid; place-items: center; }
.touch-dot.me { background: radial-gradient(circle, rgba(255, 107, 154, .9) 0 30%, rgba(255, 107, 154, .25) 55%, transparent 72%); }
.touch-dot.partner { transition: left .12s linear, top .12s linear;
  background: radial-gradient(circle, rgba(167, 139, 250, .95) 0 30%, rgba(167, 139, 250, .25) 55%, transparent 72%);
  animation: dotIn .3s both; }
.touch-dot.partner b { font-size: 14px; color: #160f2c; }
.touch-dot.partner::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(167, 139, 250, .6);
  animation: ringOut 1.4s infinite; }
@keyframes dotIn { from { transform: scale(0); } to { transform: scale(1); } }
.touch-status { margin-top: 16px; text-align: center; font-weight: 700; font-size: 17px; color: var(--muted); transition: color .3s; }
.touch-status.partner, .touch-status.match { color: var(--c1); }
.legend { display: flex; justify-content: center; gap: 18px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend i.me { background: #ff6b9a; }
.legend i.partner { background: #a78bfa; }

/* ───── نخ قرمز ───── */
.thread-tool { display: flex; flex-direction: column; align-items: center; }
.thread-dial { position: relative; width: min(78vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .05), rgba(0, 0, 0, .25) 70%);
  border: 1px solid var(--border); box-shadow: inset 0 0 40px rgba(0, 0, 0, .4); }
.dial-ring { position: absolute; inset: 0; transition: transform .3s ease-out; }
.dial-ring i { position: absolute; top: 6px; left: 50%; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px;
  background: rgba(255, 255, 255, .18); transform-origin: 1px calc(min(78vw, 300px) / 2 - 6px); }
.dial-n { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 14px; color: var(--c1); }
.thread-line { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  overflow: visible; }
.thread-line > path { fill: none; stroke: #ff3d6e; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 4 5; animation: threadFlow 1.2s linear infinite; filter: drop-shadow(0 0 6px #ff3d6e); }
@keyframes threadFlow { to { stroke-dashoffset: -18; } }
.thread-heart { fill: #ff3d6e; filter: drop-shadow(0 0 8px #ff3d6e); }
.dial-center { position: absolute; inset: 30%; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.dial-center strong { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; }
.dial-center span { font-size: 12px; }
.thread-caption { margin-top: 18px; font-weight: 700; font-size: 16px; text-align: center; }
.compass-row { margin-top: 10px; }
.share-panel { width: 100%; margin-top: 22px; padding: 18px; display: flex; align-items: center; gap: 16px; }
.share-text { flex: 1; }
.share-text h3 { font-size: 15px; font-weight: 800; }
.share-text p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.7; }

.switch { position: relative; width: 52px; height: 30px; flex-shrink: 0; border-radius: 99px;
  background: rgba(255, 255, 255, .12); transition: background .25s; }
.switch span { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch.on { background: linear-gradient(135deg, var(--c1), var(--c2)); }
.switch.on span { transform: translateX(-22px); }

/* ───── گل ما ───── */
.plant-tool { display: flex; flex-direction: column; align-items: center; }
.plant-stage { position: relative; width: 100%; max-width: 360px; height: 300px; border-radius: 28px; overflow: hidden;
  display: grid; place-items: end center; border: 1px solid var(--border); }
.plant-sky { position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(45, 212, 167, .18), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .2)); }
.plant-svg { position: relative; width: 230px; height: 276px; }
.plant-body { transform-origin: 100px 192px; transform-box: view-box; transition: transform .8s ease, filter .8s; }
.plant-svg.happy .plant-body, .plant-svg.new .plant-body { animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }
.plant-svg.wilted .plant-body { filter: saturate(.25) brightness(.8); }
.plant-svg.thirsty .plant-body { filter: saturate(.65); }
.stem { fill: none; stroke: #34d399; stroke-width: 5; stroke-linecap: round; }
.leaf { fill: #2dd4a7; stroke: #10b981; stroke-width: 1; }
.seed { fill: #a07850; }
.bud { fill: #ff8fab; }
.sepal { fill: #10b981; }
.petal { fill: #ff8fab; stroke: #ff6b9a; stroke-width: 1; }
.flower-center { fill: #f5c96a; }
.flower { animation: bloom 1s cubic-bezier(.3, 1.4, .5, 1) both; transform-box: fill-box; }
@keyframes bloom { from { scale: 0; } to { scale: 1; } }
.pot { fill: #c2724f; }
.pot-rim { fill: #d98a63; }
.soil { fill: #5b3a29; }
.plant-shadow { fill: rgba(0, 0, 0, .35); }
.sparkles path { fill: #f5c96a; animation: twinkle 2s infinite; transform-box: fill-box; transform-origin: center; }
.sparkles path:nth-child(2) { animation-delay: .6s; }
.sparkles path:nth-child(3) { animation-delay: 1.2s; }
@keyframes twinkle { 0%, 100% { opacity: .2; scale: .6; } 50% { opacity: 1; scale: 1; } }

.drops { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; color: #60a5fa; z-index: 2; }
.drops svg { animation: dropFall 1s ease-in both; }
.drops svg:nth-child(2) { animation-delay: .15s; }
.drops svg:nth-child(3) { animation-delay: .3s; }
@keyframes dropFall { from { transform: translateY(-20px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(120px); opacity: 0; } }

.plant-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 16px; }
.plant-meta div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--border); text-align: center; }
.plant-meta strong { font-size: 18px; font-weight: 800; }
.plant-meta span { font-size: 11px; color: var(--muted); }
.water-status { display: flex; gap: 10px; margin-top: 16px; }
.water-status span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; font-size: 13px;
  color: var(--muted); background: var(--glass); border: 1px solid var(--border); }
.water-status span.done { color: #60a5fa; border-color: rgba(96, 165, 250, .45); background: rgba(96, 165, 250, .1); }
.plant-message { margin-top: 14px; text-align: center; font-size: 14px; line-height: 1.9; color: var(--muted); max-width: 320px; }
.water-btn { margin-top: 16px; padding: 14px 34px; font-size: 16px; }

/* ───── واکی‌تاکی ───── */
.walkie { display: flex; flex-direction: column; }
.walkie-partner { align-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 99px;
  font-size: 13px; color: var(--muted); background: var(--glass); border: 1px solid var(--border); transition: all .3s; }
.walkie-partner.talking { color: var(--c1); font-weight: 700; border-color: color-mix(in srgb, var(--c1) 50%, transparent);
  background: color-mix(in srgb, var(--c1) 12%, transparent); }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; }
.wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.walkie-pending { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 16px;
  border-radius: 14px; font-weight: 700; font-size: 13px; color: #1a1026;
  background: linear-gradient(135deg, var(--c1), var(--c2)); animation: pop .4s both; }

.voice-list { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 6px; min-height: 120px; }
.voice { display: flex; align-items: center; gap: 10px; max-width: 82%; padding: 9px 12px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--border); animation: cardIn .35s both; text-align: right; }
.voice.mine { align-self: flex-start; border-bottom-right-radius: 6px;
  background: color-mix(in srgb, var(--c1) 16%, transparent); border-color: color-mix(in srgb, var(--c1) 35%, transparent); }
.voice.theirs { align-self: flex-end; border-bottom-left-radius: 6px; }
.voice-play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  color: #1a1026; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.voice-wave { display: flex; align-items: center; gap: 2px; height: 22px; width: 84px; }
.voice-wave i { flex: 1; border-radius: 2px; background: currentColor; opacity: .55; }
.voice.playing .voice-wave i { animation: wave .8s ease-in-out infinite; opacity: 1; color: var(--c1); }
.voice-dur { font-size: 13px; font-weight: 700; }
.voice small { font-size: 11px; color: var(--muted); white-space: nowrap; }

.talk-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.talk-btn { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: 0 20px 44px -12px color-mix(in srgb, var(--c1) 80%, transparent), inset 0 -6px 14px rgba(0, 0, 0, .15);
  transition: transform .2s; }
.talk-btn svg { position: relative; z-index: 1; }
.talk-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c1) 40%, transparent); }
.talk-progress { position: absolute; inset: -10px; border-radius: 50%; opacity: 0;
  background: conic-gradient(var(--c1) var(--p), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 69px, #000 70px); mask: radial-gradient(circle, transparent 69px, #000 70px); }
.talk-btn.recording { transform: scale(1.08); }
.talk-btn.recording .talk-ring { animation: ringOut 1.2s infinite; border-color: var(--c1); }
.talk-btn.recording .talk-progress { opacity: 1; }
.talk-btn.sending { opacity: .7; }
.talk-label { margin-top: 18px; font-weight: 700; color: var(--muted); }

@media (max-width: 380px) {
  .tool-grid { grid-template-columns: 1fr; }
  .code-box span { width: 30px; height: 40px; font-size: 17px; }
}

/* ═════════ بازی‌ها ═════════ */
.group-title { display: flex; align-items: center; gap: 8px; margin: 22px 4px 0; font-size: 15px; font-weight: 800; color: var(--muted); }
.tool-card.is-game { background: linear-gradient(160deg, color-mix(in srgb, var(--violet-1) 14%, transparent), var(--glass)); }
.tool-card.is-game .tool-icon { background: linear-gradient(135deg, var(--violet-1), var(--c1)); }

.game { display: flex; flex-direction: column; }
.primary-btn.wide { justify-content: center; width: 100%; padding: 14px; font-size: 16px; }

.game-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-score div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--border); }
.game-score strong { font-size: 20px; font-weight: 800; }
.game-score span { font-size: 11px; color: var(--muted); }

.prompt-card { position: relative; margin-top: 16px; padding: 30px 22px 28px; border-radius: 26px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 26%, transparent), color-mix(in srgb, var(--violet-1) 16%, transparent));
  border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); animation: cardIn .45s both; transition: box-shadow .4s, border-color .4s; }
.prompt-card h2 { font-size: clamp(21px, 5.5vw, 26px); font-weight: 800; line-height: 1.6; }
.prompt-label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.round-badge { position: absolute; top: 12px; left: 14px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  background: rgba(0, 0, 0, .22); color: var(--muted); }
.prompt-card.is-match { border-color: var(--c1); box-shadow: 0 0 50px -12px var(--c1); }
.prompt-card.is-miss { opacity: .85; }

.hearts-burst { position: absolute; inset: 0; pointer-events: none; }
.hearts-burst span { position: absolute; left: 50%; top: 60%; color: var(--c1);
  animation: heartFly 1.6s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes heartFly {
  from { transform: translate(-50%, 0) scale(.3); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translate(calc(-50% + (var(--i) - 4.5) * 34px), -150px) scale(1.2) rotate(calc((var(--i) - 4.5) * 9deg)); opacity: 0; }
}

.answer-form { margin-top: 6px; }
.answer-form .field { font-size: 17px; padding: 15px 18px; margin-bottom: 12px; }
.partner-ready { margin-top: 14px; font-size: 13px; font-weight: 700; color: #34d399; }
.partner-ready.center, .waiting-dots.center { text-align: center; }
.waiting-card { margin-top: 16px; padding: 18px; border-radius: 20px; text-align: center; background: var(--glass); border: 1px solid var(--border); }
.waiting-card strong { color: var(--c1); }

.reveal { margin-top: 16px; animation: cardIn .45s both; }
.answers { display: flex; align-items: stretch; gap: 10px; }
.answer { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--border); text-align: center; animation: flipIn .55s both; }
.answer.theirs { animation-delay: .15s; }
@keyframes flipIn { from { transform: rotateY(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.answer small { font-size: 12px; color: var(--muted); }
.answer strong { font-size: 18px; font-weight: 800; word-break: break-word; }
.answer.mine { border-color: rgba(255, 107, 154, .4); }
.answer.theirs { border-color: rgba(167, 139, 250, .4); }
.answer-vs { align-self: center; font-size: 26px; font-weight: 800; color: var(--muted); }
.result { margin: 16px 0 14px; text-align: center; font-size: 18px; font-weight: 800; color: var(--muted); }
.result.good { color: var(--c1); }

/* چقدر منو می‌شناسی */
.versus { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--border); }
.player { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; opacity: .8; }
.player.guessing { opacity: 1; }
.player strong { font-size: 26px; font-weight: 800; line-height: 1.2; }
.player small { font-size: 12px; color: var(--muted); }
.player .avatar { width: 40px; height: 40px; font-size: 16px; margin: 0; }
.vs { font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .2); }

.role-banner { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 10px 14px;
  border-radius: 14px; font-size: 14px; font-weight: 700; color: var(--c1);
  background: color-mix(in srgb, var(--c1) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--c1) 40%, transparent); }

.options { display: grid; gap: 10px; margin-top: 14px; }
.option { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; text-align: right;
  font-size: 15px; font-weight: 600; background: var(--glass); border: 1px solid var(--border);
  transition: transform .2s, background .25s, border-color .25s, opacity .25s; animation: cardIn .4s both; }
.option:nth-child(2) { animation-delay: .05s; } .option:nth-child(3) { animation-delay: .1s; } .option:nth-child(4) { animation-delay: .15s; }
.option:not(:disabled):active { transform: scale(.97); }
.option:disabled { cursor: default; }
.option-letter { width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--muted); background: rgba(0, 0, 0, .22); }
.option em { margin-right: auto; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.option.picked { border-color: var(--c1); background: color-mix(in srgb, var(--c1) 16%, transparent); }
.option.picked .option-letter { color: #1a1026; background: var(--c1); }
.option.truth { border-color: #34d399; background: rgba(52, 211, 153, .14); }
.option.truth .option-letter { color: #062a1e; background: #34d399; }
.option.truth em { color: #34d399; background: rgba(52, 211, 153, .15); }
.option.wrong { border-color: rgba(255, 107, 107, .5); background: rgba(255, 107, 107, .1); }
.option.wrong em { color: #ff9b9b; background: rgba(255, 107, 107, .15); }
.option.dim { opacity: .45; }

/* ═════════ بخش مالی ═════════ */

.label { display: block; margin: 16px 2px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.label + .field, .label + .money-input .field { margin-top: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: rgba(0, 0, 0, .18); border: 1px solid var(--border); transition: all .2s; }
.chip:active { transform: scale(.95); }
.chip.active { color: var(--text); border-color: color-mix(in srgb, var(--c1) 60%, transparent);
  background: color-mix(in srgb, var(--c1) 18%, transparent); }

.money-input { position: relative; }
.money-input .field { padding-left: 64px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.money-unit { position: absolute; left: 16px; top: 22px; font-size: 13px; color: var(--muted); pointer-events: none; }
.label + .money-input .money-unit { top: 22px; }
.money-words { display: block; margin: 6px 4px 0; font-size: 12px; color: var(--c1); }

.inline-field { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.field.small { width: 90px; margin: 0; padding: 9px 12px; text-align: center; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; padding: 5px; border-radius: 16px;
  background: rgba(0, 0, 0, .2); border: 1px solid var(--border); }
.seg button { padding: 10px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); transition: all .2s; }
.seg button.active { color: #10241d; background: linear-gradient(135deg, var(--c1), var(--c2)); }

.bar { height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .08); margin-top: 14px; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c2), var(--c1));
  transition: width .8s cubic-bezier(.2, .8, .2, 1); margin-right: 0; margin-left: auto; }

.delta { margin-top: 8px; font-size: 13px; font-weight: 700; }
.delta.up { color: #34d399; }
.delta.down { color: #ff8a8a; }

.mini-btn { width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  color: var(--muted); background: rgba(0, 0, 0, .18); border: 1px solid var(--border); font-size: 11px; font-weight: 700; }
.mini-btn.danger { width: auto; padding: 0 10px; color: #ff8a8a; border-color: rgba(255, 107, 107, .4); }

/* ───── شیت (پنجره‌ی پایین) ───── */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(8, 5, 16, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .2s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 8px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0; background: #1d1531; border: 1px solid var(--border); border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); animation: sheetUp .35s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-handle { width: 42px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h3 { font-size: 18px; font-weight: 800; }
.sheet-submit { margin-top: 22px; }
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 28px; border-bottom: 1px solid var(--border); }
}

/* ───── راه‌اندازی هدف ───── */
.setup-intro { text-align: center; margin: 6px 0 18px; }
.setup-intro h2 { font-size: 22px; font-weight: 800; }
.setup-intro p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 6px; border-radius: 20px;
  font-size: 13px; font-weight: 700; color: var(--muted); background: var(--glass); border: 1px solid var(--border); transition: all .2s; }
.type-emoji { font-size: 30px; }
.type-card.active { color: var(--text); border-color: var(--c1); background: color-mix(in srgb, var(--c1) 14%, transparent);
  box-shadow: 0 10px 24px -12px var(--c1); }
.setup-panel { margin-top: 14px; padding: 4px 18px 20px; }
.setup-sub { display: flex; align-items: center; gap: 8px; padding-top: 16px; color: var(--c1); font-weight: 700; font-size: 14px; }
.setup-preview { margin-top: 14px; padding: 10px 14px; border-radius: 14px; font-size: 14px; text-align: center;
  background: color-mix(in srgb, var(--c1) 10%, transparent); }
.setup-preview b { color: var(--c1); }
.goal-setup > .primary-btn { margin-top: 18px; }

/* ───── داشبورد ───── */
.goal-card { position: relative; padding: 22px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(155deg, color-mix(in srgb, var(--c1) 26%, transparent), color-mix(in srgb, var(--c2) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); animation: cardIn .5s both; }
.goal-card::after { content: ''; position: absolute; width: 220px; height: 220px; top: -100px; left: -80px; border-radius: 50%;
  background: var(--c1); filter: blur(80px); opacity: .3; pointer-events: none; }
.goal-card.is-done { border-color: #f5c96a; box-shadow: 0 0 50px -15px #f5c96a; }
.goal-settings { position: absolute; top: 14px; left: 14px; z-index: 1; }
.goal-top { display: flex; align-items: center; gap: 18px; }
.goal-ring { position: relative; width: 118px; height: 118px; flex-shrink: 0; }
.fin-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.fin-ring circle { fill: none; stroke-width: 11; }
.fin-ring .ring-value { stroke: var(--c1); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.goal-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.goal-emoji { font-size: 26px; line-height: 1.2; }
.goal-ring-label strong { font-size: 18px; font-weight: 800; }
.goal-info { min-width: 0; }
.goal-info small { font-size: 12px; color: var(--muted); }
.goal-info h2 { font-size: 21px; font-weight: 800; line-height: 1.5; }
.goal-amounts { font-size: 13px; color: var(--muted); margin-top: 2px; }
.goal-amounts b { font-size: 17px; color: var(--text); }
.pace { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pace.good { color: #34d399; background: rgba(52, 211, 153, .12); }
.pace.late { color: #ffb37a; background: rgba(255, 179, 122, .12); }
.pace.done { color: #f5c96a; background: rgba(245, 201, 106, .15); }
.goal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.goal-stats div { padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, .2); display: flex; flex-direction: column; gap: 2px; }
.goal-stats strong { font-size: 18px; font-weight: 800; }
.goal-stats span { font-size: 11px; color: var(--muted); }

.price-check { margin-top: 14px; padding: 16px; border-radius: 22px; display: grid; grid-template-columns: auto 1fr; gap: 12px;
  background: rgba(245, 201, 106, .08); border: 1px solid rgba(245, 201, 106, .35); animation: pop .5s both; }
.price-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #f5c96a;
  background: rgba(245, 201, 106, .15); animation: ring 2.5s ease-in-out infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 95% { transform: rotate(6deg); } }
.price-text strong { display: block; font-size: 14px; line-height: 1.7; }
.price-text small { font-size: 12px; color: var(--muted); }
.price-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.price-actions button { flex: 1; justify-content: center; }

.daily-card { margin-top: 14px; padding: 18px; }
.daily-row { display: flex; justify-content: space-between; gap: 12px; }
.daily-row > div { display: flex; flex-direction: column; gap: 2px; }
.daily-row small { font-size: 12px; color: var(--muted); }
.daily-row strong { font-size: 19px; font-weight: 800; }
.daily-row span { font-size: 12px; color: var(--muted); }
.today { align-items: flex-end; text-align: left; }
.today strong { color: var(--c1); }

.fin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.action-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; border-radius: 22px;
  text-align: right; background: var(--glass); border: 1px solid var(--border); transition: transform .2s, border-color .2s; }
.action-card:active { transform: scale(.97); }
.action-card:hover { border-color: color-mix(in srgb, var(--c1) 45%, transparent); }
.action-card strong { font-size: 15px; font-weight: 800; margin-top: 8px; }
.action-card small { font-size: 12px; color: var(--muted); line-height: 1.6; }
.action-icon { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: #10241d;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--c1) 70%, transparent); }
.action-card.deposit .action-icon { background: linear-gradient(135deg, #ff9ac1, #ffb37a); color: #2a0f1d; }
.skipped-note { margin-top: 10px; text-align: center; font-size: 13px; color: var(--c2); }

.holders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.holder { padding: 14px; border-radius: 22px; background: var(--glass); border: 1px solid var(--border); min-width: 0; }
.holder.me { border-color: rgba(255, 107, 154, .3); }
.holder.partner { border-color: rgba(167, 139, 250, .3); }
.holder-head { display: flex; align-items: center; gap: 10px; }
.holder-head .avatar { width: 36px; height: 36px; font-size: 15px; margin: 0; }
.holder-head small { font-size: 11px; color: var(--muted); display: block; }
.holder-head strong { font-size: 15px; font-weight: 800; }
.holdings { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.holdings li { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .18); font-size: 12px; }
.hold-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hold-name em { font-style: normal; font-size: 11px; color: var(--muted); }
.holdings b { font-size: 13px; white-space: nowrap; }
.holdings .mini-btn { width: 26px; height: 26px; border-radius: 8px; }

.convert-card { margin-top: 16px; padding: 18px; transition: border-color .3s, box-shadow .3s; }
.convert-card.ready { border-color: color-mix(in srgb, var(--c1) 60%, transparent); box-shadow: 0 0 40px -18px var(--c1); }
.convert-head { display: flex; align-items: center; gap: 12px; }
.convert-head h3 { font-size: 15px; font-weight: 800; }
.convert-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.convert-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--c2);
  background: color-mix(in srgb, var(--c2) 15%, transparent); }
.convert-card.ready .convert-icon { animation: beat 1.6s infinite; }
.convert-text { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.convert-card.ready .convert-text { color: var(--text); font-weight: 600; }

.history { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.h-item { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: var(--glass);
  border: 1px solid var(--border); animation: cardIn .35s both; }
.h-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  color: var(--c1); background: color-mix(in srgb, var(--c1) 12%, transparent); }
.kind-convert .h-icon { color: var(--c2); background: color-mix(in srgb, var(--c2) 12%, transparent); }
.kind-revalue .h-icon { color: #a78bfa; background: rgba(167, 139, 250, .12); }
.kind-withdraw .h-icon { color: #ff8a8a; background: rgba(255, 107, 107, .12); }
.h-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.h-text strong { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-text small { font-size: 11px; color: var(--muted); }
.h-amount { font-size: 13px; font-weight: 800; white-space: nowrap; }
.h-amount.up { color: #34d399; }
.h-amount.down { color: #ff8a8a; }
.h-amount.neutral { color: var(--c2); }
.wide-ghost { width: 100%; justify-content: center; }

.row-btn { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; padding: 13px 16px;
  border-radius: 14px; font-weight: 700; background: rgba(0, 0, 0, .22); border: 1px solid var(--border); }
.row-btn-action { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c1); }
.cost-history { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.cost-history li { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px dashed var(--border); }
.cost-history b { color: var(--text); }
.danger-zone { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; }
.danger-zone p { font-size: 13px; color: #ff9b9b; margin-bottom: 4px; }
.danger-zone .btn-row { justify-content: center; }

@media (max-width: 380px) {
  .holders, .fin-actions { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═════════ روزانه ═════════ */

.night-banner { width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 14px 16px; border-radius: 18px;
  font-weight: 700; font-size: 14px; color: #fde7b0; text-align: right;
  background: linear-gradient(135deg, rgba(96, 165, 250, .18), rgba(167, 139, 250, .18)); border: 1px solid rgba(167, 139, 250, .35);
  animation: pop .5s both; }
.night-banner span { flex: 1; }

.daily-page .tabs { margin-top: 0; }
.day-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.day-switch button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 16px;
  color: var(--muted); background: var(--glass); border: 1px solid var(--border); transition: all .25s; }
.day-switch strong { font-size: 15px; }
.day-switch small { font-size: 11px; }
.day-switch button.active { color: var(--text); border-color: color-mix(in srgb, var(--c1) 60%, transparent);
  background: color-mix(in srgb, var(--c1) 14%, transparent); }
.day-switch button.active small { color: var(--c1); }

.plan { margin-top: 14px; }

/* افزودن کار */
.add-task { padding: 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--border); }
.add-task .field { margin-top: 0; }
.add-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.add-label { flex: 1; font-size: 12px; color: var(--muted); }
.add-row .primary-btn { padding: 9px 14px; }

.stepper { display: inline-flex; align-items: center; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--border); }
.stepper button { width: 30px; height: 32px; font-size: 17px; font-weight: 700; color: var(--c1); }
.stepper button:active { background: rgba(255, 255, 255, .08); }
.stepper span { min-width: 44px; text-align: center; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

.plan-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.plan-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--border); animation: cardIn .3s both; }
.plan-title { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.plan-title em, .task-title em { font-style: normal; font-size: 10px; font-weight: 700; margin-right: 6px; padding: 2px 7px;
  border-radius: 99px; color: #60a5fa; background: rgba(96, 165, 250, .14); }

.weight-sum { margin-top: 10px; }
.weight-sum .bar { margin-top: 0; height: 8px; }
.weight-sum.ok .bar span { background: #34d399; }
.weight-sum.over .bar span { background: #ff8a8a; }
.weight-sum-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.weight-sum.ok .weight-sum-row span { color: #34d399; }
.weight-sum.over .weight-sum-row span { color: #ff8a8a; }

.link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c1); padding: 6px 2px; }
.plan > .link-btn { margin-top: 10px; }
.submit-plan { margin-top: 16px; }
.submitted { margin-top: 16px; text-align: center; }
.submitted .primary-btn { margin-top: 12px; }
.submitted-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; font-weight: 800; font-size: 14px;
  color: #34d399; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35); }

/* خلاصه و حلقه */
.plan-summary { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 22px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 18%, transparent), var(--glass)); border: 1px solid var(--border); }
.plan-summary strong { display: block; font-size: 16px; font-weight: 800; }
.plan-summary span { font-size: 12px; color: var(--muted); }
.day-ring { position: relative; flex-shrink: 0; display: grid; place-items: center; }
.day-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.day-ring circle { fill: none; stroke-width: 8; }
.day-ring .ring-value { stroke: var(--c1); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.day-ring strong { position: relative; font-size: 18px; font-weight: 800; }

/* لیست کارها */
.task-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.task { border-radius: 18px; background: var(--glass); border: 1px solid var(--border); overflow: hidden;
  transition: border-color .25s, background .25s; animation: cardIn .3s both; }
.task.open { border-color: color-mix(in srgb, var(--c1) 50%, transparent); }
.task-main { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-align: right; }
.task-title { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.task.done .task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(52, 211, 153, .7); }
.task.cancelled .task-title { color: var(--muted); text-decoration: line-through; opacity: .7; }
.task.moved .task-title { color: var(--muted); }
.weight-badge { font-size: 12px; font-weight: 800; color: var(--c1); padding: 3px 8px; border-radius: 99px;
  background: color-mix(in srgb, var(--c1) 12%, transparent); flex-shrink: 0; }

.status-dot { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, .22); transition: all .25s; }
.status-dot.good { border-color: #34d399; background: #34d399; color: #062a1e; animation: pop .35s both; }
.status-dot.bad { border-color: #ff8a8a; color: #ff8a8a; }
.status-dot.info { border-color: #60a5fa; color: #60a5fa; }
.status-dot.warn { border-color: #f5c96a; color: #f5c96a; }

.status-chip { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px; }
.status-chip.good { color: #34d399; background: rgba(52, 211, 153, .12); }
.status-chip.bad { color: #ff8a8a; background: rgba(255, 107, 107, .12); }
.status-chip.info { color: #60a5fa; background: rgba(96, 165, 250, .12); }
.status-chip.warn { color: #f5c96a; background: rgba(245, 201, 106, .12); }

.task-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; animation: fadeIn .2s both; }
.react { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 12px; font-size: 12px; font-weight: 700;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--border); color: var(--muted); }
.react:active { transform: scale(.95); }
.react.done { color: #34d399; }
.react.cancelled { color: #ff8a8a; }
.react.moved { color: #60a5fa; }
.react.delayed, .react.followup { color: #f5c96a; }
.react.on { border-color: currentColor; background: rgba(255, 255, 255, .06); }
.react.undo { color: var(--text); }

/* قفل برنامه‌ی پارتنر */
.locked { margin-top: 14px; padding: 26px 20px; border-radius: 24px; text-align: center; background: var(--glass);
  border: 1.5px dashed color-mix(in srgb, var(--c1) 35%, transparent); }
.locked h3 { font-size: 16px; font-weight: 800; line-height: 1.7; }
.locked .primary-btn { margin-top: 14px; }
.locked-icon { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center;
  color: var(--c1); background: color-mix(in srgb, var(--c1) 14%, transparent); }
.ghost-lines { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px auto 4px; max-width: 260px; }
.ghost-lines span { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); filter: blur(1px); }

/* نمودار */
.chart-card { margin-top: 16px; padding: 16px 14px 12px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px; }
.chart-head h3 { font-size: 15px; font-weight: 800; }
.chart-head span { font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: auto; margin-top: 8px; direction: ltr; overflow: visible; }
.chart .grid { stroke: rgba(255, 255, 255, .08); stroke-dasharray: 3 4; }
.chart .axis { font-size: 9px; fill: var(--muted); font-family: inherit; }
.chart .axis.today { fill: var(--c1); font-weight: 700; }
.chart .c-bar { fill: color-mix(in srgb, var(--c1) 55%, transparent); transform-box: fill-box; transform-origin: bottom;
  animation: barUp .6s cubic-bezier(.2, .8, .2, 1) both; }
.chart .c-bar.today { fill: var(--c1); }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart .bar-empty { fill: rgba(255, 255, 255, .15); }
.chart .bar-value { font-size: 11px; font-weight: 800; fill: var(--text); font-family: inherit; }
.chart .dot { stroke: var(--bg); stroke-width: 1.5; }
.chart .dot.me { fill: #ff6b9a; }
.chart .dot.partner { fill: #a78bfa; }
.chart-legend i.avg { background: var(--c1); border-radius: 3px; }

/* ── افزودن همیشگی بالا + ویرایش درجا ── */
.add-task { padding: 6px 8px; transition: border-color .2s, box-shadow .2s; }
.add-task.active { padding: 8px 10px 12px; border-color: color-mix(in srgb, var(--c1) 45%, transparent);
  box-shadow: 0 6px 24px -12px color-mix(in srgb, var(--c1) 60%, transparent); }
.add-line { display: flex; align-items: center; gap: 8px; }
.add-plus { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; }
.add-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: inherit;
  font: inherit; font-size: 14px; padding: 10px 2px; }
.add-input::placeholder { color: var(--muted); }
.add-label { font-size: 12px; color: var(--muted); margin-left: auto; }
.add-task .add-row { justify-content: flex-end; padding: 0 2px; }
.add-task .chips { margin-top: 10px; padding: 0 2px; }
.empty-plan { text-align: center; color: var(--muted); font-size: 13px; padding: 22px 8px; }
.plan-summary { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--border); }
.plan-summary strong { display: block; font-size: 15px; }
.plan-summary span { font-size: 12px; color: var(--muted); }

.task-row { display: flex; align-items: center; }
.task-row .task-main { flex: 1; min-width: 0; }
.task-edit { flex: none; width: 34px; height: 34px; margin-left: 8px; display: grid; place-items: center; border-radius: 11px;
  color: var(--muted); opacity: .75; transition: background .15s, color .15s, opacity .15s; }
.task-edit:hover, .task-edit:focus-visible { opacity: 1; color: var(--text); background: rgba(255, 255, 255, .08); }
.plan-bullet { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c1) 70%, transparent); }
.comment-count { font-size: 11px; color: var(--muted); }

.task.editing { border-color: color-mix(in srgb, var(--c1) 55%, transparent); animation: fadeIn .18s both; }
.task-editor { padding: 10px 12px 12px; }
.task-editor .field { margin: 0; }
.editor-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.editor-actions { display: flex; align-items: center; gap: 6px; }
.editor-actions .primary-btn, .editor-actions .ghost-btn { padding: 8px 12px; font-size: 13px; }
.ghost-btn.danger { color: #fb7185; border-color: rgba(251, 113, 133, .4); }
.danger-icon { color: #fb7185; }
.submit-plan { margin-top: 14px; }

/* ═════════ پیشرفت رابطه ═════════ */
.relation-page { --pos: #34d399; --neg: #ff7a8a; --unique: #f5c96a; }

.week-card { padding: 20px; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(155deg, color-mix(in srgb, var(--c1) 26%, transparent), color-mix(in srgb, var(--c2) 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); animation: cardIn .5s both; }
.week-card::after { content: ''; position: absolute; width: 200px; height: 200px; top: -90px; left: -70px; border-radius: 50%;
  background: var(--c1); filter: blur(80px); opacity: .3; pointer-events: none; }
.week-main { display: flex; align-items: center; gap: 16px; }
.week-face { font-size: 58px; line-height: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); animation: pop .6s both; }
.week-main small { display: block; font-size: 12px; color: var(--muted); }
.week-main strong { display: block; font-size: 40px; font-weight: 800; line-height: 1.2; }
.week-main strong.pos { color: var(--pos); }
.week-main strong.neg { color: var(--neg); }
.trend { display: block; font-size: 12px; color: var(--muted); }
.trend.up { color: var(--pos); }
.trend.down { color: var(--neg); }
.week-people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.week-people div { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(0, 0, 0, .2); }
.week-people .avatar { width: 30px; height: 30px; font-size: 13px; margin: 0; }
.week-people small { flex: 1; font-size: 12px; color: var(--muted); }
.week-people b { font-size: 17px; }
.week-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.week-counts span { font-size: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(0, 0, 0, .2); }

.quick-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.quick-note { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 20px;
  font-size: 13px; font-weight: 700; background: var(--glass); border: 1px solid var(--border); transition: transform .2s; }
.quick-note span { font-size: 28px; }
.quick-note:active { transform: scale(.95); }
.quick-note.happy { border-color: rgba(52, 211, 153, .35); }
.quick-note.unique { border-color: rgba(245, 201, 106, .35); }
.quick-note.sad { border-color: rgba(255, 122, 138, .35); }
.quick-note::after { content: '+ یادداشت'; font-size: 10px; font-weight: 600; color: var(--muted); }

.chart-seg { margin-top: 10px; grid-template-columns: repeat(3, 1fr); }
.score-chart .zone-pos { fill: rgba(52, 211, 153, .04); }
.score-chart .zone-neg { fill: rgba(255, 122, 138, .05); }
.score-chart .zero { stroke: rgba(255, 255, 255, .3); }
.score-chart .s-bar { transform-box: fill-box; animation: barGrow .6s cubic-bezier(.2, .8, .2, 1) both; }
.score-chart .s-bar.pos { fill: color-mix(in srgb, var(--c1) 70%, transparent); transform-origin: bottom; }
.score-chart .s-bar.neg { fill: rgba(255, 122, 138, .7); transform-origin: top; }
.score-chart .s-bar.current.pos { fill: var(--c1); }
.score-chart .s-bar.current.neg { fill: var(--neg); }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.score-chart .bar-value { font-size: 10px; }

/* یادداشت‌ها */
.notes { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.note-card { padding: 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--border);
  border-right: 4px solid var(--pos); animation: cardIn .35s both; }
.note-card.unique { border-right-color: var(--unique); }
.note-card.sad { border-right-color: var(--neg); }
.note-card.is-new { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c1) 55%, transparent), 0 10px 30px -15px var(--c1); }
.note-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.note-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: var(--pos); background: rgba(52, 211, 153, .12); }
.note-chip.unique { color: var(--unique); background: rgba(245, 201, 106, .12); }
.note-chip.sad { color: var(--neg); background: rgba(255, 122, 138, .12); }
.note-score { font-size: 13px; font-weight: 800; color: var(--muted); }
.note-score.pos { color: var(--pos); }
.note-score.neg { color: var(--neg); }
.new-badge { margin-right: auto; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; color: #160f2c; background: var(--c1); }
.note-body { margin-top: 10px; font-size: 15px; line-height: 1.95; white-space: pre-wrap; word-break: break-word; }
.note-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.note-meta .avatar { width: 26px; height: 26px; font-size: 12px; margin: 0; border-width: 1px; }
.note-meta > span:nth-child(2) { flex: 1; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.reaction { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 99px; color: var(--muted);
  background: rgba(0, 0, 0, .2); border: 1px solid var(--border); transition: all .2s; }
.reaction:active { transform: scale(.94); }
.reaction.on { color: var(--text); border-color: var(--c1); background: color-mix(in srgb, var(--c1) 18%, transparent); }
.their-reaction { margin-top: 12px; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--c1) 10%, transparent); }
.empty-notes { margin-top: 12px; padding: 28px 20px; border-radius: 22px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.9;
  border: 1.5px dashed color-mix(in srgb, var(--c1) 30%, transparent); }
.empty-notes span { font-size: 40px; display: block; margin-bottom: 6px; }

/* شیت نوشتن */
.note-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.note-type { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 16px;
  font-size: 13px; font-weight: 700; color: var(--muted); background: rgba(0, 0, 0, .2); border: 1px solid var(--border); transition: all .2s; }
.note-type span { font-size: 26px; }
.note-type.active.happy { color: var(--text); border-color: var(--pos); background: rgba(52, 211, 153, .12); }
.note-type.active.unique { color: var(--text); border-color: var(--unique); background: rgba(245, 201, 106, .12); }
.note-type.active.sad { color: var(--text); border-color: var(--neg); background: rgba(255, 122, 138, .12); }
.note-text { resize: vertical; min-height: 100px; line-height: 1.9; font-family: inherit; }

.score-pick { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.score-face { font-size: 46px; line-height: 1; transition: transform .2s; }
.score-pick strong { font-size: 32px; font-weight: 800; color: var(--muted); min-width: 60px; text-align: center; }
.score-pick.pos strong { color: var(--pos); }
.score-pick.neg strong { color: var(--neg); }
.score-range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; margin-top: 12px; border-radius: 99px; outline: none;
  background: linear-gradient(90deg, #ff7a8a, #6b6385 50%, #34d399); }
.score-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff;
  border: 4px solid var(--c1); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); cursor: pointer; }
.score-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--c1); cursor: pointer; }
.score-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--muted); }

/* ═════════ تنظیمات، نصب، کامنت‌ها ═════════ */

.gear-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--muted);
  background: var(--glass-strong); border: 1px solid var(--border); transition: color .2s, transform .4s; }
.gear-btn:hover, .gear-btn.active { color: var(--text); }
.gear-btn:active { transform: rotate(60deg); }

.set-panel { padding: 6px 16px 16px; margin-top: 10px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: none; }
.set-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  color: var(--c1); background: color-mix(in srgb, var(--c1) 14%, transparent); }
.set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-text strong { font-size: 15px; }
.set-text small { font-size: 12px; color: var(--muted); line-height: 1.6; }
.set-row .ghost-btn { padding: 8px 14px; font-size: 13px; }
.set-code { padding: 12px 0 4px; text-align: center; }
.set-code .hint { margin-top: 12px; }
.inline-save { display: flex; gap: 8px; align-items: center; }
.inline-save .field { margin-top: 8px; }
.inline-save .primary-btn { margin-top: 8px; padding: 13px 18px; }
.about { margin-top: 26px; text-align: center; font-size: 12px; color: var(--muted); }

.install-sheet { text-align: center; }
.install-sheet .link-btn { margin-top: 14px; }
.steps { text-align: right; margin: 14px 0 0; padding: 0 22px 0 0; line-height: 2.2; font-size: 14px; }
.steps svg { vertical-align: middle; }
.notify-hero { width: 72px; height: 72px; margin: 4px auto 14px; border-radius: 24px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); animation: ring 2.5s ease-in-out infinite; }

/* کامنت‌ها */
.comments { list-style: none; margin: 0; padding: 0 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.comment { display: flex; align-items: flex-start; gap: 8px; }
.comment .avatar { width: 26px; height: 26px; font-size: 11px; margin: 0; border-width: 1px; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; padding: 7px 11px; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.comment.theirs .comment-body { background: rgba(167, 139, 250, .13); }
.comment.mine .comment-body { background: rgba(255, 107, 154, .1); }
.comment-body small { display: block; font-size: 10px; color: var(--muted); }
.comment-body p { font-size: 13px; line-height: 1.8; word-break: break-word; }
.comment .mini-btn { width: 24px; height: 24px; border-radius: 8px; }
.comment-input { display: flex; gap: 8px; align-items: center; padding: 0 12px 12px; }
.comment-input .field { margin-top: 0; padding: 10px 14px; font-size: 14px; }
.comment-input .primary-btn { padding: 10px 12px; }
.comment-count { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.react.comment { color: #a78bfa; }
.plan-row { flex-wrap: wrap; }
.plan-row-comments { flex-basis: 100%; }
.plan-row-comments .comments { padding: 4px 0 0; }

.day-comments { margin-top: 16px; padding: 14px 0 4px; border-radius: 20px; background: var(--glass); border: 1px solid var(--border); }
.day-comments h4 { display: flex; align-items: center; gap: 6px; padding: 0 14px 10px; font-size: 13px; font-weight: 800; color: var(--muted); }

/* QR */
.qr-wrap { width: fit-content; margin: 12px auto; padding: 10px; border-radius: 20px; background: #fff;
  box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--c1) 70%, transparent), 0 0 0 4px color-mix(in srgb, var(--c1) 30%, transparent); }
.qr { display: block; border-radius: 8px; }
.scan-box { position: relative; margin-top: 6px; border-radius: 22px; overflow: hidden; aspect-ratio: 1; background: #000; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border-radius: 20px; border: 3px solid var(--c1);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); animation: pulseFrame 1.6s ease-in-out infinite; }
@keyframes pulseFrame { 50% { transform: scale(1.04); } }
.scan-fallback { text-align: center; padding: 6px 0 4px; }
.scan-fallback h3 { font-size: 16px; font-weight: 800; }

/* لوگو */
.brand-logo { display: block; height: 58px; width: auto; filter: drop-shadow(0 4px 14px rgba(255, 107, 154, .25)); }
.loader-logo { width: 150px; height: auto; }
.loader-overlay.quick .loader-logo { animation: hlPop .35s .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.about-logo { display: block; width: 120px; height: auto; margin: 0 auto 4px; opacity: .9; }

/* ═════════ لودینگ «نوار قلب» ═════════ */

.heart-line { width: 100%; height: 100%; overflow: visible; }
.heart-line path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hl-base { stroke: rgba(255, 255, 255, .08); stroke-width: 2.5; }
.hl-trace { stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(255, 107, 154, .8)); }

/* لودینگ واقعی: یه تکه‌ی درخشان مدام روی خط حرکت می‌کنه */
.heart-line.loop .hl-trace { stroke-dasharray: 26 200; animation: hlLoop 1.5s linear infinite; }
@keyframes hlLoop { from { stroke-dashoffset: 26; } to { stroke-dashoffset: -100; } }

/* حالت سریع: کل خط یک بار با سرعت کشیده می‌شه */
.heart-line.quick .hl-trace { stroke-dasharray: 100 100; animation: hlDraw .7s cubic-bezier(.5, 0, .2, 1) both; }
@keyframes hlDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.heart-line.small { width: 46px; height: 16px; }
.heart-line.small .hl-base { stroke: currentColor; opacity: .2; stroke-width: 6; }
.heart-line.small .hl-trace { stroke-width: 7; filter: none; }

.loader-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(40, 24, 66, .92), rgba(18, 13, 31, .97));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: loaderIn .2s ease both; }
.loader-overlay.quick { pointer-events: none; animation: loaderQuick 1s ease both; }
@keyframes loaderIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes loaderQuick { 0% { opacity: 0; } 12% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }

.loader-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader-line { position: relative; width: min(72vw, 280px); height: 76px; }
.loader-heart { position: absolute; left: 100%; top: 50%; margin: -13px 0 0 10px; color: #ff6b9a;
  filter: drop-shadow(0 0 10px rgba(255, 107, 154, .9)); display: inline-flex; }
.loader-overlay.loop .loader-heart { animation: beat 1.5s ease-in-out infinite; }
.loader-overlay.quick .loader-heart { animation: hlPop .3s .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes hlPop { from { transform: scale(0); } to { transform: scale(1); } }
.loader-label { font-size: 15px; font-weight: 700; color: var(--muted, #b5a9cf); letter-spacing: .3px; }
.loader-overlay.quick .loader-label { font-size: 17px; color: var(--text, #f6f1ff); }
.loader-slow { text-align: center; font-size: 13px; color: var(--muted, #b5a9cf); }
.loader-slow .ghost-btn { margin-top: 10px; }

.mini-loader { display: inline-flex; align-items: center; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .heart-line .hl-trace { stroke-dasharray: none !important; }
}

/* ───────── پایه ───────── */
:root {
  --bg: #120d1f;
  --bg-2: #1b1430;
  --text: #f6f1ff;
  --muted: #b5a9cf;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 24px;

  /* رنگ‌های هر بخش */
  --rose-1: #ff6b9a;   --rose-2: #ff9a8b;
  --emerald-1: #2dd4a7; --emerald-2: #f5c96a;
  --amber-1: #ffb347;  --amber-2: #ff7e5f;
  --violet-1: #a78bfa; --violet-2: #60a5fa;
}

.theme-rose    { --c1: var(--rose-1);    --c2: var(--rose-2); }
.theme-emerald { --c1: var(--emerald-1); --c2: var(--emerald-2); }
.theme-amber   { --c1: var(--amber-1);   --c2: var(--amber-2); }
.theme-violet  { --c1: var(--violet-1);  --c2: var(--violet-2); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

/* ───────── پس‌زمینه ───────── */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45;
  animation: float 18s ease-in-out infinite alternate; }
.b1 { width: 420px; height: 420px; background: #ff6b9a; top: -140px; right: -120px; }
.b2 { width: 360px; height: 360px; background: #7c5cff; top: 30%; left: -160px; animation-delay: -6s; }
.b3 { width: 300px; height: 300px; background: #ffb347; bottom: -120px; right: 10%; opacity: 0.25; animation-delay: -12s; }

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 60px) scale(1.15); }
}

/* ───────── چیدمان کلی ───────── */
.shell { max-width: 960px; margin: 0 auto; min-height: 100vh;
  padding: 0 20px calc(110px + env(safe-area-inset-bottom)); }

.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 0 8px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, #ff6b9a, #a78bfa);
  box-shadow: 0 6px 20px rgba(255, 107, 154, 0.35); }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.2px; }

.topbar-actions { display: flex; gap: 8px; align-items: center; }
.offline-pill { font-size: 12px; padding: 5px 12px; border-radius: 99px;
  background: rgba(255, 107, 107, 0.15); color: #ff9b9b; border: 1px solid rgba(255, 107, 107, 0.3); }
.install-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 99px; background: var(--glass-strong); border: 1px solid var(--border); }

.content { animation: pageIn 0.45s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ───────── صفحه‌ی اصلی ───────── */
.hero { padding: 28px 4px 26px; }
.hero-date { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.hero-title { font-size: clamp(30px, 7vw, 44px); font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 10px; }
.hero-heart { color: #ff6b9a; display: inline-flex; animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.hero-sub { color: var(--muted); font-size: 16px; margin-top: 10px; line-height: 1.8; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card { position: relative; overflow: hidden; text-align: right;
  display: flex; flex-direction: column; gap: 18px; min-height: 200px; padding: 22px;
  border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
  animation: cardIn .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--c1), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; }

.card-glow { position: absolute; width: 180px; height: 180px; border-radius: 50%;
  top: -70px; left: -60px; background: var(--c1); filter: blur(60px); opacity: .28; transition: opacity .3s; }

.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 40px -12px color-mix(in srgb, var(--c1) 45%, transparent); outline: none; }
.card:hover .card-glow { opacity: .5; }
.card:active { transform: scale(.98); }

.card-icon { position: relative; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--c1) 70%, transparent); }

.card-body { position: relative; display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.card-title { font-size: 20px; font-weight: 800; line-height: 1.5; }
.card-sub { font-size: 13px; color: var(--muted); line-height: 1.7; }

.card-arrow { position: absolute; top: 22px; left: 22px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--glass-strong); color: var(--muted);
  transition: transform .3s, color .3s, background .3s; }
.card:hover .card-arrow { transform: translateX(-4px); color: #fff; background: color-mix(in srgb, var(--c1) 40%, transparent); }

/* ───────── صفحه‌ی هر بخش ───────── */
.section-hero { position: relative; text-align: center; padding: 34px 20px 30px; margin: 12px 0 18px;
  border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 32%, transparent), color-mix(in srgb, var(--c2) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--c1) 30%, transparent); }
.section-hero::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: var(--c1); filter: blur(90px); opacity: .35; top: -120px; left: 50%; transform: translateX(-50%); z-index: -1; }
.section-hero h1 { font-size: clamp(26px, 6vw, 36px); font-weight: 800; margin-top: 16px; }
.section-hero p { color: var(--muted); margin-top: 8px; font-size: 15px; }

.section-hero-icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 26px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 16px 36px -8px color-mix(in srgb, var(--c1) 75%, transparent);
  animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }

.back-btn { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center; background: rgba(0, 0, 0, .2); border: 1px solid var(--border); }

.panel { border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.overview { display: flex; align-items: center; gap: 22px; padding: 22px; }
.overview-text h2 { font-size: 18px; font-weight: 700; }
.overview-text p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 6px 0 14px; }

.ring { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: rgba(255, 255, 255, .08); }
.ring-value { stroke: var(--c1); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label strong { font-size: 24px; font-weight: 800; }
.ring-label span { font-size: 12px; color: var(--muted); }

.primary-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: 14px; color: #1a1026;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--c1) 80%, transparent);
  transition: transform .2s, box-shadow .2s; }
.primary-btn:hover { transform: translateY(-2px); }
.primary-btn:active { transform: scale(.97); }

.features { display: grid; gap: 12px; margin-top: 16px; }
.feature { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--border);
  animation: cardIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.feature h3 { font-size: 15px; font-weight: 700; }
.feature p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.feature-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center;
  color: var(--c1); background: color-mix(in srgb, var(--c1) 14%, transparent); }
.soon { margin-right: auto; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  color: var(--c1); border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent); white-space: nowrap; }

/* ───────── تب‌ها ───────── */
.tabs { position: relative; display: grid; grid-template-columns: repeat(var(--count), 1fr);
  margin-top: 18px; padding: 5px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

.tabs-indicator { position: absolute; top: 5px; bottom: 5px; right: 5px;
  width: calc((100% - 10px) / var(--count)); border-radius: 14px;
  transform: translateX(calc(var(--index) * -100%));
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--c1) 80%, transparent);
  transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }

.tab { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 0; border-radius: 14px; font-weight: 700; font-size: 14px; color: var(--muted);
  transition: color .3s; }
.tab.active { color: #1a1026; }

.tab-panel { animation: pageIn .35s cubic-bezier(.2, .8, .2, 1); }

.empty-tools { margin-top: 16px; padding: 34px 20px; text-align: center; border-radius: 22px;
  border: 1.5px dashed color-mix(in srgb, var(--c1) 35%, transparent);
  background: color-mix(in srgb, var(--c1) 6%, transparent); }
.empty-tools-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center;
  color: var(--c1); background: color-mix(in srgb, var(--c1) 14%, transparent); }
.empty-tools h3 { font-size: 17px; font-weight: 700; }
.empty-tools p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ───────── نوار پایین ───────── */
.bottom-nav { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 28px)); display: flex; justify-content: space-between;
  padding: 8px; border-radius: 24px;
  background: rgba(26, 19, 44, .72); border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .6); }

.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 0; border-radius: 16px; font-size: 11px; color: var(--muted); transition: color .25s, background .25s; }
.nav-item.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-item.active[class*='theme-'] { color: var(--c1); background: color-mix(in srgb, var(--c1) 14%, transparent); }

/* ───────── ریسپانسیو ───────── */
@media (max-width: 520px) {
  .grid { gap: 12px; }
  .card { min-height: 178px; padding: 18px; gap: 14px; }
  .card-icon { width: 50px; height: 50px; border-radius: 16px; }
  .card-title { font-size: 17px; }
  .card-sub { font-size: 12px; }
  .card-arrow { top: 18px; left: 18px; width: 30px; height: 30px; }
  .overview { flex-direction: column; text-align: center; }
}

@media (min-width: 760px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .feature { flex-direction: column; align-items: flex-start; }
  .soon { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/*# sourceMappingURL=main.92ba45e3.css.map*/