:root {
  --sidebar: #101827;
  --sidebar-2: #1d2b46;
  --bg: #eef3ff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --line: rgba(148, 163, 184, 0.25);
  --line-strong: rgba(148, 163, 184, 0.42);
  --text: #0f172a;
  --muted: #64748b;
  --soft: #94a3b8;
  --blue: #2563eb;
  --violet: #7c3aed;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #f59e0b;
  --cyan: #0891b2;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.09);
  --radius: 28px;
  --sidebar-width: 320px;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family:
          Inter,
          ui-sans-serif,
          system-ui,
          -apple-system,
          BlinkMacSystemFont,
          "Segoe UI",
          Arial,
          sans-serif;
  background:
          radial-gradient(circle at 72% 4%, rgba(124, 58, 237, 0.16), transparent 32%),
          radial-gradient(circle at 30% 0%, rgba(37, 99, 235, 0.14), transparent 30%),
          linear-gradient(135deg, #f8fbff 0%, #eef3ff 44%, #f8fbff 100%);
}

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* Shared buttons, badges and helpers */

.primary,
.secondary,
.landing-primary,
.landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  min-height: 48px;
  padding: 12px 17px;
  font-weight: 950;
  transition:
          transform 0.22s ease,
          box-shadow 0.22s ease,
          border-color 0.22s ease,
          background 0.22s ease;
}

.primary,
.landing-primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.secondary {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #e9eef8);
  border: 1px solid var(--line-strong);
}

.landing-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.primary:hover,
.secondary:hover,
.landing-primary:hover,
.landing-secondary:hover {
  transform: translateY(-2px);
}

.full {
  width: 100%;
}

.avatar,
.user-mini-avatar {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.avatar.small {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #1e40af;
  background: #dbeafe;
}

.badge.admin,
.badge.approver {
  color: #5b21b6;
  background: #ede9fe;
}

.badge.regular {
  color: #155e75;
  background: #cffafe;
}

.badge.pending {
  color: #92400e;
  background: #fef3c7;
}

.badge.approved {
  color: #166534;
  background: #dcfce7;
}

.badge.rejected {
  color: #991b1b;
  background: #fee2e2;
}

.logo-home-button {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-home-button img {
  transition:
          transform 0.22s ease,
          filter 0.22s ease,
          opacity 0.22s ease;
}

.logo-home-button:hover img {
  transform: translateY(-2px) scale(1.03);
  opacity: 0.96;
}

.logo-home-button:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.8);
  outline-offset: 6px;
  border-radius: 18px;
}

/* Public landing */

.landing-page {
  height: 100vh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background:
          radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.24), transparent 30%),
          radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.22), transparent 28%),
          linear-gradient(135deg, #08111f 0%, #0f172a 45%, #172554 100%);
  color: #ffffff;
}

.landing-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.45;
  pointer-events: none;
}

.orb-one {
  width: 360px;
  height: 360px;
  left: -100px;
  top: 140px;
  background: var(--blue);
}

.orb-two {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -120px;
  background: var(--violet);
}

.orb-three {
  width: 300px;
  height: 300px;
  right: 18%;
  bottom: -130px;
  background: var(--cyan);
}

.landing-header {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.landing-brand img {
  width: 240px;
  display: block;
  filter:
          drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 26px rgba(147, 197, 253, 0.34));
}

.landing-header-actions,
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-button,
.landing-small-primary {
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  font-weight: 900;
  transition: 0.22s ease;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.landing-small-primary {
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.ghost-button:hover,
.landing-small-primary:hover {
  transform: translateY(-2px);
}

.landing-main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  flex: 1;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 16px;
}

.landing-hero-content h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(48px, 6.4vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.085em;
}

.landing-hero-content p {
  max-width: 680px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.landing-actions {
  margin-top: 34px;
}

.landing-primary,
.landing-secondary {
  min-height: 54px;
  border-radius: 18px;
  padding: 14px 22px;
}

/* Landing preview card */

.landing-preview-card {
  border-radius: 34px;
  padding: 28px;
  min-height: 430px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.075));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
          0 38px 100px rgba(0, 0, 0, 0.38),
          inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(26px);
}

.preview-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.preview-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.preview-header span {
  color: #cbd5e1;
  font-size: 13px;
}

