* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(43, 116, 255, 0.16), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.14), transparent 24%),
        linear-gradient(135deg, #f8fbff 0%, #eef3f8 100%);
}

.auth-card,
.panel,
.stat-card {
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

.auth-card {
    width: min(100%, 390px);
    padding: 36px;
}

.auth-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 21px;
    font-weight: 650;
}

.auth-subtitle {
    margin: 0 0 26px;
    text-align: center;
    color: #667085;
    font-size: 14px;
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.field label {
    color: #344054;
    font-size: 13px;
    font-weight: 550;
}

.input,
.select {
    width: 100%;
    height: 42px;
    border: 1px solid #d7deea;
    border-radius: 7px;
    padding: 0 13px;
    color: #172033;
    background: #fff;
    font: inherit;
}

.input:focus,
.select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.btn-primary {
    color: #fff;
    background: #2563eb;
}

.btn-soft {
    color: #2452b8;
    background: #edf3ff;
}

.btn-block {
    width: 100%;
}

.alert {
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 7px;
    font-size: 13px;
}

.alert-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.alert-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.app-shell {
    display: grid;
    grid-template-columns: 214px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    padding: 24px 14px;
    min-width: 0;
    color: #111827;
    background: #fff;
    border-right: 1px solid #edf0f5;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 26px;
    font-size: 18px;
    font-weight: 700;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.brand small {
    display: block;
    color: #667085;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.nav {
    display: grid;
    align-content: start;
    gap: 4px;
    flex: 0 0 auto;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: #6d28d9;
    background: #f1eaff;
}

.nav-icon {
    width: 18px;
    height: 18px;
    color: #667085;
    stroke-width: 2;
    flex: 0 0 18px;
}

.nav a.active .nav-icon,
.nav a:hover .nav-icon {
    color: #6d28d9;
}

.upgrade-card {
    margin-top: 24px;
    padding: 12px;
    border-radius: 8px;
    background: #f1eaff;
}

.upgrade-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6d28d9;
    font-size: 13px;
    font-weight: 800;
}

.upgrade-title svg,
.upgrade-button svg {
    width: 15px;
    height: 15px;
}

.upgrade-card p {
    margin: 12px 0;
    color: #475467;
    font-size: 11px;
    line-height: 1.5;
}

.upgrade-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 7px;
    color: #fff;
    background: #6d28d9;
    font-size: 13px;
    font-weight: 800;
}

.main {
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 13px 20px;
    background: #fff;
    border-bottom: 1px solid #e7ecf3;
}

.topbar h1 {
    margin: 0;
    font-size: 18px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-right {
    position: relative;
}

.workspace-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 166px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #8b5cf6;
    border-radius: 8px;
    background: #fbfaff;
    font-weight: 700;
}

.workspace-button svg,
.btn svg,
.icon-button svg {
    width: 17px;
    height: 17px;
}

.workspace-button-rich {
    min-width: 238px;
    height: 52px;
    justify-content: flex-start;
    border-color: #8b5cf6;
}

.workspace-button-rich > span:nth-child(2) {
    line-height: 1.15;
}

.workspace-button-rich > svg:last-child {
    margin-left: auto;
}

.workspace-menu-wrap {
    position: relative;
}

.workspace-trigger {
    cursor: pointer;
}

.workspace-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    width: min(324px, calc(100vw - 28px));
    padding: 18px 22px;
    border: 1px solid #e7ecf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
}

.workspace-menu-wrap.open .workspace-menu {
    display: block;
}

.workspace-menu h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.workspace-menu .workspace-list {
    max-height: 380px;
    overflow-y: auto;
}

.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: #111827;
    font-weight: 800;
}

.avatar-ring {
    border: 2px solid #22c55e;
}

.account-menu-wrap {
    position: relative;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: #172033;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.account-trigger .muted {
    display: block;
    font-size: 12px;
}

.account-trigger svg {
    width: 16px;
    height: 16px;
    color: #667085;
}

.account-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 14px);
    right: 0;
    display: none;
    width: 310px;
    overflow: hidden;
    border: 1px solid #e7ecf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.16);
}

.account-menu-wrap.open .account-menu {
    display: block;
}

.account-head {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f5;
}

.account-head small {
    display: block;
    color: #667085;
    font-size: 13px;
    margin-top: 3px;
}

