@charset "UTF-8";
:root {
  --color-primary-50: #eef2ff;
  --color-primary-100: #e0e7ff;
  --color-primary-200: #c7d2fe;
  --color-primary-300: #a5b4fc;
  --color-primary-400: #818cf8;
  --color-primary-500: #6366f1;
  --color-primary-600: #4f46e5;
  --color-primary-700: #4338ca;
  --color-primary-800: #3730a3;
  --color-primary-900: #312e81;
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;
  --color-secondary-50: #fffbeb;
  --color-secondary-100: #fef3c7;
  --color-secondary-200: #fde68a;
  --color-secondary-300: #fcd34d;
  --color-secondary-400: #fbbf24;
  --color-secondary-500: #f59e0b;
  --color-secondary-600: #d97706;
  --color-secondary-700: #b45309;
  --color-secondary-800: #92400e;
  --color-secondary-900: #78350f;
  --color-secondary: #f59e0b;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-success: #3b82f6;
  --color-info: #6366f1;
  --color-text: #0f172a;
  --color-text-light: #475569;
  --color-text-muted: #94a3b8;
  --color-bg: #f8fafc;
  --color-bg-white: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --elevation-0: none;
  --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.05);
  --elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --elevation-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --focus-ring: 2px solid var(--color-primary);
  --focus-offset: 2px;
  --selection-color: #c7d2fe;
  --alert-error-bg: #fef2f2;
  --alert-error-text: #991b1b;
  --alert-error-border: #fecaca;
  --alert-success-bg: #eff6ff;
  --alert-success-text: #1e40af;
  --alert-success-border: #bfdbfe;
  --alert-warning-bg: #fffbeb;
  --alert-warning-text: #92400e;
  --alert-warning-border: #fde68a;
  --alert-info-bg: #eef2ff;
  --alert-info-text: #3730a3;
  --alert-info-border: #c7d2fe;
  --overlay-bg: rgba(0, 0, 0, 0.3);
  --modal-bg: rgba(0, 0, 0, 0.5);
  --danger-bg: #fef2f2;
  --danger-text: #991b1b;
  --danger-text-secondary: #b91c1c;
  --danger-border: #fecaca;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/DMSans-Latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/DMSans-LatinExt.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: 0.25px;
}

::selection {
  background: var(--selection-color);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--color-text);
}

h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.25px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

h4 {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.15px;
}

p {
  margin-bottom: 16px;
}

code {
  font-family: ui-monospace, SFMono-Regular, "Fira Code", monospace;
  font-size: 13px;
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  padding: 2px 6px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

.l-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  background: var(--color-bg);
}
.l-auth__card {
  width: 100%;
  max-width: 420px;
  background: var(--color-bg-white);
  border-radius: 8px;
  box-shadow: var(--elevation-2);
  padding: 40px 24px;
}
.l-auth__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.l-auth__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
}
.l-auth__subtitle {
  font-size: 14px;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 24px;
}
.l-auth__footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-text-light);
}
.l-auth__divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  color: var(--color-text-light);
  font-size: 13px;
}
.l-auth__divider::before, .l-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.l-auth__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.l-auth__social .m-btn svg {
  flex-shrink: 0;
}

.l-app {
  display: flex;
  min-height: 100vh;
}
.l-app__sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--color-bg-white);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) {
  .l-app__sidebar {
    transform: translateX(0);
  }
}
.l-app__sidebar.is-open {
  transform: translateX(0);
}
.l-app__sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  height: 60px;
}
.l-app__sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.l-app__sidebar-org {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.l-app__sidebar-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--color-primary-50);
  color: var(--color-primary);
  border-radius: 2px;
  margin-left: auto;
  flex-shrink: 0;
}
.l-app__sidebar-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}
.l-app__sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
}
.l-app__main {
  flex: 1;
  margin-left: 0;
  min-width: 0;
  padding-bottom: 72px;
}
@media (min-width: 768px) {
  .l-app__main {
    margin-left: 260px;
    padding-bottom: 0;
  }
}
.l-app__topbar {
  position: sticky;
  top: 0;
  height: 60px;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  z-index: 50;
}
.l-app__topbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  color: var(--color-text);
}
@media (min-width: 768px) {
  .l-app__topbar-menu {
    display: none;
  }
}
.l-app__topbar-menu:hover {
  background: var(--color-border-light);
}
.l-app__topbar-title {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}
.l-app__topbar-search {
  display: none;
}
@media (min-width: 1024px) {
  .l-app__topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-slate-50);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: pointer;
    min-width: 200px;
  }
  .l-app__topbar-search:hover {
    border-color: var(--color-slate-300);
  }
}
.l-app__topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.l-app__topbar-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  color: var(--color-text-light);
  position: relative;
}
.l-app__topbar-bell:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}
.l-app__topbar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.l-app__topbar-user {
  font-size: 14px;
  color: var(--color-text-light);
}
.l-app__content {
  padding: 24px;
}
@media (min-width: 768px) {
  .l-app__content {
    padding: 32px;
  }
}
.l-app__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-bg);
  z-index: 90;
}
.l-app__overlay.is-visible {
  display: block;
}
@media (min-width: 768px) {
  .l-app__overlay.is-visible {
    display: none;
  }
}

