/* BAKİYE YÖNETİMİ — match reference deposit UI */
:root{
  --b-sc:255,255,255;
  --rb-border-radius:8px;
  --rb-default-transition-duration:.2s;
}

/* Pull page flush under site header (cancel layout px-3 pt-4) */
.royal-app:has(.rb-balance-page){
  background:#000;
}
.royal-app:has(.rb-balance-page) > main.royal-shell{
  padding-left:0 !important;
  padding-right:0 !important;
  padding-top:0 !important;
  background:#000;
}

.rb-balance-page{
  max-width:560px;
  margin:0 auto;
  padding:0 0 110px;
  color:#fff;
  background:#000;
  min-height:70vh;
}

/* Title row — upper side, tight under logo header */
.rb-balance-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px 6px;
  background:#000;
  position:sticky;
  top:0;
  z-index:5;
}
.rb-balance-back{
  width:28px;
  height:28px;
  border-radius:999px;
  border:0;
  background:rgba(var(--b-sc),.12);
  color:#e8e8e8;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.rb-balance-title{
  margin:0;
  font-family:"Roboto Condensed",Impact,sans-serif;
  font-size:16px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#fff;
  line-height:1.1;
}

/* Tabs */
.rb-balance-tabs{
  display:flex;
  gap:0;
  overflow-x:auto;
  scrollbar-width:none;
  border-bottom:1px solid rgba(var(--b-sc),.08);
  padding:0 4px;
  background:#000;
}
.rb-balance-tabs::-webkit-scrollbar{display:none}
.rb-balance-tab{
  position:relative;
  flex:0 0 auto;
  border:0;
  background:transparent;
  color:rgba(var(--b-sc),.75);
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
  padding:11px 12px 13px;
  white-space:nowrap;
  cursor:pointer;
}
.rb-balance-tab.is-active{
  color:#f2e500;
}
.rb-balance-tab-line{
  position:absolute;
  left:12px;
  right:12px;
  bottom:0;
  height:2px;
  background:#f2e500;
  border-radius:2px 2px 0 0;
}

/* Category chips — separated from sides */
.rb-balance-cats{
  display:flex;
  gap:8px;
  padding:12px 12px 8px;
  overflow-x:auto;
  scrollbar-width:none;
}
.rb-balance-cats::-webkit-scrollbar{display:none}
.rb-balance-cat{
  width:70px;
  min-width:70px;
  height:70px;
  border:0;
  border-radius:var(--rb-border-radius);
  background:rgba(var(--b-sc),.1);
  color:rgba(var(--b-sc),.6);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  transition:background-color var(--rb-default-transition-duration),color var(--rb-default-transition-duration);
}
.rb-balance-cat.is-active{
  background:rgba(var(--b-sc),.18);
  color:rgba(var(--b-sc),.95);
}
.rb-balance-cat-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:inherit;
  height:20px;
}
.rb-cat-grid{
  width:16px;
  height:16px;
  background:
    linear-gradient(currentColor,currentColor) 0 0/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 6px 0/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 12px 0/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 0 6px/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 6px 6px/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 12px 6px/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 0 12px/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 6px 12px/3.5px 3.5px no-repeat,
    linear-gradient(currentColor,currentColor) 12px 12px/3.5px 3.5px no-repeat;
}
.rb-balance-cat-label{
  font-size:10px;
  font-weight:600;
  line-height:1;
  color:inherit;
}

/*
  Payment grid — SEPARATED from sides + between cards
  Matches: .dep-w-info-bc .m-nav-items-list-item-bc
*/
.rb-pay-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:6px 12px 14px; /* side inset so cards don't touch edges */
  box-sizing:border-box;
  width:100%;
}
.rb-pay-card,
.dep-w-info-bc .m-nav-items-list-item-bc{
  width:100%;
  min-height:88px;
  box-sizing:border-box;
  border:0;
  border-radius:var(--rb-border-radius);
  color:rgba(var(--b-sc),.7);
  background:rgba(var(--b-sc),.14);
  padding-inline:10px;
  padding-block:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background-color var(--rb-default-transition-duration),color var(--rb-default-transition-duration);
}
.rb-pay-card:hover{
  background:rgba(var(--b-sc),.2);
  color:rgba(var(--b-sc),.9);
}
.rb-pay-card.is-active{
  background:rgba(242,229,0,.18);
  color:#f2e500;
  box-shadow:inset 0 0 0 1px rgba(242,229,0,.55);
}
.rb-pay-card img{
  max-width:100%;
  max-height:58px;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  pointer-events:none;
  transform:scale(1.08);
}

