
:root {
  color-scheme: dark;
  --bg: #10151d;
  --surface: #171e28;
  --surface-light: #1c2633;
  --border: #2b3543;
  --text: #f4f6fa;
  --muted: #9ba8b8;
  --red: #ed344b;
  --green: #20c878;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(237, 52, 75, 0.09), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #ff7181;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* Header */

.site-header {
  min-height: 78px;
  padding: 16px max(5%, calc((100% - 1100px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(16, 21, 29, 0.88);
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff5669, #cf2037);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(237, 52, 75, 0.2);
}

.brand strong,
.footer-brand {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.7px;
}

.header-help {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #e5eaf1;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.header-help:hover {
  border-color: var(--red);
  background: rgba(237, 52, 75, 0.08);
}

/* Main layout */

.page-container {
  width: min(100% - 36px, 920px);
  margin: 0 auto;
}

.intro {
  padding: 60px 0 28px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff7887;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(32, 200, 120, 0.5);
}

.intro h1 {
  margin: 12px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -1.8px;
}

.intro h1 span {
  color: var(--red);
}

.intro > p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

/* Lookup */

.lookup-card,
.account-section,
.support-section {
  margin-top: 22px;
}

.lookup-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #1a222e, #151b24);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.heading-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(237, 52, 75, 0.12);
  color: #ff6578;
  font-size: 30px;
}

.section-heading h2,
.support-intro h2,
.payment-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}

.section-heading p,
.support-intro p,
.payment-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

#lookup-form label {
  display: block;
  margin-bottom: 8px;
  color: #dce3ed;
  font-size: 12px;
  font-weight: 600;
}

.lookup-controls {
  display: flex;
  gap: 10px;
}

.lookup-controls input {
  min-width: 0;
  flex: 1;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #364151;
  border-radius: 11px;
  outline: none;
  background: #10151d;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.lookup-controls input::placeholder {
  color: #677587;
}

.lookup-controls input:focus {
  border-color: var(--red);
}

#lookup-button {
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #f04459, #d9263e);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

#lookup-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

#lookup-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

#lookup-button span {
  margin-left: 7px;
  font-size: 17px;
}

.message {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Customer account */

.account-section {
  display: block;
}

.account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 0 18px;
}

.account-top h2 {
  margin: 5px 0 2px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.username-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.username-line strong {
  color: #e6ebf2;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface-light);
  color: #dbe3ec;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

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

.billing-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.card-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.billing-card > strong {
  display: block;
  margin: 9px 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(19px, 3vw, 26px);
  overflow-wrap: anywhere;
}

.bill-amount {
  border-color: rgba(237, 52, 75, 0.35);
  background: linear-gradient(135deg, rgba(237, 52, 75, 0.13), #191e28);
}

.bill-amount > strong {
  color: #ff687b;
  font-size: 32px;
}

.card-note {
  color: var(--muted);
  font-size: 12px;
}

/* Payment */

.payment-card {
  margin-top: 18px;
  padding: 25px;
  border: 1px solid rgba(32, 200, 120, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #172b2a, #151f27);
}

.payment-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.payment-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(32, 200, 120, 0.15);
  color: #62e5ad;
  font-size: 26px;
  font-weight: 700;
}

.payment-heading .eyebrow {
  color: #62e5ad;
}

.payment-number-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
  padding: 17px;
  border: 1px solid #31483f;
  border-radius: 13px;
  background: rgba(5, 15, 14, 0.35);
}

.payment-number-box strong {
  display: block;
  margin-top: 5px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  letter-spacing: 0.5px;
}

.copy-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #427361;
  border-radius: 10px;
  background: #213e34;
  color: #d5ffeb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover {
  background: #2a5143;
}

.payment-steps {
  display: grid;
  gap: 13px;
  margin-top: 23px;
}

.payment-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.payment-steps > div > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #244b3b;
  color: #7be9ba;
  font-size: 12px;
  font-weight: 700;
}

.payment-steps p {
  margin: 3px 0 0;
  color: #d0dbd8;
  font-size: 13px;
}

.payment-notice {
  margin: 22px 0 0;
  padding-top: 15px;
  border-top: 1px solid #30433d;
  color: #aabbb5;
  font-size: 12px;
}

