/* ==========================================================================
   Yopandelreyz — Payment UI (Premium / SaaS-like)
   Notes:
   - Keep primary color, refine neutrals/spacing for "big-company" trust.
   - A11y: visible focus, readable type scale, reduced motion support.
   ========================================================================== */

:root{
  /* Color system */
  --bg0:#f7f9fc;
  --bg1:#ffffff;

  --text:#0b1220;
  --muted:#516179;
  --muted2:#6f809c;

  --primary:#0069ff;      /* keep original primary */
  --primary2:#2c8cff;

  --border: rgba(18, 38, 63, .10);
  --border2: rgba(18, 38, 63, .14);

  --card: rgba(255,255,255,.86);
  --card2: rgba(255,255,255,.66);

  --surface: rgba(0,105,255,.06);
  --surface2: rgba(0,105,255,.10);

  --ring: rgba(0, 105, 255, .38);

  /* Radii / shadows */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;

  --shadow-sm: 0 10px 26px rgba(2, 6, 23, .06);
  --shadow-md: 0 16px 48px rgba(2, 6, 23, .10);
}

html.dark{
  --bg0:#050b17;
  --bg1:#060f22;

  --text:#eaf0ff;
  --muted:#a7b4cd;
  --muted2:#91a2c2;

  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.14);

  --card: rgba(8, 16, 35, .78);
  --card2: rgba(8, 16, 35, .60);

  --primary:#2c8cff;
  --primary2:#6ab5ff;
  --ring: rgba(106,181,255,.40);

  --surface: rgba(44,140,255,.10);
  --surface2: rgba(44,140,255,.16);

  --shadow-sm: 0 16px 56px rgba(0,0,0,.40);
  --shadow-md: 0 20px 78px rgba(0,0,0,.52);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1100px 680px at 20% -10%, rgba(0,105,255,.12), transparent 60%),
    radial-gradient(860px 520px at 85% 0%, rgba(44,140,255,.09), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
strong{ font-weight:650; }
code.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
}

/* Focus: consistent & accessible */
:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: var(--r-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}

.container{ max-width:1100px; margin:0 auto; padding:0 16px; }

/* Skip link */
.skip-link{
  position:absolute;
  left:16px; top:10px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 999;
}
.skip-link:focus{ transform: translateY(0); }

/* Top bar */
.topbar{
  position:sticky; top:0; z-index:60;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
html.dark .topbar{ background: rgba(5,11,23,.58); }

.topbar-inner{
  height:64px;
  display:flex; align-items:center; justify-content:space-between;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:-0.02em;
}
.brand-mark{
  width:28px; height:28px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, var(--primary2), var(--primary));
  box-shadow: 0 10px 20px rgba(0,105,255,.18);
  border:1px solid rgba(255,255,255,.32);
}
.brand-name{ font-size:14px; }

.chip{
  display:none;
  align-items:center; gap:8px;
  padding:6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card2);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted2);
}
@media (min-width:720px){ .chip{ display:inline-flex; } }
.chip-icon{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(34,197,94,.95), rgba(34,197,94,.65));
  box-shadow: 0 10px 18px rgba(34,197,94,.10);
}

/* Theme button */
.icon-btn{
  height:40px; width:40px;
  border-radius:999px;
  border:1px solid var(--border2);
  background: var(--card2);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
  cursor:pointer;
  transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease;
}
.icon-btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-md); background: var(--card); }
.icon{ width:100%; height:100%; display:grid; place-items:center; }
.icon svg{ width:20px; height:20px; color: rgba(11,18,32,.92); }
html.dark .icon svg{ color: rgba(234,240,255,.92); }

/* Page */
.page{ padding-bottom: 96px; }

/* Hero */
.hero{ padding: 34px 0 18px; }
@media (min-width:768px){ .hero{ padding: 56px 0 26px; } }

.hero-inner{
  display:grid;
  gap:22px;
  align-items: start;
}
@media (min-width:980px){
  .hero-inner{ grid-template-columns: 1.2fr .8fr; gap: 34px; }
}

.kicker{
  margin:0;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: var(--primary);
  font-weight: 800;
}

