:root{--brand:#5b5cf6;--dark:#111827;--muted:#6b7280;--bg:#f5f7fb;--line:#e5e7eb}
*{box-sizing:border-box}body{background:var(--bg);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#111827}.app-nav{background:linear-gradient(135deg,#151641,#23266f)}.btn-brand{background:var(--brand);border-color:var(--brand);color:#fff}.btn-brand:hover{background:#4748dc;border-color:#4748dc;color:#fff}.muted{color:var(--muted)}.card{border:0;border-radius:22px;box-shadow:0 12px 34px rgba(15,23,42,.08)}.metric{background:#fff;border-radius:22px;padding:22px;box-shadow:0 10px 30px rgba(15,23,42,.06);height:100%}.badge-soft{background:#eef2ff;color:#3730a3}.codebox{background:#0f172a;color:#d1fae5;border-radius:14px;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;min-height:46px}.owner-hero{background:#fff;border-radius:26px;padding:28px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 16px 44px rgba(15,23,42,.08)}.project-tile{border:1px solid var(--line);border-radius:18px;padding:16px;background:#fff}.avatar-sm{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#e5e7eb}.app-shell{display:flex;min-height:calc(100vh - 58px)}.app-sidebar{width:280px;background:#fff;border-right:1px solid var(--line);padding:22px 16px;position:sticky;top:0;height:calc(100vh - 58px)}.app-content{flex:1;min-width:0;padding:28px}.side-title{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#9ca3af;font-weight:800;margin:14px 12px 8px}.side-link{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;color:#374151;text-decoration:none;font-weight:700;margin-bottom:4px}.side-link:hover,.side-link.active{background:#eef2ff;color:#3730a3}.side-link.danger:hover{background:#fee2e2;color:#991b1b}.table thead th{font-size:12px;text-transform:uppercase;color:#6b7280;letter-spacing:.04em}.chat-preview{max-height:620px;overflow:auto;background:#f8fafc;border-radius:18px;padding:16px}.bubble{padding:10px 13px;border-radius:16px;margin:8px 0;max-width:78%;white-space:pre-wrap}.bubble.visitor{background:#5b5cf6;color:#fff;margin-left:auto}.bubble.operator{background:#fff;border:1px solid #e5e7eb}.landing{background:#0b102b;color:#fff;min-height:100vh}.landing .nav-link,.landing a{color:#fff}.hero-grad{background:radial-gradient(circle at 60% 20%,rgba(91,92,246,.45),transparent 35%),linear-gradient(135deg,#0b102b,#17205c);padding:90px 0}.hero-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(12px);border-radius:28px;padding:28px}.feature{background:#fff;color:#111827;border-radius:24px;padding:24px;height:100%}@media(max-width:991px){.app-shell{display:block}.app-sidebar{position:relative;width:100%;height:auto;border-right:0;border-bottom:1px solid var(--line)}.app-content{padding:18px}.owner-hero{display:block}.owner-hero .btn{margin-top:12px}.hero-grad{padding:50px 0}}
/* v10 polish */
.btn-brand-light{background:#fff!important;color:#4f46e5!important;border:1px solid rgba(255,255,255,.75)!important;font-weight:800;box-shadow:0 12px 32px rgba(0,0,0,.14)}
.btn-brand-light:hover{background:#eef2ff!important;color:#3730a3!important}
.landing{background:#f7f8ff;color:#172033}.landing-nav{background:#11155a;padding:18px 0}.hero{padding:90px 0;background:radial-gradient(circle at 70% 20%,rgba(99,102,241,.45),transparent 35%),linear-gradient(135deg,#11155a,#25237b);color:#fff;overflow:hidden}.hero h1{font-size:clamp(38px,6vw,72px);line-height:1.02;font-weight:900;letter-spacing:-1.8px}.hero .lead{font-size:20px;color:rgba(255,255,255,.84);max-width:720px}.hero-note{color:rgba(255,255,255,.82);font-weight:700}.demo-chat{background:#fff;border-radius:30px;box-shadow:0 25px 80px rgba(0,0,0,.3);overflow:hidden}.demo-head{background:#5b5cf6;color:#fff;font-weight:900;padding:22px}.demo-body{background:#f6f7fb;padding:22px;min-height:310px}.demo-form{margin:18px;border:1px solid #e5e7eb;border-radius:16px;padding:16px;color:#8b92a3}.msg{padding:12px 14px;border-radius:18px;margin:12px 0;max-width:82%;font-weight:600}.msg.left{background:#fff;color:#222}.msg.right{background:#5b5cf6;color:#fff;margin-left:auto}.feature-card{height:100%;border:1px solid #e7e9f4;border-radius:22px;padding:24px;background:#fff;box-shadow:0 14px 38px rgba(28,32,77,.06)}.feature-card b{font-size:18px}.feature-card p{color:#697086;margin:10px 0 0}.price-section{background:#f2f4ff}.price-card{background:#fff;border-radius:28px;padding:42px;border:1px solid #e7e9f4;box-shadow:0 18px 50px rgba(28,32,77,.08)}.paybox{background:#f7f8ff;border:1px solid #e5e7f3;border-radius:20px;padding:18px}.copyline{font-size:18px;font-weight:900;word-break:break-all;background:#fff;border:1px dashed #c7c9d9;border-radius:14px;padding:14px;margin-top:8px;cursor:pointer}.app-sidebar{min-width:250px}.side-link{font-weight:700}.chat-list{min-height:640px}.chat-messages{height:520px;overflow-y:auto;background:#f7f8ff;border-radius:18px;padding:16px}.bubble{padding:12px 14px;border-radius:16px;margin:10px 0;max-width:78%;white-space:pre-wrap;word-break:break-word}.bubble.visitor{background:#fff;border:1px solid #e5e7eb}.bubble.operator{background:#5b5cf6;color:#fff;margin-left:auto}.badge-soft{background:#eef2ff;color:#4338ca}

/* v11 fixes */
.chat-messages .bubble.visitor,.chat-preview .bubble.visitor{background:#ffffff!important;color:#172033!important;border:1px solid #e2e8f0!important;margin-right:auto!important;margin-left:0!important}
.chat-messages .bubble.operator,.chat-preview .bubble.operator{background:#5b5cf6!important;color:#ffffff!important;border:1px solid #5b5cf6!important;margin-left:auto!important;margin-right:0!important}
.chat-messages .bubble.operator *,.chat-preview .bubble.operator *{color:#ffffff!important}
.chat-messages .bubble.visitor *,.chat-preview .bubble.visitor *{color:#172033!important}
.admin-chat-preview{min-height:560px}.chat-owner-list{max-height:calc(100vh - 120px);overflow:auto}.subscription-date{font-weight:800;color:#111827}.expired-date{color:#dc2626;font-weight:900}.paid-date{color:#16a34a;font-weight:900}
