:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #64727f;
  --line: #d9e0e6;
  --surface: #ffffff;
  --soft: #f4f7f9;
  --brand: #0f766e;
  --brand-2: #2563eb;
  --alert: #d97706;
  --danger: #dc2626;
  --ok: #15803d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: var(--brand);
  color: white;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 750;
  cursor: pointer;
}

button.secondary {
  background: #e6f1ef;
  color: var(--brand);
}

button.ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
}

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

button.is-loading {
  cursor: progress;
}

.build-version {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 9999;
  color: #64748b;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
}

button.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-2);
  text-align: left;
  font-weight: 800;
}

button.danger {
  background: #fee2e2;
  color: var(--danger);
}

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

.app-shell.admin-mode {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  background: #132b35;
  color: white;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
}

.brand span,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sidebar .brand span {
  color: #a8c4c1;
}

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

.nav-button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #d8e6e4;
}

.nav-button.active {
  background: rgba(20, 184, 166, 0.22);
  color: white;
}

.main {
  padding: 22px;
  position: relative;
  min-width: 0;
}

.topbar,
.section-title,
.session-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 3vw, 38px);
}

h2 {
  font-size: 20px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(340px, 44fr);
  gap: clamp(24px, 4vw, 56px);
  margin: 28px auto 0;
  align-items: center;
  max-width: 1280px;
  min-height: calc(100vh - 120px);
  position: relative;
}

.auth-copy {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.seller-access-view {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.seller-access-view .auth-panel {
  width: min(100%, 520px);
}

.seller-access-view .seller-portal {
  width: min(100%, 1180px);
}

.seller-portal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.seller-portal-header p {
  margin: 6px 0 0;
}

.seller-portal-nav {
  display: flex;
  gap: 10px;
  margin: 22px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}



.seller-portal-nav button.active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.seller-portal-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.seller-portal-filters {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto;
  align-items: end;
}

.seller-portal-filter-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 1px;
}

.seller-customer-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.seller-customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.seller-customer-detail-grid p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.seller-customer-detail-grid span,
.seller-customer-notes {
  color: var(--muted);
}

.seller-customer-assign-panel {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.auth-hero-image {
  width: 100%;
  height: auto;
  max-height: min(76vh, 760px);
  display: block;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(19, 43, 53, 0.08);
  background: #f8fafc;
}

.auth-panel,
.panel,
.metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-panel,
.panel {
  padding: 18px;
}

.auth-panel {
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 16px 42px rgba(19, 43, 53, 0.1);
  max-width: 460px;
  width: 100%;
  justify-self: center;
  align-self: center;
}

.auth-mode {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  background: #e9eef2;
  color: var(--ink);
}

.tab.active {
  background: var(--brand-2);
  color: white;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

#registerForm .checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

#registerForm .checkbox-row input {
  width: auto;
  min-height: 0;
}

.form-help,
.form-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.service-choice-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.service-choice-card span {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  align-content: center;
}

.service-choice-card strong {
  color: var(--ink);
  font-size: 15px;
}

.service-choice-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.service-choice-card.selected span {
  border-color: var(--brand);
  background: #e6f1ef;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.service-choice-card:focus-visible span {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.admin-login .service-choice {
  display: none;
}

.form-message.success {
  color: var(--ok);
}

.form-message.error {
  color: var(--danger);
}
.recovery-simulation-code {
  padding: 10px 12px;
  border: 1px dashed var(--brand);
  border-radius: 8px;
  background: #eef8f6;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.recovery-back-button {
  width: 100%;
  margin-top: 12px;
}

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

.service-access-card {
  min-height: 150px;
  align-items: flex-start;
  justify-content: center;
  display: grid;
  gap: 10px;
  text-align: left;
  background: #f8fafc;
  color: var(--ink);
  border: 1px solid var(--line);
}

.service-access-card strong {
  font-size: 24px;
  letter-spacing: 0;
}

.service-access-card span {
  color: var(--muted);
  line-height: 1.5;
}

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

textarea {
  min-height: 82px;
  resize: vertical;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 16px;
}

.metrics article {
  padding: 16px;
}

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

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
  align-items: start;
}

.admin-nav {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 9px;
  background: #e8f7f0;
  border: 1px solid #b7dfcc;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.08);
}

.admin-nav-button {
  background: rgba(255, 255, 255, 0.58);
  color: #164e47;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-nav-button:hover:not(.active) {
  background: #ccebdd;
  border-color: #9fd2bd;
  color: #0f4f48;
  transform: translateX(2px);
}

.admin-nav-button.active {
  background: #0f766e;
  border-color: #0b625b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.admin-nav-button:focus-visible,
#adminLogoutBtn:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

#adminLogoutBtn.ghost {
  margin-top: 5px;
  background: #ffffff;
  color: #9f1239;
  border: 1px solid #f2b8c4;
  border-radius: 9px;
}

#adminLogoutBtn.ghost:hover {
  background: #ffe8ed;
  border-color: #e998aa;
  color: #881337;
}

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

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

