.hglr-fullscreen-body {
  margin: 0;
  overflow-x: hidden;
  background: #080b12;
}

.hglr-fullscreen-body .hglr-app {
  margin: 0;
}

.hglr-app {
  --hglr-bg: #080b12;
  --hglr-panel: #111621;
  --hglr-panel-2: #0d121c;
  --hglr-border: #1f2937;
  --hglr-green: #22c55e;
  --hglr-text: #f8fafc;
  --hglr-muted: #94a3b8;
  --hglr-alert: #f59e0b;
  --hglr-error: #ef4444;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--hglr-bg);
  color: var(--hglr-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.hglr-app * {
  box-sizing: border-box;
}

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

.hglr-login-panel {
  width: min(440px, 100%);
  border: 1px solid var(--hglr-border);
  border-radius: 8px;
  background: var(--hglr-panel);
  padding: 28px;
}

.hglr-login-panel h1,
.hglr-page-head h1 {
  margin: 0 0 18px;
  color: var(--hglr-text);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hglr-eyebrow {
  margin: 0 0 10px;
  color: var(--hglr-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hglr-login-panel label {
  display: block;
  margin: 14px 0 6px;
  color: var(--hglr-muted);
  font-size: 13px;
}

.hglr-login-panel input[type="text"],
.hglr-login-panel input[type="password"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--hglr-border);
  border-radius: 6px;
  background: #0b1018;
  color: var(--hglr-text);
  padding: 10px 12px;
}

.hglr-login-panel input[type="submit"],
.hglr-button,
.hglr-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--hglr-green);
  color: #04130a;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
}

.hglr-secondary-button {
  border: 1px solid var(--hglr-border);
  background: transparent;
  color: var(--hglr-text);
}

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

.hglr-sidebar {
  min-height: 100vh;
  border-right: 1px solid var(--hglr-border);
  background: #070a10;
  padding: 22px 16px;
}

.hglr-brand {
  color: var(--hglr-text);
  font-size: 18px;
  font-weight: 900;
}

.hglr-brand span {
  display: block;
  margin-top: 2px;
  color: var(--hglr-muted);
  font-size: 12px;
  font-weight: 700;
}

.hglr-nav {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}

.hglr-nav a,
.hglr-nav span {
  display: block;
  border-radius: 6px;
  color: var(--hglr-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.hglr-nav a:hover,
.hglr-nav a.is-active,
.hglr-nav span.is-active {
  background: var(--hglr-panel);
  color: var(--hglr-text);
}

.hglr-sidebar-footer {
  margin-top: 32px;
  border-top: 1px solid var(--hglr-border);
  color: var(--hglr-muted);
  display: grid;
  gap: 4px;
  padding-top: 18px;
}

.hglr-sidebar-footer strong {
  color: var(--hglr-text);
}

.hglr-main {
  min-width: 0;
  padding: 28px;
}

.hglr-dev-notice {
  display: inline-flex;
  border: 1px solid rgba(245, 158, 11, .45);
  border-radius: 999px;
  color: var(--hglr-alert);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 22px;
  padding: 6px 10px;
}

.hglr-page-head {
  max-width: 900px;
  margin-bottom: 24px;
}

.hglr-page-head p:not(.hglr-eyebrow) {
  color: var(--hglr-muted);
  font-size: 16px;
  margin: 0;
}

.hglr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.hglr-grid article,
.hglr-panel {
  border: 1px solid var(--hglr-border);
  border-radius: 8px;
  background: var(--hglr-panel);
  padding: 18px;
}

.hglr-grid span {
  color: var(--hglr-muted);
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}

.hglr-grid strong {
  color: var(--hglr-text);
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.hglr-panel h2 {
  color: var(--hglr-text);
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.hglr-panel p {
  color: var(--hglr-muted);
  margin: 0;
}

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

.hglr-panel-head h2 {
  color: var(--hglr-text);
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.hglr-alert-success {
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 8px;
  background: rgba(34, 197, 94, .08);
  color: var(--hglr-text);
  font-weight: 700;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.hglr-connection-status {
  min-height: 22px;
  color: var(--hglr-muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
}

.hglr-connection-status[data-status="success"] {
  color: var(--hglr-green);
}

.hglr-connection-status[data-status="warning"] {
  color: var(--hglr-alert);
}

.hglr-connection-status[data-status="error"] {
  color: var(--hglr-error);
}

.hglr-connect-callback p {
  color: var(--hglr-muted);
  margin: 0;
}

.hglr-connected-details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 12px;
  border: 1px solid var(--hglr-border);
  border-radius: 8px;
  background: var(--hglr-panel-2);
  margin-top: 16px;
  padding: 12px;
}

.hglr-connected-details span {
  color: var(--hglr-muted);
  font-size: 13px;
  font-weight: 800;
}

.hglr-connected-details strong {
  color: var(--hglr-text);
  min-width: 0;
  overflow-wrap: anywhere;
}

.hglr-whatsapp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.hglr-status-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.hglr-status-pill.is-connected {
  border: 1px solid rgba(34, 197, 94, .45);
  color: var(--hglr-green);
}

.hglr-status-pill.is-disconnected {
  border: 1px solid rgba(245, 158, 11, .45);
  color: var(--hglr-alert);
}

.hglr-official-qr {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--hglr-border);
  border-radius: 8px;
  background: var(--hglr-panel-2);
  margin: 18px 0;
  padding: 14px;
}

.hglr-real-qr,
.hglr-qr-placeholder {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid var(--hglr-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.hglr-real-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.hglr-real-qr-large,
.hglr-qr-placeholder-large {
  width: 220px;
  height: 220px;
}

.hglr-qr-placeholder {
  background:
    linear-gradient(90deg, #111 12px, transparent 12px) 18px 18px / 24px 24px,
    linear-gradient(#111 12px, transparent 12px) 6px 6px / 24px 24px,
    #f8fafc;
  color: #111;
  font-weight: 900;
}

.hglr-qr-placeholder span {
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  padding: 8px 10px;
}

.hglr-connect-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: stretch;
  min-height: calc(100vh - 92px);
}

.hglr-connect-copy,
.hglr-connect-card {
  border: 1px solid var(--hglr-border);
  border-radius: 8px;
  background: var(--hglr-panel);
  padding: 28px;
}

.hglr-connect-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hglr-connect-copy h1 {
  color: var(--hglr-text);
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 760px;
}

.hglr-connect-copy p,
.hglr-connect-card p {
  color: var(--hglr-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.hglr-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hglr-connect-card {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.hglr-connect-card h2 {
  color: var(--hglr-text);
  font-size: 22px;
  margin: 18px 0 8px;
}

.hglr-steps {
  color: var(--hglr-muted);
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  text-align: left;
}

.hglr-qr-box {
  display: grid;
  position: relative;
  width: 112px;
  height: 112px;
  border: 8px solid var(--hglr-text);
  background:
    linear-gradient(90deg, var(--hglr-text) 12px, transparent 12px) 18px 18px / 24px 24px,
    linear-gradient(var(--hglr-text) 12px, transparent 12px) 6px 6px / 24px 24px,
    #0b1018;
}

.hglr-qr-box.hglr-qr-box-large {
  width: 210px;
  height: 210px;
}

.hglr-qr-box::before,
.hglr-qr-box::after,
.hglr-qr-box span {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 7px solid var(--hglr-text);
  background: #0b1018;
}

.hglr-qr-box::before {
  left: 8px;
  top: 8px;
}

.hglr-qr-box::after {
  right: 8px;
  top: 8px;
}

.hglr-qr-box span:first-child {
  left: 8px;
  bottom: 8px;
}

.hglr-official-qr strong {
  color: var(--hglr-text);
  display: block;
  margin-bottom: 6px;
}

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

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

.hglr-field span {
  color: var(--hglr-muted);
  font-size: 13px;
  font-weight: 800;
}

.hglr-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--hglr-border);
  border-radius: 6px;
  background: #0b1018;
  color: var(--hglr-text);
  padding: 10px 12px;
}

.hglr-field input[readonly] {
  color: var(--hglr-muted);
}

.hglr-form-actions {
  display: flex;
  align-items: end;
}

.hglr-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.hglr-help {
  color: var(--hglr-muted);
  font-size: 13px;
  margin-top: 10px;
}

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

  .hglr-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--hglr-border);
  }

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

  .hglr-whatsapp-layout,
  .hglr-form-grid,
  .hglr-connect-gate {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hglr-auth,
  .hglr-main {
    padding: 18px;
  }

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

  .hglr-official-qr {
    grid-template-columns: 1fr;
  }

  .hglr-connect-copy h1 {
    font-size: 34px;
  }
}
