
/* ---- Peyda Font (Global) ---- */
@font-face{
  font-family:'Peyda';
  src:url('/assets/fonts/peyda.woff2') format('woff2'),
      url('/assets/fonts/peyda.woff') format('woff'),
      url('/assets/fonts/peyda.ttf') format('truetype');
  font-weight:400; font-style:normal; font-display:swap;
}
html,body,.rtl,input,button,select,textarea{
  font-family:'Peyda', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, 'Noto Sans', sans-serif !important;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body{font-weight:400} .h-title,h1,h2,h3{font-weight:600} .btn,button,label,.badge{font-weight:500}


/* --- FORCE PEYDA FONT (absolute paths) --- */
@font-face {
  font-family: 'Peyda';
  src: url('/assets/fonts/peyda.woff2') format('woff2'),
       url('/assets/fonts/peyda.woff') format('woff'),
       url('/assets/fonts/peyda.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
html, body, .rtl, input, button, select, textarea {
  font-family: 'Peyda', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, 'Noto Sans', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* PEYDA FONT */
@font-face{font-family:'Peyda'; src: url('../fonts/PeydaWeb-Black.woff2') format('woff2'), url('../fonts/PeydaWeb-Black.woff') format('woff'), url('../fonts/Peyda-Black.ttf') format('truetype'); font-display: swap;}
/* Minimal, clean UI. Mobile-first. */
:root {
  --bg: #0b0f19;
  --card: #121a2a;
  --muted: #9aa4b2;
  --text: #e7edf3;
  --brand: #00d3a7;
  --brand-2: #5b8cff;
  --danger: #ff5d5d;
  --accent: linear-gradient(135deg, var(--brand), var(--brand-2));
}

* { box-sizing: border-box; }
html, body { font-family: ui-sans-serif, system-ui; }
.font-ready body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--text); font-family: 'Peyda', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 980px; margin: 0 auto; padding: 20px; }
.card {
  background: radial-gradient(1200px 600px at top left, rgba(0,211,167,0.08), transparent 60%),
              radial-gradient(1000px 500px at bottom right, rgba(91,140,255,0.08), transparent 55%),
              var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.header {
  display:flex; align-items:center; gap:14px; margin-bottom: 14px;
}
.logo {
  width: 36px; height:36px; border-radius: 12px; background: var(--accent);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.h-title { font-weight: 800; letter-spacing: -0.02em; font-size: 22px; }
.muted { color: var(--muted); font-size: 13px; }

.grid { display: grid; gap: 14px; }
@media(min-width: 720px){ .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 14px;
  color: var(--text);
  width: 100%;
  outline: none;
  transition: box-shadow .2s, border-color .2s, transform .05s;
}
.input:focus {
  border-color: rgba(0,211,167,0.6);
  box-shadow: 0 0 0 3px rgba(0,211,167,0.2);
}
label { font-size: 13px; color: var(--muted); margin-left: 6px; display:block; margin-bottom: 8px; }

.actions { display:flex; gap: 10px; flex-wrap: wrap; align-items:center; }
.btn {
  background: var(--accent);
  color: #04121e;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0px) scale(.98); }
.btn.secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}

.kpi {
  display:grid; gap:10px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media(min-width: 720px){ .kpi{ grid-template-columns: repeat(4, minmax(0,1fr)); } }
.kpi .box {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.kpi .val { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.badge {
  display:inline-flex; align-items:center; gap:6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 10px; border-radius: 999px; font-size: 12px; color: var(--muted);
}
.badge.dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
.table th { color: var(--muted); font-weight: 600; }
.row-new { position: relative; }
.row-new::after {
  content: ""; position: absolute; left: -10px; top: 50%;
  width: 8px; height: 8px; background: var(--danger); border-radius: 50%;
  transform: translateY(-50%);
}

.footer { margin-top: 18px; text-align: center; color: var(--muted); font-size: 12px; }
hr.sep { border: none; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); margin: 18px 0; }

/* --- UX Enhancements & Anti-Zoom on iOS --- */
input, select, textarea { font-size: 16px; -webkit-text-size-adjust: 100%; }
.input { font-size: 16px; backdrop-filter: blur(8px); }
.card { backdrop-filter: blur(10px); }
body::before {
  content: "";
  position: fixed; inset: -20%;
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(0,211,167,0.18), transparent 60%),
    radial-gradient(800px 400px at 85% 90%, rgba(91,140,255,0.18), transparent 55%);
  z-index: -1; filter: blur(30px);
}
.btn { letter-spacing: .2px; }
.h-title { font-size: 24px; }
.muted { font-size: 14px; }

/* Fancy focus ring */
.input:focus { box-shadow: 0 0 0 4px rgba(0,211,167,0.25), 0 8px 26px rgba(0,0,0,0.35); }

/* Number input without spinners (visual) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* Elevated CTA */
.actions .btn:first-child { box-shadow: 0 14px 40px rgba(0,211,167,0.25); }

/* --- ULTRA UI ENHANCEMENTS --- */
:root {
  --ring: rgba(0,211,167,0.35);
  --ring-2: rgba(91,140,255,0.35);
}
.card {
  position: relative;
  overflow: hidden;
}
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,211,167,0.12), transparent 70%);
  filter: blur(10px);
  animation: float 8s ease-in-out infinite alternate;
}
.card::before { top: -60px; left: -60px; }
.card::after  { bottom: -50px; right: -50px; background: radial-gradient(closest-side, rgba(91,140,255,0.12), transparent 70%); }

@keyframes float {
  from { transform: translateY(0px) }
  to   { transform: translateY(10px) }
}

.btn {
  transform-style: preserve-3d;
}
.btn:hover::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: radial-gradient(120px 60px at 50% 0%, rgba(255,255,255,0.16), transparent 60%);
  pointer-events: none;
}

.input {
  transition: background .2s ease, transform .05s ease;
}
.input:hover { background: rgba(255,255,255,0.06); }
.badge { backdrop-filter: blur(6px); }

/* Announcement banner */
.notice {border-radius:16px; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08);}
.notice-inner { padding: 12px 14px; text-align: center; color: #d5f5ee; font-weight: 600; }

.actions{position:relative;z-index:2}
.actions .btn{pointer-events:auto}

/* --- Click-through for decorative layers --- */
.card { position: relative; z-index: 1; }
.card * { position: relative; z-index: 2; }
.card::before, .card::after { pointer-events: none !important; z-index: 0 !important; }
.actions { position: relative; z-index: 3; }

/* Ensure mobile no-zoom & clickable buttons */
input, select, textarea { font-size: 16px; }
button { cursor: pointer; }


/* == Novan Patch: Force Dark Theme == */
:root{
  color-scheme: only dark;
}
html, body{
  background-color:#0b0f14 !important;
  color:#e8eaed !important;
}
/* neutral surfaces */
.bg-white, .bg-light, .card, .panel, .navbar, .modal-content {
  background-color:#11151a !important;
  color:#e8eaed !important;
  border-color: #1f2937 !important;
}
.text-dark{ color:#e8eaed !important; }
.text-muted{ color:#9aa0a6 !important; }
input, select, textarea {
  background-color:#0f1318 !important;
  color:#e8eaed !important;
  border-color:#2a3441 !important;
}
input::placeholder, textarea::placeholder{ color:#78808a !important; }
.btn, button {
  border-color:#2a3441 !important;
}
/* links */
a { color:#8ab4f8 !important; }
a:hover { color:#aecbfa !important; }
/* tables */
table, .table {
  color:#e8eaed !important;
  background-color:#0b0f14 !important;
}
.table thead th {
  color:#e8eaed !important;
  border-bottom-color:#2a3441 !important;
}
.table td, .table th {
  border-top-color:#1f2937 !important;
}


/* --- Added: mobile layout & suggested amounts --- */
@media (max-width: 640px){
  .pay-btn { width: 100%; display: block; }
  .grid { display: grid; grid-template-columns: 1fr; }
  .grid .field-mobile { order: 2; }
  .grid .field-telegram { order: 3; }
}
.amount-suggestions-wrap { margin-top: 10px; overflow-x: auto; background-color: rgba(0,0,0,0.001); will-change: scroll-position; }
.amount-suggestions { display: flex; gap: 8px; padding-bottom: 4px; }
.amount-suggestions .chip {
  white-space: nowrap; border: 1px solid #ddd; border-radius: 999px;
  padding: 6px 10px; font-size: 14px; background: #fff; cursor: pointer;
}
.amount-suggestions .chip-active { border-color: #333; font-weight: 600; }


/* --- Premium Chips UI --- */
.amount-suggestions-wrap {
  margin-top: 12px;
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.amount-suggestions {
  display: flex;
  gap: 10px;
  padding: 6px 2px 10px 2px;
}
.amount-suggestions .chip {
  scroll-snap-align: start;
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 10px 14px 10px 14px;
  font-size: 15px;
  background: linear-gradient(180deg, #ffffff, #f7f7f7);
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  outline: none;
  position: relative;
}
.amount-suggestions .chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.amount-suggestions .chip:focus-visible {
  box-shadow: 0 0 0 3px rgba(18, 114, 255, .25);
  border-color: rgba(18,114,255,.6);
}
.amount-suggestions .chip-active {
  background: linear-gradient(180deg, #eef5ff, #e2eeff);
  border-color: rgba(18,114,255,.35);
  box-shadow: 0 8px 22px rgba(18,114,255,0.15);
  font-weight: 700;
  color: #0d3b8e;
}
/* Check icon using pseudo-element */
.amount-suggestions .chip-active::before {
  content: '\2713';
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  margin-right: 8px;
  transform: translateY(-1px);
}
/* Subtle fades on scroll edges */
.amount-suggestions-wrap::before,
.amount-suggestions-wrap::after {
  content: "";
  position: sticky;
  top: 0;
  width: 30px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.amount-suggestions-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 100%);
}
.amount-suggestions-wrap::after {
  float: right;
  right: 0;
  background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,0) 100%);
}
@media (prefers-color-scheme: dark){
  .amount-suggestions .chip {
    background: linear-gradient(180deg, #222, #1a1a1a);
    color: #e6e6e6;
    border-color: rgba(255,255,255,0.08);
  }
  .amount-suggestions .chip:hover {
    box-shadow: 0 8px 26px rgba(0,0,0,0.5);
  }
  .amount-suggestions .chip-active {
    background: linear-gradient(180deg, #122a4f, #0f2547);
    color: #dfe9ff;
    border-color: rgba(120,180,255,.45);
    box-shadow: 0 10px 26px rgba(18,114,255,0.25);
  }
  .amount-suggestions-wrap::before {
    background: linear-gradient(90deg, #111 0%, rgba(17,17,17,0) 100%);
  }
  .amount-suggestions-wrap::after {
    background: linear-gradient(270deg, #111 0%, rgba(17,17,17,0) 100%);
  }
}


/* === Premium+ Chips (inspired, not identical to gateways) === */
.amount-suggestions-wrap { margin-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.amount-suggestions { display: flex; gap: 10px; padding: 4px 2px 8px; flex-wrap: nowrap; }
.amount-suggestions .chip {
  --chip-bg1: #ffffff;
  --chip-bg2: #f5f7fb;
  --chip-border: rgba(0,0,0,.08);
  --chip-shadow: 0 2px 8px rgba(0,0,0,.08);
  --chip-text: #1b2a4a;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(180deg, var(--chip-bg1), var(--chip-bg2));
  color: var(--chip-text);
  border: 1px solid var(--chip-border);
  box-shadow: var(--chip-shadow);
  font-size: 15px; font-weight: 600;
  cursor: pointer; user-select: none;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; outline: none;
  position: relative;
  min-height: 44px; /* close to input visual height */
}
.amount-suggestions .chip:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.amount-suggestions .chip:active { transform: translateY(0); }

.amount-suggestions .chip-active {
  --chip-bg1: #e8f0ff;
  --chip-bg2: #dfeaff;
  --chip-border: rgba(30, 110, 255, .45);
  --chip-shadow: 0 10px 28px rgba(30,110,255,.28);
  --chip-text: #0d2e89;
  border-width: 2px;
}
.amount-suggestions .chip-active::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120px 60px at 10% 10%, rgba(255,255,255,.55), transparent 40%),
              radial-gradient(120px 60px at 90% 120%, rgba(255,255,255,.25), transparent 50%);
}
.amount-suggestions .chip-active::after {
  content: "✓"; font-size: 14px; margin-right: 8px; position: relative; left: -4px;
}

@media (prefers-color-scheme: dark){
  .amount-suggestions .chip {
    --chip-bg1: #1b1f2a; --chip-bg2: #121623; --chip-border: rgba(255,255,255,.08);
    --chip-shadow: 0 8px 26px rgba(0,0,0,.45);
    --chip-text: #e8eefb;
  }
  .amount-suggestions .chip-active {
    --chip-bg1: #0e1f43; --chip-bg2: #0b1937; --chip-border: rgba(120,180,255,.5);
    --chip-shadow: 0 12px 30px rgba(50,120,255,.35);
    --chip-text: #e8f2ff;
  }
}

/* Match height with input look by aligning paddings */
.input { min-height: 46px; }
.amount-suggestions .chip { min-height: 46px; }

/* Mobile adjustments */
@media (max-width: 640px){
  .pay-btn { width: 100%; display:block; }
  .grid { display: grid; grid-template-columns: 1fr; }
  .grid .field-mobile { order: 2; }
  .grid .field-telegram { order: 3; }
}

/* Scroll hint fades (light/dark) */
.amount-suggestions-wrap { position: relative; }
.amount-suggestions-wrap::before, .amount-suggestions-wrap::after {
  content:""; position: sticky; top: 0; width: 28px; height: 100%; pointer-events:none; z-index: 1;
}
.amount-suggestions-wrap::before { left: 0; background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)); }
.amount-suggestions-wrap::after { right: 0; background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0)); }
@media (prefers-color-scheme: dark){
  .amount-suggestions-wrap::before { background: linear-gradient(90deg, rgba(17,17,17,1), rgba(17,17,17,0)); }
  .amount-suggestions-wrap::after  { background: linear-gradient(270deg, rgba(17,17,17,1), rgba(17,17,17,0)); }
}


/* Ensure description is last and fullname after suggestions */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid .field-amount { order: 1; }
.grid .field-suggestions { order: 2; grid-column: 1 / -1; }
.grid .field-fullname { order: 3; }
.grid .field-mobile { order: 4; }
.grid .field-telegram { order: 5; }
.grid .field-description { order: 99; grid-column: 1 / -1; }
@media (max-width: 640px){
  .grid { grid-template-columns: 1fr; }
  .grid .field-amount { order: 1; }
  .grid .field-suggestions { order: 2; }
  .grid .field-fullname { order: 3; }
  .grid .field-mobile { order: 4; }
  .grid .field-telegram { order: 5; }
  .grid .field-description { order: 6; }
}


.input.input-error, .input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 2px rgba(255,93,93,0.25) !important; }

.hint-error { color: var(--danger); font-size: 12px; margin-top: 6px; }
