/* RizPay — one custom foundation for every public, admin and payment screen. */
:root {
  color-scheme: light;
  --primary: #087f68; --primary-dark: #066653; --accent: #087f68;
  --ink: #152e2b; --text-main: var(--ink); --muted: #60746e; --text-muted: var(--muted);
  --border: #dce6e1; --border-color: var(--border); --surface: #fff; --canvas: #f5f8f6;
  --success: #08704e; --danger: #b53648; --warning: #886010;
  --tint: #e8f5ef; --radius: 12px; --control-radius: 8px; --control-height: 44px;
  --shadow: 0 3px 16px #12382b05;
  font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.6;
  color: var(--ink); background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, canvas { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 32px; line-height: 1.18; letter-spacing: -1px; }
h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.7px; }
h3 { font-size: 16px; line-height: 1.4; }
p { color: var(--muted); }
small { font-size: 12px; color: var(--muted); }
:focus-visible { outline: 3px solid #38a992; outline-offset: 3px; }
[hidden] { display: none !important; }
button, .button, .btn-save, .btn-submit, .btn-filter, .checkout-button, .landing-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--control-height); padding: 10px 18px; border: 1px solid transparent;
  border-radius: var(--control-radius); background: var(--primary); color: #fff;
  font-size: 13px; line-height: 22px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
}
button:hover, .button:hover, .checkout-button:hover, .landing-btn:hover { background: var(--primary-dark); text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .6; }
.secondary, .btn-secondary, .btn-clear, .outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--control-height); padding: 10px 18px; border: 1px solid var(--border);
  border-radius: var(--control-radius); background: var(--surface); color: var(--ink);
  font-size: 13px; line-height: 22px; font-weight: 600; text-decoration: none;
}
.secondary:hover, .btn-secondary:hover, .btn-clear:hover, .outline:hover { background: var(--tint); color: var(--ink); text-decoration: none; }
.text-button { min-height: 44px; background: transparent; color: var(--primary); border: 0; padding: 10px 0; }
.text-button:hover { background: transparent; text-decoration: underline; }
.full-width { width: 100%; }
.brand, .checkout-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 24px; font-weight: 750; letter-spacing: -.8px; }
.brand:hover, .checkout-brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 29px; line-height: 1; font-weight: 800; font-style: italic; }
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.eyebrow, .summary-kicker { display: block; font-size: 11px; line-height: 1.6; letter-spacing: 1.8px; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.pill, .badge, .method-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 26px; padding: 4px 9px; border-radius: 5px; background: var(--tint); color: var(--primary-dark); font-size: 10px; font-weight: 650; letter-spacing: .4px; }
.badge-success, .badge-active, .status-SUCCESS { background: #e7f5ee; color: var(--success); }
.badge-pending, .badge-warning, .status-PENDING { background: #fff4dc; color: var(--warning); }
.badge-failed, .badge-danger, .badge-inactive, .status-FAILED { background: #fceef0; color: var(--danger); }
.badge-expired, .badge-secondary, .status-EXPIRED { background: #eef1f0; color: #66746f; }
.muted { color: var(--muted); }
.form-group, .input-group, .filter-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-bottom: 22px; }
label { font-size: 13px; font-weight: 600; color: var(--ink); }
input:not([type=hidden]), select, textarea { width: 100%; min-height: var(--control-height); padding: 10px 12px; border: 1px solid #ccd9d2; border-radius: var(--control-radius); background: var(--surface); color: var(--ink); font-size: 13px; line-height: 22px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px #087f6815; }
input::placeholder, textarea::placeholder { color: #7b8c84; }
input[readonly] { background: var(--canvas); }
input[type=file] { padding: 7px; }
input[type=file]::file-selector-button { border: 0; padding: 5px 10px; margin-right: 12px; background: var(--tint); color: var(--primary); border-radius: 4px; }
input[type=checkbox] { width: 18px; min-height: 18px; accent-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.alert, .error-panel, .info-box, .balance-note, .alert-warning { padding: 15px 18px; border: 1px solid var(--border); border-radius: var(--control-radius); margin: 0 0 22px; color: #455e53; background: #eef5f1; font-size: 13px; overflow-wrap: anywhere; }
.alert-success { color: #146245; background: #edf8f1; border-color: #c5e8d5; }
.alert-danger, .error-panel { color: #9c2a3c; background: #fff3f5; border-color: #ecc9d0; }
.warning, .alert-warning { color: #805b14; background: #fff9ed; border-color: #efdfb8; }
.alert p, .error-panel p { color: inherit; margin: 9px 0; }
.error-panel strong, .empty-state strong { display: block; margin-bottom: 6px; }
.mono, code, pre, .code-text, .code-block { font-family: "Cascadia Code", Consolas, monospace; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 20px; z-index: 200; background: white; }
.skip-link:focus { top: 10px; }
.empty-state { text-align: center; padding: 50px 24px !important; color: var(--muted); }
.empty-state strong { color: var(--ink); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #c7dfd5; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.password-toggle { position: absolute; right: 2px; top: 2px; min-height: 40px; padding: 6px 10px; color: var(--primary); background: transparent; font-size: 11px; }
.password-toggle:hover { color: var(--primary-dark); background: var(--tint); }
.table-scroll { overflow: auto; border-radius: inherit; }
@keyframes spin { to { transform: rotate(360deg); } }
@media(max-width:600px) { h1 { font-size: 26px; } h2 { font-size: 23px; } .form-row { grid-template-columns: 1fr; gap: 0; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