.preview-header h3 {
  margin: 5px 0 0;
  font-size: 30px;
  letter-spacing: -0.06em;
}

.preview-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  font-weight: 900;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 18px #22c55e;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.preview-stats div {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
          transform 0.22s ease,
          background 0.22s ease;
}

.preview-stats div:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.09));
}

.preview-stats svg {
  color: #93c5fd;
  margin-bottom: 14px;
}

.preview-stats strong {
  display: block;
}

.preview-stats span {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
}

.preview-flow {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.085);
  color: #e2e8f0;
}

.flow-item svg {
  color: #22c55e;
}

/* Auth screens */

.auth-page,
.register-page {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 32px;
  position: relative;
  background:
          radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.26), transparent 30%),
          radial-gradient(circle at 84% 12%, rgba(124, 58, 237, 0.28), transparent 30%),
          radial-gradient(circle at 55% 92%, rgba(8, 145, 178, 0.18), transparent 28%),
          linear-gradient(135deg, #07111f 0%, #0f172a 48%, #172554 100%);
  color: #ffffff;
}

.auth-card,
.register-card {
  position: relative;
  z-index: 2;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
          0 40px 120px rgba(0, 0, 0, 0.42),
          inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(26px);
}

.auth-card {
  width: min(1060px, calc(100vw - 52px));
  min-height: 560px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.075));
}

.auth-left-panel,
.auth-right-panel {
  position: relative;
  z-index: 1;
}

.auth-left-panel {
  padding: 72px 44px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.12));
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-logo img {
  width: 270px;
  display: block;
  filter:
          drop-shadow(0 22px 44px rgba(0, 0, 0, 0.34))
          drop-shadow(0 0 18px rgba(147, 197, 253, 0.16));
}

.auth-left-copy h2,
.register-left h1 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.auth-left-copy h2 {
  max-width: 360px;
  font-size: 42px;
}

.auth-left-copy p,
.register-left p {
  color: #cbd5e1;
  line-height: 1.7;
}

.auth-left-copy p {
  max-width: 380px;
  margin: 18px 0 0;
}

.auth-right-panel {
  padding: 76px 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.auth-icon-badge {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.34);
}

.auth-form-header h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.auth-form-header p {
  margin: 8px 0 0;
  color: #cbd5e1;
  line-height: 1.5;
}

.login-form.polished,
.register-form {
  display: grid;
  gap: 18px;
}

.login-form.polished label,
.register-form label {
  display: grid;
  gap: 9px;
  color: rgba(241, 245, 249, 0.92);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.login-form.polished input,
.login-form.polished select,
.register-form input,
.register-form select {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  padding: 0 20px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 850;
  outline: none;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.58));
  box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.08),
          0 18px 38px rgba(0, 0, 0, 0.18);
  transition:
          border-color 0.22s ease,
          box-shadow 0.22s ease,
          background 0.22s ease,
          transform 0.22s ease;
}

.login-form.polished input::placeholder,
.register-form input::placeholder {
  color: rgba(203, 213, 225, 0.72);
  font-weight: 800;
}

.login-form.polished input:hover,
.register-form input:hover {
  border-color: rgba(191, 219, 254, 0.4);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.66));
}

.login-form.polished input:focus,
.login-form.polished select:focus,
.register-form input:focus,
.register-form select:focus {
  border-color: rgba(139, 92, 246, 0.92);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.78));
  box-shadow:
          0 0 0 5px rgba(99, 102, 241, 0.18),
          0 18px 46px rgba(37, 99, 235, 0.24),
          inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.login-form.polished input:-webkit-autofill,
.register-form input:-webkit-autofill {
  -webkit-text-fill-color: #f8fafc;
  caret-color: #f8fafc;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow:
          0 0 0 1000px rgba(15, 23, 42, 0.92) inset,
          0 0 0 5px rgba(99, 102, 241, 0.12);
}

.auth-submit {
  min-height: 58px;
  border-radius: 18px;
  margin-top: 4px;
  font-size: 15px;
}

.auth-back-button,
.auth-link-button {
  border: 0;
  background: transparent;
  color: #bfdbfe;
  font-weight: 950;
  transition: 0.2s ease;
}

.auth-back-button {
  position: absolute;
  top: 26px;
  left: 30px;
  z-index: 5;
  width: fit-content;
  padding: 0;
}