.admin-summary-card {
  appearance: none;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-height: 92px;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.admin-summary-card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.admin-summary-card span {
  color: var(--muted);
}

.admin-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.admin-dashboard-section {
  margin-top: 18px;
}

.compact-title {
  margin-bottom: 8px;
}

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

.admin-dashboard-filters,
.executive-distribution {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.admin-dashboard-filters label,
.executive-distribution > div {
  display: grid;
  gap: 5px;
}

.executive-distribution > div {
  min-width: 140px;
  padding: 12px;
  border-left: 4px solid #9ca3af;
  background: var(--surface);
}

.executive-distribution strong { font-size: 22px; }
.executive-package-30 { border-left-color: #2563eb !important; }
.executive-package-90 { border-left-color: #7c3aed !important; }
.executive-package-180 { border-left-color: #f97316 !important; }

.admin-chart {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.admin-chart h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(100px, 150px) 1fr 42px;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 13px;
}

.chart-bar {
  height: 9px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.chart-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.admin-table {
  margin-top: 16px;
  overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.admin-detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.seller-detail-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.seller-detail-tabs button {
  width: auto;
}

.seller-detail-pane {
  min-width: 0;
}

.seller-detail-table {
  max-width: 100%;
}

.seller-access-form {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: end;
  margin-top: 16px;
}

.seller-access-form .checkbox-row {
  min-height: 44px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.seller-access-form .checkbox-row input {
  width: auto;
}

.sim360-header {
  align-items: flex-start;
}

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

.sim360-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.sim360-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.sim360-wide {
  grid-column: 1 / -1;
}

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

.sim360-facts article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
  min-width: 0;
}

.sim360-facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sim360-facts strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.sim360-next-package {
  border-color: rgba(37, 99, 235, 0.25);
  background: #f8fbff;
}

.sim360-note,
.sim360-empty {
  margin: 12px 0 0;
  color: var(--muted);
}

.sim360-timeline,
.sim360-audit-list {
  display: grid;
  gap: 10px;
}

.sim360-timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.sim360-timeline-date strong,
.sim360-timeline-date span {
  display: block;
}

.sim360-timeline-date span,
.sim360-timeline-item p,
.sim360-timeline-item small {
  color: var(--muted);
}

.sim360-timeline-item h4 {
  margin: 8px 0 4px;
  font-size: 15px;
}

.sim360-audit-list article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

.sim360-audit-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sim360-audit-list span {
  color: var(--muted);
}

.sim360-audit-list code {
  display: block;
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #334155;
}

.admin-search {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  max-width: 460px;
  color: var(--muted);
  font-weight: 700;
}

.admin-inline-form {
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  margin-top: 14px;
}

.primary-panel {
  grid-row: span 3;
}

.cards-list,
.orders-list,
.plans-list,
.client-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.client-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.client-dashboard-grid article,
.client-dashboard-card,
.client-history-card,
.client-alert {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.client-dashboard-card {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.client-dashboard-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.client-dashboard-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.client-dashboard-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.client-dashboard-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.client-alerts-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.client-sim-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.client-sim-filter-bar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.client-sim-filter-bar span {
  font-weight: 800;
  color: var(--ink);
}

.client-sim-filter-bar label {
  min-width: min(260px, 100%);
}

.client-alert.alta {
  border-color: #fecaca;
  background: #fff7f7;
}

.client-alert.media {
  border-color: #fde68a;
  background: #fffaf0;
}

.client-alert.baja {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.client-alert-action {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 0;
}

.client-alert-action:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.client-alert-action:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.client-history-card p,
.client-alert p {
  margin: 6px 0;
}

.client-detail-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.bulk-activation {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bulk-selection-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bulk-duration-heading {
  margin: 14px 0 4px;
  padding: 6px 8px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.plan-duration-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.plan-duration-30 {
  color: #2563eb;
  background: #eff6ff;
}

.plan-duration-90 {
  color: #7c3aed;
  background: #f5f3ff;
}

.plan-duration-180 {
  color: #ea580c;
  background: #fff7ed;
}

.bulk-duration-heading.plan-duration-30 {
  border-left-color: #2563eb;
}

.bulk-duration-heading.plan-duration-90 {
  border-left-color: #7c3aed;
}

.bulk-duration-heading.plan-duration-180 {
  border-left-color: #ea580c;
}

.bulk-card-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
}

.bulk-card-select input {
  width: 18px;
  height: 18px;
}

.bulk-card-select input:disabled + span {
  color: var(--muted);
  font-weight: 600;
}

.bulk-selected-list {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-top: 12px;
}

.bulk-selected-list p {
  margin: 4px 0;
}

.bulk-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-log {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 280px;
  overflow: auto;
}

.card-row,
.order-row,
.plan-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

#allCardsList.cards-list {
  gap: 6px;
  margin-top: 10px;
}

.sim-card-row {
  padding: 9px 10px;
  gap: 5px;
  line-height: 1.25;
}

.sim-card-header {
  align-items: flex-start;
  gap: 10px;
}

.sim-card-title {
  min-width: 0;
  flex: 1;
}

.sim-card-title strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.sim-card-iccid {
  margin-top: 2px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sim-card-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 12px;
}

.sim-card-line span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--muted);
}

.client-sim-alias {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.client-sim-form {
  display: grid;
  gap: 10px;
}

.client-sim-form label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-sim-form label strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.client-sim-form input,
.client-sim-form textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.client-sim-form textarea {
  resize: vertical;
}

.client-sim-summary {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.client-sim-summary div {
  display: grid;
  gap: 3px;
}

.client-sim-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-sim-summary strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.client-sim-form button[type="submit"] {
  justify-self: start;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.client-validity-card {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink);
}

.client-validity-card.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.client-validity-card.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.client-validity-card.today {
  border-color: #fed7aa;
  background: #fff7ed;
}

.client-validity-card.expired {
  border-color: #fecaca;
  background: #fef2f2;
}

.client-validity-card.unknown {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.client-validity-title {
  font-size: 12px;
  font-weight: 850;
}

.client-validity-range {
  font-size: 14px;
  font-weight: 850;
}

.client-validity-message,
.client-validity-expired {
  font-size: 12px;
  color: var(--muted);
}

.sim-card-status {
  padding: 3px 7px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.status {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  color: white;
  background: var(--muted);
}

.status.started,
.status.ACTIVE,
.status.PROVIDER_ORDERED {
  background: var(--ok);
}

.status.expired,
.status.EXPIRED,
.status.DEACTIVATED,
.status.LOCKED,
.status.BLOCKED_MISSING_PLAN_ID {
  background: var(--danger);
}

.status.SIN_PLAN,
.status.UNCONFIRMED,
.status.NOT_STARTED,
.status.INVENTORY,
.status.MODO_PRUEBA,
.status.TEST {
  background: var(--muted);
}

.status.BE_EXPIRING {
  background: var(--warn);
}

.status.AWAITING_PAYMENT {
  background: var(--alert);
}

.status.PAYMENT_PENDING,
.status.PREFERENCE_CREATED {
  background: #f59e0b;
}

.status.PAYMENT_PROCESSING {
  background: var(--brand-2);
}

.status.PAYMENT_REJECTED,
.status.PAYMENT_CANCELLED,
.status.PAYMENT_EXPIRED,
.status.CANCELED,
.status.CANCELLED,
.status.FAILED,
.status.PURCHASE_CANCELLED_BY_CUSTOMER,
.status.PAYMENT_VALIDATION_FAILED {
  background: var(--danger);
}

.status.PAID_PENDING_FULFILLMENT {
  background: var(--ok);
}

.status.RECHARGE_PROCESSING {
  background: var(--brand-2);
}

.status.COMPLETED,
.status.SUCCESS {
  background: var(--ok);
}

.status.RECHARGE_FAILED {
  background: var(--danger);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-badge-success {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.admin-badge-pending,
.admin-badge-soft-warning {
  background: #fef9c3;
  border-color: #fde68a;
  color: #854d0e;
}

.admin-badge-warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.admin-badge-strong-warning {
  background: #fed7aa;
  border-color: #fb923c;
  color: #7c2d12;
}

.admin-badge-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.payment-note-pending {
  color: #92400e;
  font-weight: 700;
}

.admin-badge-neutral {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.admin-badge-info {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.admin-badge-primary {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #3730a3;
}

.admin-order-actions {
  min-width: 132px;
}

.inline-action-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.inline-action-group span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inline-action-group button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.admin-action-button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.admin-action-button.config {
  background: #ffedd5;
  color: #9a3412;
}

.admin-action-button.retry {
  background: #fee2e2;
  color: #991b1b;
}

.admin-action-button.detail {
  background: #f1f5f9;
  color: #334155;
}

.admin-sim-actions {
  align-items: center;
}

/* Inventory actions share a compact, accessible treatment while retaining clear labels. */
.admin-sim-actions .admin-sim-action,
.admin-advanced-actions-menu button {
  border: 1px solid transparent;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-sim-actions .admin-sim-action:hover:not(:disabled),
.admin-advanced-actions-menu button:hover:not(:disabled) {
  filter: brightness(0.97);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.admin-sim-actions .admin-sim-action:focus-visible,
.admin-advanced-actions-menu button:focus-visible,
.admin-advanced-actions summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.admin-sim-actions button:disabled,
.admin-advanced-actions-menu button:disabled {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
  box-shadow: none;
  opacity: 1;
}

.admin-sim-action-refresh,
.admin-sim-actions [data-admin-refresh-iccid] { background: #eaf2ff; border-color: #bfd4fb; color: #1d4ed8; }
.admin-sim-action-edit { background: #fff5dc; border-color: #f5d991; color: #9a6700; }
.admin-sim-action-unassign { background: #fff0e2; border-color: #f5c78f; color: #b45309; }
.admin-sim-action-history { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
.admin-sim-action-assign { background: #e8f5ef; border-color: #b6dfca; color: #0f766e; }
.admin-advanced-actions-menu [data-admin-suspend] { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.admin-advanced-actions-menu [data-admin-reactivate] { background: #ecfdf3; border-color: #bbf7d0; color: #15803d; }

.admin-advanced-actions,
.admin-advanced-panel {
  display: block;
}

.admin-advanced-actions summary,
.admin-advanced-panel summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  list-style: none;
  user-select: none;
}

.admin-advanced-actions summary::-webkit-details-marker,
.admin-advanced-panel summary::-webkit-details-marker {
  display: none;
}

.admin-advanced-actions summary::after,
.admin-advanced-panel summary::after {
  content: " +";
}

.admin-advanced-actions[open] summary::after,
.admin-advanced-panel[open] summary::after {
  content: " -";
}

.admin-advanced-actions-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-advanced-actions-menu button {
  min-height: 34px;
  font-size: 12px;
}

.admin-danger-zone {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
  color: #991b1b;
}

.admin-danger-zone strong {
  display: block;
  font-size: 12px;
}

.admin-danger-zone .danger {
  border: 1px solid #fca5a5;
  font-weight: 850;
}

.admin-danger-zone .danger:hover:not(:disabled) {
  background: #fee2e2;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.14);
}

.admin-danger-zone .form-help {
  margin: 5px 0 8px;
}

.admin-advanced-panel {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.status.VERIFIED {
  background: var(--warn);
}

.status.ASSIGNED,
.status.APPROVED {
  background: var(--ok);
}

.status.REJECTED,
.status.SUSPENDED {
  background: var(--danger);
}

.compact-title {
  margin-top: 22px;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-filters input,
.admin-filters select {
  width: 100%;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-card-actions {
  gap: 6px;
  margin-top: 2px;
}

.sim-card-actions button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.photo-box,
.security-note {
  margin-top: 14px;
  padding: 14px;
  background: #eef5ff;
  border: 1px solid #c7d7fe;
  border-radius: 8px;
  color: #244166;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.45);
}

.modal-panel {
  width: min(520px, 100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}

.modal-panel-wide {
  width: min(680px, 100%);
}

.modal-subtitle {
  margin-top: 10px;
  color: var(--muted);
}


/* Purchase and recharge dialogs keep the page fixed while their own body scrolls. */
.modal.purchase-modal {
  z-index: 30;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.modal.purchase-modal .modal-panel {
  box-sizing: border-box;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal.purchase-modal .purchase-modal-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.purchase-modal-header {
  flex: 0 0 auto;
  margin: 0;
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.purchase-modal-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 22px 18px;
}

.purchase-modal-footer {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.purchase-modal-footer > button {
  flex: 1 1 190px;
  min-width: 0;
}

html.purchase-modal-open,
body.purchase-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 560px) {
  .purchase-modal-header { padding: 16px 16px 12px; }
  .purchase-modal-body { padding: 0 16px 14px; }
  .purchase-modal-footer { padding: 12px 16px 16px; }
  .purchase-modal-footer > button { flex-basis: 100%; }
}

.pwa-ios-install-modal,
.pwa-platform-install-modal {
  z-index: 50;
  opacity: 0;
  transition: opacity 180ms ease;
  background: rgba(15, 23, 42, 0.5);
}

.pwa-ios-install-modal.is-visible,
.pwa-platform-install-modal.is-visible { opacity: 1; }

.pwa-ios-install-card,
.pwa-platform-install-card {
  width: min(392px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid #dce5de;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  transform: scale(0.96) translateY(8px);
  transition: transform 180ms ease;
}

.pwa-ios-install-modal.is-visible .pwa-ios-install-card,
.pwa-platform-install-modal.is-visible .pwa-platform-install-card { transform: scale(1) translateY(0); }


.pwa-platform-install-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.pwa-platform-install-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.pwa-platform-install-card h2 {
  margin: 14px 0 8px;
  color: #102316;
  font-size: 1.35rem;
}

.pwa-platform-install-message {
  max-width: 300px;
  color: #475569;
  line-height: 1.5;
}

.pwa-platform-install-actions {
  width: 100%;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e5ece7;
}

.pwa-ios-install-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pwa-ios-install-heading img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.pwa-ios-install-heading h2 {
  margin: 0;
  color: #102316;
  font-size: 1.35rem;
}

.pwa-ios-install-subtitle {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.92rem;
}

.pwa-ios-install-steps {
  display: grid;
  justify-items: center;
  margin: 22px 0;
}

.pwa-ios-install-step {
  width: 100%;
  display: grid;
  justify-items: center;
  text-align: center;
}

.pwa-ios-step-label {
  color: #168435;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.pwa-ios-install-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 7px 0;
  color: #168435;
  background: #edf8ef;
  border: 1px solid #c8e8cf;
  border-radius: 16px;
}

.pwa-ios-install-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.pwa-ios-step-text {
  color: #172033;
  font-weight: 700;
}

.pwa-ios-step-done {
  margin-top: 4px;
  color: #168435;
  font-size: 0.88rem;
  font-weight: 800;
}

.pwa-ios-install-arrow {
  height: 19px;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 19px;
}

.pwa-ios-install-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5ece7;
}

@media (max-width: 380px) {
  .pwa-ios-install-card { padding: 20px; border-radius: 20px; }
  .pwa-ios-install-steps { margin: 16px 0; }
  .pwa-ios-install-icon { width: 48px; height: 48px; margin: 5px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-ios-install-modal, .pwa-platform-install-modal, .pwa-ios-install-card, .pwa-platform-install-card { transition: none; }
}

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

.package-info-note {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.45;
}

.package-info-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0;
}

.package-info-note p {
  margin: 4px 0;
}

.recharge-option {
  position: relative;
  width: 100%;
  min-height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  background: white;
  color: var(--ink);
  border: 1px solid #dce4ec;
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.recharge-option:hover,
.recharge-option:focus,
.recharge-option.selected {
  border-color: var(--brand-2);
  color: var(--ink);
  background: #fbfdff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.recharge-option.recommended {
  border-color: rgba(21, 128, 61, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #f7fdf9 100%);
}

.recharge-option.recommended::after {
  content: "Recomendada";
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.recharge-option-main {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.recharge-option-main strong {
  font-size: 18px;
  color: var(--ink);
}

.recharge-option-main small {
  color: var(--muted);
  line-height: 1.35;
}

.package-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.package-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.package-badge.renew {
  background: #dcfce7;
  color: #166534;
}

.package-badge.change {
  background: #dbeafe;
  color: #1d4ed8;
}

.package-badge.new {
  background: #f1f5f9;
  color: #475569;
}

.recharge-price {
  align-self: center;
  margin-left: auto;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111827;
  color: white;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.2);
  max-width: min(420px, calc(100vw - 40px));
}

.hidden {
  display: none !important;
}

.iccid-import-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.iccid-import-panel input[type="file"] {
  width: 100%;
}

.inventory-filter-bar {
  align-items: end;
  gap: 10px;
}

.inventory-filter-bar label {
  min-width: 160px;
}

.inventory-filter-bar .admin-search {
  min-width: min(100%, 280px);
  flex: 1 1 280px;
}

.inventory-smart-search {
  display: flex;
  flex: 1 1 100%;
  align-items: end;
  gap: 10px;
}

.inventory-smart-search .admin-search {
  max-width: none;
  margin-top: 0;
}

@media (max-width: 640px) {
  .inventory-smart-search {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .inventory-smart-search .admin-search {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .inventory-smart-search button {
    width: 100%;
  }
}

.danger-note {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px;
  }

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

  .nav-button {
    text-align: center;
    padding: 0 8px;
  }

  .auth-grid,
  .workspace,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .auth-grid {
    min-height: auto;
    max-width: 720px;
  }

  .auth-hero-image {
    width: 100%;
    max-height: none;
  }

  .admin-nav {
    position: static;
  }

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

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

  .client-sim-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

  .recharge-price {
    align-self: flex-start;
  }
}

@media (max-width: 560px) {
  .main {
    padding: 14px;
  }

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

  .seller-portal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .seller-portal-filter-actions button {
    flex: 1;
  }

  .seller-customer-detail-grid {
    grid-template-columns: 1fr;
  }

  nav {
    overflow-x: auto;
    display: flex;
    max-width: 100%;
  }

  .nav-button {
    min-width: 110px;
  }

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

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

  .auth-grid {
    gap: 16px;
    margin-top: 18px;
    width: 100%;
    max-width: 100%;
  }

  .auth-panel {
    padding: 18px;
    max-width: 100%;
  }

  .service-choice {
    grid-template-columns: 1fr;
  }

  .service-access-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .sim360-facts,
  .sim360-timeline-item {
    grid-template-columns: 1fr;
  }

  .sim-card-row {
    padding: 10px;
  }

  .sim-card-title {
    order: 1;
  }

  .sim-card-status {
    order: 2;
  }

  .sim-card-header .bulk-card-select {
    order: 3;
    width: 100%;
    font-size: 12px;
  }

  .sim-card-actions button {
    flex: 1 1 110px;
    min-height: 38px;
  }
}

.admin-communications-tabs {
  flex-wrap: wrap;
  margin: 1rem 0;
}

.customer-communications {
  border-top: 1px solid var(--border, #d9e0e8);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

[data-admin-communications-panel],
[data-seller-communications-panel] {
  margin-top: 1rem;
}
/* Public access layout */
.app-shell.public-access-mode { grid-template-columns: minmax(0, 1fr); }
.public-access-mode .sidebar { display: none; }
.topbar { flex-wrap: wrap; }
.topbar-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.topbar-brand > span { display: grid; gap: 2px; }
.topbar-brand small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.topbar-title { flex: 1 1 320px; min-width: 0; }
.topbar-iot-solutions {
  width: min(100%, 900px);
  height: clamp(48px, 5vw, 76px);
  background: url("/images/soluciones-equipos-iot.png?v=20260723") center 47% / 100% auto no-repeat;
}
@media (max-width: 760px) {
  .topbar-iot-solutions { width: 100%; height: 52px; }
}
.public-topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.public-topbar-actions button, .admin-access-button { min-height: 34px; padding: 0 11px; font-size: 13px; }
.admin-access-button { display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; background: var(--ok); color: #fff; font-weight: 800; text-decoration: none; }
.public-hero { width: min(100%, 620px); padding: clamp(24px, 4vw, 42px); border: 1px solid #cfe2de; border-radius: 18px; background: linear-gradient(145deg, #ffffff, #eef8f6); box-shadow: 0 16px 36px rgba(15,118,110,.10); text-align: center; display: grid; gap: 12px; justify-items: center; }
.public-hero-logo { width: 96px; height: 96px; object-fit: contain; }
.public-hero > strong { color: #115f55; font-size: clamp(28px, 5vw, 46px); letter-spacing: .04em; }
.public-hero > p { font-weight: 800; color: #115f55; }
.payment-methods { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1px solid #d6e8e4; border-radius: 14px; background: #fff; }
.payment-methods span { display: grid; gap: 6px; justify-items: center; color: #116b5f; font-size: 25px; }
.payment-methods small { color: var(--ink); font-size: 11px; line-height: 1.15; }
.payment-provider { font-size: 13px; color: var(--muted) !important; }
@media (max-width: 760px) { .topbar-title { order: 3; flex-basis: 100%; } .public-topbar-actions { justify-content: flex-start; } .payment-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .payment-methods span:last-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .main { padding: 12px; } .topbar-brand small { font-size: 8px; } .public-topbar-actions { width: 100%; } .public-topbar-actions button, .admin-access-button { flex: 1 1 auto; text-align: center; justify-content: center; } .public-hero { padding: 22px 14px; } }
/* Restored premium public access proportions */
.public-access-mode .topbar { display: grid; grid-template-columns: auto minmax(360px, 1fr) auto; align-items: center; gap: clamp(16px, 2.4vw, 34px); flex-wrap: nowrap; }
.public-access-mode .topbar-brand { gap: 12px; }
.public-access-mode .topbar-brand .brand-mark { width: 62px; height: 62px; }
.public-access-mode .topbar-brand strong { font-size: 20px; letter-spacing: .03em; }
.public-access-mode .topbar-brand small { font-size: 9px; white-space: nowrap; }
.public-access-mode .topbar-title h1 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.08; white-space: nowrap; }
.public-access-mode .auth-grid { max-width: 1320px; gap: clamp(30px, 5vw, 72px); margin-top: 18px; min-height: calc(100vh - 126px); }
.public-access-mode .auth-copy { align-items: center; }
.public-access-mode .public-hero { width: min(100%, 650px); min-height: 520px; padding: clamp(38px, 5vw, 58px) clamp(30px, 4vw, 48px); border-radius: 22px; border-color: #bfe0da; background: radial-gradient(circle at 50% 22%, #ffffff 0, #f6fffc 38%, #e4f5f0 100%); box-shadow: 0 22px 48px rgba(19, 74, 68, .16); gap: 18px; }
.public-access-mode .public-hero-logo { width: 152px; height: 152px; }
.public-access-mode .public-hero > strong { font-size: clamp(42px, 5.1vw, 64px); line-height: 1; color: #0a5c50; text-shadow: 0 2px 0 #fff; }
.public-access-mode .public-hero > p { font-size: clamp(15px, 1.5vw, 20px); letter-spacing: .015em; }
.public-access-mode .payment-methods { padding: 22px 16px; gap: 12px; border-radius: 16px; border-color: #c9e5de; box-shadow: inset 0 1px 0 #fff, 0 7px 16px rgba(15,118,110,.06); }
.public-access-mode .payment-methods span { gap: 8px; font-size: 40px; }
.public-access-mode .payment-methods small { font-size: 13px; font-weight: 750; }
.public-access-mode .payment-provider { font-size: 15px; }
.public-access-mode .auth-panel { max-width: 460px; padding: clamp(26px, 3vw, 34px); box-shadow: 0 18px 42px rgba(19,43,53,.14); }
.public-access-mode .public-topbar-actions { gap: 7px; flex-wrap: nowrap; }
.public-access-mode .public-topbar-actions button, .public-access-mode .admin-access-button { min-height: 32px; padding: 0 10px; font-size: 12px; }
@media (max-width: 1080px) { .public-access-mode .topbar { grid-template-columns: auto 1fr; } .public-access-mode .topbar-title { order: 3; grid-column: 1 / -1; } .public-access-mode .topbar-title h1 { white-space: normal; } .public-access-mode .auth-grid { max-width: 900px; } }
@media (max-width: 760px) { .public-access-mode .topbar { display: flex; align-items: flex-start; flex-wrap: wrap; } .public-access-mode .topbar-brand .brand-mark { width: 54px; height: 54px; } .public-access-mode .topbar-title { order: 3; flex-basis: 100%; } .public-access-mode .topbar-title h1 { font-size: clamp(28px, 8vw, 38px); } .public-access-mode .public-topbar-actions { flex-wrap: wrap; } .public-access-mode .auth-grid { margin-top: 18px; } .public-access-mode .public-hero { min-height: 0; padding: 34px 24px; } .public-access-mode .public-hero-logo { width: 132px; height: 132px; } .public-access-mode .payment-methods span { font-size: 34px; } }
@media (max-width: 420px) { .public-access-mode .topbar-brand strong { font-size: 17px; } .public-access-mode .topbar-brand small { font-size: 7px; } .public-access-mode .public-hero { padding: 28px 14px; } .public-access-mode .public-hero-logo { width: 118px; height: 118px; } .public-access-mode .public-hero > strong { font-size: 40px; } .public-access-mode .payment-methods { padding: 18px 10px; } .public-access-mode .payment-methods span { font-size: 31px; } .public-access-mode .payment-methods small { font-size: 12px; } }
/* Official public landing reference layout */
.public-access-mode { background: #f8fafb; }
.public-access-mode .main { padding: 0; overflow: hidden; background: radial-gradient(circle at 0 56%, rgba(39, 184, 81, .14), transparent 23%), linear-gradient(135deg, #fff 0%, #f5f7fa 72%, #fff 100%); }
.public-access-mode .topbar { min-height: 116px; padding: 22px clamp(26px, 3.2vw, 52px); background: rgba(255,255,255,.96); border-bottom: 1px solid #e7eaee; box-shadow: 0 4px 14px rgba(15,23,42,.08); grid-template-columns: auto minmax(360px,1fr) auto; }
.public-access-mode .topbar-brand { padding-right: clamp(20px, 2vw, 36px); border-right: 1px solid #cbd2dc; }
.public-access-mode .topbar-brand .brand-mark { width: 92px; height: 72px; }
.public-access-mode .topbar-brand strong { font-size: clamp(22px, 2vw, 33px); color: #070b13; }
.public-access-mode .topbar-brand small { display: none; }
.public-access-mode .topbar-title h1 { font-size: clamp(23px, 2vw, 31px); color: #10182a; }
.public-access-mode .session-actions { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid #cbd2dc; }
.public-access-mode .public-topbar-actions { gap: 24px; }
.public-access-mode .public-topbar-actions button, .public-access-mode .admin-access-button { min-height: 54px; padding: 0 18px; border: 0; background: transparent; color: #075f19; font-size: 18px; font-weight: 800; }
.public-access-mode .admin-access-button { background: linear-gradient(135deg, #0a8a1d, #006710); color: #fff; border-radius: 9px; box-shadow: 0 5px 10px rgba(0,94,20,.18); }
.public-access-mode .auth-grid { max-width: 1540px; min-height: calc(100vh - 116px); margin: 0 auto; padding: 52px clamp(26px, 5vw, 84px) 34px; grid-template-columns: minmax(0, 1.45fr) minmax(460px, .85fr); gap: clamp(48px, 7vw, 100px); align-items: center; }
.public-access-mode .auth-copy { width: 100%; }
.reference-hero { position: relative; width: 100%; max-width: 820px; min-height: 740px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #101728; text-align: center; overflow: hidden; }
.reference-hero::before { content: ""; position: absolute; width: 460px; height: 760px; left: -380px; top: 130px; border-radius: 50%; background: repeating-radial-gradient(circle at 100% 50%, rgba(63,198,87,.58) 0 2px, transparent 3px 15px), radial-gradient(circle, rgba(0,134,28,.75), rgba(95,239,109,.13) 48%, transparent 70%); filter: blur(.2px); opacity: .8; }
.reference-hero > * { position: relative; }
.reference-logo { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.reference-logo img { width: clamp(205px, 20vw, 290px); height: clamp(205px, 20vw, 290px); object-fit: contain; }
.reference-logo strong { font-size: clamp(58px, 7vw, 102px); letter-spacing: .025em; color: #020408; white-space: nowrap; }
.reference-slogan { display: grid; gap: 2px; margin: -36px 0 28px; }
.reference-slogan strong { color: #169f16; font-size: clamp(30px, 3.8vw, 49px); letter-spacing: .04em; }
.reference-slogan span { font-size: clamp(20px, 2.2vw, 31px); font-weight: 800; letter-spacing: .05em; }
.reference-benefits { width: min(100%, 700px); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #c6cdd4; border-bottom: 1px solid #c6cdd4; }
.reference-benefits article { min-height: 116px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 12px 7px; border-right: 1px solid #c6cdd4; font-weight: 800; font-size: 14px; line-height: 1.12; }
.reference-benefits article:last-child { border-right: 0; }
.reference-benefits b, .reference-payments b { color: #087019; font-size: 40px; line-height: 1; }
.reference-payments-title { margin: 28px 0 16px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 21px; }
.reference-payments-title img { width: 145px; height: auto; object-fit: contain; }
.reference-payments { width: min(100%, 700px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; padding-bottom: 22px; border-bottom: 1px solid #c6cdd4; }
.reference-payments article { min-height: 138px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 14px 8px; background: rgba(255,255,255,.93); border-radius: 12px; box-shadow: 0 8px 20px rgba(15,23,42,.11); font-size: 15px; font-weight: 800; line-height: 1.2; }
.reference-payments b { font-size: 46px; }
.reference-trust { width: min(100%, 700px); display: flex; justify-content: space-between; gap: 14px; margin: 22px 0 32px; color: #42516a; font-size: 14px; }
.reference-security { color: #52607a; font-size: 15px; margin: 0 0 16px; }
.reference-copyright { color: #56637a; font-size: 14px; }
.public-access-mode .auth-panel { width: 100%; max-width: 540px; min-height: 716px; padding: 48px 40px; border: 0; border-radius: 16px; box-shadow: 0 16px 38px rgba(15,23,42,.13); }
.public-access-mode .auth-panel h2 { font-size: 31px; margin-bottom: 22px; }
.public-access-mode .tabs { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.public-access-mode .tab { min-height: 52px; font-size: 17px; border-radius: 9px; }
.public-access-mode .tab.active, .public-access-mode #loginForm button[type="submit"] { background: linear-gradient(135deg, #0b851c, #00680e); }
.public-access-mode #registerTab { grid-column: 1 / -1; }
.public-access-mode .auth-mode { margin: 28px 0 38px; font-size: 15px; }
.public-access-mode .form { gap: 22px; }
.public-access-mode .form label { color: #101728; font-size: 17px; font-weight: 800; }
.public-access-mode .form input { min-height: 56px; border-radius: 9px; font-size: 17px; }
.public-access-mode #loginForm button[type="submit"] { min-height: 60px; margin-top: 14px; border-radius: 9px; font-size: 19px; }
.public-access-mode #forgotPasswordLink { font-size: 18px; color: #0768ef; }
@media (max-width: 1120px) { .public-access-mode .topbar { grid-template-columns: auto 1fr; } .public-access-mode .topbar-title { grid-column: 1 / -1; order: 3; } .public-access-mode .session-actions { border-left: 0; padding-left: 0; } .public-access-mode .auth-grid { grid-template-columns: 1fr; max-width: 820px; } .reference-hero { min-height: auto; } .public-access-mode .auth-panel { justify-self: center; } }
@media (max-width: 760px) { .public-access-mode .topbar { display: flex; min-height: 0; padding: 16px 18px; gap: 12px; } .public-access-mode .topbar-brand { border-right: 0; padding-right: 0; } .public-access-mode .topbar-brand .brand-mark { width: 58px; height: 52px; } .public-access-mode .topbar-brand strong { font-size: 21px; } .public-access-mode .topbar-title h1 { font-size: 28px; } .public-access-mode .public-topbar-actions { gap: 8px; } .public-access-mode .public-topbar-actions button, .public-access-mode .admin-access-button { min-height: 40px; padding: 0 12px; font-size: 14px; } .public-access-mode .auth-grid { padding: 30px 16px; gap: 32px; } .reference-hero { min-height: 0; } .reference-logo img { width: 145px; height: 145px; } .reference-logo strong { font-size: 56px; } .reference-slogan { margin-top: -22px; } .reference-benefits { grid-template-columns: repeat(2, 1fr); } .reference-benefits article { border-bottom: 1px solid #c6cdd4; } .reference-payments { grid-template-columns: repeat(2, 1fr); } .reference-payments article:last-child { grid-column: 1 / -1; } .reference-trust { flex-direction: column; align-items: flex-start; } .public-access-mode .auth-panel { min-height: 0; padding: 30px 24px; } }
@media (max-width: 420px) { .reference-logo { gap: 8px; } .reference-logo img { width: 105px; height: 105px; } .reference-logo strong { font-size: 40px; } .reference-slogan strong { font-size: 24px; } .reference-slogan span { font-size: 15px; } .reference-benefits article { font-size: 12px; } .reference-payments-title { font-size: 15px; } .reference-payments-title img { width: 112px; } .reference-payments article { min-height: 116px; font-size: 13px; } .reference-security { font-size: 13px; } }
/* Keep the large reference logo within the public hero at every desktop width. */
.reference-logo { width: min(100%, 700px); justify-content: center; }
.reference-logo img { width: clamp(155px, 15vw, 215px); height: clamp(155px, 15vw, 215px); }
.reference-logo strong { font-size: clamp(48px, 5.4vw, 80px); }
@media (max-width: 760px) { .reference-logo img { width: 130px; height: 130px; } .reference-logo strong { font-size: 50px; } }.reference-mercado-pago { display: inline-block; color: #1168dc; font-weight: 900; font-size: 21px; line-height: .8; text-align: left; letter-spacing: -.04em; }
.public-access-mode .auth-copy { display: flex; align-items: center; justify-content: center; }
/* Public landing: no sidebar and no reserved column. */
.app-shell.public-access-mode { grid-template-columns: minmax(0, 1fr) !important; }
.public-access-mode #clientSidebar,
.public-access-mode .sidebar { display: none !important; }
.public-access-mode .main { width: 100%; margin: 0; }

/* Approved left-side public image. */
.public-access-left-photo { display: block; width: min(100%, 820px); height: auto; max-height: calc(100vh - 170px); object-fit: contain; object-position: center; }
@media (max-width: 1120px) { .public-access-left-photo { max-height: none; } }

/* Approved public topbar logo. */
.public-access-mode .topbar-brand { min-width: 0; padding-right: 0; border-right: 0; }
.public-topbar-logo { display: block; width: clamp(250px, 22vw, 350px); height: auto; max-height: 80px; object-fit: contain; object-position: left center; }
@media (max-width: 760px) { .public-topbar-logo { width: min(62vw, 265px); max-height: 76px; } }