.l-superadmin {
  display: flex;
  min-height: 100vh;
}
.l-superadmin .l-app__sidebar {
  background: #0f172a;
  border-right: 1px solid #1e293b;
}
.l-superadmin .l-app__sidebar-header {
  border-bottom-color: #1e293b;
}
.l-superadmin .l-app__sidebar-logo {
  background: var(--color-primary);
}
.l-superadmin .l-app__sidebar-org {
  color: #f1f5f9;
}
.l-superadmin .l-app__sidebar-badge {
  background: #312e81;
  color: #a5b4fc;
}
.l-superadmin .l-app__sidebar-footer {
  border-top-color: #1e293b;
  color: #64748b;
}
.l-superadmin .l-app__topbar {
  background: #0f172a;
  border-bottom-color: #1e293b;
}
.l-superadmin .l-app__topbar-title {
  color: #f1f5f9;
}
.l-superadmin .l-app__topbar-menu {
  color: #94a3b8;
}
.l-superadmin .l-app__topbar-menu:hover {
  background: #1e293b;
}
.l-superadmin .l-app__topbar-bell {
  color: #94a3b8;
}
.l-superadmin .l-app__topbar-bell:hover {
  background: #1e293b;
  color: #f1f5f9;
}
.l-superadmin .l-app__topbar-avatar {
  background: #4f46e5;
}
.l-superadmin .l-app__topbar-user {
  color: #94a3b8;
}
.l-superadmin .l-app__topbar-user a {
  color: #94a3b8;
}
.l-superadmin .l-app__topbar-user a:hover {
  color: #f1f5f9;
}

.l-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  z-index: 100;
  padding: 0 8px;
}
@media (min-width: 768px) {
  .l-bottom-nav {
    display: none;
  }
}
.l-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px;
  font-size: 11px;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: 4px;
  transition: color 100ms cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 56px;
}
.l-bottom-nav__item:hover {
  color: var(--color-text-light);
  text-decoration: none;
}
.l-bottom-nav__item.is-active {
  color: var(--color-primary);
  font-weight: 500;
}
.l-bottom-nav__item svg {
  width: 20px;
  height: 20px;
}
.l-bottom-nav--dark {
  background: #0f172a;
  border-top-color: #1e293b;
}
.l-bottom-nav--dark .l-bottom-nav__item {
  color: #64748b;
}
.l-bottom-nav--dark .l-bottom-nav__item:hover {
  color: #94a3b8;
}
.l-bottom-nav--dark .l-bottom-nav__item.is-active {
  color: #a5b4fc;
}

.m-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  color: var(--color-text-light);
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 100ms cubic-bezier(0.4, 0, 0.2, 1), color 100ms cubic-bezier(0.4, 0, 0.2, 1);
}
.m-nav-item:hover {
  background: var(--color-border-light);
  color: var(--color-text);
  text-decoration: none;
}
.m-nav-item.is-active {
  background: var(--color-primary-50);
  color: var(--color-primary);
  font-weight: 500;
  border-left-color: var(--color-primary);
}
.m-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.m-nav-item--dark {
  color: #94a3b8;
}
.m-nav-item--dark:hover {
  background: #1e293b;
  color: #f1f5f9;
}
.m-nav-item--dark.is-active {
  background: #312e81;
  color: #a5b4fc;
  border-left-color: #818cf8;
}