.rb-pay-form{
  padding:4px 12px 24px;
}
.rb-pay-form-only{padding-top:16px}
.rb-pay-balance{
  margin:0 0 12px;
  font-size:12px;
  color:rgba(var(--b-sc),.6);
}
.rb-pay-balance strong{color:#f2e500}
.rb-pay-label{
  display:block;
  font-size:11px;
  color:rgba(var(--b-sc),.55);
}
.rb-pay-input{
  margin-top:6px;
  width:100%;
  box-sizing:border-box;
  border:0;
  border-radius:var(--rb-border-radius);
  background:rgba(var(--b-sc),.1);
  color:#fff;
  padding:12px 14px;
  font-size:14px;
  outline:none;
}
.rb-pay-input:focus{
  background:rgba(var(--b-sc),.14);
  box-shadow:inset 0 0 0 1px rgba(242,229,0,.5);
}
.rb-pay-submit{
  margin-top:12px;
  width:100%;
  border:0;
  border-radius:var(--rb-border-radius);
  background:#f2e500;
  color:#000;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  padding:14px 12px;
  cursor:pointer;
}
.rb-pay-status{
  margin:10px 0 0;
  padding:10px 12px;
  border-radius:var(--rb-border-radius);
  background:rgba(var(--b-sc),.1);
  color:#f2e500;
  font-size:12px;
}
.rb-tx-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px 12px 24px;
}
.rb-tx-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:var(--rb-border-radius);
  background:rgba(var(--b-sc),.1);
  border:0;
}
.rb-tx-type{margin:0;font-size:12px;font-weight:600;color:#eee}
.rb-tx-date{margin:4px 0 0;font-size:10px;color:rgba(var(--b-sc),.45)}
.rb-tx-amt{font-size:12px;color:#f2e500}
.rb-tx-empty{
  margin:18px 12px;
  padding:28px 16px;
  text-align:center;
  border:1px dashed rgba(var(--b-sc),.2);
  border-radius:var(--rb-border-radius);
  color:rgba(var(--b-sc),.5);
  font-size:12px;
  background:rgba(var(--b-sc),.05);
}

/* Payment method detail (after clicking a havale card) */
.rb-dep-detail{
  padding:8px 16px 120px;
  background:#000;
  min-height:60vh;
}
.rb-dep-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:10px 0 18px;
}
.rb-dep-logo-wrap{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding-top:4px;
}
.rb-dep-logo{
  max-width:170px;
  max-height:72px;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}
.rb-dep-meta{
  flex:0 0 auto;
  text-align:right;
  padding-top:2px;
}
.rb-dep-meta-line{
  margin:0 0 4px;
  font-size:12px;
  line-height:1.35;
  color:rgba(255,255,255,.55);
  font-weight:500;
}
.rb-dep-meta-line:first-child{
  color:rgba(255,255,255,.45);
  font-size:11px;
  margin-bottom:6px;
}
.rb-dep-help{
  margin:8px 0 0;
  padding:0 4px;
  text-align:center;
  font-size:12px;
  line-height:1.55;
  color:rgba(255,255,255,.45);
  font-weight:400;
}
.rb-dep-chevron{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:14px 0 18px;
  color:rgba(255,255,255,.35);
}
.rb-dep-amount{
  width:100%;
  box-sizing:border-box;
  border:0;
  border-radius:8px;
  background:#2a2a2a;
  color:#fff;
  font-size:15px;
  padding:16px 14px;
  outline:none;
  margin:0;
}
.rb-dep-amount::placeholder{
  color:rgba(255,255,255,.4);
}
.rb-dep-amount:focus{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}
.rb-dep-submit{
  width:100%;
  margin-top:12px;
  border:0;
  border-radius:8px;
  background:#2f2f2f;
  color:#fff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:16px 14px;
  cursor:pointer;
}
.rb-dep-submit:active{
  background:#3a3a3a;
}
.rb-dep-status{
  margin:12px 0 0;
  padding:12px;
  border-radius:8px;
  background:rgba(255,255,255,.08);
  color:#f2e500;
  font-size:12px;
  text-align:center;
}

/* FAST havale full-page flow */
.rb-fast-page{
  position:fixed;
  inset:0;
  z-index:300;
  overflow:auto;
  background:#f3f5f8;
  color:#1b2340;
  padding:20px 12px 32px;
  font-family:Inter,Roboto,Arial,sans-serif;
}
.rb-fast-page *{box-sizing:border-box}
.rb-fast-brand{
  text-align:center;
  margin:4px auto 16px;
  width:min(280px, 72%);
}
.rb-fast-logo-img{
  display:block;
  width:100%;
  height:auto;
  margin:0 auto;
}
.rb-fast-card,.rb-fast-box,.rb-fast-field,.rb-fast-go,.rb-fast-success{
  width:min(440px, 100%);
  max-width:440px;
  margin-left:auto;
  margin-right:auto;
}
.rb-fast-card{
  background:#fff;
  border:1px solid #e6ebf2;
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:12px;
  box-shadow:0 1px 0 rgba(20,30,60,.02);
}
.rb-fast-timer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:64px;
}
.rb-fast-timer strong{font-size:22px;letter-spacing:.02em}
.rb-fast-timer-ico{
  width:36px;height:36px;border-radius:999px;
  background:#5b35e8;color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
}
.rb-fast-steps{display:flex;align-items:center;gap:6px;min-height:52px;width:100%;overflow:hidden}
.rb-fast-step{display:flex;align-items:center;gap:6px;min-width:0;font-size:clamp(11px,3.1vw,13px);font-weight:700;color:#9aa3b5}
.rb-fast-step>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rb-fast-step.is-on{color:#5b35e8}
.rb-fast-step.is-done{color:#16a34a}
.rb-fast-dot{
  width:26px;height:26px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#e8edf3;color:#8b95a8;font-size:13px;font-weight:800;flex:0 0 auto;
}
.rb-fast-step.is-on .rb-fast-dot{background:#5b35e8;color:#fff}
.rb-fast-step.is-done .rb-fast-dot{background:#22c55e;color:#fff}
.rb-fast-line{flex:1;height:2px;background:#e6ebf2;min-width:24px}
.rb-fast-warn{display:flex;align-items:flex-start;gap:10px}
.rb-fast-warn p{margin:0;font-size:13px;line-height:1.45;color:#243049;font-weight:600}
.rb-fast-bang{
  width:28px;height:28px;border-radius:999px;flex:0 0 auto;
  background:#f5a524;color:#fff;font-weight:900;
  display:inline-flex;align-items:center;justify-content:center;
}
.rb-fast-field{display:block;margin:0 auto 12px}
.rb-fast-field>span{display:block;font-size:13px;color:#667085;margin:0 2px 6px}
.rb-fast-box{
  background:#fff;border:1px solid #e3e8f0;border-radius:12px;
  min-height:52px;padding:12px 14px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  color:#1b2340;font-weight:800;font-size:15px;
}
.rb-fast-iban{font-weight:700;letter-spacing:.01em;word-break:break-all}
.rb-fast-copy{
  border:0;background:transparent;color:#98a2b3;
  display:inline-flex;flex-direction:column;align-items:center;gap:1px;
  cursor:pointer;flex:0 0 auto;padding:0;
}
.rb-fast-copy small{font-size:10px;font-weight:600}
.rb-fast-amount{display:flex;align-items:center;justify-content:space-between;min-height:58px;font-weight:700}
.rb-fast-amount span{color:#243049}
.rb-fast-amount strong{color:#5b35e8;font-size:18px}
.rb-fast-go{
  display:flex;align-items:center;justify-content:center;gap:6px;
  width:min(440px, 100%);border:0;border-radius:12px;cursor:pointer;
  background:#5b35e8;color:#fff;font-size:clamp(14px, 4vw, 16px);font-weight:800;
  min-height:52px;margin:6px auto 16px;padding:12px 16px;
}
.rb-fast-success{text-align:center;padding:36px 12px 8px;max-width:440px;margin:10px auto 0}
.rb-fast-check{
  width:92px;height:92px;border-radius:999px;margin:8px auto 22px;
  background:#22c55e;display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 10px rgba(34,197,94,.12);
}
.rb-fast-success h2{margin:0 0 10px;font-size:26px;line-height:1.25;color:#1b2340;font-weight:800}
.rb-fast-success p{margin:0 auto 28px;max-width:340px;color:#667085;font-size:14px;line-height:1.5}
.rb-fast-success strong{color:#1b2340}

/* tetherPay crypto checkout */
.tp-page{position:fixed;inset:0;z-index:320;background:rgba(0,0,0,.72);overflow:auto;padding:16px 10px 28px;display:flex;justify-content:center;align-items:flex-start}
.tp-shell{width:min(430px,100%);background:#12151f;border:1px solid #232838;border-radius:16px;padding:14px;color:#fff;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.tp-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
.tp-brand{display:flex;align-items:center;gap:8px;min-width:0}
.tp-brand-ico{width:22px;height:22px;border-radius:50%;object-fit:cover}
.tp-brand strong{color:#26a17b;font-size:15px}
.tp-brand span{color:#8b93a7;font-size:11px;border-left:1px solid #2c3348;padding-left:8px}
.tp-head-right{display:flex;align-items:center;gap:8px}
.tp-lang{display:flex;background:#1a2030;border-radius:8px;overflow:hidden}
.tp-lang button{border:0;background:transparent;color:#9aa3b8;padding:6px 10px;font-size:11px;font-weight:700;cursor:pointer}
.tp-lang .is-on{background:#2a3348;color:#fff}
.tp-timer{display:flex;align-items:center;gap:6px;border:1px solid #f2e500;color:#f2e500;border-radius:8px;padding:5px 8px;font-size:12px;font-weight:700}
.tp-hero{background:linear-gradient(90deg,#1a73e8,#7b3ff0);border-radius:12px;padding:14px 16px;margin-bottom:10px}
.tp-hero p{margin:0;font-size:12px;opacity:.9;text-transform:lowercase}
.tp-hero h2{margin:4px 0 0;font-size:28px;font-weight:800}
.tp-steps{margin-top:8px;display:flex;justify-content:flex-end;align-items:center;gap:10px;font-size:11px}
.tp-bars{display:flex;gap:4px}.tp-bars i{display:block;width:28px;height:4px;border-radius:4px;background:rgba(255,255,255,.28)}
.tp-bars i.on{background:#fff}
.tp-live{display:flex;align-items:center;gap:8px;background:#171c29;border-radius:8px;padding:8px 10px;margin-bottom:12px;font-size:12px}
.tp-live span:first-child{color:#22c55e;font-weight:800}
.tp-title{margin:8px 0 12px;font-size:18px}
.tp-coins{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.tp-coin{position:relative;border:1px solid #2a3144;background:#171c29;border-radius:12px;padding:16px 10px;color:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px}
.tp-coin img{width:42px;height:42px;object-fit:contain}
.tp-coin strong{font-size:15px}.tp-coin small{color:#9aa3b8;font-size:11px}
.tp-coin.is-on{border-color:#1a8cff;box-shadow:0 0 0 1px #1a8cff55}
.tp-check{position:absolute;top:8px;right:8px;width:18px;height:18px;border-radius:50%;background:#1a8cff;color:#fff;font-size:11px;display:grid;place-items:center}
.tp-actions{display:flex;gap:8px}
.tp-continue{flex:1;border:0;border-radius:10px;background:linear-gradient(90deg,#1a73e8,#7b3ff0);color:#fff;font-weight:800;padding:14px;cursor:pointer}
.tp-close{width:48px;border:1px solid #2a3144;border-radius:10px;background:#171c29;color:#fff;cursor:pointer}
.tp-warn{border-radius:10px;padding:10px 12px;margin-bottom:10px;font-size:12px;font-weight:600}
.tp-warn.red{background:#2a1218;border:1px solid #7f1d1d;color:#fecaca}
.tp-warn.orange{background:#2a1d10;border:1px solid #9a3412;color:#fdba74}
.tp-payrow{display:grid;grid-template-columns:140px 1fr;gap:12px;margin:12px 0}
.tp-qr{background:#fff;border-radius:12px;padding:8px;display:grid;place-items:center}
.tp-qr img{width:100%;height:auto;display:block}
.tp-send p{margin:0;color:#7dd3fc;font-size:11px;letter-spacing:.04em;font-weight:700}
.tp-amtline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0}
.tp-amtline strong{font-size:22px}
.tp-amtline button,.tp-wallet-top button{border:0;background:#1a8cff;color:#fff;border-radius:8px;padding:8px 10px;font-size:11px;font-weight:700;cursor:pointer}
.tp-net{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12px}
.tp-net span{background:#14532d;color:#86efac;border-radius:6px;padding:3px 8px;font-weight:700}
.tp-net em{color:#f87171;font-style:normal;font-weight:700}
.tp-wallet{background:#171c29;border:1px solid #2a3144;border-radius:12px;padding:12px;margin-bottom:12px}
.tp-wallet-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#93c5fd;font-size:11px;font-weight:700;letter-spacing:.04em}
.tp-addr{background:#0f1320;border-radius:8px;padding:12px;font-size:13px;word-break:break-all;font-family:ui-monospace,Consolas,monospace}
.tp-sent{width:100%;border:0;border-radius:10px;background:linear-gradient(90deg,#1a73e8,#7b3ff0);color:#fff;font-weight:800;padding:14px;cursor:pointer;margin-bottom:8px}
.tp-cancel{width:100%;border:1px solid #2a3144;border-radius:10px;background:#171c29;color:#9aa3b8;font-weight:700;padding:12px;cursor:pointer}
.tp-foot{display:flex;justify-content:space-between;gap:8px;margin-top:14px;color:#8b93a7;font-size:11px}
@media (max-width:420px){.tp-payrow{grid-template-columns:1fr}.tp-qr{max-width:180px;margin:0 auto}}