.auth-back-button:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.auth-link-button {
  justify-self: center;
  width: fit-content;
  padding: 2px 0;
}

.auth-link-button:hover {
  color: #ffffff;
}

.register-card {
  width: min(1020px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  padding: 42px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.095);
}

.register-left {
  display: grid;
  align-content: center;
  gap: 28px;
}

.register-logo-button {
  width: fit-content;
}

.register-left img {
  width: 240px;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.25));
}

.register-left h1 {
  font-size: 54px;
  letter-spacing: -0.08em;
}

.register-left p {
  margin: 0;
}

/* Application shell */

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 28px;
  color: #ffffff;
  background:
          radial-gradient(circle at 80% 110%, rgba(124, 58, 237, 0.35), transparent 38%),
          linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  box-shadow: 25px 0 70px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand-logo {
  width: 215px;
  height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.brand-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.2));
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.nav-menu button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 18px;
  padding: 15px 16px;
  color: #dbeafe;
  background: transparent;
  font-weight: 850;
  transition:
          transform 0.22s ease,
          background 0.22s ease,
          box-shadow 0.22s ease;
}

.nav-menu button:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.33);
}

.nav-menu button.active::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 18px #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.connection-card,
.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  padding: 14px;
  backdrop-filter: blur(18px);
}

.connection-card strong,
.user-card strong {
  display: block;
  font-size: 13px;
}

.connection-card span,
.user-card span {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
}

.icon-button {
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transition:
          transform 0.2s ease,
          background 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.main-area {
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  padding: 30px 38px 50px;
}

.topbar {
  height: 82px;
  margin-bottom: 26px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.topbar h2 {
  margin: 5px 0 0;
  font-size: 28px;
  letter-spacing: -0.05em;
}

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

.status-pill,
.top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.top-user strong {
  display: block;
  font-size: 13px;
}

.top-user span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* Shared page components */

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
          radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.14), transparent 24%),
          linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow-soft);
  border-radius: 32px;
  padding: 28px 34px;
  margin-bottom: 28px;
  backdrop-filter: blur(20px);
}

.eyebrow,
.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 950;
}

.eyebrow {
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 16px 0 0;
}

.panel,
.stat-card,
.action-card,
.room-card,
.approval-card,
.result-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.panel {
  border-radius: 28px;
  padding: 24px;
}

.panel-header h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  min-height: 170px;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  opacity: 0.18;
}

.stat-card.blue::after,
.dashboard-stat-card.blue::after {
  background: #93c5fd;
}

.stat-card.violet::after,
.stat-card.purple::after,
.dashboard-stat-card.purple::after {
  background: #c4b5fd;
}

.stat-card.cyan::after,
.dashboard-stat-card.cyan::after {
  background: #67e8f9;
}

.stat-card.amber::after,
.stat-card.orange::after,
.dashboard-stat-card.orange::after {
  background: #fde68a;
}

.stat-card.green::after,
.dashboard-stat-card.green::after {
  background: #86efac;
}

.stat-icon,
.stat-icon-wrap {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.09em;
  font-weight: 950;
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.07em;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.action-card {
  text-align: left;
  border-radius: 22px;
  padding: 20px;
  color: var(--text);
  transition:
          transform 0.22s ease,
          box-shadow 0.22s ease;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.action-card svg {
  color: var(--blue);
  margin-bottom: 16px;
}

.action-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.action-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Dashboard */

.premium-dashboard {
  display: grid;
  gap: 26px;
  padding-bottom: 44px;
}

.dashboard-hero-compact {
  min-height: 190px;
  border-radius: 36px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  background:
          radial-gradient(circle at 92% 10%, rgba(129, 140, 248, 0.2), transparent 34%),
          linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
          0 28px 80px rgba(15, 23, 42, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dashboard-eyebrow {
  margin-bottom: 16px;
  letter-spacing: 0.12em;
}

.dashboard-hero-compact h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.dashboard-hero-compact p {
  margin: 18px 0 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 650;
}

.dashboard-hero-status {
  display: grid;
  gap: 14px;
  min-width: 220px;
}

.status-pill.success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.status-pill.success span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.user-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 24px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.user-mini-avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
}

.user-mini-card strong {
  display: block;
  color: var(--text);
  font-weight: 950;
}

.user-mini-card small {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  border-radius: 30px;
  padding: 24px;
  background:
          radial-gradient(circle at 88% 0%, rgba(99, 102, 241, 0.17), transparent 30%),
          rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 26px 62px rgba(15, 23, 42, 0.1);
}

.dashboard-stat-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -34px;
  width: 105px;
  height: 105px;
  border-radius: 999px;
  opacity: 0.42;
}

.stat-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
  margin-bottom: 24px;
}

.dashboard-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.dashboard-stat-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
}