.l-impersonate-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--color-warning);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
}
.l-impersonate-bar__stop {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.l-impersonate-bar__stop:hover {
  background: rgba(0, 0, 0, 0.3);
}

.has-impersonate-bar .l-app__sidebar {
  top: 40px;
  height: calc(100vh - 40px);
}

.has-impersonate-bar .l-app__topbar {
  top: 40px;
}

.has-impersonate-bar .l-app__main {
  padding-top: 40px;
}

.m-notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.l-grid-2col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .l-grid-2col {
    flex-direction: row;
  }
}
.l-grid-2col > * {
  flex: 1;
  min-width: 0;
}

.m-form-group {
  margin-bottom: 16px;
}
.m-form-group__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}
.m-form-group__hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.m-form-group__error {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-danger);
  margin-top: 4px;
}
.m-form-group__error svg {
  width: 14px;
  height: 14px;
}

.m-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 100ms cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.m-input:focus {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-color: var(--color-primary);
}
.m-input--error {
  border-color: var(--color-danger);
}
.m-input--error:focus {
  outline-color: var(--color-danger);
}
.m-input::placeholder {
  color: var(--color-text-muted);
}

select.m-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.m-input {
  resize: vertical;
  min-height: 80px;
}

.m-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.m-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

.m-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.m-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.m-toggle__track {
  width: 36px;
  height: 20px;
  background: var(--color-slate-300);
  border-radius: 9999px;
  transition: background 100ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.m-toggle__input:checked + .m-toggle__track {
  background: var(--color-primary);
}
.m-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 9999px;
  transition: transform 100ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.m-toggle__input:checked ~ .m-toggle__track .m-toggle__thumb, .m-toggle__input:checked + .m-toggle__track .m-toggle__thumb {
  transform: translateX(16px);
}
.m-toggle__input:focus-visible + .m-toggle__track {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 100ms cubic-bezier(0.4, 0, 0.2, 1), border-color 100ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.4;
}
.m-btn:hover {
  text-decoration: none;
}
.m-btn--primary {
  background: var(--color-primary-600);
  color: #fff;
}
.m-btn--primary:hover {
  background: var(--color-primary-700);
}
.m-btn--secondary {
  background: var(--color-bg-white);
  color: var(--color-text);
  border-color: var(--color-border);
}
.m-btn--secondary:hover {
  background: var(--color-slate-50);
}
.m-btn--danger {
  background: var(--color-danger);
  color: #fff;
}
.m-btn--danger:hover {
  opacity: 0.9;
}
.m-btn--ghost {
  background: transparent;
  color: var(--color-text-light);
  border-color: transparent;
}
.m-btn--ghost:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}
.m-btn--block {
  width: 100%;
}
.m-btn--sm {
  padding: 6px 12px;
  font-size: 13px;
}
.m-btn--lg {
  padding: 12px 24px;
  font-size: 16px;
}
.m-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.m-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.m-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}
.m-alert--error {
  background: var(--alert-error-bg);
  color: var(--alert-error-text);
  border: 1px solid var(--alert-error-border);
}
.m-alert--success {
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
  border: 1px solid var(--alert-success-border);
}
.m-alert--warning {
  background: var(--alert-warning-bg);
  color: var(--alert-warning-text);
  border: 1px solid var(--alert-warning-border);
}
.m-alert--info {
  background: var(--alert-info-bg);
  color: var(--alert-info-text);
  border: 1px solid var(--alert-info-border);
}

.m-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 24px;
}
.m-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.m-card__title {
  font-size: 16px;
  font-weight: 600;
}
.m-card__body {
  font-size: 14px;
  color: var(--color-text);
}

.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 2px;
  line-height: 1.5;
}
.m-badge--active, .m-badge--success {
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
}
.m-badge--trial, .m-badge--warning {
  background: var(--alert-warning-bg);
  color: var(--alert-warning-text);
}
.m-badge--cancelled, .m-badge--error {
  background: var(--alert-error-bg);
  color: var(--alert-error-text);
}
.m-badge--info {
  background: var(--alert-info-bg);
  color: var(--alert-info-text);
}
.m-badge--neutral {
  background: var(--color-slate-100);
  color: var(--color-slate-600);
}
.m-badge--past-due {
  background: var(--alert-warning-bg);
  color: var(--alert-warning-text);
}

.m-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-light);
}
.m-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: var(--color-primary-50);
  color: var(--color-primary);
}
.m-empty__icon svg {
  width: 28px;
  height: 28px;
}
.m-empty__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.m-empty__text {
  font-size: 14px;
  margin-bottom: 24px;
}

