:root{
  --bg:#f7f3e8;
  --surface:#fffaf0;
  --card:#ffffff;
  --line:#ead7bb;
  --text:#113b67;
  --muted:#66758d;
  --primary:#f57c00;
  --primary-2:#ff9a1f;
  --accent:#0f5f96;
  --success:#159947;
  --danger:#cf4335;
  --shadow:0 18px 45px rgba(20,57,97,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,Segoe UI,Arial,sans-serif;
  background:linear-gradient(135deg,#f7f3e8,#fff9ef 50%,#fffdf8);
  color:var(--text);
}
a{color:inherit}
.app-shell{min-height:100vh}
.topbar{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 24px;border-bottom:1px solid var(--line);
  background:rgba(255,250,240,.95);backdrop-filter:blur(8px);
  position:sticky;top:0;z-index:30;
}
.topbar-left{display:flex;align-items:center;gap:14px}
.logo-navbar{height:48px;width:auto;display:block}
.brand-name{font-weight:800;color:var(--accent);font-size:18px}
.brand-tagline{font-size:12px;color:var(--primary);font-weight:700}
.workspace,.hero{
  width:min(1380px, calc(100% - 32px));
  margin:0 auto;
}
.hero{
  display:grid;grid-template-columns:1.05fr .95fr;gap:24px;
  padding:26px 0 18px;
}
.hero-copy,.hero-visual{
  background:linear-gradient(180deg,#fffdf8,#fff7ea);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
}
.hero-copy{padding:34px}
.hero-badge{
  display:inline-block;padding:8px 12px;border-radius:999px;
  background:rgba(245,124,0,.10);color:var(--primary);font-size:12px;font-weight:800;
  margin-bottom:14px;
}
.hero h1{font-size:42px;line-height:1.12;margin:0 0 14px;color:var(--accent)}
.hero p{font-size:16px;line-height:1.7;margin:0 0 18px;color:var(--muted)}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.hero-btn{
  border:none;border-radius:14px;padding:12px 16px;cursor:pointer;
  background:#fff;color:var(--accent);border:1px solid var(--line);font-weight:700;
}
.hero-btn:hover{border-color:var(--primary);background:#fff8ef}
.hero-visual{padding:14px;display:flex;align-items:center;justify-content:center}
.hero-banner{
  width:100%;
  max-height:340px;
  object-fit:contain;
  display:block;
  border-radius:22px;
  background:#fff;
}
.workspace{
  display:grid;grid-template-columns:310px 1fr;gap:24px;
  padding:0 0 28px;
}
.left-panel{display:flex;flex-direction:column;gap:16px}
.panel-card{
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:18px;
}
.panel-title{font-weight:800;color:var(--accent);margin-bottom:12px}
.quick-action{
  width:100%;text-align:left;margin-top:8px;padding:12px 14px;border-radius:14px;
  border:1px solid var(--line);background:#fff;cursor:pointer;color:var(--text);font-weight:600;
}
.quick-action:hover{background:#fff8ef;border-color:var(--primary)}
.guide-list{margin:0;padding-left:18px;color:var(--muted);line-height:1.8}
.chat-card{
  background:rgba(255,255,255,.88);
  border:1px solid var(--line);
  border-radius:26px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.chat-header{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:18px 22px;border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff9ef,#ffffff);
}
.chat-header-left{display:flex;align-items:center;gap:14px}
.chat-logo{
  width:64px;height:64px;object-fit:cover;border-radius:18px;
  background:#fff;box-shadow:0 10px 24px rgba(15,95,150,.10);
}
.chat-header h2{margin:0;color:var(--accent)}
.chat-header p{margin:6px 0 0;color:var(--muted)}
.chat-header-right,.chat-actions{display:flex;gap:10px;align-items:center}
.messages{
  height:440px;overflow:auto;padding:22px;
  background:linear-gradient(180deg,#fffefb,#fff8ef);
}
.row{display:flex;margin-bottom:16px}
.row.user{justify-content:flex-end}
.bubble{
  max-width:72%;
  padding:14px 16px;
  border-radius:18px;
  line-height:1.55;
  white-space:pre-wrap;
  box-shadow:0 6px 18px rgba(16,59,103,.05);
}
.row.user .bubble{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  border-bottom-right-radius:6px;
}
.row.assistant .bubble{
  background:#fff;
  border:1px solid var(--line);
  color:var(--text);
  border-bottom-left-radius:6px;
}
.inline-link{
  color:var(--accent);
  font-weight:700;
  text-decoration:underline;
}
.product-section{padding:0 22px 22px}
.section-head{
  display:flex;justify-content:space-between;align-items:end;gap:12px;
  padding:6px 0 14px;
}
.section-title{font-weight:800;color:var(--accent)}
.section-subtitle{font-size:13px;color:var(--muted)}
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
}
.product-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(245,124,0,.06);
}
.product-img{
  width:100%;height:180px;object-fit:cover;display:block;
}
.product-body{padding:14px}
.product-cat{
  display:inline-block;
  font-size:12px;
  color:var(--primary);
  font-weight:800;
  text-transform:capitalize;
}
.product-card h3{
  margin:8px 0 8px;
  font-size:19px;
  color:var(--accent);
}
.product-card p{
  margin:0 0 12px;
  min-height:44px;
  color:var(--muted);
  line-height:1.5;
}
.product-price{
  font-weight:900;
  color:var(--accent);
  margin-bottom:12px;
}
.product-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.composer-wrap{
  position:sticky;bottom:0;background:#fffaf0;border-top:1px solid var(--line);
  padding:16px 22px;
}
.composer{display:flex;gap:12px}
.composer input{
  flex:1;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  outline:none;
  font-size:15px;
}
.primary-btn,.ghost-btn{
  border:none;cursor:pointer;border-radius:14px;padding:13px 16px;font-weight:800;
}
.primary-btn{
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
}
.ghost-btn{
  background:#fff;color:var(--accent);border:1px solid var(--line);
}
.pill{
  display:inline-block;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800;
}
.pill.ok{background:rgba(21,153,71,.12);color:var(--success)}
.pill.warn{background:rgba(245,124,0,.12);color:var(--primary)}
.pill.bad{background:rgba(207,67,53,.12);color:var(--danger)}
.hidden{display:none !important}
.typing{
  display:flex;align-items:center;gap:8px;
  padding:0 22px 18px;color:var(--muted);font-size:13px;
}
.typing span{
  width:8px;height:8px;border-radius:50%;background:var(--primary);
  animation:bounce 1.4s infinite ease-in-out both;
}
.typing span:nth-child(2){animation-delay:.16s}
.typing span:nth-child(3){animation-delay:.32s}
@keyframes bounce{
  0%,80%,100%{transform:scale(.7);opacity:.6}
  40%{transform:scale(1);opacity:1}
}
.invoice-page{background:#fff8ef}
.invoice-wrap{max-width:980px;margin:40px auto;padding:0 16px}
.invoice-card{
  background:#fff;border:1px solid var(--line);border-radius:28px;padding:24px;
  box-shadow:var(--shadow);
}
.invoice-head{
  display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;
}
.invoice-grid{
  display:grid;grid-template-columns:1.15fr .85fr;gap:24px;
}
.label{color:var(--muted);font-size:13px;margin-top:12px}
.value{font-weight:700;margin-top:4px;color:var(--accent)}
.big-price{font-size:34px;font-weight:900;margin-top:8px;color:var(--primary)}
.qr-box{
  background:#fffaf0;border:1px solid var(--line);border-radius:22px;padding:18px;text-align:center;
}
.qr-box img{
  max-width:100%;
  width:min(100%, 300px);
  aspect-ratio:1/1;
  object-fit:contain;
  border-radius:18px;background:#fff;padding:12px;
}
.primary-link{
  display:inline-block;margin-top:14px;
  border-radius:14px;padding:13px 16px;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;text-decoration:none;font-weight:800;
}
.pay-card{text-align:center;max-width:640px;margin:auto}
.pay-status{margin-top:16px;color:var(--success);font-weight:800}
@media (max-width: 1080px){
  .hero{grid-template-columns:1fr}
  .workspace{grid-template-columns:1fr}
}
@media (max-width: 768px){
  .topbar{padding:12px 16px}
  .workspace,.hero{width:min(100% - 20px, 100%)}
  .hero h1{font-size:30px}
  .chat-header{flex-direction:column;align-items:flex-start}
  .invoice-grid{grid-template-columns:1fr}
  .bubble{max-width:88%}
  .logo-navbar{height:40px}
  .chat-logo{width:54px;height:54px}
}