.dashboard-panel {
  border-radius: 32px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.94);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.1);
}

.panel-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.panel-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.quick-action-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quick-action-grid button {
  min-height: 138px;
  text-align: left;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.82));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  transition:
          transform 0.22s ease,
          box-shadow 0.22s ease,
          border-color 0.22s ease;
}

.quick-action-grid button:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 28px 64px rgba(37, 99, 235, 0.12);
}

.quick-action-grid svg {
  color: var(--blue);
  margin-bottom: 22px;
}

.quick-action-grid strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.quick-action-grid span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 650;
}

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

.status-card {
  display: flex;
  gap: 18px;
  align-items: center;
  border-radius: 26px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.status-card.database {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(245, 243, 255, 0.85));
}

.status-card.role {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(240, 253, 250, 0.86));
}

.status-card svg {
  color: var(--blue);
  flex-shrink: 0;
}

.status-card span {
  color: var(--muted);
  font-weight: 800;
}

.status-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.status-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 650;
}

/* Workspace pages */

.workspace-grid {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 22px;
  align-items: start;
}

.page-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.page-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.page-form input,
.page-form select,
.page-form textarea {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  transition:
          border-color 0.2s ease,
          box-shadow 0.2s ease,
          background 0.2s ease;
}

.page-form input:focus,
.page-form select:focus,
.page-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 4px;
}

.section-title svg {
  color: var(--blue);
  flex-shrink: 0;
}

.section-title h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.room-grid,
.approval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.room-card,
.approval-card,
.result-card {
  border-radius: 24px;
  padding: 20px;
}

.room-card-top,
.approval-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-card svg {
  color: var(--blue);
}

.room-card h3,
.approval-card h3 {
  margin: 18px 0 6px;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.room-card p,
.approval-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.room-meta,
.approval-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  gap: 16px;
}

.approval-meta.column {
  display: grid;
}

.room-meta strong,
.approval-meta strong {
  color: var(--text);
  text-align: right;
}

.approval-meta.column strong {
  text-align: left;
  margin-top: 4px;
}

.room-card small {
  display: block;
  color: var(--soft);
  margin-top: 14px;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

.empty-state.small {
  padding: 14px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.step {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 14px 16px;
  min-height: 78px;
  box-shadow: var(--shadow-soft);
}

.step span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.step strong {
  display: block;
  margin-top: 4px;
}

.requester-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.requester-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.requester-card strong {
  display: block;
}

.equipment-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px dashed rgba(37, 99, 235, 0.35);
  border-radius: 22px;
  background: rgba(37, 99, 235, 0.04);
}

.equipment-box h4 {
  margin: 0;
}

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

.selected-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 10px 12px;
}

.selected-list li button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: #991b1b;
  background: #fee2e2;
  font-weight: 900;
}

.result-card {
  margin-top: 22px;
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.3);
}

.result-card h3 {
  margin-top: 0;
  color: #166534;
}

.result-card pre {
  background: rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 16px;
  overflow-x: auto;
}

.approval-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.success-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  min-height: 48px;
  padding: 12px 17px;
  color: #ffffff;
  font-weight: 950;
  transition: transform 0.22s ease;
}