.m-plan {
  background: var(--color-bg-white);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: border-color 100ms cubic-bezier(0.4, 0, 0.2, 1);
}
.m-plan:hover {
  border-color: var(--color-primary-300);
}
.m-plan--current, .m-plan--selected {
  border-color: var(--color-primary);
  position: relative;
}
.m-plan__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.m-plan__check svg {
  width: 14px;
  height: 14px;
}
.m-plan__name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.m-plan__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.m-plan__price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-light);
}
.m-plan__interval {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}
.m-plan__features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}
.m-plan__features li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-plan__features li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
}

.m-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.m-wizard {
  max-width: 640px;
  margin: 0 auto;
}
.m-wizard__progress {
  margin-bottom: 40px;
}
.m-wizard__progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.m-wizard__progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.m-wizard__progress-step.is-active {
  color: var(--color-primary);
  font-weight: 600;
}
.m-wizard__progress-step.is-done {
  color: var(--color-primary-light);
}
.m-wizard__progress-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
}
.is-active .m-wizard__progress-num {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.is-done .m-wizard__progress-num {
  border-color: var(--color-primary-light);
  background: var(--color-primary-light);
  color: #fff;
}
.m-wizard__progress-label {
  display: none;
}
@media (min-width: 768px) {
  .m-wizard__progress-label {
    display: inline;
  }
}
.m-wizard__body {
  margin-bottom: 24px;
}
.m-wizard__step.hidden {
  display: none;
}
.m-wizard__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.m-wizard__nav-right {
  display: flex;
  gap: 8px;
}

.m-plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .m-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.m-plan--selectable {
  cursor: pointer;
  transition: border-color 100ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 100ms cubic-bezier(0.4, 0, 0.2, 1);
}
.m-plan--selectable:hover {
  border-color: var(--color-primary-300);
}

.m-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.m-tabs__item {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 100ms cubic-bezier(0.4, 0, 0.2, 1), border-color 100ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.m-tabs__item:hover {
  color: var(--color-text);
}
.m-tabs__item--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.m-danger-zone {
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  background: var(--danger-bg);
  padding: 24px;
}
.m-danger-zone__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--danger-text);
  margin-bottom: 8px;
}
.m-danger-zone__text {
  font-size: 14px;
  color: var(--danger-text);
  margin-bottom: 16px;
}
.m-danger-zone__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--danger-border);
}
.m-danger-zone__action:first-child {
  border-top: none;
  padding-top: 0;
}
.m-danger-zone__action-info {
  flex: 1;
}
.m-danger-zone__action-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger-text);
}
.m-danger-zone__action-desc {
  font-size: 13px;
  color: var(--danger-text-secondary);
  margin-top: 2px;
}

.m-session-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.m-session-list__item:last-child {
  border-bottom: none;
}
.m-session-list__info {
  flex: 1;
}
.m-session-list__date {
  font-size: 14px;
  color: var(--color-text);
}
.m-session-list__meta {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 2px;
}

.m-tab-panel {
  display: none;
}
.m-tab-panel--active {
  display: block;
}

.m-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--modal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.m-modal__content {
  background: var(--color-bg-white);
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--elevation-3);
  margin: 16px;
}
.m-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}
.m-modal__header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.m-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 4px;
}
.m-modal__close:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}
.m-modal__close svg {
  width: 18px;
  height: 18px;
}
.m-modal__body {
  padding: 20px;
}
.m-modal__footer {
  padding: 16px 20px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.m-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .m-table-wrap {
    margin: 0;
    padding: 0;
  }
}

.m-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.m-table th, .m-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.m-table th {
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.m-table tr:hover td {
  background: var(--color-slate-50);
}

.m-stat-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 20px;
}
.m-stat-card__label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 500;
}
.m-stat-card__value {
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
}
.m-stat-card__sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.m-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 1024px) {
  .m-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.m-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.m-search-bar__input {
  flex: 1;
  min-width: 200px;
}
.m-search-bar__select {
  min-width: 140px;
}

.m-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.m-pagination__btn {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-white);
  cursor: pointer;
}
.m-pagination__btn:hover {
  background: var(--color-slate-50);
}
.m-pagination__btn--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.m-pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.m-pagination__info {
  font-size: 13px;
  color: var(--color-text-light);
}

