
* { box-sizing: border-box; }

:root {
  --blue: #075c73;
  --blue2: #087d99;
  --bg: #f2f7f9;
  --text: #1d2c34;
  --muted: #687b84;
  --border: #d8e2e6;
  --green: #198754;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button, input, select { font: inherit; }

button { cursor: pointer; }

.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #075c73, #0b7f96);
}

.login-card {
  width: min(430px, 100%);
  background: white;
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0,0,0,.25);
}

.drop { font-size: 58px; }

.login-card h1 {
  color: var(--blue);
  margin: 8px 0 4px;
}

.login-card p {
  color: var(--muted);
}

.login-card form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.error {
  min-height: 20px;
  color: #b42318;
}

.topbar {
  background: var(--blue);
  color: white;
}

.topbar-inner {
  max-width: 1120px;
  margin: auto;
  padding: 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.topbar h1 {
  margin: 0 0 5px;
  font-size: clamp(25px, 4vw, 36px);
}

.topbar p {
  margin: 0;
  opacity: .9;
}

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

.container {
  width: min(1120px, calc(100% - 30px));
  margin: 24px auto 60px;
}

.card {
  background: white;
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0,0,0,.06);
}

h2 { margin-top: 0; }

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

input, select {
  width: 100%;
  border: 1px solid #c8d5da;
  border-radius: 8px;
  padding: 12px 13px;
  background: white;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 15px;
  font-weight: 700;
  background: #e6edf0;
  color: #24353d;
}

.btn.primary {
  background: var(--blue2);
  color: white;
}

.btn.light {
  background: white;
  color: var(--blue);
}

.btn.dark {
  background: #06475a;
  color: white;
}

.search-row {
  display: flex;
  gap: 10px;
}

.result {
  margin-top: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

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

.customer-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.customer-head h2 {
  margin: 8px 0 5px;
}

.customer-head p {
  margin: 0;
  color: var(--muted);
}

.customer-buttons {
  display: flex;
  gap: 8px;
}

.badge {
  display: inline-block;
  background: #e4f4f8;
  color: var(--blue);
  padding: 5px 10px;
  border-radius: 30px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 20px 0 14px;
}

.stat {
  background: #f0f5f7;
  padding: 14px;
  border-radius: 10px;
}

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

.stat strong { font-size: 21px; }

.stat.balance {
  background: #e9f7ef;
}

.stat.balance strong {
  color: var(--green);
}

.promotion-box {
  background: #fff8e3;
  border: 1px solid #ecd68b;
  border-radius: 9px;
  padding: 13px;
  margin-bottom: 14px;
}

.prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  background: #f5f8f9;
  padding: 12px;
  border-radius: 9px;
  margin-bottom: 18px;
  font-size: 14px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.action {
  border: 0;
  border-radius: 10px;
  min-height: 82px;
  text-align: left;
  padding: 16px;
}

.action strong,
.action small {
  display: block;
}

.action small {
  margin-top: 5px;
  opacity: .75;
}

.green { background: #e3f5ea; color: #146c3d; }
.yellow { background: #fff4d2; color: #795500; }
.blue { background: #e2f2f7; color: #075c73; }

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th, td {
  padding: 9px 8px;
  border-bottom: 1px solid #e1e8eb;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f4f7f8;
  font-size: 13px;
}

td { font-size: 14px; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.58);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 1000;
}

.modal-card {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 14px;
  padding: 25px;
  position: relative;
}

.modal-card h2 {
  margin: 0 45px 20px 0;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--blue2);
  color: white;
  font-size: 25px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.help {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 380px;
  background: #1f2d34;
  color: white;
  padding: 13px 16px;
  border-radius: 9px;
  z-index: 2000;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}

@media (max-width: 850px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .action-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar-inner,
  .customer-head {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions,
  .customer-buttons {
    width: 100%;
  }

  .top-actions .btn,
  .customer-buttons .btn {
    flex: 1;
  }

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

  .stats {
    grid-template-columns: 1fr;
  }
}
.login-choice{display:grid;gap:12px;margin-top:22px}.back{background:transparent;border:0;color:#075c73;font-weight:700}.online-status{margin:14px 0;padding:10px;border-radius:8px;background:#f4f7f8}.online-status.enabled{background:#e8f7ed;color:#146c3d}.portal-balance{background:#e9f7ef;border-radius:12px;padding:20px;margin:20px 0}.portal-balance span{display:block;color:#687b84}.portal-balance strong{display:block;color:#198754;font-size:38px}.customer-stats{grid-template-columns:repeat(3,1fr)}.amount-row{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.amount-btn{background:#e2f2f7;color:#075c73}.amount-btn.active{background:#087d99;color:white}.amount-row input{max-width:180px}#selectedAmount{font-weight:700;margin:10px 0}#paypal-button-container{max-width:520px;margin-top:15px}.source-paypal{font-weight:700;color:#075c73}@media(max-width:620px){.customer-stats{grid-template-columns:1fr}.amount-row input{max-width:none;width:100%}}