.account-menu a,
.account-row-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 20px;
    color: #172033;
    font-weight: 650;
}

.account-menu a:hover {
    background: #f8fafc;
}

.account-menu svg,
.account-row-menu svg {
    width: 18px;
    height: 18px;
    color: #667085;
}

.menu-arrow {
    margin-left: auto;
}

.account-row-menu {
    justify-content: space-between;
}

.account-row-menu span:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-pill {
    padding: 6px 12px;
    border: 1px solid #e7ecf3;
    border-radius: 7px;
    color: #172033;
    background: #fff;
    font-weight: 500;
}

.toggle-pill {
    position: relative;
    width: 40px;
    height: 24px;
    border-radius: 999px;
    background: #e5e7eb;
}

.toggle-pill::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
}

.logout-button {
    justify-content: center;
    min-height: 42px !important;
    margin: 12px 20px 20px;
    border: 1px solid #d7deea;
    border-radius: 7px;
    background: #fff;
}

.icon-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
    color: #344054;
}

.notification b {
    position: absolute;
    top: -6px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: 11px;
}

.content {
    position: relative;
    padding: 28px 24px;
    background: #fff;
}

.grid {
    display: grid;
    gap: 18px;
}

.stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    min-height: 126px;
    padding: 18px;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 20px;
    margin-bottom: 13px;
    border-radius: 8px;
}

.stat-icon svg {
    width: 19px;
    height: 19px;
}

.stat-purple {
    color: #6d28d9;
    background: #ede9fe;
}

.stat-green {
    color: #059669;
    background: #d1fae5;
}

.stat-orange {
    color: #ea580c;
    background: #ffedd5;
}

.stat-blue {
    color: #2563eb;
    background: #dbeafe;
}

.stat-label {
    color: #667085;
    font-size: 13px;
}

.stat-value {
    margin-top: 8px;
    font-size: 29px;
    font-weight: 750;
}

.stat-trend {
    margin-top: 10px;
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.72fr;
    gap: 12px;
    margin-top: 12px;
}

.workspace-card {
    position: absolute;
    z-index: 3;
    top: -12px;
    left: 12px;
    width: 260px;
    padding: 16px;
}

.workspace-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.workspace-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 9px;
    align-items: center;
    padding: 9px;
    border-radius: 8px;
}

.workspace-item.active {
    background: #f1eaff;
}

.workspace-logo {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: #111827;
    font-size: 12px;
    font-weight: 800;
}

.role-chip {
    padding: 4px 8px;
    border-radius: 999px;
    color: #6d28d9;
    background: #ede9fe;
    font-size: 11px;
    font-weight: 700;
}

.company-panel {
    margin-top: 18px;
}

.company-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding-left: 274px;
}

.users-teams-hero {
    align-items: flex-start;
    padding-left: 0;
}

.dashboard-offset {
    margin-left: 274px;
}

.hero-row h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #fbfcff;
}

.date-tile {
    display: grid;
    place-items: center;
    min-height: 52px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}

.date-tile span {
    display: block;
    color: #667085;
    font-size: 10px;
}

.score {
    display: grid;
    place-items: center;
    width: 176px;
    height: 176px;
    margin: 14px auto;
    border-radius: 50%;
    background: conic-gradient(#6d28d9 0 85%, #eef2f7 85% 100%);
}

.score-inner {
    display: grid;
    place-items: center;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background: #fff;
    color: #6d28d9;
    font-size: 44px;
    font-weight: 800;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.account-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
}

.social-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.social-linkedin {
    background: #0a66c2;
}

.social-facebook {
    background: #1877f2;
}

.social-instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af);
}

.progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ecf3;
}

.progress span {
    display: block;
    width: 26%;
    height: 100%;
    border-radius: inherit;
    background: #6d28d9;
}

.panel {
    padding: 18px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-head h2 {
    margin: 0;
    font-size: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.full {
    grid-column: 1 / -1;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    white-space: nowrap;
}

th {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    color: #166534;
    background: #dcfce7;
    font-size: 12px;
    font-weight: 650;
}

.muted {
    color: #667085;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.permission-card {
    padding: 16px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fbfcff;
}

.permission-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.permission-card small {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-top: 3px;
}

.workspace-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    padding: 0 24px;
    border-bottom: 1px solid #e7ecf3;
    background: #fff;
}

.workspace-select-page {
    min-height: calc(100vh - 80px);
    padding: 52px 24px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.08), transparent 30%),
        #fbfcff;
}

