/* Reference sheet styling, applied to the existing payment form and its IDs. */
.account-page .libyana-charge-dialog {
  --libyana-sheet-travel:calc(100% + max(14px, env(safe-area-inset-bottom, 0px)));
  width:min(94vw,440px);
  padding:16px;
  border:1px solid var(--border-color);
  border-radius:20px;
  background:var(--bg-main);
  color:var(--text-main);
  font-family:'Almarai','Cairo',sans-serif;
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  transform-origin:bottom center;
}
.account-page .libyana-charge-dialog[open] {
  display:flex;
  flex-direction:column;
  gap:16px;
  animation:omnex-libyana-sheet-up .35s cubic-bezier(.2,.75,.25,1) both !important;
}
.account-page .libyana-charge-dialog[open].is-closing {
  animation:omnex-libyana-sheet-down .22s cubic-bezier(.4,0,1,1) both !important;
}
.account-page .libyana-charge-dialog[open]::backdrop {
  /* Fade a dim layer instead of recalculating full-page blur on each frame. */
  background:rgba(0,0,0,.6);
  backdrop-filter:none;
  animation:omnex-libyana-sheet-fade .35s ease both !important;
}
.account-page .libyana-charge-dialog[open].is-closing::backdrop {
  animation:omnex-libyana-sheet-fade-out .22s ease both !important;
}
.libyana-charge-dialog .libyana-charge-header {
  position:relative;
  gap:14px;
  padding:16px;
  border:1px solid var(--border-color);
  border-radius:16px;
  background:rgba(255,255,255,.04);
  overflow:hidden;
}
.libyana-charge-dialog .libyana-charge-logo {
  width:64px;
  height:64px;
  border:0;
  border-radius:12px;
  background:transparent;
}
.libyana-charge-dialog .libyana-charge-logo img {
  display:block;
  width:64px;
  height:64px;
  padding:6px;
  border:1px solid var(--border-color);
  border-radius:12px;
  background:rgba(255,255,255,.07);
  object-fit:contain;
}
.libyana-charge-dialog .libyana-charge-header > div { display:flex; flex-direction:column; gap:4px; }
.libyana-charge-dialog .libyana-charge-header h2 { margin:0; font-size:16px; font-weight:800; line-height:1.3; }
.libyana-charge-dialog .libyana-charge-header p { margin:0; font-size:12px; font-weight:400; line-height:1.5; color:var(--text-muted); }
.libyana-charge-dialog .libyana-charge-header > button {
  width:32px;
  height:32px;
  background:rgba(255,255,255,.07);
  transition:background-color .2s,color .2s;
}
.libyana-charge-dialog .libyana-charge-header > button:hover { background:rgba(255,255,255,.1); color:#fff; }
.libyana-charge-dialog .libyana-charge-header > button svg { width:15px; height:15px; }
#libyanaChargeForm { display:flex; flex-direction:column; gap:8px; }
.libyana-charge-dialog .libyana-amount-label { gap:10px; margin:0 0 8px; font-size:11px; font-weight:700; letter-spacing:.8px; line-height:1.5; white-space:nowrap; }
.libyana-charge-dialog .libyana-amount-field {
  min-height:0;
  border-radius:12px;
  background:rgba(0,0,0,.28);
  transition:border-color .2s,box-shadow .2s;
}
.libyana-charge-dialog .libyana-amount-field:focus-within { border-color:#c34f5e; box-shadow:0 0 0 3px rgba(229,38,54,.08); }
.libyana-charge-dialog .libyana-amount-field:has(input[aria-invalid="true"]) { border-color:#d95c6c; }
.libyana-charge-dialog .libyana-amount-field:has(input[aria-invalid="true"]):focus-within { box-shadow:0 0 0 3px rgba(239,68,68,.12); }
.libyana-charge-dialog .libyana-amount-field > span { width:auto; padding:0 16px; background:transparent; color:var(--account-accent-text); font-size:13px; font-weight:800; white-space:nowrap; }
.libyana-charge-dialog .libyana-amount-field input { padding:14px; color:var(--text-main); font:800 20px/1.5 'Almarai','Cairo',sans-serif; }
.libyana-charge-dialog .libyana-amount-field input::placeholder { color:var(--text-muted); font-weight:400; }
.account-page .libyana-charge-dialog .libyana-charge-message { margin:0; padding:0; border:0; border-radius:0; background:transparent; color:#ff929f; font-size:12px; font-weight:600; line-height:1.7; }
.libyana-charge-dialog .libyana-charge-limits { gap:5px; margin:0; font-size:12px; font-weight:600; line-height:1.7; }
.libyana-charge-dialog .libyana-charge-limits svg { width:13px; height:13px; color:var(--account-accent-text); }
.libyana-charge-dialog .libyana-limit-dot { margin-inline:2px; color:#828293; }
.libyana-charge-dialog .libyana-charge-limits b { font-weight:800; }
.libyana-charge-dialog .libyana-charge-actions { gap:10px; margin-top:8px; }
.account-page .libyana-charge-dialog .account-primary {
  min-height:48px;
  padding:14px 20px;
  border:0;
  border-radius:12px;
  background:var(--primary-red);
  color:#fff;
  font:800 15px/1.4 'Almarai','Cairo',sans-serif;
  transition:background-color .25s,transform .25s,box-shadow .25s;
}
.account-page .libyana-charge-dialog .account-primary::after { content:''; inset:0; background:linear-gradient(135deg,transparent,rgba(255,255,255,.1)); transform:none; opacity:0; transition:opacity .25s; }
.account-page .libyana-charge-dialog .account-primary:hover:not(:disabled) { background:var(--primary-dark-red); box-shadow:0 8px 24px rgba(229,38,54,.22); transform:translateY(-2px); }
.account-page .libyana-charge-dialog .account-primary:hover:not(:disabled)::after { opacity:1; transform:none; }
.account-page .libyana-charge-dialog .account-primary:hover:not(:disabled) svg { transform:none; }
.account-page .libyana-charge-dialog .account-primary:active:not(:disabled) { transform:scale(.97); }
.account-page .libyana-charge-dialog .account-primary:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; transform:none; }
.account-page .libyana-charge-dialog .account-secondary { min-width:0; min-height:48px; padding:14px 18px; border-radius:12px; border:1px solid var(--border-color); background:rgba(255,255,255,.04); color:#c9c9d3; font:700 14px/1.4 'Almarai','Cairo',sans-serif; transition:background-color .2s,color .2s; }
.account-page .libyana-charge-dialog .account-secondary:hover { background:rgba(255,255,255,.08); color:#fff; transform:none; box-shadow:none; }
@keyframes omnex-libyana-sheet-up {
  from { transform:translateY(var(--libyana-sheet-travel)); }
  to { transform:translateY(0); }
}
@keyframes omnex-libyana-sheet-down {
  from { transform:translateY(0); }
  to { transform:translateY(var(--libyana-sheet-travel)); }
}
@keyframes omnex-libyana-sheet-fade { from { opacity:0; } to { opacity:1; } }
@keyframes omnex-libyana-sheet-fade-out { from { opacity:1; } to { opacity:0; } }
@media(max-width:380px) {
  .libyana-charge-dialog .libyana-charge-header { gap:10px; padding:12px; }
  .libyana-charge-dialog .libyana-charge-logo, .libyana-charge-dialog .libyana-charge-logo img { width:52px; height:52px; }
  .libyana-charge-dialog .libyana-charge-header h2 { font-size:15px; }
  .libyana-charge-dialog .libyana-charge-header p { font-size:11px; }
}

.libyana-charge-dialog [hidden] { display:none !important; }
.account-page .libyana-charge-dialog { max-block-size:90dvh; overflow:auto; overscroll-behavior:contain; }
.libyana-charge-dialog > * { flex-shrink:0; }
.account-page .libyana-charge-dialog:has(.libyana-local:not([hidden])) { gap:10px; }
.libyana-charge-dialog:has(.libyana-local:not([hidden])) .libyana-charge-header {
  position:sticky; inset-block-start:0; z-index:1; background:var(--bg-main);
}
.libyana-methods, .libyana-local { display:grid; gap:12px; min-width:0; }
.libyana-method {
  display:flex; align-items:center; gap:10px; width:100%; min-height:68px; padding:12px;
  border:1px solid var(--border-color); border-radius:14px; background:rgba(255,255,255,.04);
  color:var(--text-main); font:inherit; text-align:start; cursor:pointer; transition:background-color .18s;
}
.libyana-method:hover { background:rgba(255,255,255,.09); }
.libyana-method > span:first-of-type { flex:1; min-width:0; }
.libyana-method img { flex:none; object-fit:contain; }
.libyana-method strong, .libyana-method small { display:block; line-height:1.55; }
.libyana-method small { color:var(--text-muted); font-size:.75rem; }
.libyana-method-badge {
  padding:5px 8px; border-radius:8px; background:rgba(229,38,54,.13);
  color:var(--account-accent-text); font-size:.72rem; font-weight:800; white-space:nowrap;
}
.libyana-method svg { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.75; }
.libyana-local-back, .libyana-local-unlink {
  width:fit-content; min-height:44px; padding:6px 4px; border:0; background:transparent;
  color:var(--account-accent-text); font-family:inherit; font-size:.82rem; font-weight:700; line-height:1.4; cursor:pointer;
}
.libyana-local-section {
  display:grid; gap:10px; min-width:0; padding-block:12px 4px; border-top:1px solid var(--border-color);
}
.libyana-local-section h3 { margin:0; font-size:.95rem; font-weight:800; }
.libyana-local-section p, .libyana-local-section ol, .libyana-local-status {
  margin:0; color:var(--text-muted); font-size:.82rem; line-height:1.65;
}
.libyana-local-status { color:var(--text-main); }
.libyana-local-section ol { padding-inline-start:1.4em; }
.libyana-local-heading, .libyana-local-recipient { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.libyana-local-recipient {
  padding:4px 10px; border:1px solid var(--border-color); border-radius:12px; background:rgba(255,255,255,.04);
}
.libyana-local-recipient bdi { font-size:1.12rem; font-weight:800; font-variant-numeric:tabular-nums; }
.libyana-local-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.libyana-local-list li {
  display:flex; align-items:center; gap:8px; min-height:54px; padding:2px 8px;
  border:1px solid var(--border-color); border-radius:12px; background:rgba(255,255,255,.04);
}
.libyana-local-list bdi { margin-inline-end:auto; font-weight:800; font-variant-numeric:tabular-nums; }
.libyana-local-check {
  display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:50%;
  background:#41d69d; color:#10291f;
}
.libyana-local-verified {
  padding:4px 7px; border-radius:8px; background:rgba(229,38,54,.13);
  color:var(--account-accent-text); font-size:.72rem; font-weight:800;
}
.libyana-local-list .is-pending .libyana-local-verified {
  background:rgba(255,255,255,.06); color:var(--text-muted);
}
.libyana-local-list .libyana-local-unlink {
  display:grid; place-items:center; flex:none; width:44px; border-radius:8px; color:var(--text-muted);
}
.libyana-local-list .libyana-local-unlink:hover { color:var(--account-accent-text); background:rgba(255,255,255,.06); }
.libyana-local-check svg, .libyana-local-unlink svg, .libyana-local-add svg {
  width:17px; height:17px; flex:none; fill:none; stroke:currentColor; stroke-width:1.75;
  stroke-linecap:round; stroke-linejoin:round;
}
.libyana-local-check svg { stroke-width:2.7; }
.libyana-local-add { display:flex; align-items:center; justify-content:center; gap:8px; }
.libyana-local-form { display:grid; gap:8px; }
.libyana-local-form label { font-size:.82rem; font-weight:700; }
.libyana-local-form input {
  width:100%; min-width:0; min-height:46px; padding:8px 12px; border:1px solid var(--border-color);
  border-radius:12px; background:rgba(0,0,0,.22); color:var(--text-main); font:inherit; font-size:1rem;
}
.libyana-local .account-primary { display:flex; align-items:center; justify-content:center; text-align:center; }
#libyanaLocalLinkWait { color:var(--account-accent-text); font-variant-numeric:tabular-nums; }
.libyana-local :disabled { opacity:.5; cursor:not-allowed; }
.libyana-local :focus-visible, .libyana-method:focus-visible, .libyana-local-back:focus-visible {
  outline:2px solid var(--account-accent-text); outline-offset:2px;
}
.libyana-local-form input:focus-visible {
  outline:1px solid var(--account-accent-text);
  outline-offset:-1px;
  box-shadow:0 0 8px color-mix(in srgb, var(--account-accent-text) 24%, transparent);
}
