:root {
  --bg: #f5f6fa;
  --surface: #fff;
  --surface-2: #f8f8fb;
  --ink: #181a25;
  --muted: #858897;
  --line: #e9e9f0;
  --purple: #6858dc;
  --purple-dark: #5140c7;
  --purple-soft: #eeeafd;
  --green: #16a66a;
  --green-soft: #e7f7ef;
  --orange: #ed8c35;
  --orange-soft: #fff1e2;
  --red: #e34d59;
  --red-soft: #fdebed;
  --sidebar: #191a24;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(34, 32, 69, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.svg-sprite { width: 0; height: 0; position: absolute; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

.login-app { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 10%, rgba(119,99,225,.13), transparent 34%), radial-gradient(circle at 10% 90%, rgba(32,184,124,.08), transparent 30%), #f4f4f8; }
.login-card { width: min(430px,100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: 0 24px 70px rgba(31,29,54,.11); }
.login-card .brand { padding: 0; }
.login-copy { margin: 38px 0 25px; }
.login-copy h1 { margin: 8px 0; font-size: 27px; letter-spacing: -.8px; }
.login-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.login-form { display: grid; gap: 16px; }
.login-form .btn { width: 100%; margin-top: 3px; }
.login-error { margin: -6px 0 0; color: var(--red); background: var(--red-soft); padding: 9px 11px; border-radius: 8px; font-size: 10px; }
.login-foot { color: #aaaab3; text-align: center; font-size: 9px; margin: 24px 0 0; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; background: var(--sidebar); color: #fff; display: flex; flex-direction: column; padding: 30px 16px 18px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; font-size: 23px; font-weight: 750; letter-spacing: -.7px; }
.brand-mark { width: 34px; height: 34px; background: linear-gradient(145deg, #8878f0, #5c4bd1); border-radius: 11px; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(104, 88, 220, .35); color: #fff; }
.brand-mark svg { width: 20px; height: 20px; }
.main-nav { margin-top: 35px; display: grid; gap: 5px; }
.nav-label { color: #656672; font-size: 10px; letter-spacing: 1.3px; font-weight: 700; padding: 27px 13px 0; text-transform: uppercase; }
.nav-label + .main-nav { margin-top: 11px; }
.nav-item { text-decoration: none; color: #92939e; min-height: 45px; padding: 0 13px; border-radius: 11px; display: flex; align-items: center; gap: 13px; font-size: 14px; font-weight: 550; transition: .2s ease; position: relative; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(112,94,225,.3), rgba(112,94,225,.13)); }
.nav-item.active:before { content: ""; position: absolute; left: -16px; height: 23px; width: 3px; border-radius: 0 4px 4px 0; background: #8c7cff; }
.nav-item b { margin-left: auto; color: #aaa9b3; background: #292a35; font-size: 11px; padding: 3px 7px; border-radius: 7px; }
.nav-item i { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #ee5e69; }
.sidebar-footer { margin-top: auto; }
.health { border: 1px solid #30313d; border-radius: 12px; padding: 13px 12px; display: flex; align-items: flex-start; gap: 10px; margin: 0 1px 14px; }
.health-dot { width: 8px; height: 8px; background: #2ecb83; border-radius: 50%; box-shadow: 0 0 0 4px rgba(46,203,131,.12); margin-top: 4px; flex: 0 0 auto; }
.health strong, .health small { display: block; }
.health strong { color: #d6d6dc; font-size: 10px; font-weight: 600; }
.health small { font-size: 9px; color: #6d6e79; margin-top: 4px; }
.profile-mini { width: 100%; border: 0; border-top: 1px solid #2b2c36; background: transparent; padding: 17px 8px 0; display: flex; align-items: center; color: white; gap: 10px; text-align: left; cursor: pointer; }
.avatar { width: 33px; height: 33px; border-radius: 50%; background: #343141; display: grid; place-items: center; color: #d7d4e8; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.profile-mini > span:nth-child(2) { min-width: 0; flex: 1; }
.profile-mini strong, .profile-mini small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-mini strong { font-size: 11px; font-weight: 600; }
.profile-mini small { color: #71717c; font-size: 9px; margin-top: 3px; }
.profile-mini svg { width: 14px; color: #6d6d77; }

.workspace { margin-left: 244px; min-width: 0; flex: 1; }
.topbar { height: 75px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; position: sticky; top: 0; z-index: 12; backdrop-filter: blur(12px); }
.search-box { width: min(460px, 46vw); height: 40px; background: #f6f6f8; border: 1px solid #eeeef2; border-radius: 10px; display: flex; align-items: center; padding: 0 12px; gap: 10px; color: #9d9daa; }
.search-box svg { width: 17px; }
.search-box input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 12px; color: var(--ink); }
.search-box input::placeholder { color: #a7a7b1; }
kbd { font-family: inherit; font-size: 10px; border: 1px solid #dddde3; background: #fff; border-radius: 5px; padding: 3px 6px; color: #a1a1aa; }
.top-actions { display: flex; gap: 11px; align-items: center; }
.icon-btn { border: 1px solid var(--line); background: white; border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn svg { width: 18px; }
.notification-btn span { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); border: 1.5px solid #fff; }
.mobile-menu { display: none; }
.btn { min-height: 40px; border-radius: 10px; padding: 0 16px; border: 1px solid transparent; font-size: 12px; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .18s ease; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 7px 15px rgba(104,88,220,.2); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.btn-secondary { border-color: var(--line); background: white; color: #555763; }
.btn-secondary:hover { background: #fafafa; border-color: #dbdbe3; }
.btn-white { color: var(--purple-dark); background: #fff; }
.btn-large { min-height: 46px; padding-inline: 23px; }
.content { padding: 35px 38px 60px; max-width: 1600px; margin: auto; }
.page-section { display: none; }
.page-section.active { display: block; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: 9px; letter-spacing: 1.3px; color: #a3a3ad; font-weight: 700; }
.page-heading h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.8px; margin: 7px 0 5px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.stat-card { min-height: 122px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px 19px; display: flex; gap: 14px; align-items: flex-start; position: relative; overflow: hidden; box-shadow: 0 2px 4px rgba(22,22,40,.015); }
.stat-icon { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.stat-icon svg { width: 18px; }
.accent-purple .stat-icon { color: var(--purple); background: var(--purple-soft); }
.accent-green .stat-icon { color: var(--green); background: var(--green-soft); }
.accent-orange .stat-icon { color: var(--orange); background: var(--orange-soft); }
.accent-red .stat-icon { color: var(--red); background: var(--red-soft); }
.stat-copy span, .stat-copy strong, .stat-copy small { display: block; }
.stat-copy span { color: #8a8b96; font-size: 10px; margin-top: 1px; }
.stat-copy strong { font-size: 23px; letter-spacing: -.7px; margin: 8px 0 4px; white-space: nowrap; }
.stat-copy small { color: #a2a2aa; font-size: 9px; }
.stat-copy small.up { color: var(--green); }
.stat-copy small.danger { color: var(--red); }
.stat-copy small svg { width: 11px; height: 11px; vertical-align: -2px; }
.spark { position: absolute; right: 14px; bottom: 20px; width: 65px; height: 24px; display: flex; align-items: flex-end; gap: 3px; opacity: .7; }
.spark i { width: 6px; border-radius: 4px 4px 1px 1px; background: #bcb5f3; }
.spark i:nth-child(1) { height: 32%; }.spark i:nth-child(2) { height: 45%; }.spark i:nth-child(3) { height: 39%; }.spark i:nth-child(4) { height: 60%; }.spark i:nth-child(5) { height: 53%; }.spark i:nth-child(6) { height: 76%; }.spark i:nth-child(7) { height: 95%; }
.spark-green i { background: #86d9b5; }
.avatars { position: absolute; right: 18px; bottom: 20px; display: flex; }
.avatars span, .avatars b { width: 25px; height: 25px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; margin-left: -6px; color: #fff; font-size: 8px; font-weight: 700; }
.avatars span:nth-child(1) { background: #b07d68; }.avatars span:nth-child(2) { background: #5980b7; }.avatars span:nth-child(3) { background: #9681b4; }.avatars b { background: #efeff4; color: #878793; }
.round-go { width: 29px; height: 29px; border-radius: 50%; border: 0; background: #f7f7fa; color: #888996; display: grid; place-items: center; position: absolute; right: 17px; bottom: 18px; cursor: pointer; }
.round-go svg { width: 13px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr); gap: 15px; margin-top: 15px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.revenue-panel, .upcoming-panel { min-height: 332px; padding: 22px 23px; }
.panel-head, .groups-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.panel h2, .groups-head h2 { font-size: 14px; margin: 0 0 5px; }
.panel p, .groups-head p { color: var(--muted); font-size: 10px; margin: 0; }
.panel-head select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 27px 7px 10px; background: #fff; color: #6d6e79; font-size: 10px; outline: none; }
.revenue-total { margin: 20px 0 7px 48px; display: flex; align-items: center; gap: 12px; }
.revenue-total strong { font-size: 20px; }
.revenue-total span { font-size: 9px; color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 4px 7px; }
.revenue-total svg { width: 10px; height: 10px; vertical-align: -2px; }
.chart { display: flex; height: 200px; }
.y-labels { width: 45px; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0 19px; color: #b2b2bb; font-size: 8px; }
.chart-area { flex: 1; position: relative; padding-bottom: 20px; }
.chart-area > svg { position: absolute; inset: 0 0 20px; width: 100%; height: calc(100% - 20px); overflow: visible; }
.chart .area { fill: url(#chartFill); stroke: none; }
.chart .line { fill: none; stroke: var(--purple); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart .points circle { fill: white; stroke: var(--purple); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.grid-lines { position: absolute; inset: 0 0 20px; display: flex; flex-direction: column; justify-content: space-between; }
.grid-lines i { border-top: 1px dashed #ececf1; width: 100%; }
.x-labels { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; color: #a8a8b1; font-size: 8px; }
.text-btn { border: 0; background: none; color: var(--purple); font-size: 10px; font-weight: 650; cursor: pointer; padding: 4px; display: inline-flex; align-items: center; gap: 3px; }
.text-btn svg { width: 12px; height: 12px; }
.renewal-list { margin-top: 17px; display: grid; }
.renewal { display: flex; align-items: center; border: 0; border-bottom: 1px solid #f0f0f3; background: transparent; padding: 10px 0; text-align: left; cursor: pointer; }
.date-box { width: 39px; height: 39px; border: 1px solid #e6e6ed; border-radius: 9px; display: grid; place-content: center; text-align: center; flex: 0 0 auto; }
.date-box b { font-size: 13px; line-height: 1; }.date-box small { font-size: 7px; color: #9999a2; margin-top: 3px; }
.person { margin-left: 10px; min-width: 0; flex: 1; }
.person strong, .person small { display: block; }.person strong { font-size: 10px; margin-bottom: 4px; }.person small { font-size: 8px; color: #9898a2; }
.days { color: #6f6f79; font-size: 8px; background: #f3f3f6; border-radius: 6px; padding: 5px 7px; }
.days.orange { color: var(--orange); background: var(--orange-soft); }
.renewal-summary { padding-top: 14px; display: flex; justify-content: space-between; font-size: 10px; color: #91919b; }
.renewal-summary strong { color: var(--ink); font-size: 12px; }

.groups-panel { margin-top: 15px; overflow: hidden; }
.groups-head { padding: 22px 23px 16px; }
.filter-row { display: flex; gap: 6px; padding: 0 23px 15px; overflow-x: auto; scrollbar-width: none; }
.filter { flex: 0 0 auto; border: 1px solid #ececf0; background: #fff; border-radius: 8px; min-height: 31px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; color: #777883; font-size: 9px; cursor: pointer; }
.filter.active { background: #24242e; color: white; border-color: #24242e; }
.filter span { background: #f1f1f4; color: #8d8d97; padding: 2px 5px; border-radius: 5px; font-size: 8px; }
.filter.active span { background: #3a3a46; color: #c7c7ce; }
.dot { width: 6px; height: 6px; border-radius: 50%; }.orange-dot { background: var(--orange); }.red-dot { background: var(--red); }.gray-dot { background: #a7a7b1; }
.table-wrap { overflow-x: auto; }
.groups-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.groups-table th { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfbfc; text-align: left; font-size: 8px; letter-spacing: .5px; color: #a1a1aa; text-transform: uppercase; padding: 11px 15px; }
.groups-table th:first-child, .groups-table td:first-child { padding-left: 23px; }
.groups-table td { padding: 13px 15px; border-bottom: 1px solid #f0f0f3; font-size: 10px; color: #62636e; }
.groups-table tr { transition: .15s; cursor: pointer; }.groups-table tbody tr:hover { background: #fafaff; }
.owner-cell { display: flex; align-items: center; gap: 10px; }
.owner-avatar { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; font-size: 9px; font-weight: 750; }
.owner-cell strong, .owner-cell small { display: block; }.owner-cell strong { color: var(--ink); font-size: 10px; }.owner-cell small { color: #aaaab3; font-size: 8px; margin-top: 3px; }
.date-cell strong, .date-cell small { display: block; }.date-cell strong { font-size: 10px; color: #454650; }.date-cell small { margin-top: 3px; color: #aaaab2; font-size: 8px; }
.status-pill { border-radius: 20px; padding: 5px 8px; font-size: 8px; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; }
.active-status { color: var(--green); background: var(--green-soft); }.active-status i { background: var(--green); }
.soon-status { color: var(--orange); background: var(--orange-soft); }.soon-status i { background: var(--orange); }
.expired-status, .error-status { color: var(--red); background: var(--red-soft); }.expired-status i, .error-status i { background: var(--red); }
.pending-status { color: #777883; background: #efeff3; }.pending-status i { background: #91919c; }
.connection-count { display: inline-flex; align-items: center; gap: 6px; }.connection-count svg { width: 14px; color: #9c9ca5; }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.row-action { width: 27px; height: 27px; border: 1px solid #e9e9ee; background: white; border-radius: 7px; display: grid; place-items: center; cursor: pointer; color: #8c8c96; }.row-action svg { width: 13px; height: 13px; }
.mobile-group-list { display: none; }

.generic-card { min-height: 460px; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.empty-state { max-width: 500px; margin: 70px auto; text-align: center; }.empty-state .stat-icon { margin: auto; }.empty-state h2 { margin: 18px 0 8px; font-size: 20px; }.empty-state p { color: var(--muted); line-height: 1.6; font-size: 13px; }.empty-state .btn { margin-top: 12px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }.integration-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }.integration-card .stat-icon { margin-bottom: 25px; }.integration-card h3 { font-size: 14px; margin: 0 0 7px; }.integration-card p { font-size: 10px; color: var(--muted); line-height: 1.6; }.integration-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }.integration-card footer span { font-size: 9px; color: var(--green); }

/* Modal */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(20,20,31,.45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fade .18s ease; }
.modal { width: min(680px, 100%); max-height: min(850px, 92vh); overflow-y: auto; background: white; border-radius: 22px; box-shadow: 0 30px 80px rgba(16,15,31,.25); position: relative; animation: pop .22s ease; }
.modal-close { position: absolute; right: 18px; top: 18px; z-index: 2; border: 1px solid var(--line); background: white; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; }.modal-close svg { width: 15px; }
.modal-head { padding: 27px 28px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 13px; }.modal-head .owner-avatar { width: 43px; height: 43px; border-radius: 12px; }.modal-head h2 { font-size: 18px; margin: 0 0 4px; }.modal-head p { margin: 0; color: var(--muted); font-size: 10px; }
.modal-body { padding: 24px 28px 28px; }.modal-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.modal-stat { background: var(--surface-2); padding: 14px; border-radius: 12px; }.modal-stat small,.modal-stat strong { display: block; }.modal-stat small { color: #9999a3; font-size: 8px; text-transform: uppercase; letter-spacing: .4px; }.modal-stat strong { font-size: 14px; margin-top: 7px; }
.quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-top: 17px; }.quick-action { border: 1px solid var(--line); border-radius: 11px; background: white; padding: 12px 7px; display: grid; justify-items: center; gap: 7px; font-size: 9px; cursor: pointer; }.quick-action:hover { border-color: #cfc8f6; color: var(--purple); background: #faf9ff; }.quick-action svg { width: 17px; }
.modal-section { margin-top: 24px; }.modal-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }.modal-section h3 { font-size: 12px; margin: 0; }.connection-row,.history-row { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); gap: 10px; }.connection-row .device-icon { width: 31px; height: 31px; }.connection-row > div,.history-row > div { flex: 1; }.connection-row strong,.connection-row small,.history-row strong,.history-row small { display: block; }.connection-row strong,.history-row strong { font-size: 10px; }.connection-row small,.history-row small { color: var(--muted); font-size: 8px; margin-top: 3px; }.connection-row .status-pill { flex: 0 0 auto; }.history-row > span { font-size: 10px; font-weight: 650; color: var(--green); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.field { display: grid; gap: 7px; }.field.full { grid-column: 1 / -1; }.field label { font-size: 9px; font-weight: 650; color: #656671; }.field input,.field select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; outline: none; color: var(--ink); font-size: 11px; background: #fff; }.field input:focus,.field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

/* Client cabinet */
.client-app { min-height: 100vh; background: #f3f3f8; }
.client-header { height: 74px; max-width: 1180px; margin: auto; display: flex; align-items: center; gap: 60px; padding: 0 20px; }
.brand-dark { color: #242532; padding: 0; }.client-header nav { display: flex; align-self: stretch; gap: 29px; }.client-header nav a { display: flex; align-items: center; text-decoration: none; color: #7d7e88; font-size: 11px; position: relative; }.client-header nav a.active { color: var(--ink); font-weight: 650; }.client-header nav a.active:after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--purple); }
.client-profile { margin-left: auto; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }.client-profile strong,.client-profile small { display: block; }.client-profile strong { font-size: 10px; }.client-profile small { color: #9696a0; font-size: 8px; margin-top: 3px; }.client-profile svg { width: 13px; color: #9999a2; }.client-menu { display: none; }
.client-main { max-width: 1180px; margin: auto; padding: 25px 20px 70px; }
.welcome-card { min-height: 245px; border-radius: 24px; background: linear-gradient(118deg,#242034,#393050 61%,#514269); color: #fff; padding: 48px 54px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; box-shadow: 0 18px 45px rgba(47,38,71,.18); }.welcome-card:before { content:""; position:absolute; width:350px; height:350px; right:-80px; top:-140px; border-radius:50%; background:rgba(174,143,225,.12); filter:blur(2px); }.welcome-card:after { content:""; position:absolute; width:250px; height:250px; right:150px; bottom:-180px; border-radius:50%; background:rgba(132,99,190,.13); }
.client-kicker { font-size: 9px; color: #bdb5ce; letter-spacing: 1.7px; font-weight: 700; }.welcome-card h1 { font-size: 30px; max-width: 500px; margin: 12px 0 11px; letter-spacing: -.9px; }.welcome-card h1 span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #36c688; font-size: 12px; vertical-align: 4px; }.welcome-card p { color: #bdb8c8; font-size: 12px; margin: 0; }
.shield-orbit { width: 170px; height: 170px; position: relative; margin-right: 50px; display: grid; place-items: center; z-index: 1; }.shield-orbit > span { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%,#9783dd,#6850a1); box-shadow: 0 0 45px rgba(157,129,220,.38), inset 0 0 15px rgba(255,255,255,.2); }.shield-orbit > span svg { width: 40px; height: 40px; }.orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }.orbit.one { inset: 15px; }.orbit.two { inset: -11px; }.shield-orbit i { position: absolute; right: 10px; top: 34px; width: 7px; height: 7px; border-radius: 50%; background: #57d49e; box-shadow: 0 0 12px #57d49e; }
.client-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 17px; margin-top: 18px; }.white-card { background: #fff; border: 1px solid #e8e8ee; border-radius: 19px; padding: 27px; }.card-title { display: flex; align-items: flex-start; justify-content: space-between; }.card-title > div > span { color: #a0a0aa; font-size: 8px; letter-spacing: 1px; font-weight: 700; }.card-title h2 { font-size: 17px; margin: 7px 0 0; }.subscription-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 28px; }.subscription-stats > div + div { border-left: 1px solid var(--line); padding-left: 27px; }.subscription-stats small,.subscription-stats strong,.subscription-stats span { display: block; }.subscription-stats small { color: #aaaab3; font-size: 8px; letter-spacing: .7px; }.subscription-stats strong { margin: 9px 0 5px; font-size: 16px; }.subscription-stats strong em { font-size: 9px; color: #9999a3; font-style: normal; font-weight: 400; }.subscription-stats span { font-size: 9px; color: #8d8d97; }.progress { height: 5px; border-radius: 5px; background: #eeeef3; margin: 25px 0 21px; overflow: hidden; }.progress i { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#806ce6,#5c4bd0); }.subscription-actions { display: flex; gap: 9px; }
.device-count { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--purple-soft); color: var(--purple); font-size: 10px; font-weight: 700; }.device-stack { margin-top: 15px; }.device-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }.device-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }.device-icon svg { width: 15px; }.device-icon.purple { background: var(--purple-soft); color: var(--purple); }.device-icon.blue { background: #e8f2ff; color: #4c86d4; }.device-icon.amber { background: var(--orange-soft); color: var(--orange); }.device-row > div { flex: 1; }.device-row strong,.device-row small { display: block; }.device-row strong { font-size: 10px; }.device-row small { color: #9999a2; font-size: 8px; margin-top: 4px; }.device-row small i { width: 5px; height: 5px; background: var(--green); display: inline-block; border-radius: 50%; margin-right: 4px; }.device-row button { border: 0; background: none; cursor: pointer; color: #a7a7b0; }.device-row button svg { width: 15px; }.add-device { width: 100%; height: 38px; margin-top: 9px; border: 1px dashed #d6d2ec; background: #fbfaff; color: var(--purple); border-radius: 9px; cursor: pointer; font-size: 9px; font-weight: 650; }.add-device svg { width: 13px; vertical-align: -3px; margin-right: 5px; }
.invite-card,.help-card { border-radius: 18px; padding: 23px 25px; display: flex; align-items: center; gap: 15px; }.invite-card { background: linear-gradient(112deg,#6b59d6,#8775e8); color: white; }.invite-card > div { display: flex; gap: 14px; align-items: center; flex: 1; }.invite-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.14); }.invite-icon svg { width: 17px; }.invite-card h3,.help-card h3 { margin: 0 0 5px; font-size: 13px; }.invite-card p,.help-card p { margin: 0; font-size: 9px; line-height: 1.5; }.invite-card p { color: #ddd8fa; }.help-card { background: white; border: 1px solid var(--line); }.help-card > span { width: 38px; height: 38px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }.help-card > span svg { width: 17px; }.help-card > div { flex: 1; }.help-card p { color: var(--muted); }

.toast-stack { position: fixed; z-index: 200; bottom: 22px; right: 22px; display: grid; gap: 10px; }.toast { width: min(350px,calc(100vw - 40px)); background: #252630; color: white; border-radius: 12px; box-shadow: 0 13px 35px rgba(20,20,30,.23); padding: 13px 15px; display: flex; align-items: center; gap: 10px; animation: toastIn .22s ease; }.toast > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); }.toast > span svg { width: 14px; }.toast strong,.toast small { display: block; }.toast strong { font-size: 10px; }.toast small { color: #a9a9b2; font-size: 8px; margin-top: 3px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } } @keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }

@media (max-width: 1150px) { .stats-grid { grid-template-columns: repeat(2,1fr); }.dashboard-grid { grid-template-columns: 1fr; }.upcoming-panel { min-height: auto; }.renewal-list { grid-template-columns: repeat(3,1fr); gap: 15px; }.renewal { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }.renewal-summary { display: none; }.client-grid { grid-template-columns: 1.2fr .8fr; }.invite-card,.help-card { align-items: flex-start; flex-wrap: wrap; } }
@media (max-width: 850px) { .sidebar { transform: translateX(-100%); transition: .24s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }.sidebar.open { transform: translateX(0); }.workspace { margin-left: 0; }.mobile-menu { display: grid; }.topbar { padding: 0 20px; }.search-box { margin-left: 10px; width: auto; flex: 1; }.search-box kbd { display: none; }.content { padding: 27px 20px 50px; }.client-header { gap: 30px; }.client-header nav { display: none; }.client-menu { display: grid; }.client-profile { margin-left: auto; }.welcome-card { padding: 38px; }.shield-orbit { margin-right: 0; }.client-grid { grid-template-columns: 1fr; }.invite-card,.help-card { flex-wrap: nowrap; align-items: center; } }
@media (max-width: 620px) { .topbar { height: 65px; padding: 0 14px; }.top-actions .notification-btn { display: none; }.top-actions .btn { font-size: 0; width: 40px; padding: 0; }.top-actions .btn svg { width: 17px; }.search-box { height: 38px; }.search-box input { font-size: 11px; }.content { padding: 23px 14px 45px; }.page-heading { align-items: flex-start; }.page-heading .btn { display: none; }.page-heading h1 { font-size: 23px; }.stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.stat-card { min-height: 130px; padding: 15px; display: block; }.stat-icon { width: 33px; height: 33px; margin-bottom: 10px; }.stat-copy strong { font-size: 18px; }.spark,.avatars,.round-go { display: none; }.dashboard-grid { margin-top: 10px; gap: 10px; }.revenue-panel { padding: 19px 15px; min-height: 310px; }.revenue-total { margin-left: 40px; }.upcoming-panel { padding: 19px 15px; }.renewal-list { grid-template-columns: 1fr; gap: 7px; }.renewal { border: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }.groups-panel { margin-top: 10px; }.groups-head { padding: 19px 16px 14px; }.filter-row { padding-inline: 16px; }.table-wrap { display: none; }.mobile-group-list { display: grid; padding: 0 14px 14px; }.mobile-group { border-top: 1px solid var(--line); padding: 15px 2px; display: grid; gap: 12px; cursor: pointer; }.mobile-group-top { display: flex; align-items: center; justify-content: space-between; }.mobile-group-bottom { display: flex; justify-content: space-between; color: #8d8e98; font-size: 9px; }.mobile-group-bottom strong { color: #4f505a; }.modal-backdrop { padding: 0; align-items: end; }.modal { width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; }.modal-head { padding: 22px 20px 18px; }.modal-body { padding: 20px; }.modal-stats { grid-template-columns: 1fr 1fr; }.modal-stat:last-child { grid-column: 1/-1; }.quick-actions { grid-template-columns: 1fr 1fr; }.form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.client-header { height: 65px; padding-inline: 15px; }.client-profile > span:nth-child(2),.client-profile > svg { display: none; }.client-main { padding: 10px 14px 50px; }.welcome-card { min-height: 265px; padding: 27px; align-items: flex-start; }.welcome-card h1 { font-size: 25px; }.welcome-card p { max-width: 260px; line-height: 1.6; }.shield-orbit { position: absolute; width: 130px; height: 130px; right: -6px; bottom: -6px; opacity: .8; }.shield-orbit > span { width: 67px; height: 67px; }.shield-orbit > span svg { width: 31px; }.white-card { padding: 21px; }.subscription-stats { grid-template-columns: 1fr; gap: 20px; }.subscription-stats > div + div { border-left: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }.subscription-actions { display: grid; }.invite-card,.help-card { align-items: flex-start; flex-wrap: wrap; }.settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 390px) { .stats-grid { grid-template-columns: 1fr; }.stat-card { min-height: 105px; display: flex; }.stat-icon { margin-bottom: 0; }.spark { display: flex; }.revenue-total { margin-left: 0; flex-wrap: wrap; }.y-labels { display: none; }.chart-area { width: 100%; } }