/* Support */

.support-section {
  margin-top: 50px;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, #1a222e, #151b24);
}

.support-intro {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.support-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #354458;
  border-radius: 14px;
  background: #263449;
  font-size: 23px;
}

.support-intro h2 {
  margin-top: 3px;
  font-size: 24px;
}

.support-intro p {
  max-width: 530px;
  line-height: 1.7;
}

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

.support-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #303b4a;
  border-radius: 16px;
  background: #111821;
  transition: border-color 0.2s, transform 0.2s;
}

.support-card:hover {
  border-color: #46566b;
  transform: translateY(-2px);
}

.support-number-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.phone-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(237, 52, 75, 0.13);
  color: #ff7181;
  font-size: 22px;
}

.support-number-row h3 {
  margin: 4px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.1px;
  overflow-wrap: anywhere;
}

.support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 19px;
}

.support-actions a {
  min-width: 0;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: filter 0.2s, transform 0.2s;
}

.support-actions a:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.call-button {
  border-color: #38485b !important;
  background: #243245;
  color: #f0f4fa;
}

.whatsapp-button {
  background: #146c4a;
  color: #ffffff;
}

.whatsapp-button span {
  font-size: 17px;
}

.support-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Footer */

.site-footer {
  margin-top: 45px;
  padding: 25px 18px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-brand {
  font-size: 17px;
}

.site-footer p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 11px;
}

/* Responsive */

@media (max-width: 600px) {
  .site-header {
    min-height: 70px;
    padding: 13px 18px;
  }

  .brand-icon {
    width: 39px;
    height: 39px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 8px;
  }

  .header-help {
    padding: 8px 10px;
    font-size: 11px;
  }

  .page-container {
    width: calc(100% - 28px);
  }

  .intro {
    padding: 43px 0 23px;
  }

  .intro h1 {
    letter-spacing: -1.2px;
  }

  .intro > p {
    font-size: 13px;
  }

  .lookup-card {
    padding: 19px;
  }

  .section-heading {
    gap: 11px;
  }

  .section-heading h2 {
    font-size: 18px;
  }

  .section-heading p {
    font-size: 12px;
  }

  .lookup-controls {
    flex-direction: column;
  }

  .lookup-controls input,
  #lookup-button {
    width: 100%;
    min-height: 49px;
  }

  .account-top {
    align-items: flex-start;
  }

  .account-top h2 {
    font-size: 22px;
  }

  .status-badge {
    max-width: 120px;
    white-space: normal;
    text-align: center;
  }

  .billing-grid {
    gap: 10px;
  }

  .billing-card {
    padding: 15px;
  }

  .card-label {
    font-size: 9px;
    letter-spacing: 0.7px;
  }

  .billing-card > strong {
    font-size: 19px;
  }

  .bill-amount > strong {
    font-size: 27px;
  }

  .card-note {
    font-size: 11px;
  }

  .payment-card {
    padding: 19px;
  }

  .payment-number-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-number-box strong {
    font-size: 24px;
  }

  .copy-button {
    width: 100%;
  }

  .support-section {
    margin-top: 35px;
    padding: 19px;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support-card {
    padding: 18px;
  }

  .support-number-row h3 {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 8px;
  }

  .brand small {
    letter-spacing: 0;
  }

  .header-help {
    font-size: 10px;
  }

  .billing-card {
    padding: 12px;
  }

  .support-section {
    padding: 15px;
  }

  .support-actions {
    gap: 7px;
  }

  .support-actions a {
    font-size: 11px;
  }
}




/* Payment confirmation */
.payment-confirmation {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(120, 150, 190, 0.25);
  border-radius: 16px;
  background: rgba(120, 150, 190, 0.06);
}

.payment-confirmation h2 {
  margin: 8px 0;
}

.payment-confirmation p {
  line-height: 1.6;
}

#payment-confirmation-button {
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border: 0;
  border-radius: 10px;
  background: #1769e0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#payment-confirmation-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#payment-confirmation-message:empty {
  display: none;
}
.payment-confirmation form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.payment-confirmation form label {
  font-weight: 600;
}

