/* 偶遇AI — ouyux.com. One dark theme; tokens first. */
:root {
  color-scheme: dark;
  --bg: #07070b;
  --bg-2: #0c0c12;
  --panel: rgba(20, 20, 28, 0.78);
  --panel-solid: #14141c;
  --panel-2: #1b1b25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.24);
  --text: #f6f6f8;
  --muted: #a6a6b2;
  --dim: #6e6e7a;
  --amber: #ffa24a;
  --rose: #ff4f8b;
  --violet: #9b6bff;
  --blue: #3b9dff;
  --green: #34d399;
  --grad: linear-gradient(92deg, #ffb357 0%, #ff4f8b 38%, #a66bff 68%, #3b9dff 100%);
  --grad-soft: linear-gradient(92deg, rgba(255, 179, 87, .16), rgba(255, 79, 139, .16), rgba(166, 107, 255, .16), rgba(59, 157, 255, .16));
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 79, 139, .35); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 8s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-white { background: #fff; color: #0a0a0f; }
.btn-white:hover { background: #ececf1; }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }
.btn-line { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-line:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .06); }
.btn-grad { color: #fff; background: var(--grad); background-size: 160% 100%; box-shadow: 0 10px 30px -10px rgba(255, 79, 139, .6); }
.btn-grad:hover { background-position: 100% 0; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-lg svg { width: 19px; height: 19px; }
.btn-block { width: 100%; }
.btn-danger { color: #ff8a9a; border: 1px solid rgba(255, 120, 140, .3); }
.btn-danger:hover { background: rgba(255, 90, 110, .1); }

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 24px;
  transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 7, 11, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; letter-spacing: .2px; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 7px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang-wrap { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; color: var(--muted); font-size: 13px; }
.lang-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lang-btn svg { width: 16px; height: 16px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border-radius: var(--r-md); background: var(--panel-solid);
  box-shadow: var(--shadow); z-index: 60; animation: pop .18s var(--ease); }
.menu[hidden] { display: none; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); text-align: left; }
.menu button:hover, .menu a:hover, .menu .on { background: rgba(255, 255, 255, .06); color: var(--text); }
.menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.burger { display: none; width: 38px; height: 38px; border-radius: 10px; place-items: center; }
.burger svg { width: 20px; height: 20px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; padding: 132px 20px 80px; display: flex; flex-direction: column; align-items: center; text-align: center; isolation: isolate; overflow: hidden; }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%); }
.aurora::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.blob.b1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: -8vw; bottom: -30vw; background: radial-gradient(circle, #ff7a3d 0%, rgba(255, 122, 61, 0) 70%); animation: drift1 22s ease-in-out infinite; }
.blob.b2 { width: 58vw; height: 58vw; max-width: 860px; max-height: 860px; left: 22vw; bottom: -36vw; background: radial-gradient(circle, #ff3d8b 0%, rgba(255, 61, 139, 0) 70%); animation: drift2 26s ease-in-out infinite; }
.blob.b3 { width: 50vw; height: 50vw; max-width: 760px; max-height: 760px; right: -10vw; bottom: -28vw; background: radial-gradient(circle, #5b6bff 0%, rgba(91, 107, 255, 0) 70%); animation: drift3 24s ease-in-out infinite; }
.blob.b4 { width: 30vw; height: 30vw; max-width: 460px; max-height: 460px; left: 35vw; top: -14vw; background: radial-gradient(circle, rgba(166, 107, 255, .7) 0%, rgba(166, 107, 255, 0) 70%); opacity: .25; animation: drift2 30s ease-in-out infinite reverse; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, -4vw) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-5vw, -6vw) scale(1.08); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(-6vw, -3vw) scale(.95); } }
.horizon { position: absolute; left: 50%; bottom: -46vh; width: 160vw; height: 80vh; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%); filter: blur(10px); opacity: .6; }

.badge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); backdrop-filter: blur(10px); transition: border-color .2s, color .2s; }
.badge-pill:hover { border-color: var(--line-3); color: var(--text); }
.badge-pill b { padding: 2px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }
.hero h1 { margin: 26px 0 0; font-size: clamp(40px, 6.6vw, 78px); line-height: 1.04; letter-spacing: -.035em; font-weight: 780; max-width: 1000px; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(18px); filter: blur(8px); animation: rise .9s var(--ease) forwards; }
.hero h1 .w.grad-text { animation: rise .9s var(--ease) forwards, shimmer 8s ease-in-out infinite; padding-bottom: .06em; }
.hero .sub { margin: 20px auto 0; max-width: 680px; font-size: clamp(15px, 1.6vw, 19px); color: var(--muted); opacity: 0; animation: rise .9s .35s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.hero-stage { width: 100%; max-width: 900px; margin-top: 40px; opacity: 0; animation: rise 1s .5s var(--ease) forwards; transform: translateY(24px); }
.ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.idea { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: all .2s; }
.idea:hover { color: var(--text); border-color: var(--line-3); background: rgba(255, 255, 255, .08); transform: translateY(-1px); }
.hero-note { margin-top: 26px; font-size: 13px; color: var(--dim); display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--green); }

/* ---------- composer ---------- */
.composer { position: relative; text-align: left; border-radius: var(--r-xl); background: var(--panel); border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .3s, box-shadow .3s; }
.composer::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), #ffb357, #ff4f8b, #a66bff, #3b9dff, #ffb357);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; animation: spin 6s linear infinite; }
.composer.focus::before, .composer.dragging::before { opacity: 1; }
.composer.focus { box-shadow: 0 40px 140px -30px rgba(255, 79, 139, .35), inset 0 1px 0 rgba(255, 255, 255, .06); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.cmp-tabs { display: flex; gap: 4px; padding: 10px 10px 0; overflow-x: auto; scrollbar-width: none; }
.cmp-tabs::-webkit-scrollbar { display: none; }
.cmp-tab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 12px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.cmp-tab svg { width: 16px; height: 16px; }
.cmp-tab:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.cmp-tab.on { color: var(--text); background: rgba(255, 255, 255, .09); }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .2px; }
.tag-new { background: #2f6bff; color: #fff; }
.tag-free { background: rgba(255, 79, 139, .16); color: #ff8fb3; }
.cmp-body { display: grid; grid-template-columns: 148px 1fr; gap: 14px; padding: 12px 14px 6px; }
.dropzone { position: relative; height: 148px; border-radius: 16px; border: 1.5px dashed var(--line-3); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 10px; text-align: center; color: var(--muted); transition: border-color .2s, background .2s, color .2s; cursor: pointer; }
.dropzone:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .03); color: var(--text); }
.dropzone .plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
.dropzone:hover .plus { transform: rotate(90deg); }
.dropzone .dz-title { font-size: 12.5px; line-height: 1.35; }
.fmt-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--dim); }
.fmt-btn:hover { color: var(--muted); }
.fmt-btn svg { width: 13px; height: 13px; }
.cmp-text { position: relative; min-height: 148px; }
.cmp-text textarea { width: 100%; height: 148px; resize: none; border: 0; outline: 0; background: transparent; font-size: 16px; line-height: 1.6; padding: 4px 2px; }
.typewriter { position: absolute; inset: 4px 2px auto; pointer-events: none; color: var(--dim); font-size: 16px; line-height: 1.6; }
.typewriter .caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -3px; background: var(--rose); margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 8px; }
.files:empty { display: none; }
.file-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 240px; height: 40px; padding: 0 8px 0 4px; border-radius: 11px; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); font-size: 12.5px; overflow: hidden; animation: pop .2s var(--ease); }
.file-chip .thumb { width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex: none; overflow: hidden; }
.file-chip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-chip .thumb svg { width: 16px; height: 16px; color: var(--muted); }
.file-chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .sz { color: var(--dim); font-size: 11px; flex: none; }
.file-chip .x { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--dim); flex: none; }
.file-chip .x:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.file-chip .prog { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--grad); transition: width .2s; }
.file-chip.err { border-color: rgba(255, 100, 120, .5); }
.link-row { display: flex; gap: 8px; padding: 0 14px 10px; }
.link-row[hidden] { display: none; }
.input { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); outline: 0; transition: border-color .2s, background .2s; }
.input:focus { border-color: rgba(166, 107, 255, .7); background: rgba(255, 255, 255, .07); }
textarea.input { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; }
.cmp-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px 12px; flex-wrap: wrap; }
.bar-left { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); transition: all .2s; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); border-color: var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 10px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); transition: all .2s; white-space: nowrap; }
.chip-btn:hover, .chip-btn.on { color: var(--text); background: rgba(255, 255, 255, .06); border-color: var(--line-2); }
.chip-btn.set { color: var(--text); border-color: rgba(166, 107, 255, .45); background: rgba(166, 107, 255, .1); }
.chip-btn svg { width: 15px; height: 15px; }
.bar-mid { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); padding: 6px 8px; border-radius: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bar-mid:hover { color: var(--muted); background: rgba(255, 255, 255, .04); }
.bar-mid b { color: var(--muted); font-weight: 600; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.meter { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.meter svg { width: 14px; height: 14px; color: var(--amber); }
.meter s { color: var(--dim); }
.meter .free { color: #ff8fb3; font-weight: 600; }
.count { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.send { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #0a0a0f; display: grid; place-items: center; transition: transform .2s var(--ease), opacity .2s, box-shadow .3s; flex: none; }
.send svg { width: 19px; height: 19px; }
.send:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); }
.send.idle { opacity: .55; }
.send.busy svg { animation: spin360 1s linear infinite; }
@keyframes spin360 { to { transform: rotate(360deg); } }
.drop-overlay { position: absolute; inset: 0; border-radius: inherit; display: none; place-items: center; background: rgba(12, 12, 18, .82); border: 2px dashed rgba(255, 79, 139, .7);
  font-size: 18px; font-weight: 650; z-index: 5; }
.composer.dragging .drop-overlay { display: grid; animation: pop .15s var(--ease); }
.drop-overlay span { display: inline-flex; align-items: center; gap: 10px; }
.drop-overlay svg { width: 26px; height: 26px; color: var(--rose); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* popovers */
.pop { position: absolute; z-index: 40; min-width: 220px; max-width: min(360px, calc(100vw - 32px)); padding: 8px; border-radius: 16px; background: var(--panel-solid); box-shadow: var(--shadow); animation: pop .18s var(--ease); text-align: left; }
.pop h4 { margin: 4px 8px 8px; font-size: 12px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.pop .opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); text-align: left; }
.pop .opt small { display: block; color: var(--dim); font-size: 12px; margin-top: 1px; }
.pop .opt:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.pop .opt.on { color: var(--text); }
.pop .opt.on::after { content: "✓"; color: var(--rose); font-weight: 700; }
.pop .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pop .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; font-size: 14px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.stepper button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); }
.stepper button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.stepper input { width: 46px; height: 32px; text-align: center; background: transparent; border: 0; outline: 0; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg button { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); }
.seg button.on { color: var(--text); border-color: rgba(166, 107, 255, .55); background: rgba(166, 107, 255, .14); }
.pop .note { padding: 6px 10px 4px; font-size: 12px; color: var(--dim); line-height: 1.5; }
.fmt-pop ul { margin: 0; padding: 4px 10px 6px 26px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* send choices */
.send-menu { position: absolute; right: 10px; bottom: calc(100% - 4px); width: min(420px, calc(100vw - 40px)); padding: 8px; border-radius: 18px; background: var(--panel-solid); box-shadow: var(--shadow); z-index: 30; animation: pop .2s var(--ease); }
.send-opt { display: flex; gap: 12px; width: 100%; padding: 12px; border-radius: 13px; text-align: left; transition: background .2s; }
.send-opt:hover { background: rgba(255, 255, 255, .06); }
.send-opt .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .07); }
.send-opt .ic svg { width: 18px; height: 18px; }
.send-opt.paid .ic { background: var(--grad); color: #fff; }
.send-opt b { display: block; font-size: 15px; }
.send-opt span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.send-opt .tip { color: #ffb8cf; }

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 24px; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head h2 { margin: 12px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 760; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

.pill-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.pill-tabs button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); transition: all .2s; }
.pill-tabs button:hover { color: var(--text); border-color: var(--line-2); }
.pill-tabs button.on { color: #0a0a0f; background: #fff; border-color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card-ep { position: relative; border-radius: 18px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); cursor: pointer; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.card-ep:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(255, 79, 139, .35); }
.card-ep .media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.card-ep .media img, .card-ep .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.card-ep .media video { opacity: 0; }
.card-ep.playing .media video { opacity: 1; }
.card-ep:hover .media img { transform: scale(1.04); }
.card-ep .play { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform .3s var(--ease); }
.card-ep .play svg { width: 15px; height: 15px; margin-left: 2px; }
.card-ep:hover .play { transform: scale(1.1); background: var(--rose); }
.card-ep .ep-tag { position: absolute; left: 12px; top: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; }
.card-ep .body { padding: 14px 16px 16px; }
.card-ep .body h3 { margin: 0; font-size: 15.5px; font-weight: 650; }
.card-ep .body p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-ep .body .from { margin-top: 10px; font-size: 12px; color: var(--dim); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-3), transparent); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step .num { width: 54px; height: 54px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; background: var(--panel-solid); border: 1px solid var(--line-2); position: relative; z-index: 1; }
.step .num svg { width: 22px; height: 22px; }
.step.key .num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 16px 40px -12px rgba(255, 79, 139, .6); }
.step h3 { margin: 16px 0 6px; font-size: 15.5px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { border-radius: 22px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s, transform .4s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature .pic { aspect-ratio: 16 / 8; overflow: hidden; background: #111; }
.feature .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .pic img { transform: scale(1.04); }
.feature .txt { padding: 20px 22px 24px; }
.feature h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }

.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lane { position: relative; border-radius: 22px; padding: 26px 24px; background: var(--panel-solid); border: 1px solid var(--line); overflow: hidden; }
.lane::after { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 120%; background: radial-gradient(ellipse at 50% 100%, var(--glow, rgba(255, 79, 139, .18)), transparent 60%); pointer-events: none; }
.lane .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); margin-bottom: 18px; }
.lane .ic svg { width: 21px; height: 21px; }
.lane h3 { margin: 0; font-size: 19px; }
.lane p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.lane ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.lane li { display: flex; gap: 8px; }
.lane li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--green); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; border-radius: 24px; padding: 28px 26px; background: var(--panel-solid); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.hot { border-color: transparent; background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 40px 100px -50px rgba(255, 79, 139, .6); }
.plan .ribbon { position: absolute; top: -12px; left: 26px; padding: 3px 10px; border-radius: 999px; background: var(--grad); font-size: 12px; font-weight: 700; color: #fff; }
.plan h3 { margin: 0; font-size: 17px; color: var(--muted); font-weight: 600; }
.plan .price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 42px; letter-spacing: -.03em; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .desc { margin: 10px 0 0; color: var(--muted); font-size: 14px; min-height: 44px; }
.plan ul { margin: 20px 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--green); }
.pricing-note { text-align: center; color: var(--dim); font-size: 13px; margin-top: 22px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); transition: transform .3s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }

.cta { position: relative; margin: 40px auto 0; max-width: 1200px; border-radius: 32px; padding: 80px 24px; text-align: center; overflow: hidden; border: 1px solid var(--line); isolation: isolate; }
.cta .blob { opacity: .45; }
.cta h2 { margin: 0; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.03em; line-height: 1.1; }
.cta p { margin: 14px 0 28px; color: var(--muted); font-size: 17px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 110px; padding: 60px 24px 40px; }
.footer-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer .tagline { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 280px; }
.footer h4 { margin: 0 0 14px; font-size: 13px; color: var(--text); font-weight: 650; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer li a:hover { color: var(--text); }
.footer-bottom { max-width: 1200px; margin: 48px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--dim); font-size: 13px; flex-wrap: wrap; }

/* ---------- modal ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-back { position: absolute; inset: 0; background: rgba(3, 3, 6, .66); backdrop-filter: blur(6px); animation: fade .2s; }
.modal { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 24px; background: #111118; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); padding: 28px; animation: modalIn .3s var(--ease); }
.modal.wide { max-width: 560px; }
.modal h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.modal .lead { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.modal .close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.modal .close:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.modal .close svg { width: 18px; height: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.seg-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 13px; background: rgba(255, 255, 255, .05); margin-top: 22px; }
.seg-tabs button { height: 36px; border-radius: 10px; font-size: 14px; color: var(--muted); }
.seg-tabs button.on { background: rgba(255, 255, 255, .1); color: var(--text); }
.form { display: grid; gap: 12px; margin-top: 18px; }
.phone-row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.select { height: 42px; padding: 0 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); outline: 0; appearance: none; }
.select option { background: #15151d; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-boxes input { height: 52px; text-align: center; font-size: 22px; font-weight: 650; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); outline: 0; }
.code-boxes input:focus { border-color: rgba(166, 107, 255, .8); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; margin: 18px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 12px; background: #fff; color: #1f1f1f; font-weight: 600; font-size: 14.5px; width: 100%; }
.gbtn svg { width: 18px; height: 18px; }
.gbtn:hover { background: #f1f1f4; }
.gslot { display: flex; justify-content: center; min-height: 44px; }
.fine { font-size: 12px; color: var(--dim); margin-top: 16px; line-height: 1.6; }
.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.err-text { color: #ff8a9a; font-size: 13px; min-height: 18px; }
.ok-text { color: var(--green); font-size: 13px; }
.link-btn { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--text); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--rose); }

/* pay */
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.amount { padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line-2); text-align: center; transition: all .2s; }
.amount b { display: block; font-size: 17px; }
.amount span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.amount:hover { border-color: var(--line-3); }
.amount.on { border-color: transparent; background: linear-gradient(#17171f, #17171f) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.method { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.method svg { width: 24px; height: 24px; }
.method.on { color: var(--text); border-color: rgba(166, 107, 255, .7); background: rgba(166, 107, 255, .1); }
.method[disabled] { opacity: .4; cursor: not-allowed; }
.method small { font-size: 11px; color: var(--dim); }
.pay-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pay-sum b { font-size: 24px; }
.guarantee { display: grid; gap: 6px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(52, 211, 153, .06); border: 1px solid rgba(52, 211, 153, .18); font-size: 12.5px; color: #9fe3c6; }
.guarantee div { display: flex; gap: 8px; }
.guarantee svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 162, 74, .08); border: 1px solid rgba(255, 162, 74, .25); color: #ffcf9e; font-size: 13px; }
.pro-compare { margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px solid rgba(166, 107, 255, .35); background: rgba(166, 107, 255, .08); font-size: 13px; color: var(--muted); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.qr-box { display: grid; place-items: center; gap: 12px; margin-top: 18px; text-align: center; }
.qr-box .qr { width: 220px; height: 220px; padding: 12px; border-radius: 16px; background: #fff; display: grid; place-items: center; }
.qr-box .qr img, .qr-box .qr svg { width: 100%; height: 100%; }
.qr-box .wait { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-3); border-top-color: var(--rose); animation: spin360 .8s linear infinite; }
.ts-slot { margin-top: 12px; min-height: 0; }

/* ---------- task page ---------- */
.page { max-width: 1160px; margin: 0 auto; padding: 96px 20px 40px; }
.task-head { display: grid; grid-template-columns: 132px 1fr auto; gap: 22px; align-items: center; }
.cover { width: 132px; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; position: relative; background: var(--grad); display: grid; place-items: center; font-size: 46px; font-weight: 800; color: rgba(255, 255, 255, .92); box-shadow: 0 30px 60px -30px rgba(255, 79, 139, .6); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .35)); }
.status { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 162, 74, .7); animation: pulse 2s infinite; }
.status.s-generating .dot { background: var(--rose); }
.status.s-done .dot { background: var(--green); animation: none; }
.status.s-cancelled .dot, .status.s-rejected .dot, .status.s-paused .dot { background: var(--dim); animation: none; }
.status.s-awaiting_confirm .dot { background: var(--blue); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 162, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 162, 74, 0); } }
.task-head h1 { margin: 10px 0 6px; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.025em; line-height: 1.15; word-break: break-word; }
.task-meta { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.task-meta span { display: inline-flex; align-items: center; gap: 6px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.want.on { color: #ff8fb3; border-color: rgba(255, 79, 139, .5); background: rgba(255, 79, 139, .1); }
.want svg { width: 16px; height: 16px; }
.task-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-top: 28px; align-items: start; }
.box { border-radius: 22px; background: var(--panel-solid); border: 1px solid var(--line); padding: 22px; }
.box + .box { margin-top: 18px; }
.box h3 { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.box h3 small { font-weight: 500; color: var(--dim); font-size: 12.5px; }
.minutes-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.minutes-top .big { font-size: 34px; font-weight: 760; letter-spacing: -.03em; }
.minutes-top .big small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.bar3 { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; margin: 14px 0 12px; display: flex; }
.bar3 i { display: block; height: 100%; transition: width 1.2s var(--ease); }
.bar3 .gen { background: var(--grad); }
.bar3 .fund { background: repeating-linear-gradient(-45deg, rgba(255, 162, 74, .55) 0 6px, rgba(255, 162, 74, .32) 6px 12px); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .l-gen { background: var(--grad); } .legend .l-fund { background: rgba(255, 162, 74, .6); } .legend .l-need { background: rgba(255, 255, 255, .12); }
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 22px; }
.stg { text-align: center; font-size: 12px; color: var(--dim); }
.stg .ln { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-bottom: 8px; position: relative; overflow: hidden; }
.stg.done { color: var(--muted); } .stg.done .ln { background: var(--grad); }
.stg.now { color: var(--text); font-weight: 600; }
.stg.now .ln::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--grad); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.cta-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.cta-row .btn { flex: 1; min-width: 160px; }
.small-note { font-size: 12.5px; color: var(--dim); margin-top: 12px; }
.queue-line { display: flex; gap: 14px; align-items: center; }
.queue-line .n { font-size: 30px; font-weight: 760; letter-spacing: -.03em; min-width: 56px; }
.queue-line p { margin: 0; color: var(--muted); font-size: 14px; }
.work-empty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.skel { aspect-ratio: 3 / 4; border-radius: 14px; background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 70%); background-size: 300% 100%; animation: skel 2.2s ease-in-out infinite; display: grid; place-items: end start; padding: 10px; font-size: 12px; color: var(--dim); }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.synopsis { white-space: pre-wrap; color: var(--muted); font-size: 14.5px; margin: 0 0 14px; max-height: 220px; overflow: auto; }
.att-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.supporter { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.supporter:first-of-type { border-top: 0; }
.supporter .avatar { width: 34px; height: 34px; flex: none; font-size: 13px; }
.supporter b { font-size: 14px; }
.supporter .msg { font-size: 13px; color: var(--muted); margin-top: 2px; word-break: break-word; }
.supporter .mins { margin-left: auto; font-size: 13px; color: var(--amber); white-space: nowrap; font-weight: 600; }
.empty { color: var(--dim); font-size: 13.5px; }
.share-row { display: flex; gap: 8px; }
.share-row .input { font-size: 13px; }
.share-qr { width: 132px; height: 132px; margin: 14px auto 0; padding: 8px; border-radius: 12px; background: #fff; }
.share-qr svg { width: 100%; height: 100%; }
.drawer-sec { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-sec:first-of-type { border-top: 0; padding-top: 6px; }
.drawer-sec label.t { font-size: 13px; color: var(--muted); }
.radio-row { display: grid; gap: 8px; }
.radio-row label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.radio-row label small { display: block; color: var(--dim); font-size: 12px; }
.radio-row input { accent-color: var(--rose); margin-top: 3px; }
.radio-row label:has(input:checked) { border-color: rgba(166, 107, 255, .6); background: rgba(166, 107, 255, .08); }
.toggle { position: relative; width: 42px; height: 24px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle input:checked + span { background: var(--rose); }
.toggle input:checked + span::after { transform: translateX(18px); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* me */
.me-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; margin-top: 24px; align-items: start; }
.task-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.task-row:first-of-type { border-top: 0; }
.task-row b { display: block; font-size: 15px; }
.task-row .mini { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 8px; display: flex; max-width: 360px; }
.task-row .mini i { height: 100%; }
.plan-card { border-radius: 18px; padding: 18px; background: var(--grad-soft); border: 1px solid var(--line-2); }

/* building */
.building { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 100px 20px; position: relative; isolation: isolate; overflow: hidden; }
.building .ring { width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.building .ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: conic-gradient(from var(--angle, 0deg), #ffb357, #ff4f8b, #a66bff, #3b9dff, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 3s linear infinite; }
.building .ring svg { width: 44px; height: 44px; color: var(--text); }
.building h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.03em; }
.building p { color: var(--muted); max-width: 460px; margin: 14px auto 28px; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 14px; background: #1c1c26; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; animation: modalIn .3s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.ok { border-color: rgba(52, 211, 153, .4); }
.toast.bad { border-color: rgba(255, 100, 120, .45); }

/* lightbox */
.lightbox .modal { max-width: 980px; padding: 0; background: #000; overflow: hidden; }
.lightbox video { width: 100%; max-height: 80vh; background: #000; }
.lightbox .cap { padding: 14px 18px; background: #0d0d13; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .steps::before { display: none; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-in > :first-child { grid-column: 1 / -1; }
  .task-grid, .me-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { padding: 0 16px; gap: 12px; }
  .nav .lang-label { display: none; }
  .burger { display: grid; }
  .nav.open .nav-links { display: flex; position: absolute; top: 64px; left: 12px; right: 12px; flex-direction: column; padding: 8px; border-radius: 16px; background: var(--panel-solid); box-shadow: var(--shadow); }
  .lanes, .plans, .feature-grid { grid-template-columns: 1fr; }
  .plan.hot { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hero { padding: 104px 16px 64px; min-height: auto; }
  .section { padding: 80px 16px; }
  .cmp-body { grid-template-columns: 1fr; gap: 8px; padding: 10px 12px 4px; }
  .dropzone { height: auto; flex-direction: row; justify-content: flex-start; padding: 10px 12px; gap: 10px; }
  .dropzone .plus { width: 28px; height: 28px; font-size: 18px; }
  .dropzone .dz-title { text-align: left; }
  .cmp-text, .cmp-text textarea { min-height: 120px; height: 120px; }
  .bar-mid { order: 3; width: 100%; padding-left: 4px; }
  .bar-right { margin-left: auto; }
  .count { display: none; }
  .chip-btn .lbl { display: none; }
  .chip-btn { padding: 0 9px; }
  .nav-right .btn-ghost.login { display: none; }
  .steps { grid-template-columns: 1fr; }
  .task-head { grid-template-columns: 84px 1fr; }
  .cover { width: 84px; font-size: 30px; border-radius: 14px; }
  .head-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 22px 18px; border-radius: 20px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .cta { border-radius: 24px; padding: 60px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}
