*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}.crm-shell{min-height:100vh;display:flex}.crm-sidebar{width:280px;background:linear-gradient(180deg,var(--sidebar),#020617);color:#fff;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;box-shadow:12px 0 40px rgba(15,23,42,.18);z-index:10}.crm-brand{height:86px;padding:20px 22px;display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.08)}.crm-brand img{width:44px;height:44px;object-fit:contain;border-radius:12px;background:#fff}.crm-brand-mark{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--brand);font-weight:800}.crm-brand strong{display:block;font-size:16px;line-height:1.1}.crm-brand small{display:block;color:#cbd5e1;font-size:12px;margin-top:3px}.crm-nav{padding:16px 12px;overflow:auto;flex:1}.crm-nav-title{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#94a3b8;margin:18px 12px 8px}.crm-nav-link{display:flex;align-items:center;gap:12px;padding:11px 13px;color:#dbeafe;text-decoration:none;border-radius:14px;margin-bottom:4px;transition:.18s}.crm-nav-link:hover{background:rgba(255,255,255,.10);color:#fff;transform:translateX(3px)}.crm-nav-link i{font-size:18px;width:22px}.crm-sidebar-bottom{padding:16px;border-top:1px solid rgba(255,255,255,.08)}.crm-user-mini{display:flex;gap:10px;align-items:center}.crm-user-mini>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.12);font-weight:800}.crm-user-mini strong,.crm-user-mini small{display:block}.crm-user-mini small{color:#cbd5e1;font-size:12px}.crm-main{margin-left:280px;min-height:100vh;width:calc(100% - 280px)}.crm-topbar{height:86px;background:rgba(255,255,255,.82);backdrop-filter:blur(16px);display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid rgba(148,163,184,.25);position:sticky;top:0;z-index:8}.crm-topbar h1{font-size:24px;margin:0;font-weight:800}.crm-topbar p{margin:3px 0 0;color:var(--muted)}.crm-top-actions{display:flex;align-items:center;gap:10px}.crm-top-actions form{margin:0}.crm-global-search{width:280px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;align-items:center;padding:0 12px;color:#64748b}.crm-global-search input{height:36px;border:0;outline:0;background:transparent;width:100%;padding-left:8px}.crm-content{padding:28px}.crm-card,.panel{background:var(--panel);border:1px solid rgba(148,163,184,.22);border-radius:22px;padding:22px;box-shadow:0 18px 50px rgba(15,23,42,.07)}.hero-card{border-radius:26px;padding:28px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;display:flex;justify-content:space-between;align-items:center;box-shadow:0 24px 60px rgba(37,99,235,.25)}.hero-card h2{font-size:30px;margin:4px 0}.hero-card p{margin:0;opacity:.86}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;opacity:.8}.metric-card{min-height:126px;background:var(--panel);border:1px solid rgba(148,163,184,.22);border-radius:22px;padding:20px;position:relative;overflow:hidden;box-shadow:0 16px 45px rgba(15,23,42,.06)}.metric-card span{color:var(--muted);font-size:13px}.metric-card strong{display:block;font-size:28px;margin-top:8px}.metric-card i{position:absolute;right:18px;bottom:12px;font-size:42px;color:var(--brand);opacity:.18}.crm-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.crm-card-head h5{margin:0;font-weight:800}.module-card,.crm-module-tile{display:flex;align-items:center;gap:14px;padding:17px;border:1px solid #e2e8f0;border-radius:18px;text-decoration:none;color:var(--ink);background:#fff;transition:.16s;height:100%}.module-card:hover,.crm-module-tile:hover{border-color:var(--brand);box-shadow:0 16px 40px rgba(37,99,235,.12);transform:translateY(-2px)}.module-card i,.crm-module-tile i{font-size:24px;color:var(--brand);width:38px;height:38px;background:color-mix(in srgb,var(--brand) 12%,white);border-radius:12px;display:grid;place-items:center}.module-card strong,.module-card small,.crm-module-tile strong,.crm-module-tile small{display:block}.module-card small,.crm-module-tile small{color:var(--muted);font-size:12px}.crm-module-tile{flex-direction:column;align-items:flex-start}.module-section h5{font-weight:800;margin:0 0 14px}.crm-toolbar{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap}.crm-filter{display:flex;gap:10px;flex:1;max-width:760px}.crm-filter .input-group{max-width:360px}.crm-table thead th{background:#f8fafc;color:#64748b;text-transform:uppercase;font-size:12px;letter-spacing:.05em;border-bottom:1px solid #e2e8f0}.crm-table tbody td{padding:15px;border-color:#edf2f7}.cell-value{font-weight:500}.form-control,.form-select{border-radius:12px;border-color:#dbe3ee;padding:10px 12px}.form-control:focus,.form-select:focus{border-color:var(--brand);box-shadow:0 0 0 .2rem color-mix(in srgb,var(--brand) 18%,transparent)}.btn{border-radius:12px;font-weight:700}.btn-primary{background:var(--brand);border-color:var(--brand)}.crm-check{padding:14px 14px 14px 42px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;height:100%}.list-clean{display:flex;flex-direction:column;gap:10px}.list-clean a{padding:12px;border:1px solid #e2e8f0;border-radius:14px;text-decoration:none;color:var(--ink);display:block}.list-clean small{display:block;color:var(--muted)}.pipeline-board{display:grid;grid-auto-flow:column;grid-auto-columns:300px;gap:16px;overflow-x:auto;padding-bottom:12px}.pipeline-column{background:#eef4ff;border:1px solid #dbeafe;border-radius:22px;padding:14px;min-height:620px}.pipeline-head{display:flex;justify-content:space-between;align-items:center}.pipeline-head span{background:#fff;padding:4px 10px;border-radius:999px;font-weight:800}.pipeline-value{display:block;color:#64748b;margin:4px 0 12px}.pipeline-cards{display:flex;flex-direction:column;gap:10px}.pipeline-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:14px;text-decoration:none;color:var(--ink);box-shadow:0 10px 30px rgba(15,23,42,.06)}.pipeline-card strong,.pipeline-card span{display:block}.pipeline-card span{color:var(--muted);font-size:13px;margin:4px 0 12px}.pipeline-card div{display:flex;justify-content:space-between}.pipeline-card em{font-style:normal;color:var(--brand);font-weight:700}.pipeline-empty{padding:28px;text-align:center;color:#94a3b8;border:1px dashed #cbd5e1;border-radius:16px;background:rgba(255,255,255,.55)}@media(max-width:992px){.crm-sidebar{position:static;width:100%;height:auto}.crm-shell{display:block}.crm-main{margin-left:0;width:100%}.crm-topbar{height:auto;padding:18px;align-items:flex-start;gap:12px;flex-direction:column}.crm-top-actions{flex-wrap:wrap}.crm-content{padding:18px}.crm-filter{flex-direction:column;max-width:none}.crm-filter .input-group{max-width:none}.hero-card{flex-direction:column;align-items:flex-start;gap:18px}.pipeline-board{grid-auto-columns:86vw}}
.time-widget{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:12px;line-height:1.8}
.time-widget strong{color:#fff;font-variant-numeric:tabular-nums}


/* Professional SaaS polish: prevent overlap and keep controls usable on every screen size */
.crm-topbar{gap:16px;min-height:86px;height:auto;align-items:flex-start;padding-top:14px;padding-bottom:14px}.crm-topbar>div:first-child{min-width:220px;max-width:36%}.crm-top-actions{margin-left:auto;justify-content:flex-end;flex-wrap:wrap;row-gap:8px;max-width:68%}.crm-top-actions .btn,.crm-top-actions .form-select,.crm-top-actions form button{white-space:nowrap}.crm-global-search{min-width:240px;max-width:360px;flex:1 1 260px}.notification-bell-round{flex:0 0 auto}.table-responsive{border-radius:16px}.btn-group,.d-flex.gap-1,.d-flex.gap-2{flex-wrap:wrap}.card,.crm-card,.panel,.metric-card,.module-card,.crm-module-tile{overflow:hidden}.form-actions,.action-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.badge{white-space:normal}.crm-nav-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-module-tile strong,.module-card strong{overflow-wrap:anywhere}.saas-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.saas-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.industry-template-card{border:1px solid #e2e8f0;border-radius:18px;padding:16px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.06);height:100%}.industry-template-card .icon{width:42px;height:42px;border-radius:14px;background:color-mix(in srgb,var(--brand) 12%,white);display:grid;place-items:center;color:var(--brand);font-size:22px;margin-bottom:10px}@media(max-width:1200px){.crm-topbar>div:first-child{max-width:100%}.crm-top-actions{max-width:100%;justify-content:flex-start;margin-left:0}.crm-global-search{width:100%;max-width:none}}@media(max-width:576px){.crm-top-actions .btn,.crm-top-actions .form-select,.crm-top-actions form{width:100%}.crm-top-actions .dropdown{width:100%}.notification-bell-round{width:100%;border-radius:12px}.crm-topbar h1{font-size:20px}.crm-footer{font-size:.78rem}}

/* SaaS client permission setup improvements */
.permission-group-card { transition: all .18s ease; }
.permission-group-card:hover { box-shadow: 0 .5rem 1rem rgba(15,23,42,.08); transform: translateY(-1px); }
.permission-group-card .form-check-input { margin-top: .25rem; }
@media (max-width: 768px) {
  .permission-group-card { border-radius: 1rem; }
  .btn { white-space: normal; }
}

/* Premium UI/UX refresh */
body{background:radial-gradient(circle at top left,color-mix(in srgb,var(--brand) 8%,transparent),transparent 34%),var(--bg);}
.login-main{min-height:100vh;display:grid;place-items:center;padding:0;background:linear-gradient(135deg,#eef6ff 0%,#f8fafc 38%,#eef2ff 100%)}
.login-pro-page{min-height:100vh;width:100%;display:grid;grid-template-columns:minmax(420px,1.1fr) minmax(360px,.9fr);overflow:hidden}.login-art-panel{position:relative;display:flex;align-items:center;padding:64px;background:linear-gradient(135deg,#0f172a 0%,#1d4ed8 52%,#7c3aed 100%);color:#fff;overflow:hidden}.login-art-panel:before{content:"";position:absolute;inset:28px;border:1px solid rgba(255,255,255,.12);border-radius:34px}.login-orb{position:absolute;border-radius:999px;filter:blur(2px);opacity:.5}.orb-one{width:320px;height:320px;background:#60a5fa;right:-90px;top:-80px}.orb-two{width:220px;height:220px;background:#c084fc;left:-70px;bottom:60px}.login-art-content{position:relative;z-index:1;max-width:680px}.login-logo-wrap,.login-mini-logo{display:grid;place-items:center;background:#fff;color:#2563eb;box-shadow:0 20px 60px rgba(2,6,23,.22);overflow:hidden}.login-logo-wrap{width:82px;height:82px;border-radius:24px;margin-bottom:28px}.login-logo-wrap img,.login-mini-logo img{max-width:80%;max-height:80%;object-fit:contain}.login-logo-wrap span{font-size:38px;font-weight:900}.login-eyebrow{display:inline-flex;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-size:12px;text-transform:uppercase;letter-spacing:.12em;margin-bottom:18px}.login-art-panel h1{font-size:clamp(36px,5vw,64px);line-height:1.02;margin:0 0 18px;font-weight:900;letter-spacing:-.04em}.login-lead{font-size:18px;line-height:1.7;color:#dbeafe;max-width:620px}.login-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:34px}.login-feature-grid div{padding:18px;border-radius:20px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px)}.login-feature-grid i{font-size:24px;display:block;margin-bottom:8px}.login-feature-grid span{font-weight:700}.login-form-panel{display:grid;place-items:center;padding:36px}.login-card-pro{width:min(460px,100%);background:rgba(255,255,255,.86);border:1px solid rgba(148,163,184,.28);border-radius:30px;padding:34px;box-shadow:0 30px 80px rgba(15,23,42,.14);backdrop-filter:blur(20px)}.login-mini-logo{width:64px;height:64px;border-radius:20px;font-weight:900;font-size:28px}.login-card-pro h2{font-weight:900;letter-spacing:-.02em}.login-card-pro p{color:#64748b;margin-bottom:0}.login-form-clean input{border-radius:15px;padding:12px 14px;border:1px solid #dbe3ee;width:100%}.login-form-clean input:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 .22rem color-mix(in srgb,var(--brand) 18%,transparent)}.login-help{display:flex;align-items:flex-start;gap:10px;color:#64748b;font-size:13px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}.login-help i{color:var(--brand)}
.crm-nav-group{margin:0 0 8px}.crm-nav-group summary{list-style:none;cursor:pointer;font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#cbd5e1;margin:16px 8px 8px;padding:8px 10px;border-radius:12px;display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.05);user-select:none}.crm-nav-group summary::-webkit-details-marker{display:none}.crm-nav-group summary i{transition:.18s}.crm-nav-group:not([open]) summary i{transform:rotate(-90deg)}.crm-nav-group-items{padding:0 0 0 0}.crm-nav-title{display:none}.crm-nav-link{position:relative}.crm-nav-link:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:0;background:#fff;border-radius:99px;transition:.16s}.crm-nav-link:hover:before{height:22px}.dashboard-hero{position:relative;overflow:hidden}.dashboard-hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:999px;background:rgba(255,255,255,.12);right:-60px;top:-90px}.dashboard-hero>*{position:relative;z-index:1}.dashboard-builder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.dashboard-builder-toolbar small{color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px;align-items:start}.dash-widget{grid-column:span 4;background:rgba(255,255,255,.92);border:1px solid rgba(148,163,184,.25);border-radius:24px;padding:18px;box-shadow:0 18px 50px rgba(15,23,42,.07);transition:.18s;cursor:grab}.dash-widget:active{cursor:grabbing}.dash-widget.dragging{opacity:.55;transform:scale(.98)}.dash-widget-wide{grid-column:span 8}.widget-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;font-weight:900}.widget-head span{display:flex;align-items:center;gap:8px}.widget-head i{color:var(--brand)}.widget-hide{border:0;background:#f1f5f9;color:#64748b;border-radius:999px;width:28px;height:28px;line-height:1;font-size:20px}.widget-hide:hover{background:#fee2e2;color:#dc2626}.mini-bars{height:92px;display:flex;align-items:end;gap:10px;padding:14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px}.mini-bars span{flex:1;height:var(--h);border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,var(--brand),color-mix(in srgb,var(--brand) 45%,#fff))}.widget-check-row{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;cursor:pointer}.widget-check-row span{font-weight:700}.offcanvas{border-radius:24px 0 0 24px;overflow:hidden}.crm-card-head small{color:var(--muted)}.empty-state{padding:32px;border:1px dashed #cbd5e1;border-radius:20px;background:#f8fafc;color:#64748b;text-align:center}
@media(max-width:1320px){.dash-widget{grid-column:span 6}.dash-widget-wide{grid-column:span 12}}@media(max-width:768px){.login-pro-page{grid-template-columns:1fr}.login-art-panel{min-height:auto;padding:36px}.login-feature-grid{grid-template-columns:1fr}.login-form-panel{padding:24px}.login-card-pro{padding:24px;border-radius:24px}.dashboard-grid{grid-template-columns:1fr}.dash-widget,.dash-widget-wide{grid-column:auto}.offcanvas{border-radius:0}.crm-nav-group summary{margin-top:8px}}

/* Stabilization update: active-only sidebar dropdowns, mobile-safe layout, print isolation */
.crm-nav-link.active{background:rgba(255,255,255,.16);color:#fff;font-weight:800}.crm-nav-link.active:before{height:24px}.crm-nav-group:not([open]) .crm-nav-group-items{display:none}.crm-nav-group[open] summary{background:rgba(255,255,255,.12);color:#fff}
.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.crm-card,.panel{min-width:0}.crm-content img{max-width:100%;height:auto}.crm-top-actions>*{max-width:100%}
@media(max-width:992px){.crm-sidebar{max-height:none}.crm-brand{height:auto}.crm-nav{max-height:60vh}.crm-main{min-width:0}.crm-top-actions{width:100%}.crm-top-actions .form-select{max-width:100%!important}.crm-card,.panel{padding:16px;border-radius:18px}.row>[class*="col-"]{min-width:0}}
@media(max-width:576px){.crm-content{padding:12px}.crm-toolbar{align-items:stretch}.crm-toolbar>*{width:100%}.crm-table tbody td{padding:10px}.crm-card-head{align-items:flex-start;gap:8px;flex-direction:column}.modal-dialog{margin:.5rem}.notification-popup{width:calc(100vw - 24px)}}
@media print{.d-print-none,.no-print,.crm-sidebar,.crm-topbar,.crm-footer,.alert{display:none!important}.crm-main{margin-left:0!important;width:100%!important}.crm-content{padding:0!important}.crm-card,.panel{box-shadow:none!important;border:0!important}.print-only-area{display:block!important}}
.crm-nav-subgroup{margin:6px 0 8px 10px;border-left:1px solid rgba(255,255,255,.12);padding-left:8px}.crm-nav-subgroup summary{list-style:none;cursor:pointer;font-size:11px;letter-spacing:.06em;color:#dbeafe;margin:8px 0;padding:7px 10px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.04);user-select:none}.crm-nav-subgroup summary::-webkit-details-marker{display:none}.crm-nav-subgroup summary i{transition:.18s}.crm-nav-subgroup:not([open]) summary i{transform:rotate(-90deg)}.crm-nav-link-sub{padding-left:18px;font-size:.93rem}.crm-nav-subgroup:not([open]) .crm-nav-subgroup-items{display:none}.crm-nav-subgroup[open] summary{background:rgba(255,255,255,.10);color:#fff}
/* Client auth refinements */
.login-form-clean .form-check-input{width:1em;height:1em;padding:0;margin-top:.25em;border-radius:.25em;}
.login-form-clean .form-check-label{cursor:pointer;}

/* Next-generation SaaS UI/UX upgrade: auth, forms, responsiveness and premium polish */
.auth-pro-page .auth-art-panel{background:radial-gradient(circle at 10% 20%,rgba(96,165,250,.42),transparent 28%),linear-gradient(135deg,#020617 0%,#1e3a8a 52%,#6d28d9 100%)}
.auth-card-pro{border:1px solid rgba(37,99,235,.14);animation:softRise .45s ease both}.auth-submit{box-shadow:0 14px 28px color-mix(in srgb,var(--brand) 26%,transparent);transition:transform .18s ease,box-shadow .18s ease}.auth-submit:hover{transform:translateY(-1px);box-shadow:0 18px 36px color-mix(in srgb,var(--brand) 34%,transparent)}
.input-icon-wrap,.password-wrap{position:relative}.input-icon-wrap>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#94a3b8;z-index:2}.input-icon-wrap .form-control{padding-left:42px}.password-wrap .form-control{padding-right:48px}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:#f1f5f9;color:#64748b;border-radius:10px;width:34px;height:34px;display:grid;place-items:center;transition:.16s}.password-toggle:hover{background:var(--brand);color:#fff}.auth-check{padding:12px 14px 12px 42px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}.auth-check .form-check-input{width:1.05rem;height:1.05rem;margin-left:-1.65rem}.auth-field .form-label{font-weight:800;color:#334155}.auth-field .form-control,.auth-field .form-select{min-height:48px;background:#fff}.invalid-feedback-live{font-size:.78rem;margin-top:.35rem;color:#dc2626;min-height:1rem}.field-valid{border-color:#22c55e!important;box-shadow:0 0 0 .16rem rgba(34,197,94,.12)!important}.field-invalid{border-color:#ef4444!important;box-shadow:0 0 0 .16rem rgba(239,68,68,.12)!important}.password-strength-text.is-weak{color:#dc2626}.password-strength-text.is-good{color:#16a34a}.country-picker-wrap .country-search{margin-bottom:8px}.country-picker-wrap .form-select option[hidden]{display:none}.phone-input-group .input-group-text{border-radius:12px 0 0 12px;background:#eef4ff;color:#1d4ed8;font-weight:900;border-color:#dbe3ee;min-width:76px;justify-content:center}.phone-input-group .form-control{border-radius:0 12px 12px 0}.auth-register-page{min-height:100vh;width:100%;padding:48px 18px;background:radial-gradient(circle at top left,rgba(37,99,235,.16),transparent 32%),linear-gradient(135deg,#f8fafc 0%,#eef6ff 48%,#f5f3ff 100%)}.auth-register-shell{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(300px,.85fr) minmax(420px,1.15fr);gap:24px;align-items:stretch}.auth-register-hero{position:relative;overflow:hidden;border-radius:32px;padding:34px;color:#fff;background:linear-gradient(135deg,#0f172a,#1d4ed8 56%,#7c3aed);box-shadow:0 30px 80px rgba(15,23,42,.18);display:flex;flex-direction:column;justify-content:center}.auth-register-hero:after{content:"";position:absolute;width:260px;height:260px;border-radius:999px;background:rgba(255,255,255,.12);right:-80px;top:-70px}.auth-register-hero>*{position:relative;z-index:1}.auth-register-hero h1{font-size:clamp(34px,4vw,54px);font-weight:950;letter-spacing:-.04em;line-height:1.02}.auth-register-hero p{color:#dbeafe;font-size:17px;line-height:1.7}.auth-trust-list{display:flex;flex-direction:column;gap:12px;margin-top:20px}.auth-trust-list span{display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.15);padding:12px 14px;border-radius:16px;font-weight:800}.auth-register-card{background:rgba(255,255,255,.9);border:1px solid rgba(148,163,184,.28);border-radius:32px;padding:34px;box-shadow:0 30px 80px rgba(15,23,42,.12);backdrop-filter:blur(18px)}.auth-register-card h2{font-weight:950;letter-spacing:-.025em}.crm-card,.panel,.metric-card,.module-card,.crm-module-tile,.saas-card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.crm-card:hover,.panel:hover,.metric-card:hover{box-shadow:0 22px 58px rgba(15,23,42,.09)}.crm-table{vertical-align:middle}.crm-table tbody tr{transition:background .14s ease}.crm-table tbody tr:hover{background:#f8fbff}.modal-content{border:0;border-radius:24px;box-shadow:0 30px 80px rgba(15,23,42,.22)}.modal-header{border-bottom:1px solid #edf2f7}.modal-footer{border-top:1px solid #edf2f7}.form-text{color:#64748b}.loading-skeleton{position:relative;overflow:hidden;background:#e2e8f0;border-radius:12px}.loading-skeleton:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:skeleton 1.25s infinite}@keyframes skeleton{100%{transform:translateX(100%)}}@keyframes softRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(max-width:992px){.login-pro-page{grid-template-columns:1fr}.login-art-panel{padding:34px}.login-art-panel h1{font-size:36px}.auth-register-shell{grid-template-columns:1fr}.auth-register-hero{min-height:auto}.auth-register-card{padding:24px}.table-responsive .crm-table{min-width:760px}.crm-sidebar{position:relative}.crm-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px;max-height:none}.crm-nav-group{min-width:0}}
@media(max-width:576px){.auth-register-page{padding:18px 10px}.auth-register-hero,.auth-register-card{border-radius:24px;padding:22px}.login-art-panel{display:none}.login-form-panel{min-height:100vh}.auth-card-pro{border-radius:22px}.login-card-pro{box-shadow:0 18px 50px rgba(15,23,42,.12)}.auth-trust-list span{font-size:.9rem}.phone-input-group{flex-wrap:nowrap}.country-dial-code{min-width:64px}.crm-table{font-size:.88rem}.form-control,.form-select,.btn{min-height:42px}.crm-top-actions{gap:8px}}

/* Email uniqueness validation feedback */
.email-unique-feedback { min-height: 1rem; }
.field-valid { border-color: #198754 !important; }
.field-invalid { border-color: #dc3545 !important; }
/* Super Admin staff + premium registration update */
.vsm-register-v2{min-height:100vh;padding:34px 16px;background:radial-gradient(circle at 8% 10%,rgba(37,99,235,.18),transparent 30%),radial-gradient(circle at 92% 12%,rgba(124,58,237,.16),transparent 26%),linear-gradient(135deg,#f8fbff,#eef6ff 52%,#f8fafc)}
.vsm-register-shell{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:minmax(310px,.82fr) minmax(460px,1.18fr);gap:24px;align-items:stretch}.vsm-register-brand-panel{position:sticky;top:18px;align-self:start;min-height:720px;border-radius:34px;padding:38px;color:#fff;background:linear-gradient(145deg,#08111f,#163b8f 55%,#6d28d9);box-shadow:0 35px 90px rgba(15,23,42,.22);overflow:hidden}.vsm-register-brand-panel:before,.vsm-register-brand-panel:after{content:"";position:absolute;border-radius:999px;background:rgba(255,255,255,.1)}.vsm-register-brand-panel:before{width:260px;height:260px;right:-80px;top:-70px}.vsm-register-brand-panel:after{width:180px;height:180px;left:-60px;bottom:-60px}.vsm-register-brand-panel>*{position:relative;z-index:1}.vsm-register-brand-panel h1{font-size:clamp(34px,4vw,56px);font-weight:950;line-height:1.02;letter-spacing:-.045em;margin:14px 0 16px}.vsm-register-brand-panel p{color:#dbeafe;font-size:17px;line-height:1.75}.vsm-register-steps{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:26px}.vsm-register-steps div{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.11);backdrop-filter:blur(12px);border-radius:18px;padding:14px}.vsm-register-steps strong{display:block;font-size:13px;color:#bfdbfe}.vsm-register-steps span{font-weight:850}.vsm-register-form-panel{min-width:0}.vsm-register-card-pro{border-radius:34px;padding:34px;background:rgba(255,255,255,.94);box-shadow:0 32px 85px rgba(15,23,42,.13)}.vsm-form-section{border:1px solid #e6edf6;border-radius:24px;padding:20px;margin-bottom:18px;background:linear-gradient(180deg,#fff,#fbfdff)}.vsm-section-title{display:flex;align-items:center;gap:10px;font-weight:950;color:#0f172a;margin-bottom:16px}.vsm-section-title i{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#eef4ff;color:#1d4ed8}.country-picker-wrap .country-search{border-radius:14px;margin-bottom:10px;background:#f8fafc}.country-picker-wrap .country-select{border-radius:14px}.auth-submit{border-radius:16px;font-weight:900;box-shadow:0 16px 30px rgba(37,99,235,.22)}@media(max-width:991.98px){.vsm-register-shell{grid-template-columns:1fr}.vsm-register-brand-panel{position:relative;top:auto;min-height:auto}.vsm-register-steps{grid-template-columns:repeat(4,1fr)}}@media(max-width:575.98px){.vsm-register-v2{padding:18px 10px}.vsm-register-brand-panel,.vsm-register-card-pro{border-radius:24px;padding:22px}.vsm-register-steps{grid-template-columns:1fr 1fr}.vsm-form-section{padding:16px;border-radius:20px}.auth-submit{font-size:15px}}

/* Stability phase: commercial SaaS responsive shell and mobile-app feel */
.professional-empty,.empty-state{border:1px dashed #cbd5e1;border-radius:20px;background:linear-gradient(180deg,#ffffff,#f8fafc);padding:28px;text-align:center;color:#475569}.professional-empty i,.empty-state i{color:var(--brand)}
@media(max-width: 768px){
  body{background:#f6f8fc;}
  .crm-shell{display:block;min-height:100vh;padding-bottom:72px;}
  .crm-sidebar{position:sticky;top:0;width:100%;height:auto;max-height:72vh;overflow:auto;border-radius:0 0 24px 24px;box-shadow:0 18px 46px rgba(15,23,42,.18);}
  .crm-brand{height:auto;min-height:68px;padding:14px 16px;}
  .crm-brand img,.crm-brand-mark{width:40px;height:40px;}
  .crm-nav{display:grid;grid-template-columns:1fr;gap:6px;padding:10px;}
  .crm-nav-group{border-radius:16px;background:rgba(255,255,255,.04);}
  .crm-nav-group summary{padding:12px 14px;min-height:46px;}
  .crm-nav-link{min-height:48px;padding:12px 14px;margin:2px 0;border-radius:14px;}
  .crm-sidebar-bottom{display:none;}
  .crm-main{margin-left:0;width:100%;}
  .crm-topbar{position:sticky;top:0;margin:0;border-radius:0 0 22px 22px;padding:14px 14px 16px;z-index:20;box-shadow:0 14px 36px rgba(15,23,42,.08);}
  .crm-topbar>div:first-child{max-width:100%;width:100%;}
  .crm-topbar h1{font-size:1.25rem;line-height:1.2;}
  .crm-topbar p{font-size:.86rem;}
  .crm-top-actions{width:100%;max-width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;}
  .crm-top-actions .btn,.crm-top-actions .form-select,.crm-top-actions form,.crm-top-actions form button{width:100%;min-height:44px;}
  .crm-top-actions .dropdown{width:100%;}
  .notification-bell-round{height:44px;width:100%;border-radius:14px;}
  .crm-content{padding:14px;}
  .crm-card,.panel,.card{border-radius:20px;padding:16px;box-shadow:0 12px 30px rgba(15,23,42,.06);}
  .hero-card{border-radius:22px;padding:20px;}
  .hero-card h2{font-size:1.5rem;}
  .metric-card{min-height:110px;border-radius:18px;}
  .crm-toolbar,.crm-filter{display:grid;width:100%;max-width:none;grid-template-columns:1fr;gap:10px;}
  .crm-toolbar .btn,.crm-filter .btn,.crm-filter .form-control,.crm-filter .form-select{width:100%;min-height:46px;}
  .table-responsive{border-radius:18px;box-shadow:inset 0 0 0 1px #e2e8f0;background:#fff;}
  .table-responsive table{min-width:760px;}
  .module-card,.crm-module-tile{border-radius:18px;padding:16px;min-height:84px;}
  .form-control,.form-select,.btn{min-height:46px;font-size:16px;}
  .row>[class*="col-"]{margin-bottom:2px;}
  .pricing-page{margin:0!important;}
}
