﻿:root {
  --bg: #f4f8ff;
  --panel: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #d8e2ef;
  --brand: #008cff;
  --brand-dark: #006be6;
  --accent: #16d9ff;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #027a48;
  font-family: Inter, Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(0, 140, 255, 0.13), transparent 34%),
    var(--bg);
}

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

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
}

.auth-panel {
  background: #061225;
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(22, 217, 255, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  font-weight: 800;
  font-size: 22px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #18e3ff, #0077ff 58%, #0047c9);
  box-shadow: 0 0 22px rgba(0, 140, 255, 0.45);
  font-weight: 900;
}
.login-brand {
  margin-bottom: 36px;
}

.login-brand img {
  width: min(280px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
}
.login-logo-video {
  width: min(280px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
  border: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.12;
  margin-bottom: 10px;
}

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

.auth-panel .muted {
  color: #b8c7da;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.14);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}

.btn {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #0aa7ff, #006dff);
  box-shadow: 0 10px 24px rgba(0, 109, 255, 0.18);
}

.btn:hover {
  background: linear-gradient(135deg, #18d7ff, var(--brand-dark));
}

.btn.secondary {
  background: #e8f4ff;
  color: #075bb5;
  box-shadow: none;
}

.btn.danger {
  background: #fee4e2;
  color: var(--danger);
}

.btn.compact {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.login-help {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(22, 217, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #c8d7e8;
}

.auth-hero {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 48% 26%, rgba(22, 217, 255, 0.28), transparent 18%),
    linear-gradient(135deg, rgba(2, 8, 23, 0.97), rgba(3, 21, 50, 0.95) 45%, rgba(0, 72, 168, 0.88));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% 7% 22%;
  height: 220px;
  border-top: 2px solid rgba(22, 217, 255, 0.34);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.auth-hero::after {
  inset: 4% -10% auto 42%;
  height: 360px;
  border-color: rgba(0, 109, 255, 0.28);
}

.auth-hero h2,
.auth-hero p {
  position: relative;
  z-index: 1;
}

.auth-hero h2 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  margin-bottom: 20px;
}

.auth-hero p {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background:
    linear-gradient(180deg, #061225, #071a36);
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.sidebar .brand {
  margin: 0;
}
.sidebar-brand {
  width: 100%;
  margin-bottom: 28px;
}

.sidebar-brand img {
  width: 176px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
}

.nav button.active,
.nav button:hover {
  color: #fff;
  background: rgba(0, 140, 255, 0.2);
  box-shadow: inset 3px 0 0 #15c8ff;
}

.content {
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

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

a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn.support {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.18);
}

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

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

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.06);
}

.metric {
  display: grid;
  gap: 8px;
}

.metric strong {
  font-size: 28px;
  line-height: 1.1;
  word-break: break-word;
}

.plan-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border-color: rgba(0, 140, 255, 0.24);
}

.plan-card strong {
  font-size: 26px;
}

.plan-card p {
  margin-bottom: 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 13px;
}

td small {
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  background: #dcfae6;
  color: var(--ok);
}

.badge.warn {
  background: #fef0c7;
  color: var(--warn);
}

.badge.locked {
  background: #f2f4f7;
  color: #344054;
}

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

.admin-tenants {
  display: grid;
  gap: 16px;
}

.admin-tenant-card {
  display: grid;
  gap: 16px;
}

.tenant-card-head,
.admin-control-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.tenant-card-head h2 {
  margin-bottom: 4px;
}

.admin-control-row {
  justify-content: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.inline-control {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.inline-control input,
.inline-control select {
  min-height: 32px;
  width: 150px;
  padding: 6px 9px;
  font-size: 12px;
}

.section-gap {
  margin-top: 16px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.check-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.check-list span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand);
  flex: 0 0 auto;
}

.compact-list {
  gap: 7px;
  margin-top: 4px;
  font-size: 13px;
}

.locked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sale-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.sale-total span {
  color: var(--muted);
  font-weight: 700;
}

.sale-total strong {
  font-size: 24px;
}

.sale-items {
  display: grid;
  gap: 10px;
}

.sale-item-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 90px auto;
  gap: 8px;
  align-items: center;
}

.settings-list {
  display: grid;
  gap: 12px;
}

.settings-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.settings-list span {
  color: var(--muted);
  font-weight: 700;
}

.settings-list strong {
  text-align: right;
}

.compact-settings {
  gap: 8px;
}

.compact-settings div {
  padding-bottom: 7px;
}

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

.limit-item {
  display: grid;
  gap: 8px;
}

.limit-item div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.limit-item span {
  color: var(--muted);
}

.limit-bar {
  height: 8px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
}

.limit-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #008cff, #16d9ff);
}

.notice {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #05603a;
  border: 1px solid #abefc6;
  font-size: 14px;
}

.error {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #fff1f3;
  color: #c01048;
  border: 1px solid #fecdd6;
  font-size: 14px;
}

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

  .auth-hero {
    display: none;
  }

  .auth-panel,
  .content {
    padding: 24px;
  }

  .sidebar {
    position: static;
  }

  .grid.cols-3,
  .grid.cols-4,
  .grid.cols-2,
  .limit-grid {
    grid-template-columns: 1fr;
  }

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

  .sale-item-row {
    grid-template-columns: 1fr;
  }
}



.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.inline-check input {
  width: 16px;
  height: 16px;
}

.whatsapp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}


.motion-hero {
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 24px;
}

.hero-plan-board {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100vw - 490px));
  max-width: 100%;
}

.hero-login-image {
  width: 100%;
  max-height: 90vh;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.plan-hotspot {
  position: absolute;
  top: 28%;
  width: 23%;
  height: 51%;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  z-index: 2;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.plan-hotspot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/avatix-login-plans.png");
  background-repeat: no-repeat;
  background-size: 434.8% auto;
  opacity: 0;
  transition: opacity 160ms ease;
}

.plan-hotspot span {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 1.9%;
  border-radius: 6px;
  padding: 5px 6px;
  text-align: center;
  font-weight: 800;
  background: linear-gradient(135deg, #16c5ff, #006dff);
  box-shadow: 0 8px 18px rgba(0, 109, 255, 0.32);
  font-size: 12px;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.plan-hotspot:hover,
.plan-hotspot:focus-visible {
  z-index: 5;
  transform: scale(1.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(21, 200, 255, 0.7);
}

.plan-hotspot:hover::before,
.plan-hotspot:focus-visible::before,
.plan-hotspot:hover span,
.plan-hotspot:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.plan-go {
  left: 13.5%;
}

.plan-go::before {
  background-position: 17.5% 57%;
}

.plan-pro {
  left: 38.5%;
}

.plan-pro::before {
  background-position: 50% 57%;
}

.plan-business {
  left: 63.5%;
}

.plan-business::before {
  background-position: 82.5% 57%;
}

.demo-button {
  position: relative;
  z-index: 2;
  width: min(360px, 80%);
}

.demo-note {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-align: center;
}