.workspace-center-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #6d28d9;
    background: #ede9fe;
}

.workspace-center-icon svg {
    width: 34px;
    height: 34px;
}

.workspace-select-page h1 {
    margin: 0 0 10px;
    font-size: 20px;
}

.workspace-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 216px));
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
}

.workspace-choice-card {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 11px;
    min-height: 264px;
    padding: 26px 20px;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.06);
}

.workspace-choice-card.active {
    border-color: #6d28d9;
    box-shadow: 0 18px 40px rgba(109, 40, 217, 0.12);
}

.workspace-choice-logo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #60a5fa;
    background: #020617;
    font-size: 22px;
    font-weight: 800;
}

.choice-check {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    background: #6d28d9;
}

.choice-check svg,
.members-line svg,
.create-plus svg {
    width: 15px;
    height: 15px;
}

.members-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 650;
    margin-top: 12px;
}

.create-card {
    border-style: dashed;
    border-color: #d8c9ff;
    box-shadow: none;
}

.create-plus {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #6d28d9;
    background: #ede9fe;
}

.create-card strong {
    color: #4c1d95;
}

.switch-workspace {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    max-width: 580px;
    margin: 48px auto 18px;
    color: #475467;
}

.switch-workspace span {
    height: 1px;
    background: #dfe5ef;
}

.workspace-switch-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    max-width: 580px;
    margin: 0 auto;
    padding: 10px 14px;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
}

.secure-card {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 580px;
    margin: 50px auto 0;
    padding: 18px;
    border-radius: 8px;
    color: #172033;
    background: #f3edff;
    text-align: left;
}

.secure-card svg {
    width: 34px;
    height: 34px;
    color: #6d28d9;
    flex: 0 0 auto;
}

.onboarding-progress {
    width: 220px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.onboarding-progress strong {
    display: block;
    font-size: 12px;
    margin-bottom: 8px;
}

.onboarding-progress small {
    display: block;
    color: #6d28d9;
    font-size: 11px;
    text-align: right;
}

.onboarding-content {
    padding: 24px;
}

.onboarding-heading {
    margin-bottom: 34px;
}

.onboarding-heading h1 {
    margin: 0 0 8px;
    font-size: 20px;
}

.onboarding-heading p {
    margin: 0;
    color: #475467;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    margin: 0 42px 28px;
}

.step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    color: #475467;
    text-align: center;
    font-size: 12px;
}

.step:hover {
    color: #6d28d9;
}

.step-disabled {
    color: #98a2b3;
    cursor: not-allowed;
}

.step-disabled:hover {
    color: #98a2b3;
}

.step-disabled span {
    color: #667085;
    background: #eef2f7;
}

.step::after {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    border-top: 1px dashed #cfd8e6;
}

.step:last-child::after {
    display: none;
}

.step span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #172033;
    background: #e7ecf3;
    font-size: 16px;
    font-weight: 800;
}

.step.active {
    color: #6d28d9;
}

.step.active span,
.step.complete span {
    color: #fff;
    background: #7c3aed;
}

.step.complete {
    color: #6d28d9;
}

.step.complete span svg {
    width: 18px;
    height: 18px;
}

.onboarding-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
}

.onboarding-form-panel h2,
.onboarding-help h2 {
    margin: 8px 0;
    font-size: 18px;
}

.required {
    color: #ef4444;
}

.field small {
    color: #667085;
    font-size: 12px;
}

