* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(59,130,246,.18), transparent 34rem),
    linear-gradient(180deg, #020617, #07111f 50%, #020617);
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.login-card,
.form-card,
.panel,
.stats div {
  border: 1px solid rgba(147,197,253,.16);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 2rem;
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #020617;
  font-weight: 900;
  font-size: 1.7rem;
}

.brand h1,
.topbar h1 {
  margin: 0;
  font-size: 1.6rem;
}

.brand p,
.topbar p {
  margin: .25rem 0 0;
  color: #94a3b8;
}

input,
textarea,
select {
  width: 100%;
  margin-top: .85rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(0,0,0,.38);
  color: white;
  outline: none;
}

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

button,
.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  color: #020617;
  font-weight: 900;
}

.btn.secondary {
  background: rgba(255,255,255,.06);
  color: white;
  border: 1px solid rgba(255,255,255,.12);
}

.btn.full {
  width: 100%;
}

.error {
  color: #fca5a5;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2,6,23,.75);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.actions {
  display: flex;
  gap: .7rem;
}

.actions .btn {
  margin-top: 0;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats div {
  padding: 1.5rem;
}

.stats strong {
  display: block;
  font-size: 2rem;
}

.stats span {
  color: #94a3b8;
}

.panel,
.form-card {
  padding: 1.4rem;
}

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

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

th,
td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
}

th {
  color: #93c5fd;
}

.row-actions {
  display: flex;
  gap: .5rem;
}

.mini {
  display: inline-flex;
  padding: .55rem .75rem;
  border-radius: 999px;
  background: rgba(96,165,250,.12);
  color: #bfdbfe;
  font-size: .85rem;
  font-weight: 800;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
}

.checks label {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.checks input {
  width: auto;
  margin: 0;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

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

  .actions {
    width: 100%;
  }

  .actions .btn {
    flex: 1;
  }
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin: 0;
}

.panel-head p {
  margin: .35rem 0 0;
  color: #94a3b8;
  font-size: .92rem;
}

.search-input {
  max-width: 340px;
  margin-top: 0;
  border-color: rgba(147,197,253,.22);
  background: rgba(0,0,0,.42);
}

td small {
  display: block;
  margin-top: .25rem;
  color: #94a3b8;
}

.status-wrap {
  display: grid;
  gap: .45rem;
}

.status-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: .42rem .72rem;
  font-size: .78rem;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.12);
}

.status-blue {
  color: #bfdbfe;
  background: rgba(59,130,246,.16);
  border-color: rgba(96,165,250,.35);
}

.status-yellow {
  color: #fde68a;
  background: rgba(234,179,8,.14);
  border-color: rgba(234,179,8,.35);
}

.status-purple {
  color: #ddd6fe;
  background: rgba(139,92,246,.15);
  border-color: rgba(139,92,246,.35);
}

.status-cyan {
  color: #a5f3fc;
  background: rgba(6,182,212,.14);
  border-color: rgba(6,182,212,.35);
}

.status-orange {
  color: #fed7aa;
  background: rgba(249,115,22,.16);
  border-color: rgba(249,115,22,.35);
}

.status-green {
  color: #bbf7d0;
  background: rgba(34,197,94,.15);
  border-color: rgba(34,197,94,.35);
}

.status-gray {
  color: #cbd5e1;
  background: rgba(148,163,184,.12);
  border-color: rgba(148,163,184,.25);
}

.status-red {
  color: #fecaca;
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.35);
}

.mini.whatsapp {
  background: rgba(34,197,94,.14);
  color: #bbf7d0;
}

select {
  min-width: 170px;
}

@media (max-width: 760px) {
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-input {
    max-width: none;
  }

  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }

  .row-actions {
    flex-direction: column;
  }
}

.status-result {
  margin-top: 1rem;
}

.status-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(147,197,253,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}

.status-box strong {
  color: #93c5fd;
}

.status-box h2 {
  margin: .5rem 0 1rem;
}

.order-status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top, rgba(59,130,246,.24), transparent 34rem),
    radial-gradient(circle at bottom left, rgba(239,68,68,.09), transparent 28rem),
    linear-gradient(180deg, #020617, #07111f 52%, #020617);
}

.order-status-card {
  width: min(94vw, 520px);
  border: 1px solid rgba(147,197,253,.18);
  border-radius: 34px;
  background: rgba(255,255,255,.045);
  box-shadow:
    0 30px 90px rgba(0,0,0,.42),
    inset 0 0 42px rgba(96,165,250,.07);
  backdrop-filter: blur(22px);
  padding: 2rem;
  text-align: center;
}

.order-status-logo {
  width: 96px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 0 18px rgba(96,165,250,.36));
}

.order-status-kicker {
  margin: 0;
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.order-status-card h1 {
  margin: .7rem 0 1.4rem;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1;
}

.status-form {
  display: grid;
  gap: .8rem;
}

.status-form input,
.status-form button {
  margin-top: 0;
}

.public-status-box {
  margin-top: 1.4rem;
  padding: 1.4rem;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
}

.public-status-box h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.public-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .72rem 1.1rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: 1px solid;
}

.public-status-yellow {
  color: #fef3c7;
  background: rgba(234,179,8,.14);
  border-color: rgba(250,204,21,.72);
  box-shadow: 0 0 18px rgba(250,204,21,.45), 0 0 44px rgba(234,179,8,.22);
}

.public-status-red {
  color: #fecaca;
  background: rgba(239,68,68,.14);
  border-color: rgba(248,113,113,.75);
  box-shadow: 0 0 18px rgba(248,113,113,.48), 0 0 44px rgba(239,68,68,.25);
}

.public-status-green {
  color: #bbf7d0;
  background: rgba(34,197,94,.14);
  border-color: rgba(74,222,128,.75);
  box-shadow: 0 0 18px rgba(74,222,128,.48), 0 0 44px rgba(34,197,94,.25);
}

.public-status-blue {
  color: #bfdbfe;
  background: rgba(59,130,246,.14);
  border-color: rgba(147,197,253,.75);
  box-shadow: 0 0 18px rgba(96,165,250,.48), 0 0 44px rgba(59,130,246,.25);
}
