/* Rido Hosting — hosting.rido.asia
   Same palette as rido.asia: ink #252525, brand yellow #FCD552. */

:root {
  --bg:        #FFFFFF;
  --bg-alt:    #FAFAF8;
  --surface:   #FFFFFF;
  --surface-2: #F5F5F2;
  --line:      #E6E5E0;
  --ink:       #252525;
  --ink-2:     #55555A;
  --ink-3:     #6E6E73;
  --yellow:    #FCD552;

  --radius: 16px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

/* The pages toggle `hidden`; a class that sets `display` must not undo it. */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 560px; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */

.site-header {
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 66px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 30px; width: auto; }
.header-tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- page ---------- */

.pay {
  flex: 1;
  padding: 64px 0 56px;
  background:
    radial-gradient(760px 320px at 10% -8%, rgba(252,213,82,.30), transparent 68%),
    var(--bg);
}

.eyebrow {
  margin: 0 0 16px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 800;
}
.lede { margin: 0 0 32px; color: var(--ink-2); }

.native { font-size: .72em; font-weight: 600; color: var(--ink-3); }

.mono {
  --brand-ink: color-mix(in srgb, var(--brand, var(--ink)) 70%, #000);
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  font-size: 21px; font-weight: 800; line-height: 1;
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand, var(--ink)) 13%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand, var(--ink)) 32%, #fff);
}

/* ---------- the bill ---------- */

.bill {
  position: relative;
  padding: 28px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -28px rgba(37,37,37,.35);
  overflow: hidden;
}
.bill::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand, var(--ink));
}

.bill-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}

.bill-name {
  margin: 0 0 2px;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.15; letter-spacing: -0.03em; font-weight: 800;
}
.bill-domain { margin: 0 0 12px; font-size: 14px; color: var(--ink-3); }
.bill-includes { margin: 0 0 22px; font-size: 15px; color: var(--ink-2); }

.bill-amount {
  display: flex; align-items: baseline; gap: 6px;
  margin: 0 0 20px; padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.bill-amount small { font-size: 15px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }

.bill-hint { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }

.status {
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2);
  white-space: nowrap;
}
.status-ok   { color: #047857; border-color: rgba(4,120,87,.32);  background: rgba(4,120,87,.08); }
.status-warn { color: #92400E; border-color: rgba(146,64,14,.32); background: rgba(146,64,14,.08); }
.status-bad  { color: #B91C1C; border-color: rgba(185,28,28,.32); background: rgba(185,28,28,.08); }
.status-muted { color: var(--ink-3); background: var(--surface-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px;
  font: inherit; font-size: 15.5px; font-weight: 650;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { cursor: default; opacity: .55; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--yellow); color: var(--ink); }
.btn-block { width: 100%; }

.notice {
  margin: 16px 0 0; padding: 11px 14px; border-radius: 10px;
  font-size: 14px; border: 1px solid var(--line);
}
.notice-ok    { color: #065F46; background: rgba(4,120,87,.08);  border-color: rgba(4,120,87,.28); }
.notice-err   { color: #991B1B; background: rgba(185,28,28,.07); border-color: rgba(185,28,28,.26); }
.notice-muted { color: var(--ink-2); background: var(--surface-2); }

.fine { margin: 18px 4px 0; font-size: 13px; color: var(--ink-3); }

/* ---------- live subscription details ---------- */

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin: 0 0 22px; padding: 14px 16px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px;
}
.facts div { min-width: 0; }
.facts dt {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.facts dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 650; }

.history { margin: 22px 0 0; }
.history h2 { margin: 0 0 10px; font-size: 1rem; letter-spacing: -0.01em; }
.table-wrap {
  overflow-x: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.history table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history th, .history td { padding: 10px 14px; text-align: left; white-space: nowrap; }
.history th {
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.history tbody tr + tr td { border-top: 1px solid var(--line); }
.history td:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 650; }

.back {
  display: inline-block; margin: 20px 4px 0;
  font-size: 14px; font-weight: 650; text-decoration: none; color: var(--ink-2);
}
.back:hover { color: var(--ink); }

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- site list ---------- */

.sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.site-link {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.site-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.site-text { display: grid; flex: 1; min-width: 0; }
.site-text b { font-size: 1.1rem; letter-spacing: -0.02em; }
.site-text small { font-size: 13.5px; color: var(--ink-3); }
.site-arrow { font-weight: 700; color: var(--ink-3); transition: transform .15s ease; }
.site-link:hover .site-arrow { transform: translateX(3px); color: var(--ink); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 26px 0 32px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 28px;
}
.copy { margin: 0; font-size: 13.5px; color: var(--ink-3); text-decoration: none; }
a.copy:hover { color: var(--ink); }

@media (max-width: 560px) {
  .pay { padding: 40px 0 40px; }
  .bill { padding: 22px 20px 20px; }
  .brand-logo { height: 26px; }
}