.m-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.m-avatar--sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.m-avatar--md {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.m-avatar--lg {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.m-avatar--xl {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.m-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  background: var(--color-slate-100);
  color: var(--color-slate-700);
  border-radius: 4px;
  border: 1px solid transparent;
}
.m-tag--selected {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  border-color: var(--color-primary-200);
}
.m-tag--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.m-tag__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.6;
  padding: 0;
}
.m-tag__remove:hover {
  opacity: 1;
}

.m-tooltip {
  position: relative;
  display: inline-block;
}
.m-tooltip__content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1);
}
.m-tooltip__content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #0f172a;
}
.m-tooltip:hover .m-tooltip__content {
  opacity: 1;
}

.m-progress {
  height: 6px;
  background: var(--color-border);
  border-radius: 9999px;
  overflow: hidden;
}
.m-progress__bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 9999px;
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.m-progress--indeterminate .m-progress__bar {
  width: 40%;
  animation: progress-indeterminate 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes progress-indeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}
.m-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0f172a;
  color: #f1f5f9;
  font-size: 14px;
  border-radius: 6px;
  box-shadow: var(--elevation-3);
  z-index: 2000;
  animation: toast-in 200ms cubic-bezier(0, 0, 0.2, 1);
}
.m-toast__icon {
  display: flex;
  align-items: center;
}
.m-toast__icon svg {
  width: 18px;
  height: 18px;
}
.m-toast__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 8px;
}
.m-toast__close:hover {
  color: #f1f5f9;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-sm {
  font-size: 14px;
}

.text-xs {
  font-size: 12px;
}

.mt-0 {
  margin-top: 0;
}

.mt-sm {
  margin-top: 8px;
}

.mt-md {
  margin-top: 16px;
}

.mt-lg {
  margin-top: 24px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: 8px;
}

.mb-md {
  margin-bottom: 16px;
}

.mb-lg {
  margin-bottom: 24px;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 16px;
}

.m-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .m-plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .m-plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.desktop-only {
  display: none;
}
@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
}

.mobile-only {
  display: block;
}
@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #818cf8;
    --color-primary-dark: #6366f1;
    --color-primary-light: #a5b4fc;
    --color-primary-50: #1e1b4b;
    --color-primary-100: #312e81;
    --color-primary-200: #3730a3;
    --color-primary-600: #818cf8;
    --color-primary-700: #a5b4fc;
    --color-secondary: #fbbf24;
    --color-danger: #f87171;
    --color-warning: #fbbf24;
    --color-success: #60a5fa;
    --color-info: #818cf8;
    --color-text: #f1f5f9;
    --color-text-light: #94a3b8;
    --color-text-muted: #64748b;
    --color-bg: #0f172a;
    --color-bg-white: #1e293b;
    --color-slate-50: #1e293b;
    --color-slate-100: #334155;
    --color-slate-200: #475569;
    --color-border: #334155;
    --color-border-light: #1e293b;
    --elevation-0: none;
    --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.2);
    --elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --elevation-4: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --focus-ring: 2px solid #818cf8;
    --selection-color: #3730a3;
    --alert-error-bg: #1c1012;
    --alert-error-text: #fca5a5;
    --alert-error-border: #7f1d1d;
    --alert-success-bg: #0c1524;
    --alert-success-text: #93c5fd;
    --alert-success-border: #1e3a5f;
    --alert-warning-bg: #1a1508;
    --alert-warning-text: #fcd34d;
    --alert-warning-border: #78350f;
    --alert-info-bg: #1e1b4b;
    --alert-info-text: #a5b4fc;
    --alert-info-border: #3730a3;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --modal-bg: rgba(0, 0, 0, 0.7);
    --danger-bg: #1c1012;
    --danger-text: #fca5a5;
    --danger-text-secondary: #f87171;
    --danger-border: #7f1d1d;
  }
}
.l-superadmin {
  --color-bg: #0f172a;
  --color-bg-white: #1e293b;
  --color-text: #f1f5f9;
  --color-text-light: #94a3b8;
  --color-text-muted: #64748b;
  --color-border: #334155;
  --color-border-light: #1e293b;
  --color-primary: #818cf8;
  --color-primary-dark: #6366f1;
  --color-primary-light: #a5b4fc;
  --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.2);
  --elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}