.valid-input {
    background-image: linear-gradient(45deg, transparent 50%, #22c55e 50%), linear-gradient(135deg, #22c55e 50%, transparent 50%);
    background-position: calc(100% - 18px) 17px, calc(100% - 12px) 17px;
    background-size: 7px 12px, 7px 12px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.upload-box {
    min-height: 76px;
    padding: 10px;
    border: 1px solid #d7deea;
    border-radius: 7px;
    background: #fbfcff;
}

.logo-picker {
    display: grid;
    grid-template-columns: 58px auto;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.logo-picker small {
    grid-column: 2;
}

.logo-view-link {
    display: inline-flex;
    margin: 10px 0 0 68px;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 700;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #d7deea;
    border-radius: 7px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    color: #172033;
    padding-left: 13px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.select2-dropdown {
    border-color: #d7deea;
    border-radius: 7px;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #d7deea;
    border-radius: 6px;
    min-height: 34px;
    outline: none;
}

.info-callout {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 8px;
    color: #3b197d;
    background: #f1eaff;
}

.info-callout svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.info-callout p {
    margin: 6px 0 0;
    color: #344054;
    font-size: 13px;
    line-height: 1.55;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.form-actions > div {
    display: flex;
    gap: 12px;
}

.onboarding-help ul {
    display: grid;
    gap: 20px;
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

.onboarding-help li {
    display: flex;
    gap: 12px;
    color: #344054;
    line-height: 1.45;
}

.onboarding-help li svg {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex: 0 0 auto;
}

.services-label {
    margin: 18px 0 8px;
    color: #172033;
    font-size: 13px;
    font-weight: 750;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.service-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 142px;
    padding: 18px 12px 14px;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
}

.service-card.checked {
    border-color: #8b5cf6;
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.08);
}

.service-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.service-check {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid #cfd8e6;
    border-radius: 4px;
    color: #fff;
    background: #fff;
}

.service-card.checked .service-check {
    border-color: #6d28d9;
    background: #6d28d9;
}

.service-check svg {
    width: 13px;
    height: 13px;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #6d28d9;
    background: #f1eaff;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card strong {
    color: #172033;
    font-size: 14px;
}

.service-card small {
    color: #475467;
    font-size: 11px;
    line-height: 1.45;
}

.custom-service-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    margin-top: 12px;
    border: 1px dashed #cfd8e6;
    border-radius: 8px;
    color: #6d28d9;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.custom-service-button svg {
    width: 18px;
    height: 18px;
}

.social-connect-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.social-connect-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    min-height: 138px;
    padding: 18px;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    background: #fff;
}

.social-connect-card p {
    margin: 8px 0 18px;
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
}

.social-connect-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
}

.social-connect-facebook,
.social-connect-linkedin {
    background: #1877f2;
}

.social-connect-instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #8134af);
}

.social-connect-x {
    background: #020617;
}

.social-connect-youtube {
    background: #ef4444;
}

.social-connect-music {
    background: #111827;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .sidebar {
        padding: 18px 10px;
    }

    .brand {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .nav a {
        gap: 8px;
        padding: 8px;
        font-size: 11px;
    }

    .content {
        padding: 20px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .workspace-card {
        position: static;
        width: auto;
        margin-bottom: 18px;
    }

    .hero-row {
        padding-left: 0;
    }

    .dashboard-offset {
        margin-left: 0;
    }

    .onboarding-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .onboarding-help {
        order: 2;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .social-connect-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid #edf0f5;
    }

    .nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav a {
        white-space: normal;
    }

    .upgrade-card {
        display: none;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .topbar-right {
        justify-content: flex-start;
    }

    .workspace-button,
    .workspace-button-rich {
        width: 100%;
        min-width: 0;
    }

    .hero-row {
        flex-direction: column;
    }

    .hero-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav a {
        min-height: 36px;
        font-size: 11px;
    }

    .stats,
    .form-grid,
    .dashboard-grid,
    .mini-grid,
    .permission-grid {
        grid-template-columns: 1fr;
    }

    .workspace-card {
        position: static;
        width: auto;
        margin-bottom: 18px;
    }

    .hero-row {
        display: block;
        padding-left: 0;
    }

    .dashboard-offset {
        margin-left: 0;
    }

    .topbar,
    .content {
        padding: 14px;
    }

    .stats {
        gap: 10px;
    }

    .stat-card {
        min-height: 112px;
        padding: 14px;
    }

    .calendar-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .calendar-item .badge {
        grid-column: 2;
        justify-self: start;
    }

    .workspace-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }

    .workspace-choice-grid {
        grid-template-columns: 1fr;
    }

    .stepper,
    .onboarding-grid,
    .service-grid,
    .social-connect-grid {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-right: 0;
    }

    .step::after {
        display: none;
    }

    .form-actions,
    .form-actions > div {
        flex-direction: column;
    }

    .btn,
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .brand {
        margin-bottom: 14px;
    }

    .nav {
        grid-template-columns: 1fr;
    }

    .topbar-right .account-trigger {
        width: 100%;
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .score {
        width: 148px;
        height: 148px;
    }

    .score-inner {
        width: 106px;
        height: 106px;
        font-size: 36px;
    }
}
