:root {
  --bg-primary: #1c1b29;
  --bg-secondary: #100f1d;
  --surface: #100f1d;
  --contact: #ffffff;
  --text-main: #ffffff;
  --text-light: #f3f4f6;
  --text-muted: #d1d5db;
  --text-gray400: #9ca3af;
  --text-gray600: #4b5563;
  --text-gray900: #111827;
  --fuchsia-hot: #ff00ff;
  --fuchsia-400: #e879f9;
  --fuchsia-500: #d946ef;
  --fuchsia-600: #c026d3;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --border-fuchsia-soft: rgba(217, 70, 239, 0.2);
  --border-white-soft: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background: linear-gradient(150deg, var(--bg-primary) 0%, var(--bg-secondary) 48%, #170f2d 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
}

.bg-orb-a {
  width: 340px;
  height: 340px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, var(--fuchsia-hot) 0%, transparent 70%);
}

.bg-orb-b {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: 10%;
  background: radial-gradient(circle, var(--purple-500) 0%, transparent 70%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(16, 15, 29, 0.78);
  border-bottom: 1px solid var(--border-white-soft);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}

.site-header .brand.brand-link,
.site-header .brand.brand-link:visited,
.site-header .brand.brand-link:focus {
  color: var(--text-main);
  text-decoration: none;
  gap: 10px;
}

.site-header .brand.brand-link:hover {
  color: var(--fuchsia-hot);
}

.brand-logo-mark {
  display: inline-block;
  width: 132px;
  height: 30px;
  background-color: var(--text-main);
  -webkit-mask-image: var(--logo-url);
  mask-image: var(--logo-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 0.2s ease;
}

.brand-word {
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-header .brand.brand-link:hover .brand-logo-mark {
  background-color: var(--fuchsia-hot);
}

.site-header .brand.brand-link:hover .brand-word {
  color: var(--fuchsia-hot);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 0.65rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--fuchsia-hot);
}

.nav-primary {
  display: flex;
  align-items: center;
  margin-left: auto;
  justify-content: flex-end;
  gap: 2px;
}

.nav-account {
  margin-left: 12px;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu[open] summary,
.account-menu summary:hover {
  border-color: rgba(217, 70, 239, 0.45);
  box-shadow: 0 8px 18px rgba(217, 70, 239, 0.2);
}

.account-icon {
  width: 15px;
  height: 15px;
  border: 2px solid var(--text-light);
  border-radius: 50%;
  position: relative;
}

.account-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 12px;
  width: 16px;
  height: 8px;
  border: 2px solid var(--text-light);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.account-dropdown {
  position: absolute;
  right: 0;
  margin-top: 8px;
  min-width: 140px;
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(16, 15, 29, 0.88));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 18px 30px rgba(16, 15, 29, 0.38);
  z-index: 20;
}

.account-dropdown a {
  margin: 0;
  display: block;
  padding: 10px 12px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-dropdown a:last-child {
  border-bottom: 0;
}

.account-dropdown a:hover {
  color: var(--fuchsia-hot);
  background: rgba(217, 70, 239, 0.12);
}

.hero {
  padding: 5rem 0 4rem;
}

.eyebrow {
  color: var(--fuchsia-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--text-main) 0%, var(--text-light) 45%, var(--fuchsia-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--text-muted);
  max-width: 720px;
}

.actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  border: 1px solid var(--border-fuchsia-soft);
  font-weight: 600;
  transition: 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.btn-primary {
  color: var(--fuchsia-hot);
  background: var(--surface);
}

.btn-secondary {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  border-color: rgba(217, 70, 239, 0.45);
  box-shadow: 0 8px 18px rgba(217, 70, 239, 0.2);
  transform: translateY(-1px);
}

.section {
  padding: 2.25rem 0;
}

.section-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  background: linear-gradient(90deg, var(--text-main) 0%, var(--fuchsia-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section p {
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--border-fuchsia-soft);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(16, 15, 29, 0.3);
}

.card h3 {
  margin: 0 0 0.5rem;
}

.kpi {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fuchsia-500);
}

.table-wrap {
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.inline-link {
  color: var(--fuchsia-400);
  text-decoration: none;
  margin-left: 8px;
  font-weight: 600;
}

.inline-link:hover {
  color: var(--fuchsia-hot);
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  background: linear-gradient(90deg, var(--text-main) 0%, var(--fuchsia-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.detail-wide-card {
  grid-column: 1 / -1;
}

.map-card {
  grid-column: 1 / -1;
}

.sim-map {
  margin-top: 10px;
  border-radius: 12px;
  min-height: 340px;
  border: 1px solid var(--border-fuchsia-soft);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(16, 15, 29, 0.26);
}

.map-status {
  margin-top: 8px;
  color: var(--text-gray400);
  font-size: 0.85rem;
}

.usage-chart-card {
  grid-column: span 2;
  min-height: 0;
}

.usage-chart-wrap {
  position: relative;
  width: 100%;
  height: clamp(220px, 34vh, 280px);
  max-height: 280px;
  margin-top: 8px;
}

#usage-7d-chart {
  width: 100%;
  height: 100% !important;
  display: block;
}

.pool-progress {
  margin-top: 8px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.pool-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7 0%, #d946ef 70%, #ff00ff 100%);
}

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

th,
td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  vertical-align: middle;
}

th {
  color: var(--text-gray400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.sims-table tbody tr:hover {
  background: rgba(217, 70, 239, 0.08);
}

.billing-summary-row {
  cursor: pointer;
}

.billing-summary-row:hover {
  background: rgba(217, 70, 239, 0.08);
}

.billing-summary-row td:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-caret {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--fuchsia-400);
  transition: transform 0.2s ease;
}

.billing-summary-row.is-open .billing-caret {
  transform: rotate(90deg);
}

.billing-detail-row > td {
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
}

.billing-detail-row .table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.billing-totals-row td {
  font-weight: 700;
  color: var(--fuchsia-400);
  background: rgba(217, 70, 239, 0.08);
}

.billing-customer-row td {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.billing-account-row td {
  background: rgba(168, 85, 247, 0.15);
  font-weight: 700;
  color: var(--fuchsia-400);
}

.billing-tariff-row td {
  background: rgba(255, 255, 255, 0.02);
}

.billing-tariff-row td:nth-child(3) {
  padding-left: 1.4rem;
}


.dash-hero {
  background: linear-gradient(130deg, var(--bg-primary) 0%, var(--bg-secondary) 55%, #241640 100%);
  color: var(--text-main);
  border-radius: 16px;
  padding: 22px;
  margin: 4px 0 14px;
  border: 1px solid var(--border-fuchsia-soft);
  box-shadow: 0 20px 40px rgba(16, 15, 29, 0.35);
}

.dash-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fuchsia-500);
  margin-bottom: 8px;
}

.dash-title {
  margin: 0 0 6px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(90deg, #ffffff 0%, #f3f4f6 30%, #d946ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dash-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.iccid-link {
  color: var(--fuchsia-400);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.iccid-link:hover {
  color: var(--fuchsia-hot);
}

.sims-shell {
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(16, 15, 29, 0.55));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px;
  box-shadow: 0 18px 34px rgba(16, 15, 29, 0.35);
}

.flash-stack {
  margin: 14px 0;
  display: grid;
  gap: 8px;
}

.flash-message {
  border: 1px solid var(--border-fuchsia-soft);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.flash-success {
  border-color: rgba(74, 222, 128, 0.4);
}

.flash-error {
  border-color: rgba(248, 113, 113, 0.45);
}

.flash-warning {
  border-color: rgba(251, 191, 36, 0.45);
}

.bulk-assign-form {
  margin-bottom: 10px;
}

.bulk-assign-bar {
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(16, 15, 29, 0.75));
  margin-bottom: 10px;
}

.bulk-assign-bar label {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.bulk-assign-bar select {
  min-width: 280px;
  background: rgba(16, 15, 29, 0.85);
  color: var(--text-light);
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 9px;
  padding: 8px 10px;
}

.sim-row {
  display: grid;
  grid-template-columns: 2.1fr 1.6fr 1fr 1.4fr 1.35fr 0.9fr 0.9fr;
  gap: 10px;
  align-items: center;
}

.sim-row.sim-row-bulk {
  grid-template-columns: 0.45fr 2.1fr 1.6fr 1fr 1.4fr 1.35fr 0.9fr 0.9fr;
}

.customer-row {
  display: grid;
  grid-template-columns: 1.8fr 1.8fr 0.9fr 0.9fr 1.1fr 1.1fr 0.8fr;
  gap: 10px;
  align-items: center;
}

.sim-row-head {
  color: var(--text-gray400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 8px 12px 10px;
}

.customer-row-head {
  color: var(--text-gray400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 8px 12px 10px;
}

.sort-link {
  color: var(--text-gray400);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sort-link:hover {
  color: var(--fuchsia-400);
}

.sort-arrow {
  color: var(--fuchsia-400);
  font-size: 0.72rem;
  line-height: 1;
}

.sim-row-item {
  margin: 8px 0;
  padding: 13px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.customer-row-item {
  margin: 8px 0;
  padding: 13px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.customer-row-item:hover {
  border-color: rgba(217, 70, 239, 0.42);
  box-shadow: 0 8px 16px rgba(217, 70, 239, 0.16);
  transform: translateY(-1px);
}

.sim-row-item:hover {
  border-color: rgba(217, 70, 239, 0.42);
  box-shadow: 0 8px 16px rgba(217, 70, 239, 0.16);
  transform: translateY(-1px);
}

.sim-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--fuchsia-500);
}

.sim-empty {
  grid-template-columns: 1fr;
  text-align: center;
  color: var(--text-muted);
}

.tariff-row {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.9fr 0.95fr 0.6fr 1.8fr 0.7fr;
  gap: 10px;
  align-items: center;
}

.tariff-row.tariff-row-main-admin {
  grid-template-columns: 1.35fr 1fr 0.9fr 0.95fr 0.55fr 1.7fr 1.7fr 0.65fr;
}

.tariff-row.tariff-row-no-core {
  grid-template-columns: 1.7fr 1fr 1.05fr 0.7fr 1.9fr 0.8fr;
}

.tariff-row-head {
  color: var(--text-gray400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 8px 12px 10px;
}

.tariff-row-item {
  margin: 8px 0;
  padding: 13px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.tariff-row-item:hover {
  border-color: rgba(217, 70, 239, 0.42);
  box-shadow: 0 8px 16px rgba(217, 70, 239, 0.16);
  transform: translateY(-1px);
}

.pooled-data-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pooled-data-cell .pool-progress {
  margin-top: 0;
}

.pooled-data-cell .map-status {
  margin-top: 0;
  line-height: 1.25;
}

.muted-cell {
  color: var(--text-gray400);
}

.status-pill {
  display: inline-block;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.status-active {
  color: #86efac;
  background: rgba(22, 163, 74, 0.18);
}

.status-suspended,
.status-cancelled {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.16);
}

.status-stock,
.status-dispatched,
.status-trial {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.18);
}

.per-page-form {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.per-page-form select {
  background: rgba(16, 15, 29, 0.8);
  color: var(--text-light);
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 8px;
  padding: 6px 8px;
}

.pagination {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pagination-meta {
  color: var(--text-muted);
  font-weight: 600;
}

.sims-filters {
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.filter-field {
  display: grid;
  gap: 6px;
}

.filter-field label {
  color: var(--text-gray400);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.filter-field input,
.filter-field select {
  width: 100%;
  background: rgba(16, 15, 29, 0.82);
  color: var(--text-light);
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 8px;
  padding: 8px 9px;
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.customer-form-card {
  margin-top: 10px;
}

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

.customer-form-field {
  display: grid;
  gap: 6px;
}

.customer-form-field label {
  color: var(--text-gray400);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.customer-form-field input,
.customer-form-field select,
.customer-form-field textarea {
  width: 100%;
  background: rgba(16, 15, 29, 0.82);
  color: var(--text-light);
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 8px;
  padding: 8px 9px;
}

.customer-form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-field {
  align-items: start;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: normal;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 4px;
  background: rgba(16, 15, 29, 0.9);
  cursor: pointer;
  position: relative;
  margin: 0;
}

.checkbox-label input[type="checkbox"]:checked {
  border-color: var(--fuchsia-500);
  background: linear-gradient(145deg, var(--fuchsia-600), var(--fuchsia-400));
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 3px;
  height: 8px;
  border: solid #100f1d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.full-width-field {
  grid-column: 1 / -1;
}

.name-builder-shell {
  display: grid;
  gap: 8px;
}

.name-builder-shell > label {
  color: var(--text-gray400);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.name-builder-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.name-builder-row input {
  min-width: 72px;
  max-width: 180px;
  background: rgba(16, 15, 29, 0.82);
  color: var(--text-light);
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 8px;
  padding: 8px 9px;
  font-weight: 700;
}

.name-builder-row input[readonly] {
  color: #f3f4f6;
}

.name-builder-row input#id_name_segment {
  min-width: 120px;
}

.name-sep {
  color: var(--fuchsia-500);
  font-weight: 800;
}

.form-error {
  margin: 0;
  color: #fda4af;
  font-size: 0.82rem;
}

.modal-backdrop {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(520px, 92vw);
  background: transparent;
}

.modal-backdrop::backdrop {
  background: rgba(16, 15, 29, 0.72);
  backdrop-filter: blur(4px);
}

.modal-card {
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(16, 15, 29, 0.7));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px;
}

.modal-card h3 {
  margin-top: 0;
}

.modal-field {
  display: grid;
  gap: 6px;
}

.modal-field label {
  color: var(--text-gray400);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.modal-field input {
  width: 100%;
  background: rgba(16, 15, 29, 0.82);
  color: var(--text-light);
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 8px;
  padding: 8px 9px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.login-layout {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.login-brand-panel {
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(16, 15, 29, 0.58));
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  padding: 1.6rem;
  box-shadow: 0 16px 32px rgba(16, 15, 29, 0.34);
  text-align: center;
}

.login-title {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.login-highlights {
  margin: 1rem auto 0;
  padding-left: 1.1rem;
  color: var(--text-light);
  text-align: left;
  width: fit-content;
}

.login-highlights li {
  margin: 0.45rem 0;
}

.login-card {
  border: 1px solid var(--border-fuchsia-soft);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(16, 15, 29, 0.62));
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  padding: 1.6rem;
  box-shadow: 0 16px 32px rgba(16, 15, 29, 0.34);
  text-align: center;
}

.login-form-title {
  margin: 0.4rem 0 0.4rem;
  font-size: 1.5rem;
  color: var(--text-light);
}

.login-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  text-align: left;
}

.login-form label {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.login-form input {
  display: block;
  width: 100%;
  padding: 0.72rem 0.78rem;
  border-radius: 10px;
  border: 1px solid rgba(217, 70, 239, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-main);
}

.login-form input:focus {
  outline: none;
  border-color: rgba(255, 0, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.22);
}

.login-form .btn {
  width: 100%;
  text-align: center;
  margin-top: 0.35rem;
}

.login-errors {
  border: 1px solid rgba(255, 0, 255, 0.35);
  background: rgba(255, 0, 255, 0.08);
  color: var(--text-light);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
}

.status-badge-connected {
  color: #7ef7b2;
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.45);
}

.status-badge-disconnected {
  color: #ff9ca7;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
}

@media (max-width: 700px) {
  .nav {
    min-height: 64px;
  }
  nav a {
    margin-left: 0.7rem;
    font-size: 0.92rem;
  }
  .nav-primary {
    gap: 4px;
  }
  .account-menu summary {
    width: 34px;
    height: 34px;
  }
  .hero {
    padding: 4rem 0 3rem;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    order: 2;
  }
  .login-card {
    order: 1;
  }
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .customer-detail-grid {
    grid-template-columns: 1fr;
  }
  .sim-row-head {
    display: none;
  }
  .sim-row-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sim-row-item > div::before {
    content: attr(data-label);
    display: block;
    color: var(--text-gray400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.69rem;
    margin-bottom: 3px;
  }
  .sim-empty > div::before {
    content: "";
  }
  .customer-row-head {
    display: none;
  }
  .customer-row-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .customer-row-item > div::before {
    content: attr(data-label);
    display: block;
    color: var(--text-gray400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.69rem;
    margin-bottom: 3px;
  }
  .tariff-row-head {
    display: none;
  }
  .tariff-row-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tariff-row-item > div::before {
    content: attr(data-label);
    display: block;
    color: var(--text-gray400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.69rem;
    margin-bottom: 3px;
  }
  .customer-form-grid {
    grid-template-columns: 1fr;
  }
}