.title{
  margin:10px 0 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
@media (min-width:640px){ .title{ font-size: 44px; } }

.subtitle{
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 720px;
}

.hero-badges{ margin-top: 18px; display:flex; gap:12px; flex-wrap:wrap; }

.mini{
  display:flex; align-items:flex-start; gap:10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card2);
}
.mini-dot{
  width:10px; height:10px; margin-top:5px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--primary2), var(--primary));
  box-shadow: 0 8px 18px rgba(0,105,255,.18);
}
.mini-title{ font-size: 13px; font-weight: 750; letter-spacing:-0.01em; }
.mini-sub{ margin-top: 2px; font-size: 12px; color: var(--muted2); }

/* Right hero glass panel */
.hero-panel{ display:none; }
@media (min-width:980px){ .hero-panel{ display:block; } }

.glass-card{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.glass-card::before{
  content:"";
  position:absolute; inset:-60px;
  background:
    radial-gradient(320px 220px at 20% 18%, rgba(0,105,255,.16), transparent 60%),
    radial-gradient(260px 200px at 85% 25%, rgba(44,140,255,.12), transparent 60%);
}
.glass-card > *{ position: relative; }
.glass-title{
  height: 14px; width: 54%;
  border-radius: 999px;
  background: rgba(0,105,255,.14);
  border: 1px solid rgba(0,105,255,.10);
}
.glass-line{
  height: 10px; margin-top: 12px;
  border-radius: 999px;
  background: rgba(0,105,255,.10);
  border: 1px solid rgba(0,105,255,.08);
}
.glass-grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}
.glass-chip{
  height: 68px;
  border-radius: 18px;
  background: rgba(255,255,255,.56);
  border: 1px solid var(--border);
}
html.dark .glass-chip{ background: rgba(8,16,35,.56); }
.glass-foot{ margin-top: 16px; display:flex; gap:10px; }
.glass-pill{
  height: 12px; width: 40%;
  border-radius: 999px;
  background: rgba(0,105,255,.10);
  border: 1px solid rgba(0,105,255,.08);
}

/* Layout: aside + main */
.layout{
  display:grid;
  gap: 14px;
}
@media (min-width:980px){
  .layout{ grid-template-columns: .92fr 1.08fr; gap: 16px; align-items:start; }
}

/* Panels (cards) */
.panel{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head{
  padding: 18px 18px 12px;
}
@media (min-width:640px){ .panel-head{ padding: 22px 22px 14px; } }
.panel-head-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
}

.h2{
  margin:0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.muted{ margin:6px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.small{ font-size: 12.5px; }

.panel-aside{
  padding-bottom: 16px;
}
@media (min-width:980px){
  .panel-aside{ position: sticky; top: 84px; }
}

/* Steps */
.steps{
  margin: 0;
  padding: 0 18px 14px 18px;
  list-style: none;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width:640px){ .steps{ padding: 0 22px 16px 22px; } }

.steps li{
  display:flex;
  align-items:flex-start;
  gap: 10px;
}

.step-num{
  width: 26px; height: 26px;
  border-radius: 999px;
  display:grid; place-items:center;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid rgba(0,105,255,.18);
  flex:none;
}
.step-text{ font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 2px; }

/* Notice / tips */
.notice{
  margin: 4px 18px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card2);
  padding: 12px 12px;
}
@media (min-width:640px){ .notice{ margin: 6px 22px 16px; padding: 12px 14px; } }

.notice-title{
  display:flex; align-items:center; gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.notice-icon{
  width:10px; height:10px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--primary2), var(--primary));
  box-shadow: 0 8px 16px rgba(0,105,255,.14);
}
.notice-list{
  margin: 10px 0 0;
  padding: 0 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.notice-list li + li{ margin-top: 6px; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform 120ms ease, filter 160ms ease, box-shadow 160ms ease, background 160ms ease;
  text-align:center;
  user-select:none;
}
.btn:active{ transform: translateY(0); }
.btn-block{ margin: 0 18px; width: calc(100% - 36px); }
@media (min-width:640px){ .btn-block{ margin: 0 22px; width: calc(100% - 44px); } }

.btn-primary{
  background: linear-gradient(180deg, var(--primary2), var(--primary));
  color:#fff;
  box-shadow: 0 14px 26px rgba(0,105,255,.18);
}
.btn-primary:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.btn-secondary{
  background: rgba(255,255,255,.62);
  color: var(--text);
  border-color: var(--border);
}
html.dark .btn-secondary{ background: rgba(8,16,35,.62); }
.btn-secondary:hover{ transform: translateY(-1px); box-shadow: 0 14px 26px rgba(2,6,23,.10); }

.fineprint{
  margin: 10px 18px 0;
  font-size: 12px;
  color: var(--muted2);
}
@media (min-width:640px){ .fineprint{ margin: 10px 22px 0; } }

/* Main panel hint */
.hint{
  display:flex; align-items:center; gap:8px;
  padding: 9px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: var(--card2);
  font-size:12px;
  color: var(--muted2);
  white-space:nowrap;
}
.hint-dot{
  width:8px; height:8px; border-radius:999px;
  background: rgba(34,197,94,.92);
  box-shadow: 0 10px 18px rgba(34,197,94,.10);
}

/* Noscript message */
.noscript{
  margin: 0 12px 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border:1px solid var(--border);
  background: var(--card2);
  color: var(--muted);
  font-size: 13px;
}

/* Payment list */
.list{ padding: 12px 12px 18px; }
@media (min-width:640px){ .list{ padding: 14px 14px 22px; } }

.item{
  border:1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.44);
  overflow:hidden;
  transition: transform 120ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
html.dark .item{ background: rgba(8,16,35,.40); }
.item + .item{ margin-top: 12px; }
.item:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(2,6,23,.10);
  border-color: rgba(0,105,255,.20);
}
html.dark .item:hover{
  box-shadow: 0 20px 54px rgba(0,0,0,.45);
  border-color: rgba(106,181,255,.22);
}