.payment-confirmation form input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--border, #303947);
  border-radius: 12px;
  background: var(--surface, #10151d);
  color: inherit;
  font: inherit;
}

.payment-confirmation form button {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent, #16a085);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.payment-confirmation form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}



/* OneNet Payment Confirmation Button */
#payment-confirmation-button {
  background: linear-gradient(135deg, #ff8a00, #ff5a00) !important;
  color: #ffffff !important;
  border: 1px solid #ff8a00 !important;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease,
              box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.22);
}

#payment-confirmation-button:hover:not(:disabled) {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #ff8a00 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.3);
}

#payment-confirmation-button:focus-visible {
  outline: 2px solid #ff8a00;
  outline-offset: 3px;
}

#payment-confirmation-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}



/* =========================================
   ONENET ACCOUNT STATUS COLORS
   ========================================= */

:root {
  --status-green: #20c878;
  --status-green-bg: rgba(32, 200, 120, 0.09);
  --status-green-border: rgba(32, 200, 120, 0.42);

  --status-red: #ff596b;
  --status-red-bg: rgba(237, 52, 75, 0.09);
  --status-red-border: rgba(237, 52, 75, 0.42);

  --status-amber: #ffd166;
  --status-amber-bg: rgba(255, 193, 7, 0.09);
  --status-amber-border: rgba(255, 193, 7, 0.42);

  --status-neutral: #aab6c5;
  --status-neutral-bg: rgba(170, 182, 197, 0.07);
  --status-neutral-border: rgba(170, 182, 197, 0.3);
}

/* Service status badge */
.status-badge {
  gap: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.active {
  color: var(--status-green);
  background: var(--status-green-bg);
  border-color: var(--status-green-border);
}

.status-badge.active::before {
  box-shadow: 0 0 9px rgba(32, 200, 120, 0.55);
}

.status-badge.pending {
  color: var(--status-amber);
  background: var(--status-amber-bg);
  border-color: var(--status-amber-border);
}

.status-badge.expired {
  color: var(--status-red);
  background: var(--status-red-bg);
  border-color: var(--status-red-border);
}

.status-badge.unknown {
  color: var(--status-neutral);
  background: var(--status-neutral-bg);
  border-color: var(--status-neutral-border);
}

/* Payment status card */
.billing-card.payment-status-card {
  transition: border-color 0.2s, background 0.2s;
}

.payment-status-card.status-paid {
  border-color: var(--status-green-border);
  background: linear-gradient(
    145deg,
    var(--status-green-bg),
    var(--surface)
  );
}

.payment-status-card.status-paid > strong {
  color: var(--status-green);
}

.payment-status-card.status-unpaid {
  border-color: var(--status-red-border);
  background: linear-gradient(
    145deg,
    var(--status-red-bg),
    var(--surface)
  );
}

.payment-status-card.status-unpaid > strong {
  color: var(--status-red);
}

.payment-status-card.status-pending {
  border-color: var(--status-amber-border);
  background: linear-gradient(
    145deg,
    var(--status-amber-bg),
    var(--surface)
  );
}

.payment-status-card.status-pending > strong {
  color: var(--status-amber);
}

.payment-status-card.status-unknown {
  border-color: var(--status-neutral-border);
  background: linear-gradient(
    145deg,
    var(--status-neutral-bg),
    var(--surface)
  );
}

.payment-status-card.status-unknown > strong {
  color: var(--status-neutral);
}

/* Expiry card */
.billing-card.expiry-valid {
  border-color: rgba(32, 200, 120, 0.22);
}

.billing-card.expiry-expired {
  border-color: var(--status-red-border);
  background: linear-gradient(
    145deg,
    var(--status-red-bg),
    var(--surface)
  );
}

.billing-card.expiry-expired > strong {
  color: var(--status-red);
}

.billing-card.expiry-unknown {
  border-color: var(--status-neutral-border);
}

.billing-card.expiry-unknown > strong {
  color: var(--status-neutral);
}

/* Accessible keyboard focus */
.status-badge:focus-visible,
.payment-status-card:focus-visible {
  outline: 2px solid var(--status-amber);
  outline-offset: 3px;
}
