@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");:root{--ink:#17182d;--muted:#73758d;--paper:#fff;--canvas:#f6f6fb;--line:#e9eaf2;--brand:#5b5bd6;--violet:#a78bfa;--green:#24b47e;--red:#e74c70;--shadow:0 12px 32px rgba(38,39,87,0.07)}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--canvas);color:var(--ink);font-family:DM Sans,Arial,sans-serif;font-size:14px;overflow-x:hidden}img{max-width:100%}button,input,select,textarea{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #5b5bd64d;outline-offset:2px}button{cursor:pointer;border:0}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 10% 10%,#ddd8ff 0,transparent 25%),radial-gradient(circle at 90% 90%,#d8f9ec 0,transparent 30%),#f7f7fc}.login-card{width:min(440px,100%);background:#fff;border:1px solid #ececf5;border-radius:24px;padding:42px;box-shadow:0 25px 70px #3e3d761a}.logo{display:flex;gap:10px;align-items:center;font:800 21px Manrope}.logo-mark{display:grid;place-items:center;color:#fff;width:34px;height:34px;border-radius:11px;background:linear-gradient(140deg,var(--brand),#9181ef)}.eyebrow{color:var(--brand);font-weight:700;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.login-card h1{font:800 28px Manrope;margin:28px 0 8px}.muted{color:var(--muted)}.field{display:grid;grid-gap:7px;gap:7px;margin-top:18px;font-weight:600}.field input,.field select,.field textarea{outline:0;width:100%;border:1px solid #dedfea;border-radius:10px;padding:11px 13px;background:#fff;color:var(--ink)}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #5b5bd618}.btn{border-radius:10px;padding:11px 15px;font-weight:700;transition:.15s}.btn-primary{color:#fff;background:var(--brand);box-shadow:0 7px 14px #5b5bd62d}.btn-primary:hover{background:#4d4dbc}.btn-ghost{background:#f1f1f7;color:#4b4c68}.btn-danger{color:#c92e50;background:#fff0f4}.login-card .btn{width:100%;margin-top:26px}.hint{font-size:12px;background:#f5f4ff;color:#595aab;border-radius:9px;padding:10px 12px;margin-top:18px}.shell{min-height:100vh;padding-left:252px}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:#fff;border-right:1px solid var(--line);padding:25px 14px;z-index:4}.sidebar .logo{padding:0 10px 30px}.nav-label{font-size:11px;color:#aaaabd;text-transform:uppercase;font-weight:700;letter-spacing:.08em;padding:16px 12px 7px}.nav-link{display:flex;gap:12px;align-items:center;color:#62647e;text-decoration:none;padding:11px 12px;border-radius:9px;margin:2px 0;font-weight:600}.nav-link:hover{background:#f5f5fb}.nav-link.active{background:#efefff;color:#5050c8}.nav-icon{width:18px;text-align:center;font-size:16px}.sidebar-user{position:absolute;bottom:20px;left:24px;right:24px;width:calc(100% - 48px);border:0;text-align:left;padding:13px;background:#f8f8fc;border-radius:12px;display:flex;gap:9px;align-items:center}.sidebar-user:hover{background:#eeeeff}.sidebar-user-copy{display:grid;grid-gap:2px;gap:2px}.sidebar-user-copy small{color:var(--muted);font-size:11px}.profile-chevron{margin-left:auto;color:var(--muted);font-size:16px}.sidebar-bot-status{position:absolute;bottom:88px;left:24px;right:24px;border-radius:9px;padding:9px 12px;background:#e9fbf4;color:#16875b;font-size:12px;font-weight:700}.sidebar-bot-status span{color:#24b47e;margin-right:5px}.profile-summary{display:flex;align-items:center;gap:11px}.profile-menu{position:absolute;z-index:6;bottom:132px;left:20px;right:20px;overflow:hidden;border:1px solid #e2e2f0;border-radius:14px;background:#fff;box-shadow:0 18px 42px rgba(32,32,77,.18)}.profile-menu-head{display:flex;gap:10px;align-items:center;padding:13px;border-bottom:1px solid var(--line)}.profile-menu-head>div{display:grid;grid-gap:2px;gap:2px}.profile-menu-head small{color:var(--muted);font-size:11px}.profile-logout{width:100%;padding:11px 13px;background:#fff;color:#c92e50;text-align:left;font-weight:700}.profile-logout:hover{background:#fff3f6}.broadcast-selected-card{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 21px;margin-bottom:18px}.broadcast-group{margin-bottom:30px}.broadcast-group-title{display:flex;align-items:baseline;gap:11px;margin:0 0 13px}.broadcast-group-title span{color:#5b5bd6;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.broadcast-group-title p{margin:0;color:var(--muted);font-size:12px}.custom-broadcast-group{border-top:1px solid var(--line);padding-top:26px}.custom-broadcast-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));grid-gap:18px;gap:18px}.custom-broadcast-card{padding:20px}.custom-broadcast-card .field{margin-top:0}.custom-broadcast-card .field+.field{margin-top:17px}.custom-broadcast-help{margin:8px 0 0;font-size:12px}.custom-broadcast-actions{align-items:center;margin-top:18px}.broadcast-selected-card h2{margin:0 0 4px;font:800 16px Manrope}.broadcast-selected-card p{margin:0;font-size:12px}.avatar{width:30px;height:30px;border-radius:9px;background:#dedaff;display:grid;place-items:center;color:#5550bc;font-weight:800}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);justify-content:space-between;padding:0 34px;position:-webkit-sticky;position:sticky;top:0;z-index:3}.topbar,.topbar-navigation{display:flex;align-items:center}.topbar-navigation{min-width:0}.menu-toggle,.mobile-nav-backdrop{display:none}.levels{display:flex;align-items:center;gap:8px;min-width:0}.level-label{font-size:12px;color:#7c7e95;margin-right:4px;font-weight:600}.level-tab{padding:7px 11px;border:1px solid #e4e4f0;background:#fff;border-radius:8px;color:#77798f;font-weight:700}.level-tab.active{background:#eeeeff;border-color:#d9d8ff;color:#5151c4}.round-add{width:31px;height:31px;padding:0;border-radius:8px;color:var(--brand);background:#f0efff;font-size:20px}.top-actions{display:flex;align-items:center;gap:12px}.top-status{font-size:12px;color:#16875b;background:#e9fbf4;padding:6px 9px;border-radius:99px}.main{padding:31px 34px 50px;max-width:1520px;margin:auto}.main>*{min-width:0}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:25px}.page-title{font:800 25px Manrope;margin:0 0 6px}.page-subtitle{margin:0;color:var(--muted)}.card{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:16px;gap:16px}.custom-broadcast-list>*,.grid-4>*,.setting-grid>*,.split>*{min-width:0}.metric{padding:20px;min-height:133px}.metric-label{color:#77798f;font-weight:600;font-size:12px}.metric-value{font:800 31px Manrope;margin-top:12px}.metric-icon{float:right;width:35px;height:35px;border-radius:10px;display:grid;place-items:center;background:#f0efff;color:var(--brand)}.split{display:grid;grid-template-columns:1.25fr .75fr;grid-gap:18px;gap:18px;margin-top:18px}.card-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);gap:12px}.card-head h2{font:800 15px Manrope;margin:0}.card-body{padding:20px}.sync-row{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #f0f0f5}.sync-row:last-child{border:0}.sync-dot{width:9px;height:9px;background:#27b77e;border-radius:100%}.detail-list{display:grid;grid-gap:16px;gap:16px}.detail-list div{display:flex;justify-content:space-between}.detail-list span:first-child{color:var(--muted)}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:850px}.data-table th{text-align:left;padding:13px 14px;color:#83859a;font-size:11px;text-transform:uppercase;letter-spacing:.04em;background:#fafaff}.data-table td{padding:13px 14px;border-top:1px solid #f0f0f5;vertical-align:middle}.category-name,.tag{font-weight:700}.tag{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;background:#f0efff;color:#5b5bd6}.tag.off{background:#f2f3f6;color:#858699}.actions{display:flex;gap:6px}.mini-btn{border-radius:7px;background:#f3f3f8;color:#60627c;padding:7px 9px;font-size:12px;font-weight:700}.mini-btn.send{background:#eeeefe;color:#5252c4}.prefix-cell{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.prefix-input{width:155px;border:1px solid #e3e3eb;border-radius:7px;padding:7px}.switch{width:35px;height:20px;border-radius:20px;background:#dddde6;position:relative;padding:0}.switch:after{content:"";width:14px;height:14px;border-radius:50%;background:#fff;position:absolute;top:3px;left:3px;transition:.18s}.switch.on{background:var(--brand)}.switch.on:after{left:18px}.data-table td.auto-broadcast-toggle,.data-table th.auto-broadcast-toggle{text-align:center}.data-table td.auto-broadcast-toggle .switch{display:inline-block;vertical-align:middle}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:17px}.toolbar .field{margin:0;min-width:180px}.toolbar .field input{padding:9px}.empty{padding:42px;text-align:center;color:#85869a}.setting-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:18px;gap:18px}.setting-card{padding:21px}.setting-card h2{font:800 16px Manrope;margin:0 0 4px}.setting-card .muted{font-size:12px}.inline-fields{display:flex;gap:10px;align-items:end}.inline-fields>*{min-width:0}.inline-fields .field{flex:1 1}.checkbox-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.check-pill{border:1px solid #e2e2eb;border-radius:9px;padding:7px 9px;font-size:12px}.check-pill:has(input:checked){border-color:#7c7ce6;background:#f2f1ff;color:#5353bc}.preview{padding:28px;background:linear-gradient(135deg,#5b5bd6,#9a7af2);border-radius:14px;color:white}.preview h3{margin:23px 0 2px;font:800 21px Manrope}.broadcast-image-preview{border-radius:12px;overflow:auto;background:#f4f4f8;border:1px solid #e2e2eb}.broadcast-image-preview img{display:block;width:100%;min-width:560px;height:auto}.product-list{background:#fff;border-radius:10px;color:#28283f;margin-top:16px;padding:10px 13px}.product-list div{padding:8px 0;border-bottom:1px dashed #e8e8ee;display:flex;justify-content:space-between}.product-list div:last-child{border:0}.modal-backdrop{position:fixed;inset:0;background:#11112670;z-index:10;display:grid;place-items:center;padding:20px}.modal{background:#fff;width:min(600px,100%);border-radius:16px;box-shadow:0 20px 70px #11112650}.modal .card-head{padding:18px 22px}.modal .card-body{max-height:70vh;overflow:auto}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 22px 21px}.toast{position:fixed;right:24px;bottom:24px;background:#272744;color:#fff;border-radius:10px;padding:12px 16px;box-shadow:var(--shadow);z-index:20;max-width:min(420px,calc(100vw - 32px))}.toast.success{background:#1e694d}.toast.error{background:#aa2f4d}.log-item{display:grid;grid-template-columns:12px 1fr auto;grid-gap:12px;gap:12px;align-items:start;padding:14px 0;border-bottom:1px solid #f0f0f5}.log-item:last-child{border:0}.log-point{width:9px;height:9px;border-radius:50%;margin-top:5px;background:#5b5bd6}.log-time{font-size:12px;color:#88899a}.danger-zone{border-color:#ffd7e1}.danger-zone .card-head{background:#fff8fa}@media (max-width:1000px){.shell{padding-left:0}.sidebar{transform:translateX(-100%);width:min(300px,calc(100vw - 54px));padding-top:22px;box-shadow:18px 0 40px rgba(25,25,57,.16);transition:transform .22s ease;z-index:12}body.menu-open{overflow:hidden}body.menu-open .sidebar{transform:translateX(0)}.mobile-nav-backdrop{display:block;position:fixed;inset:0;z-index:11;border:0;background:rgba(17,17,38,.42);opacity:0;pointer-events:none;transition:opacity .22s ease}body.menu-open .mobile-nav-backdrop{opacity:1;pointer-events:auto}.menu-toggle{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;margin-right:10px;border-radius:9px;background:#f0efff;color:var(--brand);font-size:20px;line-height:1}.grid-4{grid-template-columns:repeat(2,1fr)}.setting-grid,.split{grid-template-columns:1fr}.main{padding:24px 18px}.topbar{padding:0 18px}}@media (max-width:600px){.shell{min-width:0}.grid-4{grid-template-columns:1fr}.topbar{height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-gap:10px;gap:10px;padding:12px 14px}.levels{overflow-x:auto;scrollbar-width:none;white-space:nowrap;padding-bottom:1px}.levels::-webkit-scrollbar{display:none}.level-tab{flex:0 0 auto}.top-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px;width:100%}.top-actions .btn{min-width:0;padding-inline:10px;white-space:nowrap}.level-label,.top-status{display:none}.page-head{display:block}.page-head .btn{margin-top:15px}.setting-grid{gap:12px}.broadcast-selected-card{align-items:flex-start;flex-direction:column}.broadcast-selected-card .actions,.custom-broadcast-actions,.page-head .actions{width:100%}.broadcast-selected-card .actions .btn,.custom-broadcast-actions .btn{flex:1 1 145px}.main{padding:20px 14px 36px}.page-title{font-size:22px}.page-subtitle{line-height:1.5}.card{border-radius:13px}.card-body,.card-head,.setting-card{padding-left:15px;padding-right:15px}.card-head{align-items:flex-start;flex-wrap:wrap}.toolbar{align-items:stretch;flex-direction:column}.toolbar .field{min-width:0;width:100%}.inline-fields{align-items:stretch;flex-direction:column}.inline-fields .btn{width:100%}.fee-actions{justify-content:stretch}.fee-actions .btn{width:100%}.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px);overflow:auto}.modal-actions{flex-wrap:wrap;padding:0 15px 16px}.modal-actions .btn{flex:1 1 130px}.log-item{grid-template-columns:12px minmax(0,1fr)}.log-time{grid-column:2}.toast{right:16px;bottom:16px}.login-card{padding:30px 23px}}@media (max-width:380px){.top-actions{grid-template-columns:1fr}.top-actions .btn{width:100%}.metric-value{font-size:27px}.actions{gap:7px}}.fee-toggle{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--muted)}.fee-hint{background:#fff8e8;color:#775a16}.fee-tiers{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:18px;gap:18px;margin-top:22px}.fee-tier{border:1px solid var(--line);border-radius:12px;padding:17px;display:grid;grid-gap:7px;gap:7px}.fee-tier b{font-size:16px}.fee-input{display:flex;align-items:center;justify-content:flex-end;gap:7px;color:var(--muted)}.fee-input input{width:100px;border:1px solid var(--line);border-radius:9px;padding:9px;background:var(--paper);color:var(--ink);font-weight:700}.fee-actions{display:flex;justify-content:flex-end;margin-top:22px}@media (max-width:800px){.fee-tiers{grid-template-columns:1fr}.fee-toggle{margin-top:10px}}body[data-theme=dark]{color-scheme:dark;--ink:#f4f7ff;--muted:#a9b5cb;--paper:#121a2d;--canvas:#0b1020;--line:#293653;--brand:#7069dc;--violet:#a8a4ff;--green:#35c991;--red:#fb7185;--shadow:0 18px 42px rgba(0,0,0,0.28)}body[data-theme=dark] .card,body[data-theme=dark] .login-card,body[data-theme=dark] .modal,body[data-theme=dark] .profile-menu,body[data-theme=dark] .sidebar,body[data-theme=dark] .topbar{background:var(--paper)}body[data-theme=dark] .broadcast-image-preview,body[data-theme=dark] .check-pill,body[data-theme=dark] .fee-input input,body[data-theme=dark] .fee-tier,body[data-theme=dark] .field input,body[data-theme=dark] .field select,body[data-theme=dark] .field textarea,body[data-theme=dark] .level-tab,body[data-theme=dark] .prefix-input,body[data-theme=dark] .profile-menu,body[data-theme=dark] .sidebar,body[data-theme=dark] .topbar{border-color:var(--line)}body[data-theme=dark] .fee-input input,body[data-theme=dark] .field input,body[data-theme=dark] .field select,body[data-theme=dark] .field textarea,body[data-theme=dark] .prefix-input{background:#0d1527;color:var(--ink)}body[data-theme=dark] .field input::placeholder,body[data-theme=dark] .field textarea::placeholder,body[data-theme=dark] .prefix-input::placeholder{color:#71809b}body[data-theme=dark] .field input:focus,body[data-theme=dark] .field select:focus,body[data-theme=dark] .field textarea:focus{border-color:#9994ff;box-shadow:0 0 0 3px rgba(153,148,255,.2)}body[data-theme=dark] a:focus-visible,body[data-theme=dark] button:focus-visible,body[data-theme=dark] input:focus-visible,body[data-theme=dark] select:focus-visible,body[data-theme=dark] textarea:focus-visible{outline-color:rgba(168,164,255,.7)}body[data-theme=dark] .data-table th,body[data-theme=dark] .empty,body[data-theme=dark] .level-label,body[data-theme=dark] .log-time,body[data-theme=dark] .metric-label,body[data-theme=dark] .nav-label{color:#8795af}body[data-theme=dark] .nav-link{color:#b7c2d6}body[data-theme=dark] .nav-link:hover,body[data-theme=dark] .sidebar-user:hover{background:#1b2741}body[data-theme=dark] .level-tab.active,body[data-theme=dark] .nav-link.active{background:rgba(126,117,237,.18);border-color:rgba(153,148,255,.38);color:#c7c4ff}body[data-theme=dark] .sidebar-user{background:#18223a}body[data-theme=dark] .sidebar-bot-status,body[data-theme=dark] .top-status{background:#103b36;color:#75e4bb}body[data-theme=dark] .sidebar-bot-status span{color:#50d6a1}body[data-theme=dark] .profile-logout{background:var(--paper);color:#fda4b3}body[data-theme=dark] .profile-logout:hover{background:#3a1e31}body[data-theme=dark] .avatar{background:#292a5a;color:#c7c4ff}body[data-theme=dark] .broadcast-group-title span,body[data-theme=dark] .eyebrow{color:#aaa6ff}body[data-theme=dark] .level-tab{background:#17213a;color:#afbdd3}body[data-theme=dark] .menu-toggle,body[data-theme=dark] .metric-icon,body[data-theme=dark] .round-add{background:#262653;color:#c3c0ff}body[data-theme=dark] .btn-primary{background:var(--brand);box-shadow:0 7px 16px rgba(53,47,142,.44)}body[data-theme=dark] .btn-primary:hover{background:#817af0}body[data-theme=dark] .btn-ghost,body[data-theme=dark] .mini-btn{background:#202c46;color:#d7e0f0}body[data-theme=dark] .btn-ghost:hover,body[data-theme=dark] .mini-btn:hover{background:#2a3857}body[data-theme=dark] .btn-danger{background:#421e31;color:#fda4b3}body[data-theme=dark] .hint{background:#202052;color:#c6c4ff}body[data-theme=dark] .data-table th{background:#172139}body[data-theme=dark] .card-head,body[data-theme=dark] .data-table td,body[data-theme=dark] .log-item,body[data-theme=dark] .product-list div,body[data-theme=dark] .sync-row{border-color:var(--line)}body[data-theme=dark] .tag{background:#25265b;color:#c6c4ff}body[data-theme=dark] .tag.off{background:#202b42;color:#a8b4c9}body[data-theme=dark] .mini-btn.send{background:#29285f;color:#cbc8ff}body[data-theme=dark] .switch{background:#4a5872}body[data-theme=dark] .switch:after{background:#eaf0ff}body[data-theme=dark] .switch.on{background:#7b74ed}body[data-theme=dark] .check-pill:has(input:checked){border-color:#8f8aff;background:#24245a;color:#cbc9ff}body[data-theme=dark] .broadcast-image-preview{background:#0c1425}body[data-theme=dark] .product-list{background:#0d1527;color:var(--ink)}body[data-theme=dark] .modal-backdrop{background:rgba(3,7,18,.76);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}body[data-theme=dark] .toast{background:#202b46;border:1px solid #3a4a6c}body[data-theme=dark] .toast.success{background:#115343;border-color:#20735f}body[data-theme=dark] .toast.error{background:#63263d;border-color:#8d3853}body[data-theme=dark] .danger-zone{border-color:#71304b}body[data-theme=dark] .danger-zone .card-head{background:#291727}body[data-theme=dark] .fee-hint{background:#3b3018;color:#f4ca71}body[data-theme=dark] .sync-dot{background:#3bd29c}