.item-header{
  width:100%;
  display:flex; align-items:center; gap:14px;
  padding: 16px 16px;
  border:0;
  cursor:pointer;
  text-align:left;
  background:transparent;
}
.logo{
  width:42px; height:42px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: var(--surface);
  overflow:hidden;
  flex:none;
}
.logo img{ width:100%; height:100%; object-fit:cover; display:block; }
.item-main{ min-width:0; flex:1; }

.item-name{
  margin:0;
  display:flex; align-items:center; gap:10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.badge{
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  color: var(--muted2);
  background: var(--surface);
}
.item-sub{
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.chev{
  width: 22px; height: 22px; flex:none;
  color: rgba(81,97,121,.92);
  transition: transform 220ms ease;
}
html.dark .chev{ color: rgba(167,180,205,.95); }
.item[data-open="true"] .chev{ transform: rotate(180deg); }

.item-panel{
  border-top: 1px solid var(--border);
  padding: 16px 16px 18px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow:hidden;
  transition: max-height 320ms ease, opacity 220ms ease, transform 320ms ease;
}
.item[data-open="true"] .item-panel{
  max-height: 560px;
  opacity: 1;
  transform: translateY(0);
}

.panel-text{ margin:0 0 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* Action row */
.row{
  display:flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width:640px){
  .row{
    flex-direction: row;
    align-items:center;
    justify-content: space-between;
  }
}

/* Copy: use real button for a11y */
.copy-area{
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor:pointer;
  user-select:none;
  transition: background 160ms ease, border-color 160ms ease;
}
.copy-area:hover{ background: var(--surface2); border-color: rgba(0,105,255,.22); }
.copy-area code{
  font-size: 14px;
  color: var(--text);
}
.copy-hint{ font-size: 12px; color: var(--muted2); }

.btn-inline{
  width:100%;
}
@media (min-width:640px){ .btn-inline{ width:auto; } }

/* QR */
.qr{
  width:100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.64);
  overflow:hidden;
}
html.dark .qr{ background: rgba(8,16,35,.62); }
.qr img{ width:100%; height:100%; object-fit:contain; padding: 16px; display:block; }

/* Footer */
.footer{ margin-top: 18px; padding: 18px 0 0; }
.footer-inner{
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align:center;
}
.footer p{ margin: 0; }
.footer p + p{ margin-top: 6px; }

/* Floating WhatsApp */
.fab{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: var(--card);
  box-shadow: var(--shadow-md);
  display:grid;
  place-items:center;
  transition: transform 140ms ease, box-shadow 180ms ease, filter 160ms ease;
}
.fab:hover{ transform: translateY(-2px); }
.fab img{ width: 36px; height: 36px; border-radius: 14px; object-fit:cover; display:block; }
.fab-ring{
  position:absolute; inset:-2px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(34,197,94,.24), transparent 55%);
  pointer-events:none;
}

/* Toast */
.toast-viewport{
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 80;
  display:flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
  pointer-events:none;
}
.toast{
  pointer-events:auto;
  width: fit-content;
  max-width: 92vw;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 650;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  animation: toast-in 160ms ease-out;
}
@keyframes toast-in{
  from{ opacity:0; transform: translateY(-6px) scale(.98); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
