@import "https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap";:root{--bg-color:#0b0f19;--panel-bg:#ffffff08;--panel-border:#ffffff14;--primary:#4f46e5;--primary-hover:#6366f1;--primary-glow:#4f46e526;--secondary:#10b981;--danger:#ef4444;--text-main:#f8fafc;--text-muted:#94a3b8;--glass-blur:blur(16px);--glass-shadow:0 8px 32px 0 #0000005e}[data-theme=green]{--primary:#10b981;--primary-hover:#059669;--primary-glow:#10b98126}[data-theme=orange]{--primary:#f59e0b;--primary-hover:#d97706;--primary-glow:#f59e0b26}[data-theme=purple]{--primary:#8b5cf6;--primary-hover:#7c3aed;--primary-glow:#8b5cf626}[data-theme=rose]{--primary:#f43f5e;--primary-hover:#e11d48;--primary-glow:#f43f5e26}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-color);background-image:radial-gradient(at 0% 0%, var(--primary-glow) 0px, transparent 50%), radial-gradient(at 100% 100%, #10b9811a 0px, transparent 50%);color:var(--text-main);direction:rtl;background-attachment:fixed;min-height:100vh;font-family:Vazirmatn,system-ui,-apple-system,sans-serif;overflow-x:hidden}.glass-panel{background:var(--panel-bg);-webkit-backdrop-filter:var(--glass-blur);border:1px solid var(--panel-border);box-shadow:var(--glass-shadow);border-radius:16px}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#0000001a}::-webkit-scrollbar-thumb{background:#fff3;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#ffffff4d}h1,h2,h3,h4,h5,h6{color:var(--text-main);margin-bottom:.5rem;font-weight:700}p{color:var(--text-muted);line-height:1.6}.app-container{box-sizing:border-box;gap:1.5rem;width:100%;min-height:100vh;padding:1.5rem;display:flex}.app-sidebar{box-sizing:border-box;z-index:30;flex-direction:column;flex-shrink:0;width:260px;height:calc(100vh - 3rem);padding:1.5rem;display:flex;position:sticky;top:1.5rem}.content-viewport{flex-direction:column;flex:1;gap:1.25rem;min-width:0;height:calc(100vh - 3rem);display:flex}.main-panel{flex:1;min-width:0;padding:1.75rem;overflow-y:auto}.app-topbar{z-index:20;flex-shrink:0;justify-content:space-between;align-items:center;padding:.85rem 1.5rem;display:flex;position:sticky;top:0}.topbar-left{flex:1;align-items:center;gap:1rem;min-width:0;display:flex}.topbar-search{align-items:center;width:280px;max-width:100%;display:flex;position:relative}.topbar-search-icon{color:var(--text-muted);pointer-events:none;position:absolute;right:1rem}.topbar-search-input{background:#ffffff0d;border:none;width:100%;padding-right:2.5rem;font-size:.9rem}.topbar-biz-badge{background:#3b82f61a;border:1px solid #3b82f633;border-radius:8px;align-items:center;gap:.5rem;padding:.35rem .8rem;display:flex}.topbar-biz-select{color:var(--text-main);cursor:pointer;background:0 0;border:none;outline:none;font-family:inherit;font-size:.85rem;font-weight:600}.topbar-right{flex-shrink:0;align-items:center;gap:1.25rem;display:flex}.topbar-bell-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:.25rem;transition:color .2s;display:flex;position:relative}.topbar-bell-btn:hover{color:var(--text-main)}.topbar-bell-dot{background:var(--danger);width:7px;height:7px;box-shadow:0 0 6px var(--danger);border-radius:50%;position:absolute;top:1px;right:1px}.topbar-divider{background:#ffffff1a;width:1px;height:28px}.topbar-user-section{align-items:center;gap:.75rem;display:flex}.topbar-avatar{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;display:flex}.topbar-user-meta{text-align:right}.topbar-user-name{color:var(--text-main);margin:0;font-size:.88rem;font-weight:700;line-height:1.3}.topbar-user-role{color:var(--text-muted);margin:0;font-size:.75rem;line-height:1.3}.topbar-logout-btn{color:var(--danger);cursor:pointer;background:#ef44441a;border:1px solid #ef444433;border-radius:8px;justify-content:center;align-items:center;padding:.4rem .6rem;transition:all .2s;display:flex}.topbar-logout-btn:hover{background:#ef444433}.main-content{flex-direction:column;flex:1;gap:1.5rem;width:100%;max-width:1400px;margin:0 auto;padding:2rem;display:flex}.form-group{flex-direction:column;gap:.5rem;margin-bottom:1rem;display:flex}.form-group label{color:var(--text-main);font-size:.9rem;font-weight:500}.form-control{border:1px solid var(--panel-border);color:var(--text-main);background:#0003;border-radius:8px;padding:.75rem 1rem;font-family:inherit;transition:all .3s}.form-control:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 2px #4f46e533}.dashboard-stats-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;display:grid}.dashboard-main-grid{grid-template-columns:2fr 1fr;align-items:start;gap:1.5rem;margin-top:1.5rem;display:grid}@media (width<=900px){.dashboard-main-grid{grid-template-columns:1fr}}.text-center{text-align:center}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:1rem}.gap-4{gap:1.5rem}.bot-status-pill{cursor:pointer;-webkit-tap-highlight-color:transparent;border:1px solid #0000;border-radius:20px;align-items:center;gap:.45rem;padding:.35rem .75rem;font-family:inherit;font-size:.78rem;font-weight:600;transition:all .2s cubic-bezier(.4,0,.2,1);display:inline-flex}.bot-status-pill:active{transform:scale(.95)}.bot-status-pill.online{color:#10b981;background:#10b9811f;border-color:#10b9814d}.bot-status-pill.offline{color:#ef4444;background:#ef44441f;border-color:#ef44444d}.pulse-indicator{border-radius:50%;width:8px;height:8px;display:inline-block;position:relative}.pulse-indicator.green{background:#10b981;animation:2s infinite pulseGreen;box-shadow:0 0 #10b98166}.pulse-indicator.red{background:#ef4444;animation:2s infinite pulseRed;box-shadow:0 0 #ef444466}@keyframes pulseGreen{0%{box-shadow:0 0 #10b981b3}70%{box-shadow:0 0 0 8px #10b98100}to{box-shadow:0 0 #10b98100}}@keyframes pulseRed{0%{box-shadow:0 0 #ef4444b3}70%{box-shadow:0 0 0 8px #ef444400}to{box-shadow:0 0 #ef444400}}.mobile-bottom-nav,.mobile-drawer-backdrop,.mobile-invoices-list{display:none}@media (width<=900px){.app-container{padding:.65rem .65rem calc(5.5rem + env(safe-area-inset-bottom,1rem)) .65rem;flex-direction:column;gap:.75rem;min-height:100vh}.app-sidebar{display:none!important}.content-viewport{gap:.75rem;height:auto}.app-topbar{z-index:90;-webkit-backdrop-filter:blur(20px);background:#0f172ad9;border-radius:16px;gap:.5rem;padding:.65rem .85rem;position:sticky;top:.4rem}.topbar-left{gap:.5rem}.topbar-search{width:100%;max-width:140px}.topbar-search-input{padding:.45rem 2rem .45rem .5rem;font-size:.8rem}.topbar-search-icon{width:15px;height:15px;right:.6rem}.topbar-biz-badge{padding:.25rem .5rem;font-size:.75rem}.topbar-biz-select{max-width:90px;font-size:.75rem}.topbar-right{gap:.5rem}.topbar-user-meta,.topbar-divider,.topbar-logout-btn{display:none}.main-panel{border-radius:18px;min-height:calc(100vh - 160px);padding:.85rem}.dashboard-stats-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.65rem}.mobile-bottom-nav{bottom:calc(.65rem + env(safe-area-inset-bottom,0px));-webkit-backdrop-filter:blur(28px)saturate(200%);z-index:1000;-webkit-user-select:none;user-select:none;background:#0f172ae6;border:1px solid #ffffff1f;border-radius:24px;justify-content:space-around;align-items:center;height:62px;padding:0 .25rem;display:flex;position:fixed;left:.65rem;right:.65rem;box-shadow:0 14px 40px -5px #000000b3,0 0 0 1px #ffffff0d}.mobile-nav-item{color:var(--text-muted);cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:none;border-radius:16px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;padding:.3rem .4rem;text-decoration:none;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex}.mobile-nav-item:active{transform:scale(.92)}.mobile-icon-wrapper{border-radius:14px;justify-content:center;align-items:center;width:38px;height:28px;transition:all .25s cubic-bezier(.34,1.56,.64,1);display:flex;position:relative}.mobile-nav-item.active .mobile-icon-wrapper{background:var(--primary-glow);color:var(--primary)}.mobile-nav-item.active{color:var(--text-main)}.mobile-nav-label{font-size:.7rem;font-weight:500;transition:color .2s}.mobile-nav-item.active .mobile-nav-label{color:var(--primary);font-weight:700}.mobile-fab-container{flex-shrink:0;justify-content:center;align-items:center;width:54px;height:54px;margin-top:-26px;display:flex;position:relative}.mobile-fab-btn{background:linear-gradient(135deg, var(--primary), var(--primary-hover,#4f46e5));color:#fff;cursor:pointer;width:50px;height:50px;box-shadow:0 8px 24px var(--primary-glow,#6366f180), 0 2px 8px #00000080;-webkit-tap-highlight-color:transparent;border:3px solid #0f172a;border-radius:50%;justify-content:center;align-items:center;transition:all .25s cubic-bezier(.34,1.56,.64,1);display:flex}.mobile-fab-btn:active{transform:scale(.88)}.mobile-fab-btn.active{background:linear-gradient(135deg,#ef4444,#dc2626);box-shadow:0 8px 24px #ef444480}.mobile-fab-icon{transition:transform .25s cubic-bezier(.34,1.56,.64,1)}.mobile-fab-icon.rotate{transform:rotate(45deg)}.quick-actions-sheet{max-height:85vh}.quick-actions-header{border-bottom:1px solid #ffffff14;justify-content:space-between;align-items:center;padding-bottom:.5rem;display:flex}.quick-actions-badge{color:var(--primary);background:#6366f126;border-radius:20px;margin-bottom:.2rem;padding:.15rem .55rem;font-size:.7rem;font-weight:700;display:inline-block}.quick-actions-title-wrap h3{color:var(--text-main);margin:0;font-size:1.05rem;font-weight:800}.quick-actions-grid{flex-direction:column;gap:.65rem;margin-top:.25rem;display:flex}.quick-action-card{text-align:right;cursor:pointer;color:var(--text-main);-webkit-tap-highlight-color:transparent;background:#ffffff0a;border:1px solid #ffffff14;border-radius:16px;align-items:center;gap:.85rem;padding:.85rem 1rem;font-family:inherit;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex}.quick-action-card:active{background:#ffffff17;transform:scale(.98)}.quick-action-icon{border-radius:14px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.quick-action-info{flex-direction:column;flex:1;gap:2px;display:flex}.quick-action-info strong{font-size:.92rem;font-weight:700}.quick-action-info span{color:var(--text-muted);font-size:.72rem}.quick-action-arrow{color:var(--text-muted);opacity:.5}.mobile-drawer-backdrop{-webkit-backdrop-filter:blur(10px);z-index:1100;background:#000000b8;align-items:flex-end;animation:.25s ease-out drawerFadeIn;display:flex;position:fixed;inset:0}@keyframes drawerFadeIn{0%{opacity:0}to{opacity:1}}.mobile-drawer-sheet{width:100%;max-height:84vh;padding:.75rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom,.5rem)) 1.25rem;-webkit-overflow-scrolling:touch;background:#0f172a;border-top:1px solid #ffffff1f;border-radius:28px 28px 0 0;flex-direction:column;gap:.9rem;animation:.3s cubic-bezier(.16,1,.3,1) drawerSlideUp;display:flex;overflow-y:auto;box-shadow:0 -12px 48px #000000bf}@keyframes drawerSlideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.mobile-drawer-handle-bar{justify-content:center;padding:.25rem 0 .5rem;display:flex}.mobile-drawer-handle{background:#ffffff47;border-radius:10px;width:44px;height:5px}.mobile-drawer-user{background:#ffffff0a;border:1px solid #ffffff14;border-radius:18px;align-items:center;gap:.85rem;padding:.85rem 1rem;display:flex}.mobile-user-avatar{background:linear-gradient(135deg, var(--primary), var(--primary-hover));color:#fff;width:44px;height:44px;box-shadow:0 0 12px var(--primary-glow);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:1.15rem;font-weight:700;display:flex}.mobile-user-info{flex:1;min-width:0}.mobile-user-info h4{color:var(--text-main);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:.95rem;font-weight:700;overflow:hidden}.mobile-user-role-badge{color:var(--primary);background:#6366f126;border-radius:6px;align-items:center;gap:.25rem;padding:.15rem .45rem;font-size:.68rem;font-weight:600;display:inline-flex}.mobile-user-biz-badge{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;background:#ffffff14;border-radius:6px;max-width:120px;padding:.15rem .45rem;font-size:.68rem;overflow:hidden}.mobile-close-btn{color:var(--text-muted);cursor:pointer;background:#ffffff0f;border:1px solid #ffffff1a;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;transition:all .2s;display:flex}.mobile-close-btn:hover{color:var(--text-main);background:#ffffff1f}.mobile-drawer-menu{flex-direction:column;gap:.55rem;display:flex}.mobile-menu-card{color:var(--text-main);cursor:pointer;text-align:right;-webkit-tap-highlight-color:transparent;background:#ffffff08;border:1px solid #ffffff0f;border-radius:16px;align-items:center;gap:.85rem;padding:.8rem 1rem;font-family:inherit;text-decoration:none;transition:all .2s;display:flex}.mobile-menu-card:active{background:#ffffff14;transform:scale(.98)}.mobile-menu-card.active{background:#4f46e51f;border-color:#4f46e54d}.mobile-menu-card-icon{border-radius:13px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;transition:all .2s;display:flex}.mobile-menu-card-text{flex-direction:column;flex:1;gap:2px;display:flex}.mobile-menu-card-title{font-size:.9rem;font-weight:600}.mobile-menu-card-desc{color:var(--text-muted);font-size:.72rem}.mobile-menu-arrow{color:var(--text-muted);opacity:.5}.mobile-logout-btn{color:var(--danger);cursor:pointer;-webkit-tap-highlight-color:transparent;background:#ef44441a;border:1px solid #ef444440;border-radius:16px;justify-content:center;align-items:center;gap:.6rem;margin-top:.4rem;padding:.85rem;font-family:inherit;font-size:.9rem;font-weight:600;transition:all .2s;display:flex}.mobile-logout-btn:active{background:#ef444433;transform:scale(.98)}.native-modal-backdrop{align-items:flex-end!important;padding:0!important}.native-modal-sheet{width:100%!important;max-width:100%!important;max-height:88vh!important;padding:1.25rem 1rem calc(2rem + env(safe-area-inset-bottom,.5rem)) 1rem!important;border-bottom:none!important;border-radius:28px 28px 0 0!important;margin:0!important;animation:.3s cubic-bezier(.16,1,.3,1) drawerSlideUp!important;box-shadow:0 -12px 48px #000c!important}.desktop-invoices-table{display:none!important}.mobile-invoices-list{flex-direction:column;gap:.85rem;display:flex!important}.mobile-invoice-card{background:#ffffff08;border:1px solid #ffffff14;border-radius:18px;flex-direction:column;gap:.75rem;padding:1rem;transition:all .2s;display:flex}.mobile-invoice-card:active{background:#ffffff0f}.mobile-invoice-header{border-bottom:1px solid #ffffff0d;justify-content:space-between;align-items:center;padding-bottom:.5rem;display:flex}.mobile-invoice-num-badge{color:var(--primary);background:#6366f126;border-radius:8px;padding:.2rem .55rem;font-family:monospace;font-size:.85rem;font-weight:700}.mobile-invoice-price-block{background:#ffffff05;border:1px solid #ffffff0d;border-radius:12px;justify-content:space-between;align-items:baseline;padding:.65rem .85rem;display:flex}.mobile-invoice-price-val{color:#10b981;letter-spacing:-.5px;font-size:1.2rem;font-weight:800}div[style*="overflowX: auto"],div[style*="overflow-x: auto"]{border-radius:14px;-webkit-overflow-scrolling:touch!important}table{min-width:580px}button,input,select,textarea{-webkit-tap-highlight-color:transparent}}.crm-lead-card{transition:transform .2s cubic-bezier(.2,0,0,1),box-shadow .2s,border-color .2s}.crm-lead-card:hover{transform:translateY(-2px);border-color:#fff3!important;box-shadow:0 6px 18px #0000004d!important}.crm-kanban-board{scrollbar-width:thin;scrollbar-color:#fff3 transparent}@media (width<=768px){.crm-kanban-board{scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.crm-kanban-column{scroll-snap-align:start;min-width:82vw!important;max-width:86vw!important}}.invoice-item-box{background:#ffffff05;border:1px solid #ffffff0f;border-radius:12px;grid-template-columns:2.2fr 2.2fr 1fr 1.6fr 1.6fr 44px;align-items:end;gap:.65rem;margin-top:.85rem;padding:.85rem;transition:border-color .2s;display:grid}.invoice-item-box:hover{border-color:#ffffff1f}.invoice-item-mobile-header{display:none}.invoice-item-calc-col{text-align:center;color:#38bdf8;box-sizing:border-box;background:#ffffff0d;border-radius:8px;flex-direction:column;justify-content:center;height:42px;padding:.75rem .5rem;font-size:.85rem;font-weight:700;display:flex}.invoice-item-calc-col span{display:none}.invoice-item-mobile-grid-2{display:contents}@media (width<=768px){.invoice-modal-container{border-radius:16px!important;width:100%!important;max-height:94vh!important;padding:1.15rem!important}.invoice-item-box{background:#1e293b73;border:1px solid #ffffff14;border-radius:14px;flex-direction:column;align-items:stretch;gap:.75rem;padding:1rem;display:flex}.invoice-item-mobile-header{border-bottom:1px solid #ffffff0f;justify-content:space-between;align-items:center;margin-bottom:.15rem;padding-bottom:.5rem;display:flex}.invoice-item-badge{color:var(--primary);background:#6366f126;border-radius:6px;padding:2px 8px;font-size:.8rem;font-weight:700}.invoice-item-mobile-grid-2{grid-template-columns:1fr 1.5fr;gap:.65rem;display:grid!important}.invoice-item-calc-col{background:#00000040;border:1px solid #ffffff0f;flex-direction:row;justify-content:space-between;align-items:center;height:auto;padding:.65rem .85rem;font-size:.95rem}.invoice-item-calc-col span{color:var(--text-muted);font-size:.8rem;font-weight:400;display:inline}.invoice-item-delete-btn-desktop{display:none!important}.invoice-totals-wrapper{flex-direction:column!important;align-items:stretch!important}.invoice-totals-box{width:100%!important}.invoice-modal-actions{flex-direction:column-reverse}.invoice-modal-actions button{width:100%!important;max-width:100%!important;padding:.75rem 1rem!important;font-size:.95rem!important}.stat-card .value,.metric-value,div[style*="fontSize: '1.3rem'"]{overflow-wrap:normal;word-break:normal;font-size:1.15rem!important}}
