*{margin:0;padding:0;box-sizing:border-box}
:root{--primary:#1d1d1f;--primary-dark:#000;--primary-light:rgba(196,136,58,.08);--accent:#c4883a;--accent-light:rgba(196,136,58,.06);--bg:#fbfbfd;--card:#fff;--border:#d2d2d7;--text:#1d1d1f;--text1:#1d1d1f;--text2:#86868b;--text3:#aeaeb2;--success:#34c759;--radius:16px;--radius-lg:20px;--shadow:0 2px 8px rgba(0,0,0,.04);--shadow-md:0 4px 16px rgba(0,0,0,.06);--shadow-lg:0 8px 40px rgba(0,0,0,.08)}
body{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','SF Pro Text','Helvetica Neue',Roboto,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;overflow-x:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}

.nav{background:rgba(255,255,255,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);padding:0 24px;display:flex;align-items:center;height:52px;position:sticky;top:0;z-index:100;border-bottom:1px solid rgba(0,0,0,.06);box-shadow:0 1px 8px rgba(0,0,0,.04)}
.nav-brand{font-size:17px;font-weight:600;color:var(--text);display:flex;align-items:center;gap:8px;flex-shrink:0;letter-spacing:-.2px}
.nav-brand img{width:32px;height:32px;border-radius:8px;object-fit:cover}
.nav-brand span{color:var(--text);font-weight:600}
.nav-right{margin-left:auto;display:flex;align-items:center;gap:8px;flex-shrink:0}
.nav-btn{padding:8px 18px;border-radius:980px;font-size:13px;cursor:pointer;border:none;transition:all .25s ease;font-weight:500;min-height:40px;display:inline-flex;align-items:center;justify-content:center;letter-spacing:-.1px}
.nav-btn-ghost{background:transparent;color:var(--text2);border:1px solid var(--border)}
.nav-btn-ghost:hover{border-color:var(--text);color:var(--text)}
.nav-btn-primary{background:var(--accent);color:#fff;box-shadow:0 2px 12px rgba(196,136,58,.3)}
.nav-btn-primary:hover{background:#b37a30;transform:translateY(-1px);box-shadow:0 4px 14px rgba(196,136,58,.4)}
.model-option-card{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fff;transition:border-color .2s ease,box-shadow .2s ease}
.model-option-card.is-active{border-color:var(--accent);box-shadow:0 0 0 1px rgba(196,136,58,.08)}
.model-option-main{min-width:0;flex:1}
.model-option-actions{display:flex;flex-direction:column;gap:6px;align-items:flex-end;flex-shrink:0}
.model-option-custom{display:block;margin-top:8px}
.model-option-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.model-capability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.model-capability-card{display:block;min-width:0;margin:0;padding:9px;border:1px solid #e5e5ea;border-radius:8px;background:#fafafa}
.model-capability-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.model-capability-label,.model-field-label{display:block;margin-bottom:4px;font-size:10px;font-weight:500;color:#86868b}
.model-capability-title{font-size:12px;font-weight:600;color:var(--text)}
.model-capability-value{padding:7px 8px;border:1px solid #e5e5ea;border-radius:7px;background:#fff;color:var(--text);font:11px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.model-capability-cost{font-size:10px;font-weight:600;color:var(--accent)}
.model-capability-mode{margin-top:4px;font-size:10px;color:#86868b}
.model-field-control{width:100%;min-height:34px;padding:7px 8px;border:1px solid #d2d2d7;border-radius:7px;background:#fff;color:var(--text);font-size:11px;outline:none;transition:border-color .2s ease,box-shadow .2s ease}
.model-field-control:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(196,136,58,.12)}
.model-field-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.model-capability-grid-editor{gap:10px}
.model-capability-editor{display:grid;gap:7px;padding:11px;background:#fff}
.model-fixed-label{padding:3px 6px;border-radius:5px;background:#f5f5f7;color:#68686d;font-size:10px;white-space:nowrap}
.model-mode-select{min-width:120px;padding:6px 7px;border:1px solid #d2d2d7;border-radius:7px;background:#fff;font-size:11px}
.model-helper{font-size:10px;line-height:1.5;color:#77777d}
.model-connection-fields{display:grid;gap:7px}
.model-connection-fields[hidden],.model-mode-summary[hidden]{display:none}
.model-mode-summary{padding:12px;border-radius:7px;background:#f5f5f7;color:#68686d;font-size:11px}
.model-custom-editor{display:grid;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #ececef}
.model-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.model-editor-title{font-size:12px;font-weight:600;color:var(--text)}
.model-preset-btn{min-height:32px;padding:6px 12px;font-size:11px;white-space:nowrap}
.model-disclaimer{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid #e5e5ea;border-radius:8px;background:#fafafa;color:#515154;font-size:11px;line-height:1.5}
.model-save-btn{width:100%;min-height:38px}
.nav-user{font-size:13px;color:var(--text2);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border);background:#fff;color:var(--text);border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease;min-height:38px;padding:8px 12px;white-space:nowrap}
.btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-light)}
.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn-primary:hover{background:#b37a30;border-color:#b37a30;color:#fff}
.btn-sm{min-height:32px;padding:6px 10px;font-size:12px;border-radius:8px}

#landing-view{background:#fdfcf9;color:#1c1917;overflow:hidden}
.nav.scrolled{box-shadow:0 2px 18px rgba(0,0,0,.06);background:rgba(253,252,249,.94)}
.hero{position:relative;min-height:760px;padding:112px 48px 88px;background:#fdfcf9;overflow:hidden}
.hero::before{content:'';position:absolute;top:-15%;left:-5%;width:70%;height:80%;background:radial-gradient(ellipse,rgba(196,136,58,.1) 0%,transparent 65%);pointer-events:none}
.hero::after{content:'';position:absolute;bottom:-10%;right:-5%;width:55%;height:65%;background:radial-gradient(ellipse,rgba(217,175,120,.08) 0%,transparent 60%);pointer-events:none}
.hero-inner{max-width:1320px;margin:0 auto;position:relative;z-index:1;display:grid;grid-template-columns:1.1fr .9fr;gap:72px;align-items:center;min-height:620px}
.hero-label{display:inline-flex;align-items:center;gap:8px;padding:6px 16px 6px 8px;border-radius:100px;background:rgba(255,255,255,.58);border:1px solid rgba(255,255,255,.74);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:12px;color:#57534e;font-weight:500;margin-bottom:28px;box-shadow:0 4px 24px rgba(0,0,0,.04),0 1px 2px rgba(0,0,0,.03)}
.hero-label-dot{width:6px;height:6px;border-radius:50%;background:#34c759;animation:pulse 2s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.hero-h{font-size:4.7rem;font-weight:760;line-height:1.08;letter-spacing:0;margin-bottom:24px;color:#1c1917;text-wrap:balance}
.gold{background:linear-gradient(135deg,#c4883a 0%,#dba55a 50%,#c4883a 100%);background-size:200% auto;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:shimmer 4s ease-in-out infinite}
@keyframes shimmer{0%,100%{background-position:0% center}50%{background-position:100% center}}
.hero-sub{font-size:1.08rem;color:#57534e;max-width:44ch;line-height:1.75;margin-bottom:40px;font-weight:400}
.hero-btns{display:flex;gap:14px;flex-wrap:wrap}
.hero-btns .btn-primary,.cta .btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:15px 32px;border-radius:100px;font-size:15px;font-weight:650;background:#1c1917;color:#faf9f6;border:none;cursor:pointer;transition:all .3s ease;text-decoration:none;box-shadow:0 4px 16px rgba(0,0,0,.12);min-height:48px}
.hero-btns .btn-primary:hover,.cta .btn-primary:hover{background:#292524;transform:translateY(-3px);box-shadow:0 12px 36px rgba(0,0,0,.16),0 0 0 1px rgba(196,136,58,.1)}
.btn-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:15px 28px;border-radius:100px;font-size:15px;font-weight:550;background:rgba(255,255,255,.58);color:#1c1917;border:1px solid rgba(0,0,0,.1);cursor:pointer;transition:all .25s ease;text-decoration:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);min-height:48px}
.btn-secondary:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-light)}
.hero-stats{display:flex;gap:46px;margin-top:48px;padding-top:24px;border-top:1px solid rgba(0,0,0,.06)}
.hero-stat-num{font-size:1.9rem;font-weight:760;color:#1c1917}
.hero-stat-label{font-size:12px;color:#a8a29e;margin-top:2px}
.hero-visual{position:relative;display:flex;justify-content:center;align-items:center}
.chat-mockup{width:380px;border-radius:24px;background:#fff;border:1px solid rgba(0,0,0,.1);box-shadow:0 16px 64px rgba(0,0,0,.08),0 4px 16px rgba(0,0,0,.04);overflow:hidden;transform:perspective(1200px) rotateY(-4deg) rotateX(2deg);transition:transform .5s ease}
.chat-mockup:hover{transform:perspective(1200px) rotateY(0deg) rotateX(0deg)}
.chat-bar{padding:14px 18px;display:flex;align-items:center;gap:10px;background:linear-gradient(180deg,#faf9f7 0%,#f5f3ef 100%);border-bottom:1px solid rgba(0,0,0,.06)}
.chat-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,var(--accent),#dba55a);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#fff;flex-shrink:0}
.chat-name{font-size:13px;font-weight:650;color:#1c1917}
.chat-status{font-size:11px;color:#34c759}
.chat-body{padding:18px;display:flex;flex-direction:column;gap:14px;min-height:280px}
.chat-msg{max-width:82%;padding:10px 14px;border-radius:16px;font-size:13px;line-height:1.6}
.chat-msg.user{align-self:flex-end;background:#1c1917;color:#faf9f6;border-bottom-right-radius:6px}
.chat-msg.bot{align-self:flex-start;background:#f5f3ef;color:#1c1917;border-bottom-left-radius:6px}
.chat-msg.bot.accent-msg{background:linear-gradient(135deg,rgba(196,136,58,.08),rgba(196,136,58,.04));border:1px solid rgba(196,136,58,.15)}
.chat-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 16px;background:#f5f3ef;border-radius:16px;border-bottom-left-radius:6px}
.chat-typing-dot{width:6px;height:6px;border-radius:50%;background:#a8a29e;animation:typingBounce .8s ease-in-out infinite}
.chat-typing-dot:nth-child(2){animation-delay:.15s}.chat-typing-dot:nth-child(3){animation-delay:.3s}
@keyframes typingBounce{0%,100%{transform:translateY(0);opacity:.4}50%{transform:translateY(-4px);opacity:1}}
@keyframes chatIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.chat-msg,.chat-typing{opacity:0;animation:chatIn .45s cubic-bezier(.22,1,.36,1) forwards}
.float-card{position:absolute;border-radius:16px;background:rgba(255,255,255,.58);border:1px solid rgba(255,255,255,.74);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 8px 40px rgba(0,0,0,.06),0 2px 8px rgba(0,0,0,.03);padding:12px 16px;font-size:12px;animation:floatY 6s ease-in-out infinite;z-index:2}
.float-card-1{top:8%;right:-5%;animation-delay:0s}.float-card-2{bottom:18%;left:-10%;animation-delay:-2s}.float-card-3{top:50%;right:-8%;animation-delay:-4s}
@keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.float-card-icon{font-size:16px;margin-bottom:4px;display:block}.float-card-title{display:block;font-weight:650;color:#1c1917;font-size:12px}.float-card-desc{display:block;color:#a8a29e;font-size:11px;margin-top:2px}.float-card code{font-family:'SF Mono',Menlo,monospace;font-size:11px;color:var(--accent);background:var(--accent-light);padding:2px 6px;border-radius:4px}
.bento,.product,.roles-section{max-width:1320px;margin:0 auto;padding:120px 48px}
#capabilities,#plans,.roles-section{scroll-margin-top:76px}
.section-head{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-bottom:64px;align-items:end}
.section-title{font-size:2.8rem;font-weight:760;line-height:1.12;letter-spacing:0;text-wrap:balance}
.section-desc{font-size:1.02rem;color:#57534e;line-height:1.75;max-width:44ch}
.bento-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.b-card{border-radius:24px;padding:34px;position:relative;overflow:hidden;transition:transform .35s ease,box-shadow .35s ease;display:flex;flex-direction:column;justify-content:flex-start;min-height:260px}
.b-card:hover{transform:translateY(-6px);box-shadow:0 20px 50px rgba(0,0,0,.07),0 0 0 1px rgba(196,136,58,.06)}
.b-card-tag{font-family:'SF Mono',Menlo,monospace;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;border-radius:6px;display:inline-block;width:fit-content;margin-bottom:14px}
.b-card-name{font-size:1.45rem;font-weight:730;line-height:1.2;margin-bottom:8px}.b-card-desc{font-size:.92rem;color:#57534e;line-height:1.65}.b-card-preview{margin-top:16px;padding:12px 14px;border-radius:10px;font-size:12px;line-height:1.6}
.b1{background:linear-gradient(145deg,#fff8ed 0%,#f1e4d1 100%);color:#1c1917;border:1px solid rgba(196,136,58,.22);box-shadow:0 8px 34px rgba(196,136,58,.08)}.b1 .b-card-tag{background:rgba(196,136,58,.12);color:#b87522}.b1 .b-card-desc{color:#57534e}.b1 .b-card-preview{background:rgba(255,255,255,.62);border:1px solid rgba(196,136,58,.16)}.b1 .b-card-preview>div{background:rgba(196,136,58,.2)!important}
.b2{background:#fff;border:1px solid rgba(0,0,0,.1);box-shadow:0 4px 24px rgba(0,0,0,.04)}.b2 .b-card-tag,.b3 .b-card-tag,.b5 .b-card-tag{background:var(--accent-light);color:var(--accent)}
.b2 .b-card-preview,.b4 .b-card-preview{background:#f8f5ef;border:1px solid rgba(0,0,0,.06);color:#57534e}
.b3{background:linear-gradient(145deg,#f9f5ee 0%,#f3ede2 100%);border:1px solid rgba(196,136,58,.15)}.b3 .b-card-preview{background:#fff;border:1px solid rgba(0,0,0,.06);font-family:'SF Mono',Menlo,monospace;color:#57534e}
.b4{background:#fff;border:1px solid rgba(0,0,0,.1);box-shadow:0 4px 24px rgba(0,0,0,.04)}.b4 .b-card-tag{background:#f0fdf4;color:#16a34a}
.mini-node{width:28px;height:28px;border-radius:6px;background:var(--accent-light);border:1px solid rgba(196,136,58,.15);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:650;color:var(--accent)}.mini-node.green{background:#f0fdf4;border-color:rgba(22,163,74,.15);color:#16a34a}
.b5{grid-column:1 / -1;background:linear-gradient(90deg,#f8f5ef 0%,#f3ede2 100%);border:1px solid rgba(196,136,58,.15);flex-direction:row;align-items:center;justify-content:space-between;gap:48px;min-height:180px}.b5 .b-card-content{flex:1}.b5-visual{flex-shrink:0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.b5-node{padding:10px 16px;border-radius:10px;background:#fff;border:1px solid rgba(0,0,0,.1);font-size:11px;font-weight:600;color:#1c1917;box-shadow:0 4px 24px rgba(0,0,0,.04);white-space:nowrap}.b5-arrow{color:#a8a29e;font-size:14px}
.security{background:#1c1917;color:#faf9f6;padding:120px 48px;position:relative;overflow:hidden}.security::before{content:'';position:absolute;top:-20%;left:20%;width:60%;height:60%;background:radial-gradient(ellipse,rgba(196,136,58,.05) 0%,transparent 60%);pointer-events:none}.security-inner{max-width:1100px;margin:0 auto;position:relative;z-index:1}.security-head{margin-bottom:64px;max-width:520px}.security-title{font-size:2.8rem;font-weight:760;line-height:1.12;margin-bottom:12px}.security-sub{font-size:1.02rem;color:rgba(250,249,246,.45);line-height:1.7}.security-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.sec-card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:24px;padding:34px;transition:all .3s ease;display:flex;flex-direction:column;gap:16px}.sec-card:hover{background:rgba(255,255,255,.07);border-color:rgba(196,136,58,.2);transform:translateY(-3px)}.sec-icon{width:48px;height:48px;border-radius:12px;background:rgba(196,136,58,.1);display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:24px}.sec-name{font-size:1.25rem;font-weight:650;line-height:1.2}.sec-desc{font-size:.95rem;color:rgba(250,249,246,.5);line-height:1.7}
.steps-section{background:#f0ebe1;color:#1c1917;padding:120px 48px;position:relative;overflow:hidden}.steps-inner{max-width:1320px;margin:0 auto}.steps-head{margin-bottom:72px;max-width:520px}.steps-title{font-size:2.8rem;font-weight:760;line-height:1.12;margin-bottom:12px}.steps-sub{font-size:1.02rem;color:#57534e;line-height:1.7}.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.s-card{background:#fff;padding:48px 34px;display:flex;flex-direction:column;gap:20px;border-radius:24px;border:1px solid rgba(0,0,0,.06);box-shadow:0 4px 24px rgba(0,0,0,.04);transition:all .3s ease}.s-card:hover{transform:translateY(-4px);box-shadow:0 8px 40px rgba(0,0,0,.06)}.s-num{font-size:4.6rem;font-weight:820;line-height:1;background:linear-gradient(180deg,rgba(196,136,58,.25) 0%,rgba(196,136,58,.08) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.s-name{font-size:1.45rem;font-weight:650;line-height:1.2}.s-desc{font-size:.95rem;color:#57534e;line-height:1.7;max-width:30ch}
.product-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:80px;align-items:center}.product-content{display:flex;flex-direction:column;gap:20px}.product-title{font-size:2.65rem;font-weight:760;line-height:1.12}.product-text{font-size:1.02rem;color:#57534e;line-height:1.75;max-width:44ch}.product-list{display:flex;flex-direction:column;margin-top:8px}.product-item{display:flex;align-items:flex-start;gap:14px;padding:18px 0;border-bottom:1px solid rgba(0,0,0,.06)}.product-item:last-child{border-bottom:none}.product-item-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);flex-shrink:0;margin-top:7px}.product-item-text{font-size:14px;color:#57534e;line-height:1.65}.product-item-text strong{color:#1c1917;font-weight:650}.product-visual{border-radius:32px;background:linear-gradient(155deg,#f6f2eb 0%,#ece5d8 100%);border:1px solid rgba(196,136,58,.15);aspect-ratio:4/3;position:relative;overflow:hidden;box-shadow:0 8px 40px rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center}.product-screen{width:75%;height:72%;border-radius:16px;background:#fff;border:1px solid rgba(0,0,0,.1);box-shadow:0 16px 64px rgba(0,0,0,.08);overflow:hidden;display:flex;flex-direction:column}.product-screen-bar{height:38px;background:linear-gradient(180deg,#faf9f7,#f3f1ed);border-bottom:1px solid rgba(0,0,0,.06);display:flex;align-items:center;gap:7px;padding:0 14px}.product-screen-dot{width:9px;height:9px;border-radius:50%}.product-screen-dot:nth-child(1){background:#ff6058}.product-screen-dot:nth-child(2){background:#ffbd2e}.product-screen-dot:nth-child(3){background:#27ca40}.product-screen-body{flex:1;padding:16px;display:flex;flex-direction:column;gap:10px;overflow:hidden}.product-line{height:8px;border-radius:4px;background:#f0ede7}.product-line.w40{width:40%}.product-line.w55{width:55%}.product-line.w75{width:75%}.product-line.w90{width:90%}.product-line.gold{background:linear-gradient(90deg,rgba(196,136,58,.15),rgba(196,136,58,.06));width:60%}.product-bubble{align-self:flex-end;margin-top:8px;padding:10px 16px;border-radius:14px 14px 4px 14px;background:#1c1917;color:#faf9f6;font-size:12px;font-weight:550;max-width:70%}.product-bubble-bot{align-self:flex-start;padding:10px 16px;border-radius:14px 14px 14px 4px;background:linear-gradient(135deg,rgba(196,136,58,.08),rgba(196,136,58,.03));border:1px solid rgba(196,136,58,.15);font-size:12px;color:#1c1917;max-width:75%;line-height:1.5}
.pricing{background:#f8f5ef;padding:120px 48px}.pricing-inner{max-width:1280px;margin:0 auto}.pricing-head{text-align:center;margin-bottom:56px}.pricing-title{font-size:2.8rem;font-weight:760;line-height:1.12;margin-bottom:8px}.pricing-desc{font-size:1.02rem;color:#57534e}.pricing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.pricing-note{font-size:13px;color:#a8a29e;margin-top:24px;line-height:1.6;text-align:center}.pricing-note strong{color:#57534e;font-weight:550}
.p-card{border-radius:var(--radius-lg);padding:32px 22px;display:flex;flex-direction:column;transition:all .3s ease;background:#fff;border:1px solid rgba(0,0,0,.1);box-shadow:var(--shadow)}
.p-card:hover{box-shadow:var(--shadow-md);transform:translateY(-4px)}
.p-card.featured{background:#1c1917;color:#faf9f6;border-color:transparent;box-shadow:var(--shadow-lg);position:relative}
.p-card.featured:hover{box-shadow:0 20px 60px rgba(0,0,0,.12)}
.p-card.featured .p-desc{color:rgba(250,249,246,.45)}
.p-card.featured .p-feat{color:rgba(250,249,246,.6)}
.p-card.featured .p-feat::before{background:rgba(196,136,58,.5)}
.p-card.featured .p-feat strong{color:#dba55a}
.p-card.featured .p-price-val{color:#faf9f6}
.p-card.featured .p-price-unit{color:rgba(250,249,246,.4)}
.p-card.featured .p-price-annual{color:rgba(250,249,246,.5)}
.p-badge{position:absolute;top:18px;right:18px;font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:4px 12px;border-radius:100px;background:rgba(196,136,58,.15);color:#dba55a}
.p-name{font-size:clamp(1.1rem,1.6vw,1.4rem);font-weight:700;letter-spacing:-.02em;margin-bottom:4px}
.p-desc{font-size:13px;color:var(--text3);font-weight:400;margin-bottom:24px}
.p-price-row{display:flex;align-items:baseline;gap:6px;margin-bottom:4px}
.p-price-val{font-size:clamp(2.2rem,3.2vw,2.8rem);font-weight:800;letter-spacing:-.04em;color:var(--text);line-height:1}
.p-price-unit{font-size:14px;color:var(--text3);font-weight:400}
.p-price-annual{font-size:12px;color:var(--accent);font-weight:500;margin-bottom:24px}
.p-feats{list-style:none;display:flex;flex-direction:column;gap:10px;flex:1;margin-bottom:28px}
.p-feat{font-size:13px;color:var(--text2);font-weight:400;line-height:1.5;padding-left:16px;position:relative}
.p-feat::before{content:'';position:absolute;left:0;top:6px;width:5px;height:5px;border-radius:50%;background:rgba(196,136,58,.15)}
.p-feat strong{color:var(--accent);font-weight:600}
.p-btn{width:100%;padding:13px;border-radius:100px;font-size:14px;font-weight:600;letter-spacing:-.01em;cursor:pointer;transition:all .25s ease;text-align:center;border:none;min-height:44px}
.p-btn-dark{background:#1d1d1f;color:#faf9f6}
.p-btn-dark:hover{background:#292524}
.p-btn-accent{background:var(--accent);color:#fff;box-shadow:0 8px 32px rgba(196,136,58,.15)}
.p-btn-accent:hover{background:#b37a30;box-shadow:0 12px 36px rgba(196,136,58,.25)}
.p-btn-outline{background:transparent;color:var(--text2);border:1px solid rgba(0,0,0,.1)}
.p-btn-outline:hover{border-color:var(--accent);color:var(--accent)}

.roles-section{background:#fbfbfd;padding:64px 0;overflow:hidden}
.roles-inner{max-width:1100px;margin:0 auto;padding:0 24px}
.roles-title{font-size:32px;font-weight:700;text-align:center;margin-bottom:8px;letter-spacing:-.3px}
.roles-desc{font-size:15px;color:var(--text2);text-align:center;margin-bottom:32px;letter-spacing:-.1px}
.roles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}
.role-card{padding:24px 16px;text-align:center;background:var(--bg);border-radius:var(--radius);border:1px solid var(--border);transition:all .3s ease}
.role-card:hover{border-color:var(--accent);box-shadow:0 4px 20px rgba(196,136,58,.1);transform:translateY(-3px);cursor:pointer}
.role-card:hover .role-hire-btn{background:var(--accent) !important;color:#fff !important}
.role-card-icon{font-size:36px;margin-bottom:10px}
.role-card-name{font-size:14px;font-weight:600;margin-bottom:6px;letter-spacing:-.1px}
.role-card-desc{font-size:12px;color:var(--text2);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.cta{background:linear-gradient(135deg,#1a1510,#2d2218);color:#fff;padding:80px 24px;text-align:center;position:relative;overflow:hidden}
.cta::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,rgba(196,136,58,.12) 0%,transparent 60%);pointer-events:none}
.cta h2{font-size:40px;font-weight:700;margin-bottom:14px;position:relative;letter-spacing:-.4px}
.cta p{font-size:17px;color:rgba(255,255,255,.6);margin-bottom:32px;position:relative;letter-spacing:-.1px}
.cta-btn{display:inline-flex;align-items:center;gap:8px;padding:16px 40px;background:var(--accent);color:#fff;border-radius:980px;font-size:16px;font-weight:600;border:none;cursor:pointer;transition:all .3s ease;min-height:48px;position:relative;letter-spacing:-.2px;box-shadow:0 4px 24px rgba(196,136,58,.3)}
.cta-btn:hover{background:#b37a30;transform:translateY(-2px);box-shadow:0 8px 32px rgba(196,136,58,.4)}

.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:200;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .25s ease;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-y:auto;overscroll-behavior:contain}
.modal-overlay.show{opacity:1;pointer-events:auto}
.modal{background:#fff;border-radius:var(--radius-lg);width:min(calc(100vw - 32px),400px);max-height:min(86dvh,760px);display:flex;flex-direction:column;box-shadow:0 24px 80px rgba(0,0,0,.15);box-sizing:border-box;margin:auto;flex-shrink:0;overflow:hidden}
.modal-header{padding:18px 20px;border-bottom:.5px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.modal-title{font-size:17px;font-weight:600;letter-spacing:-.2px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:8px}
.modal-close{width:36px;height:36px;border-radius:50%;border:none;background:none;cursor:pointer;font-size:18px;color:var(--text2);display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;transition:background .2s}
.modal-close:hover{background:rgba(0,0,0,.05)}
.modal-body{padding:20px;overflow-y:auto;flex:1;min-height:0;-webkit-overflow-scrolling:touch}
.modal-body img,.modal-body canvas,.modal-body svg{max-width:100%;height:auto}
.modal-footer{padding:16px 20px;border-top:.5px solid var(--border);display:flex;justify-content:flex-end;gap:8px;flex-shrink:0;flex-wrap:wrap}
.modal-footer .nav-btn,.modal-footer .btn{min-width:0}
.modal-pay{width:min(calc(100vw - 32px),420px);max-height:min(calc(100dvh - 32px),calc(100svh - 32px))}
.modal-pay .modal-body{display:flex;flex-direction:column}
.modal-profile{width:min(calc(100vw - 32px),560px);max-height:min(88dvh,760px)}
.modal-login{width:min(calc(100vw - 32px),420px)}
.floating-modal-overlay{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-y:auto;overscroll-behavior:contain}
.floating-modal{background:#fff;border-radius:16px;padding:24px;width:min(calc(100vw - 32px),360px);max-height:min(88dvh,720px);overflow-y:auto;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.16);-webkit-overflow-scrolling:touch}
.floating-modal-actions{display:flex;gap:8px;margin-top:16px}
.floating-modal-actions button{flex:1;min-height:42px;min-width:0}
.share-guide-overlay{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.7);display:flex;align-items:flex-start;justify-content:flex-end;padding:max(20px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));cursor:pointer}
.share-guide-panel{text-align:right;color:#fff;max-width:min(78vw,320px)}
.share-guide-icon{font-size:clamp(44px,12vw,60px);margin-bottom:10px}
.share-qr-box{background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:16px;display:flex;align-items:center;justify-content:center;min-width:min(220px,70vw);min-height:min(220px,70vw)}
.share-qr-box img{width:min(220px,70vw);height:min(220px,70vw);display:block}
.profile-head{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding:14px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(135deg,#fff,#faf8f4)}
.profile-avatar{width:56px;height:56px;border-radius:50%;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;flex-shrink:0}
.profile-head-text{min-width:0}
.profile-head-title{font-size:17px;font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-head-sub{font-size:12px;color:var(--text2);margin-top:4px}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.profile-field{min-width:0}
.profile-field-wide{grid-column:1/-1}
.profile-label{font-size:12px;color:var(--text2);margin-bottom:6px;display:block;font-weight:500}
.profile-input{width:100%;min-width:0;padding:11px 12px;border:1px solid var(--border);border-radius:10px;font-size:14px;outline:none;transition:border-color .2s,box-shadow .2s;background:#fff}
.profile-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(196,136,58,.12)}
.profile-input:disabled{color:var(--text2);background:#f6f6f7}
.profile-password-box{grid-column:1/-1;margin-top:2px;padding:14px;border:1px solid var(--border);border-radius:14px;background:#fff}
.profile-password-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.profile-hint{font-size:12px;color:var(--text2);line-height:1.5}
.profile-status{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;background:rgba(255,149,0,.1);color:#a86400;font-size:12px;font-weight:700;white-space:nowrap}
.profile-status.is-set{background:rgba(52,199,89,.1);color:#248a3d}
.profile-password-btn{width:100%;min-height:38px;margin-top:10px;font-size:13px}
.profile-footer{display:grid;grid-template-columns:1fr 1fr}
.profile-footer .nav-btn{width:100%;min-height:44px}

.form-group{margin-bottom:16px}
.form-label{display:block;font-size:13px;font-weight:500;margin-bottom:6px;color:var(--text2);letter-spacing:-.1px}
.form-input{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:12px;font-size:14px;outline:none;transition:all .2s ease;min-height:44px;background:#fff}
.form-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(196,136,58,.12)}
.form-select{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:12px;font-size:14px;outline:none;min-height:44px;background:#fff}
.code-row{display:flex;gap:8px}
.code-row .form-input{flex:1}
.code-btn{padding:12px 16px;border-radius:12px;border:1px solid var(--accent);background:#fff;color:var(--accent);font-size:13px;cursor:pointer;white-space:nowrap;font-weight:500;min-height:44px;transition:all .2s}
.code-btn:hover{background:var(--accent-light)}
.code-btn:disabled{opacity:.5;cursor:not-allowed}
.login-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:18px;padding:4px;border:1px solid var(--border);border-radius:14px;background:#f6f6f7}
.login-tab{border:none;border-radius:10px;background:transparent;color:var(--text2);font-size:13px;font-weight:700;min-height:38px;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.login-tab.active{background:#fff;color:var(--text);box-shadow:0 2px 10px rgba(0,0,0,.06)}
.login-tab:focus-visible{outline:2px solid rgba(196,136,58,.45);outline-offset:2px}
.wechat-login-divider{display:flex;align-items:center;gap:12px;margin:16px 0 12px;color:var(--text3);font-size:12px}
.wechat-login-divider::before,.wechat-login-divider::after{content:'';height:1px;background:var(--border);flex:1}
.wechat-login-btn{width:100%;min-height:46px;border:1px solid rgba(7,193,96,.28);border-radius:12px;background:#f0fff6;color:#058d49;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.wechat-login-icon{width:24px;height:24px;border-radius:50%;background:#07c160;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:800;line-height:1}
.wechat-login-btn:hover{background:#07c160;color:#fff;border-color:#07c160;transform:translateY(-1px)}
.wechat-login-btn:hover .wechat-login-icon{background:#fff;color:#07c160}
.wechat-login-btn:focus-visible{outline:2px solid rgba(7,193,96,.35);outline-offset:2px}

.toast-container{position:fixed;top:64px;right:16px;z-index:300;display:flex;flex-direction:column;gap:8px;max-width:calc(100vw - 32px)}
.toast{padding:12px 18px;border-radius:12px;font-size:14px;color:#fff;box-shadow:0 4px 16px rgba(0,0,0,.12);animation:slideIn .3s ease;min-width:180px;letter-spacing:-.1px}
.toast-success{background:var(--success)}
.toast-error{background:#ff3b30}
.toast-info{background:#007aff}
@keyframes slideIn{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}

.pay-success{text-align:center;padding:clamp(8px,2dvh,16px) 0}
.pay-success-icon{font-size:clamp(36px,8dvh,56px);margin-bottom:clamp(6px,1.5dvh,12px)}
.pay-success-title{font-size:20px;font-weight:700;margin-bottom:8px;letter-spacing:-.2px}
.pay-success-desc{font-size:14px;color:var(--text2);margin-bottom:clamp(8px,1.8dvh,16px);line-height:1.5}
.qr-wrapper{display:flex;flex-direction:column;align-items:center;gap:clamp(8px,1.8dvh,16px);margin:clamp(8px,2dvh,20px) 0}
.qr-box{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:clamp(10px,2dvh,20px);display:flex;flex-direction:column;align-items:center;gap:12px}
.qr-box img{border-radius:8px;max-width:200px}
.wechat-qr-img{width:clamp(148px,42dvh,200px);height:clamp(148px,42dvh,200px);display:block;object-fit:contain}
.qr-box canvas{border-radius:8px}
.qr-box-title{font-size:14px;font-weight:600;color:var(--text)}
.qr-countdown{font-size:13px;color:var(--accent);font-weight:500}
.qr-hint{font-size:13px;color:var(--text2);line-height:2;text-align:center}
.qr-hint strong{color:var(--text);font-weight:600}
.qr-note{font-size:12px;color:var(--accent);background:var(--accent-light);padding:10px 14px;border-radius:12px;line-height:1.6;text-align:center;max-width:320px;margin:0 auto}
.qr-refresh{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:980px;border:1px solid var(--accent);background:#fff;color:var(--accent);font-size:13px;cursor:pointer;font-weight:500;min-height:44px;transition:all .2s}
.qr-refresh:hover{background:var(--accent-light)}
.order-item{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:.5px solid var(--border)}
.order-item:last-child{border-bottom:none}
.order-info{flex:1;min-width:0}
.order-name{font-weight:600;font-size:15px}
.order-date{font-size:12px;color:var(--text2);margin-top:2px}
.order-right{text-align:right;flex-shrink:0;margin-left:12px}
.order-price{font-weight:600;font-size:15px}
.order-status{font-size:12px;margin-top:2px}
.order-actions{display:flex;gap:6px;margin-top:8px}

.employee-portal-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:980px;border:1px solid var(--accent);background:var(--accent-light);color:var(--accent);font-size:13px;cursor:pointer;font-weight:500;min-height:44px;transition:all .2s}
.employee-portal-btn:hover{background:var(--accent);color:#fff}

#dashboard-view{width:min(1120px,100%);margin:0 auto;padding:24px 20px max(64px,calc(24px + env(safe-area-inset-bottom)));min-height:calc(100svh - 52px);overflow-x:hidden}
.dash-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px;padding-bottom:20px;border-bottom:.5px solid var(--border)}
.dash-title{font-size:24px;font-weight:700;letter-spacing:-.3px}
.dash-subtitle{font-size:14px;color:var(--text2);margin-top:4px}
.dash-card{background:#fff;border-radius:var(--radius);border:.5px solid var(--border);padding:24px;margin-bottom:16px;box-shadow:var(--shadow);min-width:0;overflow:hidden}
.dash-card-title{font-size:16px;font-weight:600;margin-bottom:16px;display:flex;align-items:center;gap:8px;letter-spacing:-.2px}
.dash-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:.5px solid var(--border);min-width:0}
.dash-item:last-child{border-bottom:none}
.dash-item-info{display:flex;align-items:center;gap:12px;min-width:0}
.dash-item-icon{font-size:28px}
.dash-item-name{font-size:15px;font-weight:500}
.dash-item-desc{font-size:12px;color:var(--text2)}
.dash-item-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
.dash-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:980px;font-size:12px;font-weight:500}
.dash-badge-success{background:rgba(52,199,89,.1);color:#248a3d}
.dash-badge-warning{background:rgba(255,149,0,.1);color:#c77c00}
.dash-badge-info{background:rgba(0,122,255,.1);color:#0066cc}
.dash-empty{text-align:center;padding:40px;color:var(--text2)}

.billing-panel{display:flex;flex-direction:column;gap:14px}
.modal-im-channels{max-width:460px}
.im-channel-intro{margin:0 0 16px;color:var(--text2);font-size:12px;line-height:1.7;text-align:center}
#im-channel-list{display:flex;flex-direction:column;gap:10px}
.im-channel-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:24px 20px;border:1px solid var(--border);border-radius:16px;background:#fff}
.im-channel-icon{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}
.im-channel-icon svg{width:30px;height:30px;display:block}
.im-channel-icon-wechat{background:#07c160}.im-channel-icon-feishu{background:#3370ff}.im-channel-icon-wecom{background:#2b7de9}
.im-channel-head{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;font-size:16px;color:var(--text1)}.im-channel-head strong{font-weight:700}
.im-channel-desc{font-size:13px;color:var(--text2);line-height:1.7;max-width:420px}.im-channel-caps{font-size:12px;color:var(--text3);letter-spacing:.02em}.im-channel-note{font-size:12px;color:#a15c00;word-break:break-word}
.im-status{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:600}
.im-status-success{background:rgba(52,199,89,.12);color:#248a3d}.im-status-neutral{background:rgba(0,122,255,.1);color:#0066cc}.im-status-warning{background:rgba(255,149,0,.12);color:#9a5b00}.im-status-danger{background:rgba(255,59,48,.1);color:#c7251d}.im-status-muted{background:var(--bg2);color:var(--text2)}
.im-channel-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:4px;width:100%}.im-channel-action{min-width:120px;justify-content:center}.im-channel-danger{color:#c7251d!important}
.im-channel-loading,.im-channel-error{padding:28px;text-align:center;color:var(--text2);font-size:13px}.im-channel-error{color:#c7251d}
@media(max-width:640px){.modal-im-channels{max-width:none}.im-channel-actions{flex-direction:column}.im-channel-action{width:100%;min-width:0}}
.im-icon-row{display:flex;gap:8px;align-items:center}
.im-icon{position:relative;width:34px;height:34px;padding:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font:inherit;cursor:pointer;user-select:none;transition:transform .1s ease,opacity .1s ease}
.im-icon:hover{transform:translateY(-1px)}
.im-icon-glyph{display:inline-flex;align-items:center;justify-content:center;line-height:0}
.im-icon-glyph svg{width:20px;height:20px;display:block}
.im-icon-idle{opacity:.82}
.im-icon-disabled,.im-icon:disabled{background:#c9ccd1!important;color:#fff!important;cursor:not-allowed;opacity:.6}
.im-icon-disabled:hover{transform:none}
.im-icon-dot{position:absolute;right:-1px;top:-1px;width:9px;height:9px;border-radius:50%;border:2px solid #fff;box-sizing:border-box}
.im-icon-dot.on{background:#34c759}
.im-icon-dot.off{background:#c9ccd1}
.billing-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:12px;align-items:stretch}
.billing-summary{background:linear-gradient(135deg,#1f1f23,#3a2a18);color:#fff;border-radius:14px;padding:18px;min-height:126px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}
.billing-summary::after{content:'';position:absolute;right:-64px;top:-64px;width:160px;height:160px;border-radius:50%;background:rgba(196,136,58,.22)}
.billing-summary-title{font-size:13px;color:rgba(255,255,255,.7);margin-bottom:8px}
.billing-summary-value{font-size:30px;font-weight:800;letter-spacing:0;line-height:1}
.billing-summary-sub{font-size:12px;color:rgba(255,255,255,.64);margin-top:12px;line-height:1.5}
.billing-side{display:grid;grid-template-columns:1fr;gap:10px}
.billing-metric{border:1px solid var(--border);border-radius:12px;background:#fff;padding:14px}
.billing-metric-label{font-size:12px;color:var(--text2);margin-bottom:6px}
.billing-metric-value{font-size:20px;font-weight:700;color:var(--text)}
.billing-metric.green .billing-metric-value{color:#248a3d}
.billing-metric.blue .billing-metric-value{color:#0066cc}
.billing-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:#fff}
.billing-filter{display:flex;align-items:center;gap:8px;min-width:220px;flex:1}
.billing-filter label{font-size:12px;color:var(--text2);white-space:nowrap}
.billing-filter select{width:100%;max-width:240px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);font-size:13px;outline:none}
.billing-actions{display:flex;gap:8px;flex-wrap:wrap}
.budget-section{border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden}
.budget-header{display:grid;grid-template-columns:1.35fr repeat(3,minmax(92px,1fr)) 88px;gap:8px;align-items:center;padding:10px 12px;background:#f6f6f7;font-size:12px;color:var(--text2);font-weight:600}
.budget-row{display:grid;grid-template-columns:1.35fr repeat(3,minmax(92px,1fr)) 88px;gap:8px;align-items:center;padding:12px;border-top:1px solid var(--border)}
.budget-member{min-width:0}
.budget-member-name{font-size:14px;font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.budget-member-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px;font-size:11px;color:var(--text2)}
.billing-pill{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:600;background:#f2f2f3;color:var(--text2)}
.billing-pill.ok{background:rgba(52,199,89,.1);color:#248a3d}
.billing-pill.warn{background:rgba(255,149,0,.12);color:#a86400}
#user-avatar-btn:hover + #user-dropdown,#user-dropdown:hover,#user-dropdown.open{display:block!important}
.nav-wallet-widget{position:relative;display:inline-flex;align-items:center;border:1px solid rgba(146,64,14,.18);background:linear-gradient(135deg,#fef3c7,#fde68a);border-radius:18px;overflow:visible;white-space:nowrap}
.nav-wallet-checkin,.nav-wallet-balance{border:0;background:transparent;color:#92400e;font-size:12px;font-weight:700;min-height:30px;padding:5px 10px;cursor:pointer}
.nav-wallet-checkin{border-right:1px solid rgba(146,64,14,.18)}
.nav-wallet-checkin:disabled{opacity:.58;cursor:default}
.nav-checkin-popover{display:none;position:absolute;top:30px;right:0;width:min(360px,calc(100vw - 24px));max-height:min(78vh,680px);overflow:auto;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.14);padding:14px;z-index:1200;color:var(--text);white-space:normal}
.nav-wallet-widget:hover .nav-checkin-popover,.nav-wallet-widget.open .nav-checkin-popover{display:block}
.wallet-pop-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.wallet-pop-label{font-size:11px;color:var(--text2);margin-bottom:3px}
.wallet-pop-balance{font-size:26px;font-weight:800;line-height:1;color:#92400e}
.wallet-pop-primary{border:0;border-radius:9px;background:#92400e;color:#fff;font-size:12px;font-weight:700;min-height:32px;padding:0 12px;cursor:pointer}
.wallet-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.wallet-metrics div{border:1px solid var(--border);border-radius:10px;padding:9px 8px;background:#fff}
.wallet-metrics span{display:block;font-size:10px;color:var(--text2);margin-bottom:4px}
.wallet-metrics strong{font-size:13px;color:var(--text);font-weight:700}
.wallet-section{border-top:1px solid var(--border);padding-top:12px;margin-top:12px}
.wallet-section-title{font-size:13px;font-weight:700;margin-bottom:8px}
.wallet-kv{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;padding:4px 0}
.wallet-kv span,.wallet-order-meta{color:var(--text2)}
.wallet-kv strong{font-weight:700;color:var(--text);text-align:right}
.wallet-link-btn{width:100%;border:1px solid var(--border);background:#fff;border-radius:9px;min-height:32px;margin-top:8px;font-size:12px;font-weight:700;color:var(--text);cursor:pointer}
.plan-management-modal{width:min(760px,calc(100vw - 32px));max-width:760px}
.plan-management-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.plan-management-summary>div{display:flex;flex-direction:column;gap:3px}
.plan-management-summary span{color:var(--text2);font-size:12px}
.plan-management-summary strong{font-size:17px}
.plan-cycle-current{color:var(--text2);font-size:13px}
.plan-cycle-switch{display:inline-flex;padding:3px;border:1px solid var(--border);border-radius:8px;background:var(--bg2)}
.plan-cycle-switch button{min-width:64px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--text2);cursor:pointer}
.plan-cycle-switch button.active{background:var(--card);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.08)}
.plan-expired-notice{margin-bottom:14px;padding:10px 12px;border-left:3px solid var(--primary);background:var(--bg2);color:var(--text2);font-size:13px;line-height:1.5}
.plan-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.plan-option{display:flex;min-width:0;flex-direction:column;padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--card)}
.plan-option.selected{border-color:var(--primary)}
.plan-option-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.plan-option-head h3{margin:0;font-size:16px;line-height:1.3}
.plan-option-head span{padding:2px 7px;border-radius:6px;background:var(--bg2);color:var(--primary);font-size:11px}
.plan-option>p{min-height:20px;margin:5px 0 12px;color:var(--text2);font-size:12px}
.plan-option-price{display:flex;align-items:baseline;gap:4px;margin-bottom:12px}
.plan-option-price strong{font-size:24px;line-height:1}
.plan-option-price span{color:var(--text2);font-size:12px}
.plan-option dl{display:grid;gap:6px;margin:0 0 12px}
.plan-option dl>div{display:flex;justify-content:space-between;gap:12px;color:var(--text2);font-size:12px}
.plan-option dt,.plan-option dd{margin:0}
.plan-option dd{color:var(--text);text-align:right}
.plan-option-foot{display:flex;flex-direction:column;margin-top:auto}
.plan-option-quote{min-height:34px;margin:0 0 8px;color:var(--text2);font-size:12px;line-height:1.45}
.plan-option-btn{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;min-height:40px;padding:8px 12px;border:1px solid var(--border);border-radius:7px;background:var(--bg2);color:var(--text2);font-weight:600;line-height:1.3;white-space:normal;word-break:break-word;cursor:pointer}
.plan-option-btn.primary{border-color:var(--primary);background:var(--primary);color:#fff}
.plan-option-btn:disabled{cursor:default;opacity:.7}
.plan-option-note{min-height:30px;margin-top:7px;color:var(--text3);font-size:11px;line-height:1.35}
.plan-loading,.plan-payment-result{padding:40px 16px;color:var(--text2);text-align:center}
.plan-loading.error{color:var(--danger)}
.plan-payment-result-mark{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:32px;margin-bottom:14px;border-radius:7px;background:rgba(52,199,89,.12);color:#248a3d;font-size:13px;font-weight:700}
.plan-payment-result.warning .plan-payment-result-mark{background:rgba(255,149,0,.14);color:#a65b00}
.plan-payment-result-title{margin-bottom:7px;color:var(--text);font-size:18px;font-weight:700}
.plan-payment-result-sub{font-size:13px;line-height:1.5}
.wallet-order-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--bg2)}
.wallet-order-row:last-of-type{border-bottom:0}
.wallet-order-title{font-size:12px;font-weight:600;color:var(--text)}
.wallet-order-meta{font-size:11px;margin-top:2px}
.wallet-order-status{font-size:11px;font-weight:700;color:var(--text2);white-space:nowrap}
.wallet-order-status.paid{color:#248a3d}
.wallet-order-status.pending{color:#a86400}
.wallet-empty{font-size:12px;color:var(--text2);padding:6px 0}
.checkin-pop-title{font-size:13px;font-weight:700;margin-bottom:4px}
.checkin-pop-sub{font-size:11px;color:var(--text2);margin-bottom:14px}
.checkin-track{position:relative;height:34px;margin:4px 4px 0}
.checkin-track-line{position:absolute;left:0;right:0;top:14px;height:4px;background:#f1f1f4;border-radius:99px}
.checkin-track-fill{position:absolute;left:0;top:14px;height:4px;background:#c4883a;border-radius:99px}
.checkin-point{position:absolute;top:5px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;font-size:10px;color:var(--text2)}
.checkin-dot{width:20px;height:20px;border-radius:50%;border:2px solid #d8d8de;background:#fff;box-sizing:border-box}
.checkin-point.done .checkin-dot{border-color:#c4883a;background:#c4883a}
.checkin-point.current .checkin-dot{border-color:#c4883a;box-shadow:0 0 0 4px rgba(196,136,58,.16)}
.budget-input{width:100%;height:38px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:6px 8px;font-size:13px;outline:none}
.budget-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(196,136,58,.1)}
.budget-progress{margin-top:8px;height:6px;background:#ececef;border-radius:999px;overflow:hidden}
.budget-progress-bar{height:100%;border-radius:999px;background:#34c759}
.budget-progress-bar.warn{background:#ff9500}
.budget-progress-bar.danger{background:#ff3b30}
.usage-section{display:flex;flex-direction:column;gap:6px}
.usage-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px;margin-top:2px;font-size:12px}
.usage-list-toolbar>strong{font-size:13px}
.usage-plan-note{color:var(--text2);text-align:right}
.usage-detail-toggle{display:inline-flex;align-items:center;gap:7px;color:var(--text2);cursor:pointer;user-select:none}
.usage-detail-toggle input{width:15px;height:15px;margin:0;accent-color:var(--accent)}
.usage-row{display:block;border:1px solid var(--border);border-radius:10px;background:#fff;overflow:hidden;transition:border-color .2s,background .2s}
.usage-row[open]{border-color:#d7c7b1;background:#fffdf9}
.usage-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;cursor:pointer;list-style:none;transition:background .2s}
.usage-summary::-webkit-details-marker{display:none}
.usage-summary::after{content:'›';font-size:18px;line-height:1;color:var(--text3);transform:rotate(90deg);transition:transform .2s}
.usage-row[open]>.usage-summary::after{transform:rotate(-90deg)}
.usage-summary:hover{background:#fdfaf5}
.usage-summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.usage-row-basic>.usage-summary{cursor:default}
.usage-row-basic>.usage-summary::after{display:none}
.usage-row-basic>.usage-summary:hover{background:transparent}
.usage-main{min-width:0;flex:1}
.usage-title{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.usage-meta{font-size:11px;color:var(--text2);margin-top:4px}
.usage-credit{font-size:13px;font-weight:700;color:var(--accent);white-space:nowrap}
.usage-status{display:inline-flex;margin-left:6px;font-size:10px;font-weight:650;color:var(--text2);vertical-align:1px}
.usage-status.succeeded{color:#248a3d}
.usage-status.failed{color:#c4362b}
.usage-detail{border-top:1px solid var(--border);padding:12px;display:grid;gap:14px}
.usage-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.usage-metrics>div{min-width:0;padding:9px;border-radius:8px;background:#f7f4ef}
.usage-metrics span{display:block;font-size:10px;color:var(--text2);margin-bottom:4px}
.usage-metrics strong{display:block;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.usage-detail-title{font-size:12px;font-weight:700}
.usage-context-note{font-size:10px;color:var(--text2);margin:3px 0 9px}
.usage-context-row{display:grid;grid-template-columns:66px minmax(80px,1fr) 86px;align-items:center;gap:8px;min-height:24px;font-size:10px;color:var(--text2)}
.usage-context-row strong{text-align:right;color:var(--text);font-size:10px;font-weight:650;font-variant-numeric:tabular-nums}
.usage-context-track{height:5px;border-radius:99px;background:#ece7df;overflow:hidden}
.usage-context-bar{display:block;height:100%;border-radius:inherit;background:#b88445}
.usage-context-foot{font-size:10px;color:var(--text2);margin-top:8px}
.usage-technical{display:flex;flex-wrap:wrap;gap:6px 12px;padding-top:10px;border-top:1px dashed var(--border);font-size:10px;color:var(--text2)}

@media(max-width:720px){
  .usage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .usage-context-row{grid-template-columns:62px minmax(54px,1fr) 74px}
  .usage-summary{align-items:flex-start}
  .usage-list-toolbar{align-items:flex-start;flex-direction:column;gap:4px}
  .usage-plan-note{text-align:left}
}

.footer{text-align:center;padding:40px 24px;color:var(--text3);font-size:12px;border-top:.5px solid var(--border);letter-spacing:-.1px}
.footer a{color:var(--accent);text-decoration:none;transition:color .2s}
.footer a:hover{color:var(--text)}

#landing-view .cta{padding:130px 48px;text-align:center;position:relative;overflow:hidden;background:#fdfcf9;color:#1c1917}
#landing-view .cta::before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:80%;height:100%;background:radial-gradient(ellipse at 50% 60%,rgba(196,136,58,.07) 0%,transparent 65%);pointer-events:none}
.cta-title{font-size:3.5rem;font-weight:760;line-height:1.1;margin-bottom:16px;position:relative}
.cta-desc{font-size:1.05rem;color:#57534e;max-width:40ch;margin:0 auto 36px;line-height:1.7;position:relative}
#landing-view .footer{padding:28px 48px;border-top:1px solid rgba(0,0,0,.06);display:flex;align-items:center;justify-content:space-between;max-width:1320px;margin:0 auto;color:#a8a29e;background:#fdfcf9;text-align:left}
.footer-copy{font-size:12px;color:#a8a29e}
.footer-links{display:flex;gap:20px}
.footer-link{font-size:12px;color:#a8a29e;text-decoration:none;transition:color .2s}
.footer-link:hover{color:var(--accent)}
.reveal{opacity:0;transform:translateY(28px);transition:opacity .65s cubic-bezier(.22,1,.36,1),transform .65s cubic-bezier(.22,1,.36,1)}
.reveal.revealed{opacity:1;transform:translateY(0)}
.reveal-d1{transition-delay:.08s}.reveal-d2{transition-delay:.16s}.reveal-d3{transition-delay:.24s}.reveal-d4{transition-delay:.32s}

@media(max-width:1024px){
  .hero{padding:96px 32px 72px}
  .hero-inner{grid-template-columns:1fr;text-align:center;gap:40px;min-height:auto}
  .hero-sub{margin-left:auto;margin-right:auto}
  .hero-btns,.hero-stats{justify-content:center}
  .chat-mockup{transform:none;width:min(360px,80vw)}
  .chat-mockup:hover{transform:none}
  .float-card{display:none}
  .section-head{grid-template-columns:1fr;text-align:center}
  .section-desc{margin:0 auto}
  .bento-grid{grid-template-columns:1fr 1fr}
  .b1,.b5{grid-column:span 2}
  .b2,.b3,.b4{grid-column:span 1}
  .steps-grid,.product-grid{grid-template-columns:1fr}
  .security-grid{grid-template-columns:1fr}
  .pricing-grid{grid-template-columns:repeat(2,1fr);max-width:640px;margin:0 auto}
}
@media(max-width:768px){
  .hero{padding:82px 20px 50px;min-height:auto}
  .hero-h{font-size:2.7rem}
  .hero-sub{font-size:15px}
  .hero-btns{flex-direction:column}
  .hero-btns .btn-primary,.btn-secondary{width:100%}
  .hero-stats{flex-wrap:wrap;gap:18px 30px}
  .bento,.product,.roles-section,.pricing,.security,.steps-section,#landing-view .cta{padding:78px 20px}
  .section-title,.pricing-title,.security-title,.steps-title,.product-title{font-size:2rem}
  .bento-grid{grid-template-columns:1fr}
  .b1,.b2,.b3,.b4,.b5{grid-column:span 1}
  .b5{flex-direction:column;align-items:flex-start}
  .security-grid,.steps-grid{grid-template-columns:1fr}
  .product-visual{aspect-ratio:1/1}
  .product-screen{width:84%;height:76%}
  .section{padding:56px 20px}
  .pricing-grid{grid-template-columns:1fr;max-width:420px;margin:0 auto}
  .cta-title{font-size:2.3rem}
  .nav{padding:0 10px}
  .nav-brand span{display:none}
  .nav-right{gap:4px}
  .nav-right .nav-btn{min-height:36px;padding:7px 10px}
  #nav-user-area{min-width:0;margin-left:4px!important;gap:4px!important}
  #user-avatar-btn{width:34px!important;height:34px!important;flex:0 0 34px}
  .nav-wallet-checkin{display:none}
  .nav-wallet-balance{min-height:30px;padding:5px 7px;font-size:11px}
  .roles-title{font-size:24px}
  .roles-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
  #landing-view .footer{padding:24px 20px;flex-direction:column;gap:12px;text-align:center}
  .billing-hero{grid-template-columns:1fr}
  .billing-toolbar{align-items:stretch}
  .billing-filter{min-width:0;width:100%}
  .billing-actions{width:100%}
  .billing-actions .btn{flex:1}
  .budget-header{display:none}
  .budget-row{grid-template-columns:1fr;gap:10px}
  .budget-row .btn{width:100%}
  .modal-overlay{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));align-items:flex-end}
  .modal,.modal[style]{width:100%!important;max-width:none!important;max-height:min(calc(100dvh - 16px),calc(100svh - 16px))!important;border-radius:18px 18px 0 0;margin:0}
  .modal-login,.modal-pay,.modal-profile{width:100%!important;max-width:none!important;max-height:min(calc(100dvh - 16px),calc(100svh - 16px))!important}
  .modal-header{padding:14px 16px}
  .modal-body,.modal-body[style]{padding:16px!important;overscroll-behavior:contain}
  .modal-body>div[style*="padding:30px"],.modal-body>div[style*="padding:24px"],.modal-body>div[style*="padding:20px"]{padding:16px!important}
  .modal-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr;gap:8px}
  .modal-footer .nav-btn,.modal-footer .btn{width:100%;min-height:44px}
  .modal-pay .pay-success-title{font-size:18px}
  .modal-pay .pay-success-desc{font-size:13px;margin-bottom:8px}
  .modal-pay .qr-wrapper{gap:10px;margin:8px 0}
  .modal-pay .qr-hint{line-height:1.5}
  .modal-pay .qr-refresh{width:100%;justify-content:center}
  .modal-pay canvas,.modal-pay #wxpay-qrcode img,.modal-pay .qr-wrapper img{max-width:min(72vw,220px)!important;height:auto!important}
  .modal-pay [style*="padding:16px"]{padding:12px!important}
  .modal-pay [style*="font-size:24px"]{font-size:20px!important}
  .floating-modal-overlay{align-items:flex-end;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .floating-modal,.floating-modal[style]{width:100%!important;max-width:none!important;max-height:min(calc(100dvh - 16px),calc(100svh - 16px))!important;border-radius:18px 18px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom))!important}
  .floating-modal-actions{display:grid;grid-template-columns:1fr}
  .share-guide-overlay{padding:max(16px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
  #dashboard-view{padding:18px 14px max(88px,calc(28px + env(safe-area-inset-bottom)));width:100%}
  .dash-header{margin-bottom:18px;padding-bottom:14px}
  .dash-card{padding:16px;margin-bottom:12px;border-radius:14px}
  .dash-item{align-items:flex-start;flex-direction:column}
  .dash-item-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .dash-item-actions .nav-btn{flex:1;min-width:128px}
  .profile-grid{grid-template-columns:1fr}
  .profile-head{align-items:flex-start}
  .profile-footer{grid-template-columns:1fr}
  .model-option-card{display:block}
  .model-option-actions{margin-top:10px;flex-direction:row;align-items:center;justify-content:flex-end}
  .model-option-heading,.model-editor-toolbar{align-items:stretch;flex-direction:column}
  .model-option-heading .model-option-actions{margin-top:0}
  .model-capability-grid{grid-template-columns:1fr}
  .model-preset-btn{width:100%}
  .plan-management-summary{align-items:flex-start;flex-direction:column}
  .plan-options-grid{grid-template-columns:1fr}
  .plan-option>p,.plan-option-quote,.plan-option-note{min-height:0}
}
@media(max-width:400px){
  .hero-h{font-size:2.25rem}
  .roles-grid{gap:10px}
  .role-card{padding:16px 12px}
  .role-card-icon{font-size:28px}
  .code-row{flex-direction:column}
  .code-row .form-input{width:100%}
  .login-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin-bottom:12px}
  .login-tab{min-height:36px;font-size:12px;padding:0 4px}
  .nav-right{gap:6px}
  .nav-btn{padding:8px 12px;font-size:12px}
}
@media (max-height: 640px) {
  .modal-header{padding-top:10px;padding-bottom:10px}
  .modal-body,.modal-body[style]{padding-top:12px!important;padding-bottom:12px!important}
  .modal-body>div[style*="padding:30px"],.modal-body>div[style*="padding:24px"],.modal-body>div[style*="padding:20px"]{padding:10px!important}
  .modal-footer{padding-top:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .modal-pay .qr-wrapper{gap:8px;margin:6px 0}
  .modal-pay canvas,.modal-pay #wxpay-qrcode img{width:clamp(132px,34dvh,180px)!important;height:auto!important}
  .pay-success-icon{font-size:36px;margin-bottom:6px}
}
