@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #1b2524;
  --muted: #6d7c78;
  --paper: #ffffff;
  --panel: #fffdf8;
  --line: #d9ddd5;
  --coral: #e0644c;
  --coral-dark: #b84938;
  --sage: #c8d5c2;
  --shadow: 0 24px 70px rgba(35, 54, 47, .10);
}

* { box-sizing: border-box; }
body { margin: 0; color: #111; background: #fff; font-family: Georgia, "Times New Roman", serif; }
.shell { width: 100%; min-height: 100vh; margin: 0 auto; padding: 0 4px 70px; background: #fff; }
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 67px; margin-bottom: 0; padding: 10px 38px; color: #fff; background: #087cf0; }
.navbar-brand { display: inline-flex; align-items: center; gap: 16px; color: #fff; font-size: 24px; font-weight: 700; text-decoration: none; }
.navbar-logo { display: block; width: 44px; height: 44px; padding: 3px; object-fit: contain; background: #fff; border-radius: 2px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 38px; color: #222; background: #fff; font-size: 18px; font-weight: 700; }
.navbar-add-money { display: inline-block; padding: 9px 16px; font-size: 14px; }
.navbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.navbar-action-link, .navbar-action-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 6px; color: #fff; background: rgba(255,255,255,0.12); text-decoration: none; font-size: 14px; font-weight: 700; }
.navbar-action-btn { border: 1px solid rgba(255,255,255,0.15); }
.navbar-admin-link { margin-right: 12px; color: #fff; font-size: 15px; }
.navbar-logout { padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 4px; color: #fff; background: transparent; cursor: pointer; font: 700 16px Georgia, "Times New Roman", serif; }
.navbar-logout:hover { color: #087cf0; background: #fff; }
.navbar-action-link:hover, .navbar-action-btn:hover { background: rgba(255,255,255,0.22); }
.brand-note, .field-hint { color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; }
.auth-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 610px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.auth-page { display: flex; justify-content: center; min-height: calc(100vh - 67px); padding: 26px 20px 0; background: #fff; }
.auth-card { width: min(510px, 100%); min-height: 365px; padding: 25px 34px 29px; border-radius: 9px; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.auth-card--register { min-height: 0; }
.intro-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 70px; background: var(--sage); overflow: hidden; }
.intro-panel::after { content: ""; position: absolute; width: 340px; height: 340px; right: -110px; bottom: -140px; border: 1px solid rgba(27, 37, 36, .18); border-radius: 50%; box-shadow: 0 0 0 38px rgba(27, 37, 36, .05), 0 0 0 76px rgba(27, 37, 36, .035); }
.intro-panel--register { background: #ead4bd; }
.eyebrow { margin: 0 0 23px; color: var(--coral-dark); font: 500 11px "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 530px; margin-bottom: 24px; font-size: clamp(38px, 5vw, 66px); line-height: .98; letter-spacing: -.055em; }
.intro-copy { max-width: 410px; margin-bottom: 36px; color: #51615c; font-size: 15px; line-height: 1.8; }
.signal-list { display: flex; flex-wrap: wrap; gap: 20px; color: #45534f; font: 500 11px "DM Mono", monospace; }
.signal-list span { display: inline-flex; align-items: center; gap: 8px; }
.signal-list i { width: 7px; height: 7px; display: inline-block; background: var(--coral); border-radius: 50%; }
.quote-mark { margin: 30px 0 0; color: var(--coral); font: 100px Georgia, serif; line-height: .5; }
.quote { margin: 18px 0 0; font: italic 16px Georgia, serif; }
.form-panel { display: flex; flex-direction: column; justify-content: center; padding: 70px clamp(30px, 7vw, 82px); }
.form-heading { text-align: center; }
.form-heading h2 { margin-bottom: 34px; font-size: 28px; letter-spacing: 0; }
.form-heading p { margin-bottom: 34px; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 21px; }
.field { display: grid; gap: 9px; }
.field label { font-size: 16px; font-weight: 700; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; }
.field input { width: 100%; padding: 11px 12px; border: 1px solid #c9c9c9; border-radius: 5px; outline: none; color: #111; background: #eaf2ff; font: 16px Georgia, "Times New Roman", serif; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(224, 100, 76, .12); }
.field input::placeholder { color: #aab2ac; }
.button { border: 0; border-radius: 5px; padding: 13px 19px; cursor: pointer; font: 700 16px Georgia, "Times New Roman", serif; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: white; background: #087cf0; }
.button--primary:hover { background: #0565c7; }
.button--quiet { color: var(--ink); background: var(--sage); }
.remember-field { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; }
.remember-field input { width: 14px; height: 14px; accent-color: #087cf0; }
.form-footer { margin: 17px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; text-align: center; }
a { color: var(--coral-dark); font-weight: 700; text-decoration: none; }
.flash, .error-summary { margin: -40px auto 24px; padding: 12px 16px; color: #53625d; background: #e3ecde; font-size: 12px; }
.flash--notice { animation: hide-notice 3s ease forwards; }
.flash--alert, .error-summary { color: #963c2f; background: #f7dfd8; }
.error-summary { margin: 0 0 24px; line-height: 1.5; }

@keyframes hide-notice {
  0%, 75% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
.home-panel { display: flex; align-items: end; justify-content: space-between; min-height: 500px; padding: 70px; background: var(--panel); box-shadow: var(--shadow); }
.home-panel h1 { margin-bottom: 18px; }
.dashboard-page { display: flex; justify-content: center; padding: 44px 20px; }
.admin-dashboard-page { min-height: calc(100vh - 130px); align-items: flex-start; background: #f5f7fb; }
.dashboard-card { width: min(520px, 100%); padding: 42px; text-align: center; border: 1px solid #e2e2e2; border-radius: 10px; background: #fff; box-shadow: 0 5px 20px rgba(0, 0, 0, .08); }
.admin-home-panel { width: min(1000px, 100%); padding: 30px; border: 1px solid #e1e5ec; border-radius: 14px; background: #fff; box-shadow: 0 12px 35px rgba(26, 39, 62, .10); }
.admin-home-panel .admin-header { margin-bottom: 18px; }
.admin-home-panel .admin-header h1 { margin-bottom: 0; }
.admin-count { color: #b7791f; font-size: 14px; font-weight: 700; }
.admin-home-panel .admin-table-wrap { background: #fff; }
.admin-home-panel .admin-payment-row { min-height: 84px; background: #fff; }
.admin-home-panel .admin-payment-row > div:first-child { display: flex; align-items: center; gap: 16px; flex: 1; flex-wrap: wrap; }
.admin-home-panel .admin-payment-row > div:first-child strong { color: #1b2524; font-size: 15px; }
.admin-home-panel .admin-payment-row span { color: #5d6b78; }
.admin-home-panel .admin-payment-actions { align-self: center; }
.admin-user-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.admin-user-table th, .admin-user-table td { padding: 14px 16px; border-bottom: 1px solid #edf0f4; text-align: left; vertical-align: middle; }
.admin-user-table th { background: #f3f6fb; color: #314052; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.admin-user-table td { color: #2d3748; font-size: 15px; }
.admin-user-table tbody tr:hover { background: #f9fbff; }
.admin-user-table .amount-cell { font-weight: 700; color: #0f766e; }
.admin-user-empty { padding: 18px; color: #4b5563; }
.dashboard-card h1 { max-width: none; margin: 0 0 14px; font-size: 42px; }
.dashboard-copy { margin-bottom: 28px; color: #666; font: 16px Georgia, "Times New Roman", serif; }
.dashboard-button { display: inline-block; }
.payment-page { display: flex; justify-content: center; padding: 24px 16px 50px; }
.payment-card { width: min(440px, 100%); padding: 24px; border-radius: 16px; background: #fff; box-shadow: 0 10px 35px rgba(0, 0, 0, .13); }
.wallet-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 13px 15px; border-radius: 10px; color: #fff; background: #087cf0; font-size: 13px; }
.wallet-summary strong { font-size: 21px; }
.payment-header { margin-bottom: 18px; text-align: center; }
.payment-header h1 { max-width: none; margin: 0 0 4px; font-size: 24px; letter-spacing: 0; }
.payment-header p { margin: 0; color: #777; font-size: 13px; }
.payee-box { display: grid; gap: 5px; margin-bottom: 16px; padding: 11px 12px; border-radius: 8px; color: #555; background: #f8f9fc; text-align: center; font-size: 13px; }
.payee-box strong { color: #1f2430; }
.payee-box span { overflow-wrap: anywhere; color: #0e7c7b; font: 11px ui-monospace, Menlo, monospace; }
.payment-label { display: block; margin-bottom: 7px; color: #555; font: 700 11px Georgia, "Times New Roman", serif; letter-spacing: .5px; text-transform: uppercase; }
.amount-select { width: 100%; padding: 12px 15px; border: 2px solid #0e7c7b; border-radius: 10px; color: #0e7c7b; background: #f0fbfb; font: 700 20px Georgia, "Times New Roman", serif; cursor: pointer; }
.qr-generate-button { display: block; width: 100%; margin-top: 12px; }
.qr-wrap { display: flex; min-height: 300px; margin-top: 18px; padding: 18px; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: #f8f9fc; }
.qr-wrap--hidden { display: none !important; }
.qr-box { padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.qr-box img { display: block; width: 260px; height: 260px; object-fit: contain; }
.amount-label { margin-top: 12px; color: #0e7c7b; font: 800 26px Georgia, "Times New Roman", serif; }
.order-label { margin-top: 6px; color: #68736f; font: 11px Georgia, "Times New Roman", serif; text-align: center; overflow-wrap: anywhere; }

:root {
  --bg: #0b0d12;
  --card: #12151c;
  --border: #232833;
  --text: #e6e9ef;
  --muted: #8b93a7;
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.55);
  --amber: #f59e0b;
  --radius: 999px;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.1px;
  user-select: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.03) inset,
    0 8px 24px -12px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.verify-badge .label { color: var(--muted); }

.verify-badge .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.4px;
}

.verify-badge .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

.verify-badge .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0%   { transform: scale(1); opacity: 0.7; }
  75%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.verify-badge .divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3a4152;
  display: inline-block;
}

.verify-badge .next {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verify-badge .count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-weight: 700;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease;
}

.verify-badge .count.warn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.total-timer {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
  user-select: none;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.1s;
  box-shadow: 0 8px 24px -14px rgba(0,0,0,0.6);
}

.total-timer .icon {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.total-timer .value {
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  min-width: 62px;
  text-align: right;
}

.progress {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--green), #16a34a);
  transform-origin: left;
  animation: progress 10s linear infinite;
  opacity: 0.6;
}

@keyframes progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --card: #ffffff;
    --border: #e4e8f0;
    --text: #0f172a;
    --muted: #64748b;
  }

  body {
    background: radial-gradient(1200px 600px at 50% -10%, #eef4ff 0%, transparent 60%), var(--bg);
  }

  .verify-badge,
  .total-timer {
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px -14px rgba(15,23,42,0.25);
  }
}

.qr-status { min-height: 17px; margin: 7px 0 0; color: #68736f; font-size: 11px; text-align: center; }
.recharge-success { margin-top: 18px; padding: 16px; border: 1px solid #b6e2c4; border-radius: 10px; color: #176b38; background: #e5f7ea; font-weight: 700; text-align: center; }
.live-payment-status { margin-top: 12px; padding: 11px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; text-align: center; }
.live-payment-status--idle { color: #68736f; background: #eef0f5; }
.live-payment-status--pending { color: #8a5b00; background: #fff3cd; }
.live-payment-status--success { color: #176b38; background: #e5f7ea; }
.live-payment-status--error { color: #a3362a; background: #fbe2df; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.payment-button { flex: 1; min-width: 110px; padding: 11px 14px; border: 0; border-radius: 8px; color: #fff; cursor: pointer; font: 700 13px Georgia, "Times New Roman", serif; text-align: center; text-decoration: none; }
.payment-button--primary { background: #0e7c7b; }
.payment-button--pay { background: #e85a4f; }
.payment-button--secondary { color: #333; background: #eef0f5; }
.payment-button--download { color: #fff; background: #087cf0; }
.payment-button--download:hover { background: #0565c7; }
.payment-button--copied { background: #1a8f4a; }
.payment-link-label { margin-top: 15px; }
.upi-id-field { width: 100%; padding: 10px; border: 1px solid #d6dae3; border-radius: 6px; background: #fafbfd; color: #333; font: 12px ui-monospace, Menlo, monospace; }
.upi-id-row { display: flex; gap: 8px; }
.upi-copy-button { padding: 0 14px; border: 0; border-radius: 6px; color: #fff; background: #0e7c7b; cursor: pointer; font: 700 12px Georgia, "Times New Roman", serif; }
.upi-copy-button:hover { background: #0a5f5e; }
.payment-footer { margin: 16px 0 0; color: #aaa; font-size: 11px; line-height: 1.5; text-align: center; }
.utr-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e5e7eb; }
.utr-row { display: flex; gap: 8px; }
.utr-row input { min-width: 0; flex: 1; padding: 11px 12px; border: 1px solid #c9c9c9; border-radius: 6px; background: #fafbfd; font: 14px Georgia, "Times New Roman", serif; }
.utr-row input:disabled { color: #8a8f8d; background: #eef0f5; cursor: not-allowed; }
.utr-row .payment-button { flex: 0 0 auto; }
.manual-approval-button { width: 100%; margin-top: 8px; }
.manual-approval-button { color: #fff; background: #e85a4f; font-size: 14px; box-shadow: 0 4px 12px rgba(232, 90, 79, .28); }
.manual-approval-button:hover:not(:disabled) { background: #c9443a; transform: translateY(-1px); }
.manual-approval-button:disabled { opacity: .55; cursor: not-allowed; }
.manual-approval-button--sent,
.manual-approval-button--sent:disabled { opacity: 1; color: #fff; background: #1a8f4a; cursor: default; box-shadow: 0 4px 12px rgba(26, 143, 74, .24); }
.manual-approval-confirmation { margin-top: 10px; padding: 11px 12px; border: 1px solid #b6e2c4; border-radius: 8px; color: #176b38; background: #e5f7ea; font-size: 12px; font-weight: 700; text-align: center; }
.payment-status-list { margin-top: 20px; }
.payment-status-list h2 { margin: 0 0 9px; font-size: 16px; }
.payment-status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #e5e7eb; font-size: 12px; }
.wallet-ledger { margin-top: 20px; }
.wallet-ledger h2 { margin: 0 0 9px; font-size: 16px; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #e5e7eb; font-size: 12px; }
.ledger-row span { display: grid; gap: 3px; }
.ledger-row small { color: #888; font-size: 10px; }
.ledger-row strong { color: #1a8f4a; white-space: nowrap; }
.ledger-page { width: min(900px, calc(100% - 76px)); margin: 0 auto; padding: 36px 0; }
.ledger-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ledger-header h1 { margin: 0 0 8px; font-size: 40px; }
.ledger-balance { margin: 0; color: #666; font-size: 16px; }
.ledger-wallet-id { margin: 0 0 6px; color: #666; font: 700 14px ui-monospace, Menlo, monospace; }
.ledger-balance strong { color: #087cf0; }
.ledger-table { overflow: hidden; border: 1px solid #e2e2e2; border-radius: 8px; background: #fff; }
.ledger-table .ledger-row { padding: 16px 20px; }
.ledger-credit { color: #1a8f4a !important; }
.status { white-space: nowrap; font-size: 12px; }
.status--pending { color: #b7791f; }
.status--approved { color: #1a8f4a; }
.status--rejected { color: #c53030; }
.admin-page { padding: 34px 38px; }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.admin-header-actions { display: flex; align-items: center; gap: 14px; }
.admin-verification-indicator { padding: 7px 10px; border-radius: 999px; color: #176b38; background: #dff5e6; font: 700 11px "DM Mono", monospace; white-space: nowrap; }
.admin-verification-indicator--inactive { color: #8a5b00; background: #fff3cd; }
.admin-credit-panel { margin-bottom: 25px; padding: 18px 20px; border: 1px solid #e2e2e2; border-radius: 8px; background: #fff; }
.admin-credit-panel h2 { margin: 0 0 14px; font-size: 18px; }
.admin-credit-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-credit-form select { width: min(360px, 100%); }
.admin-token-input { width: 190px; padding: 8px 10px; border: 1px solid #cdd2dc; border-radius: 4px; font: 12px Georgia, "Times New Roman", serif; }
.admin-header h1 { margin: 0; font-size: 38px; }
.admin-back { color: #087cf0; font-size: 14px; }
.admin-table-wrap { overflow: hidden; border: 1px solid #e2e2e2; border-radius: 8px; }
.admin-payment-filter { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #e2e2e2; background: #fafafa; }
.admin-payment-filter label { color: #555; font-size: 12px; font-weight: 700; }
.admin-payment-filter .admin-token-input { width: min(320px, 100%); }
.admin-payment-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid #e2e2e2; }
.admin-payment-row--filtered { display: none !important; }
.admin-payment-row:last-child { border-bottom: 0; }
.admin-payment-row > div:first-child { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-payment-row > div:first-child strong { white-space: nowrap; }
.admin-payment-row span { color: #666; font-size: 13px; }
.admin-payment-row .admin-payment-response { color: #0e7c7b; font-weight: 700; }
.admin-payment-actions { display: flex; align-items: center; gap: 8px; }
.admin-action { padding: 8px 12px; border: 0; border-radius: 4px; color: #fff; cursor: pointer; font: 700 12px Georgia, "Times New Roman", serif; }
.admin-action--approve { background: #1a8f4a; }
.admin-action--reject { background: #c53030; }
.admin-action--sync { background: #087cf0; }
.admin-sync-status { color: #666; font-size: 12px; }
.admin-empty { padding: 20px; color: #666; }
.admin-note { color: #666; font-size: 13px; }
.admin-danger-panel { border-color: #e8c9c3; background: #fffaf9; }
.admin-action--danger { background: #c53030; }
.admin-action--danger:hover { background: #9b2c2c; }
.admin-file-input { max-width: 360px; font: 12px Georgia, "Times New Roman", serif; }
.admin-backup-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-backup-heading h2 { margin-bottom: 6px; }
.admin-backup-list { margin-top: 15px; border-top: 1px solid #e2e2e2; }
.admin-backup-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #e2e2e2; }
.admin-backup-row div { display: grid; gap: 4px; }
.admin-backup-row span { color: #666; font-size: 12px; }

/* ---- Extension releases ------------------------------------------------ */

.release-page { width: min(1080px, calc(100% - 76px)); margin: 0 auto; padding: 40px 0 70px; }
.release-hero { margin-bottom: 30px; }
.release-hero h1 { max-width: none; margin: 0 0 12px; font-size: 46px; letter-spacing: -.03em; }
.release-hero-copy { max-width: 620px; margin: 0; color: #5d6b78; font-size: 16px; line-height: 1.7; }
.release-hero-copy code, .admin-note code, .field-hint code { padding: 2px 6px; border-radius: 4px; background: #eef2f8; color: #2b3a4a; font: 12px ui-monospace, Menlo, monospace; }

.release-chip { padding: 4px 10px; border-radius: 999px; font: 700 10.5px "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.release-chip--live { color: #176b38; background: #dff5e6; }
.release-chip--draft { color: #5d6b78; background: #eef0f5; }
.release-chip--stable { color: #0b5ca8; background: #e2eefc; }
.release-chip--beta { color: #8a5b00; background: #fff3cd; }
.release-chip--warn { color: #a3362a; background: #fbe2df; }
.release-host { color: #0e7c7b !important; font: 11px ui-monospace, Menlo, monospace !important; }

.release-latest { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 0; overflow: hidden; border: 1px solid #e2e2e2; border-radius: 12px; background: #fff; box-shadow: 0 12px 35px rgba(26, 39, 62, .09); }
.release-latest-main { min-width: 0; padding: 32px 34px; border-top: 4px solid #087cf0; }
.release-latest-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.release-latest-head time { color: #7a8794; font: 12px "DM Mono", monospace; }
.release-latest-main h2 { margin: 0 0 20px; font-size: 32px; letter-spacing: -.02em; }
.release-nonotes { color: #8b93a7; font-style: italic; }

.release-latest-side { padding: 32px 28px; border-left: 1px solid #e9ecf1; background: #fafbfd; }
.release-download { display: block; padding: 15px 18px; border-radius: 8px; color: #fff !important; background: #087cf0; font: 700 16px Georgia, "Times New Roman", serif; text-align: center; box-shadow: 0 6px 16px rgba(8, 124, 240, .26); transition: background .2s, transform .2s; }
.release-download:hover { background: #0565c7; transform: translateY(-1px); }

.release-meta { margin: 22px 0 0; display: grid; gap: 12px; }
.release-meta div { display: grid; gap: 3px; }
.release-meta dt { color: #8b93a7; font: 700 10.5px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.release-meta dd { margin: 0; color: #2d3748; font-size: 14px; overflow-wrap: anywhere; }
.release-copy { width: 100%; padding: 8px 10px; border: 1px solid #dde2ea; border-radius: 6px; background: #fff; color: #0e7c7b; cursor: pointer; font: 11px ui-monospace, Menlo, monospace; text-align: left; overflow-wrap: anywhere; }
.release-copy:hover { border-color: #087cf0; }
.release-copy--done { color: #fff; background: #1a8f4a; border-color: #1a8f4a; }
.release-copy--done span::after { content: " copied"; }

.release-install { margin-top: 26px; padding-top: 22px; border-top: 1px solid #e9ecf1; }
.release-install h3 { margin: 0 0 12px; font-size: 15px; }
.release-install ol { margin: 0; padding-left: 20px; color: #4a5563; font-size: 13.5px; line-height: 1.85; }
.release-install code { padding: 1px 5px; border-radius: 4px; background: #eef2f8; font: 11.5px ui-monospace, Menlo, monospace; }
.release-install-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 6px; color: #8a5b00; background: #fff8e6; font-size: 12px; line-height: 1.6; }

/* Notes are admin-written HTML. Everything here is defensive: long strings
   wrap, media cannot exceed the column, and tables scroll instead of pushing
   the layout sideways. */
.release-notes { color: #36404d; font-size: 15.5px; line-height: 1.75; overflow-wrap: anywhere; }
.release-notes > :first-child { margin-top: 0; }
.release-notes > :last-child { margin-bottom: 0; }
.release-notes h2, .release-notes h3, .release-notes h4 { margin: 26px 0 10px; color: #1b2524; line-height: 1.3; letter-spacing: -.01em; }
.release-notes h2 { font-size: 21px; }
.release-notes h3 { font-size: 17px; }
.release-notes h4 { font-size: 15px; }
.release-notes p { margin: 0 0 14px; }
.release-notes ul, .release-notes ol { margin: 0 0 16px; padding-left: 22px; }
.release-notes li { margin-bottom: 7px; }
.release-notes ul { list-style: none; padding-left: 4px; }
.release-notes ul li { position: relative; padding-left: 20px; }
.release-notes ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #087cf0; }
.release-notes a { color: #0b5ca8; text-decoration: underline; }
.release-notes code { padding: 2px 6px; border-radius: 4px; background: #eef2f8; color: #2b3a4a; font: 13px ui-monospace, Menlo, monospace; }
.release-notes pre { margin: 0 0 16px; padding: 14px 16px; overflow-x: auto; border-radius: 8px; background: #11151c; color: #e6e9ef; }
.release-notes pre code { padding: 0; background: none; color: inherit; }
.release-notes blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid #c8d5c2; color: #55636f; }
.release-notes table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 14px; }
.release-notes th, .release-notes td { padding: 9px 12px; border: 1px solid #e5e7eb; text-align: left; }
.release-notes th { background: #f3f6fb; }
.release-notes hr { margin: 22px 0; border: 0; border-top: 1px solid #e5e7eb; }
.release-notes--compact { font-size: 14.5px; }

.release-history { margin-top: 44px; }
.release-history > h2 { margin: 0 0 6px; font-size: 15px; color: #8b93a7; font-family: "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.release-row { padding: 24px 0 22px; border-top: 1px solid #e5e7eb; }
.release-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.release-row-head h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.release-row-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.release-row-meta time { color: #7a8794; font: 12px "DM Mono", monospace; }
.release-row-link { color: #087cf0; font-size: 14px; }

.release-empty { padding: 56px 34px; border: 1px dashed #d6dbe3; border-radius: 12px; background: #fafbfd; text-align: center; }
.release-empty h2 { margin: 0 0 8px; font-size: 22px; }
.release-empty p { margin: 0; color: #7a8794; }

.release-form { display: grid; gap: 20px; }
.release-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.release-form .field input, .release-form .field select { width: 100%; padding: 11px 12px; border: 1px solid #c9c9c9; border-radius: 5px; background: #fff; font: 15px Georgia, "Times New Roman", serif; }
.release-form .field select { cursor: pointer; }
.release-notes-input { width: 100%; padding: 13px 14px; border: 1px solid #c9c9c9; border-radius: 6px; background: #fbfcfe; color: #2b3a4a; font: 13px ui-monospace, Menlo, monospace; line-height: 1.65; resize: vertical; }
.release-notes-input:focus { border-color: #087cf0; outline: none; box-shadow: 0 0 0 3px rgba(8, 124, 240, .12); }
.release-form-actions { display: flex; align-items: center; gap: 16px; }

@media (max-width: 900px) {
  .release-latest { grid-template-columns: 1fr; }
  .release-latest-side { border-left: 0; border-top: 1px solid #e9ecf1; }
}

@media (max-width: 760px) {
  .release-page { width: calc(100% - 36px); padding: 26px 0 50px; }
  .release-hero h1 { font-size: 34px; }
  .release-latest-main { padding: 24px 20px; }
  .release-latest-side { padding: 24px 20px; }
  .release-form-grid { grid-template-columns: 1fr; }
  .release-row-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 760px) {
  .shell { width: 100%; padding-top: 0; }
  .navbar { padding: 10px 18px; }
  .navbar-brand { font-size: 20px; }
  .welcome-row { padding: 12px 18px; }
  .brand-note { display: none; }
  .auth-grid { display: block; }
  .intro-panel { min-height: 360px; padding: 42px 30px; }
  .intro-panel::after { width: 240px; height: 240px; right: -100px; bottom: -150px; }
  h1 { font-size: 43px; }
  .form-panel { padding: 42px 30px 48px; }
  .home-panel { display: block; min-height: 420px; padding: 42px 30px; }
  .home-panel .button { margin-top: 22px; }
  .flash { margin-top: -10px; }
  .dashboard-card { padding: 32px 24px; }
  .payment-card { padding: 18px; }
  .qr-box img { width: min(260px, 62vw); height: min(260px, 62vw); }
  .admin-page { padding: 24px 18px; }
  .admin-header, .admin-payment-row { align-items: flex-start; flex-direction: column; }
  .admin-payment-filter { align-items: flex-start; flex-direction: column; }
  .admin-payment-actions { flex-wrap: wrap; }
  .admin-backup-heading, .admin-backup-row { align-items: flex-start; flex-direction: column; }
  .ledger-page { width: calc(100% - 36px); padding: 24px 0; }
  .ledger-header { align-items: flex-start; flex-direction: column; }
}
