@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Oxanium:wght@400;500;600;700;800&display=swap');

:root {
  --bg-0: #030712;
  --bg-1: #071226;
  --bg-2: #0b1832;
  --panel: rgba(9, 20, 40, 0.88);
  --panel-soft: rgba(8, 18, 36, 0.72);
  --border: rgba(68, 211, 255, 0.18);
  --border-soft: rgba(34, 197, 94, 0.14);
  --text: #eef6ff;
  --muted: #9eb4cf;
  --accent-blue: #2dd4ff;
  --accent-blue-strong: #008cff;
  --accent-green: #22c55e;
  --accent-green-soft: rgba(34, 197, 94, 0.15);
  --accent-blue-soft: rgba(45, 212, 255, 0.14);
  --danger: #fb7185;
  --warning: #facc15;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 255, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.1), transparent 20%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 42%, var(--bg-2) 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(4, 8, 16, 0.8);
  border-bottom: 1px solid rgba(68, 211, 255, 0.1);
}

.header-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: clamp(46px, 4vw, 54px);
  height: clamp(46px, 4vw, 54px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: drop-shadow(0 0 18px rgba(45, 212, 255, 0.16));
  flex: 0 0 auto;
}

.brand-symbol {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-wordmark-text {
  display: block;
  width: clamp(158px, 21vw, 218px);
  max-width: 100%;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: linear-gradient(90deg, #c9f4ff 0%, #4ac2ff 22%, #00a3ff 48%, #68b6ff 72%, #00ff87 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(0, 163, 255, 0.16);
}

.brand-subtitle {
  color: rgba(203, 218, 242, 0.68);
  font-size: 0.69rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #dfe9ff;
  border: 1px solid rgba(120, 170, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: 0.24s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus {
  color: var(--text);
  border-color: rgba(45, 212, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24), 0 0 18px rgba(45, 212, 255, 0.08);
}

.hero {
  padding: 84px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(68, 211, 255, 0.16);
  color: #d9f6ff;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.hero h1 {
  margin: 20px 0 16px;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-points {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.hero-points div {
  display: flex;
  gap: 12px;
  color: #d7ecff;
}

.hero-points div::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent-blue);
  box-shadow: 0 0 0 6px rgba(45, 212, 255, 0.1);
  flex: none;
}

.panel-card {
  background: linear-gradient(180deg, rgba(10, 21, 42, 0.94), rgba(5, 14, 28, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(45, 212, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.login-card {
  padding: 30px;
}

.login-card h2 {
  margin: 24px 0 8px;
  font-size: 2rem;
}

.login-card p {
  margin: 0;
  color: var(--muted);
}

.field-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #d9ebff;
  font-size: 0.94rem;
}

.panel-input,
.panel-select,
.panel-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(68, 211, 255, 0.14);
  background: rgba(4, 13, 26, 0.88);
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.panel-input:focus,
.panel-select:focus,
.panel-textarea:focus {
  border-color: rgba(45, 212, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(45, 212, 255, 0.12);
}

.panel-button,
.panel-button-secondary,
.panel-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.panel-button:hover,
.panel-button-secondary:hover,
.panel-button-link:hover {
  transform: translateY(-1px);
}

.panel-button {
  color: #03111f;
  background: linear-gradient(135deg, #2dd4ff, #22c55e);
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.24);
}

.panel-button-secondary {
  color: #def8ff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(68, 211, 255, 0.12);
}

.panel-button-link {
  color: #b8dfff;
  background: transparent;
  padding-inline: 0;
  border: 0;
}

.flash {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(68, 211, 255, 0.14);
}

.flash-success {
  background: rgba(34, 197, 94, 0.12);
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.2);
}

.flash-error {
  background: rgba(251, 113, 133, 0.12);
  color: #ffe4e9;
  border-color: rgba(251, 113, 133, 0.22);
}

.flash-info {
  background: rgba(45, 212, 255, 0.1);
  color: #d9f6ff;
}

.demo-accounts {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(68, 211, 255, 0.1);
}

.demo-accounts h3,
.section-title {
  margin: 0;
  font-size: 1.15rem;
}

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

.small {
  font-size: 0.9rem;
}

.mt-10 {
  margin-top: 10px;
}

.mt-18 {
  margin-top: 18px;
}

.mt-28 {
  margin-top: 28px;
}

.compact-top {
  margin: 8px 0 0;
}

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

.offer-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.offer-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 72%);
  pointer-events: none;
}

.offer-card.pro::after,
.offer-card.demo::after {
  background: radial-gradient(circle, rgba(45, 212, 255, 0.18), transparent 72%);
}

.offer-card h3 {
  margin: 18px 0 10px;
  font-size: 1.55rem;
}

.price-box {
  margin: 20px 0;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(68, 211, 255, 0.14);
  background: rgba(4, 14, 28, 0.78);
}

.price-box strong {
  display: block;
  font-size: 2.3rem;
  color: #9fe8ff;
}

.offer-card.business .price-box strong {
  color: #7ef0b4;
}

.offer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.offer-list li {
  display: flex;
  gap: 10px;
  line-height: 1.55;
  color: #d8eeff;
}

.offer-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  flex: none;
}

.section {
  padding: 56px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 860px;
  line-height: 1.8;
}

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

.feature-card {
  padding: 22px;
}

.feature-card h3 {
  margin: 18px 0 10px;
  font-size: 1.14rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.icon-chip {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(45, 212, 255, 0.16), rgba(34, 197, 94, 0.12));
  border: 1px solid rgba(68, 211, 255, 0.16);
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(68, 211, 255, 0.1);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  flex-wrap: wrap;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-layout {
  width: min(1140px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 28px;
}

.auth-aside,
.auth-card {
  padding: 30px;
}

.auth-aside h1 {
  margin: 22px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-aside p {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.auth-footer {
  width: min(1140px, 100%);
  margin-top: 18px;
}

.legal-page {
  min-height: 100vh;
}

.legal-hero {
  padding: 64px 0 24px;
}

.legal-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.legal-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 290px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 48px;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.legal-sidebar h2,
.legal-content h2,
.legal-content h3 {
  margin: 0;
}

.legal-sidebar h2 {
  font-size: 1.1rem;
}

.legal-sidebar nav {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.legal-sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(68, 211, 255, 0.08);
  transition: 0.2s ease;
}

.legal-sidebar a:hover,
.legal-sidebar a:focus {
  color: var(--text);
  border-color: rgba(68, 211, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.legal-content {
  padding: 28px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #d9f6ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(68, 211, 255, 0.14);
  font-size: 0.82rem;
}

.legal-section + .legal-section {
  margin-top: 28px;
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.legal-section h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  color: #d9f6ff;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.82;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-content strong {
  color: var(--text);
}

.legal-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(68, 211, 255, 0.12);
}

.legal-grid {
  display: grid;
  gap: 16px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.legal-table th,
.legal-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(68, 211, 255, 0.1);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.legal-table th {
  color: var(--text);
  font-weight: 600;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.legal-links a {
  color: #d9f6ff;
}

.legal-links a:hover,
.legal-links a:focus {
  color: var(--text);
}

.bullet-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.bullet-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
  flex: none;
}

.app-shell {
  min-height: 100vh;
}

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

.sidebar {
  background: rgba(3, 10, 22, 0.96);
  border-right: 1px solid rgba(68, 211, 255, 0.12);
  display: flex;
  flex-direction: column;
}

.sidebar-top {
  padding: 28px 22px;
  border-bottom: 1px solid rgba(68, 211, 255, 0.08);
}

.sidebar-nav {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.nav-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: #d7ecff;
  text-align: left;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.04);
}

.nav-button.active {
  background: linear-gradient(135deg, rgba(45, 212, 255, 0.16), rgba(34, 197, 94, 0.14));
  border-color: rgba(68, 211, 255, 0.18);
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px;
}

.mini-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(68, 211, 255, 0.08);
}

.main-area {
  min-width: 0;
}

.mobile-topbar {
  display: none;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(68, 211, 255, 0.08);
}

.icon-button {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(68, 211, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(3, 10, 22, 0.66);
  border-bottom: 1px solid rgba(68, 211, 255, 0.08);
}

.topbar h1,
.topbar h2 {
  margin: 0;
  font-size: 1.9rem;
}

.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.user-chip {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(68, 211, 255, 0.1);
  min-width: 180px;
}

.user-chip strong,
.user-chip span {
  display: block;
}

.user-chip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.content {
  padding: 28px;
}

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

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

.stat-card {
  padding: 22px;
}

.stat-card span {
  display: block;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: 2.1rem;
}

.stat-card em {
  display: block;
  margin-top: 8px;
  color: #d7ecff;
  font-style: normal;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.section-card {
  padding: 22px;
}

.section-card > p {
  margin: 8px 0 0;
  color: var(--muted);
}

.chart {
  margin-top: 22px;
  min-height: 240px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bar-fill {
  width: 100%;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, #2dd4ff 0%, #22c55e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.bar span,
.bar label {
  color: var(--muted);
  font-size: 0.82rem;
}

.list-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.list-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(68, 211, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.list-item.alert {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.18);
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-info {
  background: var(--accent-blue-soft);
  color: #c6f3ff;
}

.badge-success {
  background: var(--accent-green-soft);
  color: #dfffee;
}

.badge-danger {
  background: rgba(251, 113, 133, 0.14);
  color: #ffe5eb;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 18px;
}

.toolbar-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.table-wrap {
  margin-top: 18px;
  overflow: auto;
  border: 1px solid rgba(68, 211, 255, 0.1);
  border-radius: 20px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(68, 211, 255, 0.08);
}

th {
  background: rgba(255, 255, 255, 0.03);
  color: #d8edff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td {
  color: var(--text);
}

tr:last-child td {
  border-bottom: 0;
}

.form-card {
  padding: 22px;
}

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

.stack {
  display: grid;
  gap: 14px;
}

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

.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(68, 211, 255, 0.08);
}

.toggle-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.switch {
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  flex: none;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: white;
}

.switch.active {
  background: rgba(34, 197, 94, 0.28);
}

.switch.active::after {
  left: 28px;
}

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

.checkbox-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(68, 211, 255, 0.08);
}

.checkbox-card input {
  margin-top: 3px;
}

.role-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.role-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(68, 211, 255, 0.08);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-action-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.table-wrap form {
  display: grid;
  gap: 10px;
}

.note-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(68, 211, 255, 0.08);
}

@media (max-width: 1180px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .auth-layout,
  .legal-layout,
  .two-column,
  .dashboard-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

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

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

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 920px) {
  .mobile-topbar .brand-wordmark-text {
    width: clamp(132px, 34vw, 180px);
    font-size: clamp(1.35rem, 5vw, 1.7rem);
  }

  .mobile-topbar .brand-subtitle {
    display: none;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 300px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-topbar {
    display: flex;
  }

  .topbar {
    position: static;
    padding: 18px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .content {
    padding: 16px;
  }

  .toolbar-grid,
  .permissions-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand {
    gap: 10px;
  }

  .brand-wordmark-text {
    width: clamp(134px, 48vw, 180px);
    font-size: clamp(1.32rem, 6vw, 1.65rem);
  }

  .brand-subtitle {
    letter-spacing: 0.18em;
    font-size: 0.68rem;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .cards-grid,
  .stats-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    padding: 14px;
  }

  .auth-aside,
  .auth-card,
  .login-card {
    padding: 22px;
  }

  .legal-content,
  .legal-sidebar {
    padding: 22px;
  }

  .container {
    width: min(1240px, calc(100% - 20px));
  }
}