.success-button {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.danger-button {
  background: linear-gradient(135deg, #dc2626, #f43f5e);
}

.success-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

/* Reports and admin */

.report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.table-panel {
  margin-top: 24px;
}

.table-panel h3 {
  margin-top: 0;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 15px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: #ffffff;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}

th {
  color: #475569;
  background: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

tr:hover td {
  background: #f8fbff;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stats-grid.compact {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 13px;
}

.mini-list-item strong {
  display: block;
}

.mini-list-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

/* Responsive */

@media (max-width: 1400px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1180px) {
  .landing-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .landing-main,
  .dashboard-grid,
  .workspace-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .brand {
    margin-bottom: 26px;
  }

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

  .main-area {
    width: 100%;
    margin-left: 0;
    padding: 22px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 14px;
  }

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

  .dashboard-hero-compact {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .dashboard-stat-grid,
  .quick-action-grid,
  .action-grid,
  .stats-grid,
  .preview-stats,
  .form-grid,
  .wizard-steps,
  .report-actions {
    grid-template-columns: 1fr;
  }

  .auth-page,
  .register-page {
    height: auto;
    overflow: auto;
  }

  .auth-card,
  .register-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-left-panel {
    padding: 72px 32px 32px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .auth-right-panel {
    padding: 36px 32px;
  }

  .auth-form-header h1,
  .register-left h1 {
    font-size: 42px;
  }

  .landing-header {
    gap: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-hero-content h1 {
    font-size: 48px;
  }
}

@media (max-width: 620px) {
  .landing-page,
  .auth-page,
  .register-page {
    padding: 20px;
  }

  .landing-brand img,
  .brand-logo {
    width: 190px;
  }

  .landing-header-actions {
    width: 100%;
  }

  .ghost-button,
  .landing-small-primary {
    flex: 1;
  }

  .landing-preview-card,
  .auth-card,
  .register-card,
  .dashboard-hero-compact,
  .dashboard-panel,
  .hero,
  .panel {
    border-radius: 26px;
  }

  .dashboard-hero-compact h1,
  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.06em;
  }

  .dashboard-stat-card strong {
    font-size: 38px;
  }

  table {
    min-width: 720px;
  }
}

/* Reports page refinement */

.reports-page-pro {
  display: grid;
  gap: 26px;
  padding-bottom: 44px;
}

.reports-hero-pro {
  min-height: 210px;
  border-radius: 36px;
  padding: 36px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: center;
  background:
          radial-gradient(circle at 92% 10%, rgba(129, 140, 248, 0.2), transparent 34%),
          linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
          0 28px 80px rgba(15, 23, 42, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.reports-hero-pro h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(42px, 4.7vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.reports-hero-pro p {
  margin: 18px 0 0;
  max-width: 780px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 650;
}

.reports-hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.reports-hero-metrics div {
  border-radius: 22px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.reports-hero-metrics strong {
  display: block;
  color: #0f172a;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.reports-hero-metrics span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
}

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

.report-command-card {
  text-align: left;
  min-height: 340px;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 32px;
  padding: 28px;
  background:
          radial-gradient(circle at 94% 8%, rgba(124, 58, 237, 0.12), transparent 28%),
          linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.82));
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.1);
  transition:
          transform 0.22s ease,
          box-shadow 0.22s ease,
          border-color 0.22s ease;
}

.report-command-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 34px 90px rgba(37, 99, 235, 0.14);
}

.report-command-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.report-command-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.report-command-top span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-command-card h2 {
  margin: 24px 0 0;
  color: #0f172a;
  font-size: 30px;
  letter-spacing: -0.055em;
}

.report-command-card p {
  margin: 12px 0 0;
  max-width: 620px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 650;
}

.report-point-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.report-point-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.report-point-list svg {
  color: #22c55e;
  flex-shrink: 0;
}

.report-command-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2563eb;
  font-weight: 950;
}

.report-command-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reports-empty-panel {
  min-height: 170px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 32px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.94);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.1);
}

.reports-empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
  flex-shrink: 0;
}

.reports-empty-panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.reports-empty-panel p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.65;
  font-weight: 650;
}

.report-output-panel {
  margin-top: 0;
}

.report-table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.report-row-count {
  min-width: 120px;
  border-radius: 22px;
  padding: 14px 16px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  text-align: center;
}

.report-row-count strong {
  display: block;
  color: #2563eb;
  font-size: 28px;
  line-height: 1;
}

.report-row-count span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.spin-icon {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .reports-hero-pro {
    grid-template-columns: 1fr;
  }

  .reports-hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .reports-command-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .reports-hero-metrics {
    grid-template-columns: 1fr;
  }

  .reports-empty-panel,
  .report-table-header {
    flex-direction: column;
  }

  .report-row-count {
    width: 100%;
  }
}