*{box-sizing:border-box} :root{--green:#087f62;--green2:#0e9b7a;--bg:#f4f5f7;--text:#151719;--muted:#7f858b;--card:#fff} html,body{margin:0;background:#e9ebed;font-family:Arial,Helvetica,sans-serif;color:var(--text)} body{min-height:100vh}.app{max-width:720px;margin:auto;min-height:100vh;background:var(--bg);padding-bottom:82px}.topbar{height:64px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:10;border-bottom:1px solid #e8e8e8}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:21px}.brand-mark{width:38px;height:38px;border-radius:11px;background:var(--green);color:#fff;display:grid;place-items:center}.icon-btn,.text-btn{border:0;background:transparent;font-size:20px}.text-btn{font-size:14px;color:var(--green);font-weight:700}.screen{padding:16px}.hero{border-radius:24px;padding:25px 20px;background:linear-gradient(135deg,#073d52,#087f62 55%,#a5c84f);color:#fff;overflow:hidden;box-shadow:0 8px 22px #00000012}.hero-tag{font-weight:800;font-size:13px;letter-spacing:1px}.hero h1{font-size:34px;margin:9px 0 7px}.hero p{font-size:15px;line-height:1.45;margin:0 0 18px;max-width:560px}.btn{border:0;border-radius:14px;background:var(--green);color:#fff;padding:14px 18px;font-size:16px;font-weight:700;cursor:pointer}.btn.light{background:#fff;color:var(--green)}.btn.outline{background:transparent;border:1px solid var(--green);color:var(--green)}.full{width:100%;margin-top:16px}.balance-card{margin-top:14px;background:#fff;border-radius:20px;padding:18px;display:flex;align-items:center;justify-content:space-between}.balance-card h2{margin:5px 0 0;font-size:27px}.balance-card.large{padding:22px}.mini-btn{border:0;background:#e0f4ee;color:var(--green);font-weight:700;border-radius:12px;padding:11px 16px}.muted{color:var(--muted)}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.quick-grid button{background:#fff;border:0;border-radius:18px;padding:18px;text-align:left;display:flex;flex-direction:column;gap:7px;font-size:15px}.quick-grid b{font-size:25px;color:var(--green)}.quick-grid small,.rate-card small{color:var(--muted)}.rate-card{margin-top:12px;border-radius:18px;background:#e1f7f1;padding:17px;display:flex;justify-content:space-between;align-items:center}.rate-card div{display:flex;flex-direction:column;gap:5px}.live{color:var(--green);font-size:13px;font-weight:700}.section-title{font-size:24px;margin:25px 0 12px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.steps div{background:#fff;border-radius:16px;padding:16px 10px;text-align:center}.steps b{width:30px;height:30px;border-radius:50%;background:#e1f4ef;color:var(--green);display:grid;place-items:center;margin:auto auto 8px}.steps span{font-size:13px}.page-head{display:flex;align-items:center;justify-content:space-between;margin:4px 0 14px}.page-head h2{margin:0;font-size:25px}.form-card{background:#fff;border-radius:21px;padding:20px}.form-card h3{margin:2px 0 13px;font-size:18px}.network-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice{padding:15px;border:1px solid #ddd;border-radius:13px;background:#fff;font-size:15px;font-weight:700}.choice.selected{border:2px solid var(--green);color:var(--green)}.notice{background:#f4f7ff;border-radius:14px;padding:13px;margin:16px 0;color:#61676c;font-size:13px;line-height:1.45}.qr{height:145px;width:145px;margin:20px auto;border:8px solid #f1f1f1;border-radius:12px;display:grid;place-items:center;text-align:center;font-size:28px;color:#555}.qr small{font-size:11px;color:#999}.form-card label{display:block;margin:15px 0 7px;font-size:14px;font-weight:700}.address{display:flex;gap:8px;align-items:center;border:1px solid #ddd;border-radius:12px;padding:12px;font-size:13px}.address span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.address button{border:0;background:#e1f4ef;color:var(--green);border-radius:8px;padding:7px 10px;font-weight:700}input{width:100%;padding:14px;border:1px solid #ddd;border-radius:12px;font-size:16px;outline:none;background:#fff}.sell-rate,.receive-box{display:flex;justify-content:space-between;align-items:center;padding:14px 0}.sell-rate{border-bottom:1px solid #eee;margin-bottom:5px}.sell-rate b{color:var(--green)}.receive-box{margin-top:15px;background:#f2f8ff;border-radius:14px;padding:16px}.receive-box b{font-size:24px}.order-card{background:#fff;border-radius:19px;padding:17px;margin-bottom:12px}.order-top{display:flex;justify-content:space-between;align-items:flex-start}.order-top b{font-size:21px;display:block}.order-top small{display:block;color:var(--muted);margin-top:5px}.status{padding:7px 10px;border-radius:10px;background:#fff2d9;color:#9b6a16;font-size:12px;font-weight:700}.status.completed{background:#def6ed;color:var(--green)}.status.rejected{background:#ffe7e7;color:#b13b3b}.order-detail{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:13px}.order-detail span{color:var(--muted)}.order-detail b{text-align:right}.empty{background:#fff;border-radius:20px;min-height:300px;display:grid;place-items:center;text-align:center;padding:30px;color:#9aa1a6}.empty-icon{font-size:52px;opacity:.35}.profile{display:flex;align-items:center;gap:14px;background:#f5f1ff;padding:17px;border-radius:20px;font-size:17px}.avatar{width:70px;height:70px;border-radius:50%;background:linear-gradient(135deg,#e6b694,#80513a);display:grid;place-items:center;color:#fff;font-size:34px}.menu{margin-top:14px;background:#fff;border-radius:19px;overflow:hidden}.menu button{width:100%;background:#fff;border:0;border-bottom:1px solid #eee;padding:19px;text-align:left;font-size:16px;display:flex;justify-content:space-between}.menu button:last-child{border:0}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(720px,100%);height:82px;background:#fff;display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #ddd;z-index:20}.bottom-nav button{border:0;background:#fff;color:#999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px}.bottom-nav button span{font-size:22px}.bottom-nav button.active{color:#111}.bottom-nav button.active span{color:var(--green)}#toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%) translateY(15px);background:#222;color:#fff;padding:11px 17px;border-radius:10px;font-size:13px;opacity:0;pointer-events:none;transition:.25s;z-index:50}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media(max-width:430px){.hero h1{font-size:30px}.screen{padding:14px}.bottom-nav{height:78px}.bottom-nav button span{font-size:20px}}

.full-address {
  display: flex;
  align-items: center;
  gap: 10px;
}

.full-address span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: 14px;
  line-height: 1.5;
}

.full-address button {
  flex-shrink: 0;
}


.address.full-address {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  height: auto !important;
  min-height: 70px !important;
}

.address.full-address span {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
  line-height: 1.45 !important;
}

.address.full-address button {
  flex-shrink: 0 !important;
}


.qr-box {
  margin: 20px auto;
  width: 220px;
  padding: 14px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.qr-box img {
  display: block;
  width: 190px;
  height: 190px;
  margin: 0 auto 8px;
}

.qr-box small {
  display: block;
  font-size: 12px;
  color: #777;
}


.qr-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 10px;
  margin: 16px 0;
  background: #fff;
  border-radius: 16px;
  box-sizing: border-box;
}

.qr-box img {
  width: 220px;
  height: 220px;
  display: block;
  object-fit: contain;
}

.full-address {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.full-address span {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.45;
  font-size: 13px;
}

.full-address button {
  flex: 0 0 auto;
}


.auth-screen{
  min-height:calc(100vh - 150px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top:30px;
}

.auth-logo{
  width:72px;
  height:72px;
  border-radius:22px;
  background:#087f68;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:38px;
  font-weight:800;
  margin:0 auto 20px;
}

.auth-screen h1{
  text-align:center;
  margin:0 0 6px;
  font-size:30px;
}

.auth-screen>p{
  text-align:center;
  margin-bottom:22px;
}

.auth-card{
  width:100%;
}

.password-wrap{
  position:relative;
}

.password-wrap input{
  padding-right:55px;
}

.password-wrap button{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  font-size:20px;
}

.auth-forgot{
  display:block;
  margin:8px 0 18px auto;
  text-decoration:underline;
}

.auth-register{
  text-align:center;
  margin-top:18px;
  font-size:14px;
}

.auth-register button{
  border:0;
  background:none;
  color:#087f68;
  font-weight:700;
  margin-left:5px;
}

.logout-btn{
  color:#c62828 !important;
}


/* ===== RPX PAY GOLDEN AUTH DESIGN ===== */

body:has(.auth-screen){
  background:#050505;
}

body:has(.auth-screen) .topbar{
  display:none;
}

body:has(.auth-screen) .app{
  max-width:100%;
  background:#050505;
  padding-bottom:0;
}

body:has(.auth-screen) .bottom-nav{
  display:none;
}

.auth-screen{
  padding:0 !important;
  min-height:100vh;
  background:#050505;
  color:#111;
}

.auth-hero{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  padding:48px 18px 45px;
  box-sizing:border-box;
  background:
    radial-gradient(circle at 50% 8%,rgba(218,170,49,.16),transparent 25%),
    radial-gradient(circle at 90% 25%,rgba(218,170,49,.10),transparent 28%),
    linear-gradient(145deg,#030405 0%,#090a0b 55%,#111214 100%);
}

.auth-hero:before{
  content:"";
  position:absolute;
  width:430px;
  height:430px;
  right:-220px;
  top:20px;
  border-radius:50%;
  border:1px solid rgba(220,174,57,.25);
  box-shadow:0 0 80px rgba(220,174,57,.08);
}

.auth-hero:after{
  content:"";
  position:absolute;
  left:-180px;
  bottom:-250px;
  width:520px;
  height:430px;
  border-radius:50%;
  border-top:2px solid rgba(236,196,92,.55);
  transform:rotate(-8deg);
}

.auth-brand{
  position:relative;
  z-index:2;
  text-align:center;
  color:#fff;
  padding:4px 0 38px;
}

.auth-logo-mark{
  width:86px;
  height:86px;
  margin:0 auto 14px;
  border-radius:25px;
  display:grid;
  place-items:center;
  font-size:48px;
  font-weight:900;
  color:#080808;
  background:linear-gradient(145deg,#ffe18a 0%,#e4b83e 52%,#ad7713 100%);
  box-shadow:
    0 0 0 1px rgba(255,221,126,.35),
    0 12px 42px rgba(220,174,57,.30);
}

.auth-brand-name{
  font-size:31px;
  line-height:1;
  font-weight:900;
  letter-spacing:1px;
  color:#f3f3f3;
}

.auth-brand-name span{
  color:#e9bb49;
}

.auth-tagline{
  margin-top:14px;
  font-size:10px;
  letter-spacing:5px;
  color:#ddd;
}

.auth-card{
  position:relative;
  z-index:3;
  width:min(100%,620px);
  margin:0 auto;
  background:linear-gradient(145deg,#fff 0%,#f8f8f8 100%);
  border-radius:42px 42px 30px 30px;
  padding:32px 25px 27px;
  box-sizing:border-box;
  box-shadow:
    0 -8px 35px rgba(255,255,255,.08),
    0 22px 50px rgba(0,0,0,.45);
}

.auth-card:before{
  content:"";
  position:absolute;
  top:-2px;
  left:18px;
  right:18px;
  height:3px;
  border-radius:50%;
  background:linear-gradient(90deg,transparent,#e2b640,transparent);
}

.auth-card h1{
  margin:0;
  font-size:29px;
  line-height:1.18;
  letter-spacing:-.8px;
  color:#101216;
}

.auth-card h1 span{
  color:#a97410;
}

.auth-subtitle{
  margin:9px 0 24px;
  font-size:15px;
  color:#5e626a;
  line-height:1.4;
}

.auth-input{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  min-height:56px;
  margin:12px 0;
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:18px;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
  overflow:hidden;
}

.auth-input:focus-within{
  border-color:#d7aa3c;
  box-shadow:0 4px 18px rgba(194,145,31,.13);
}

.auth-input-icon{
  width:48px;
  flex:0 0 48px;
  text-align:center;
  font-size:22px;
  color:#15171b;
}

.auth-input input{
  flex:1;
  width:100%;
  min-width:0;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:16px 10px 16px 0 !important;
  font-size:16px;
  color:#16181c;
}

.auth-input input::placeholder{
  color:#858a93;
}

.password-toggle{
  flex:0 0 48px;
  border:0;
  background:transparent;
  color:#17191d;
  font-size:19px;
  cursor:pointer;
}

.auth-forgot-wrap{
  text-align:right;
  margin:5px 4px 19px;
}

.auth-forgot{
  border:0;
  background:none;
  color:#986d18;
  text-decoration:underline;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.auth-gold-btn{
  width:100%;
  border:0;
  border-radius:18px;
  padding:16px 20px;
  background:linear-gradient(135deg,#f5d36f,#c99120);
  color:#080808;
  font-size:18px;
  font-weight:900;
  box-shadow:
    0 9px 24px rgba(195,145,29,.27),
    inset 0 1px rgba(255,255,255,.55);
  cursor:pointer;
}

.auth-gold-btn b{
  margin-left:12px;
  font-size:24px;
}

.auth-gold-btn:active{
  transform:scale(.99);
}

.auth-or{
  display:flex;
  align-items:center;
  gap:12px;
  margin:18px 0 10px;
  color:#202228;
  justify-content:center;
}

.auth-or i{
  height:1px;
  flex:1;
  background:#dedede;
}

.auth-or span{
  font-size:14px;
  font-weight:700;
}

.auth-bottom{
  text-align:center;
  margin-top:15px;
  color:#35383e;
  font-size:14px;
}

.auth-bottom button{
  border:0;
  background:none;
  color:#956914;
  font-weight:900;
  font-size:14px;
  cursor:pointer;
}

.register-card{
  padding-top:30px;
}

.register-card .auth-subtitle{
  margin-bottom:20px;
}

.register-card .auth-input{
  margin:11px 0;
}

.register-card .auth-gold-btn{
  margin-top:17px;
}

.register-hero{
  padding-top:28px;
}

.register-hero .auth-brand{
  padding-bottom:24px;
}

.register-hero .auth-logo-mark{
  width:70px;
  height:70px;
  font-size:39px;
  border-radius:21px;
}

.register-hero .auth-brand-name{
  font-size:27px;
}

.register-hero .auth-tagline{
  margin-top:10px;
}

@media(max-width:430px){
  .auth-hero{
    padding:28px 14px 35px;
  }

  .auth-brand{
    padding-bottom:28px;
  }

  .auth-logo-mark{
    width:76px;
    height:76px;
    font-size:42px;
  }

  .auth-brand-name{
    font-size:28px;
  }

  .auth-tagline{
    font-size:8px;
    letter-spacing:4px;
  }

  .auth-card{
    border-radius:34px 34px 26px 26px;
    padding:27px 20px 23px;
  }

  .auth-card h1{
    font-size:27px;
  }
}


/* =========================================================
   RPX PAY - GOLDEN AUTH UI
   ========================================================= */

body.auth-mode{
  background:#080a0d !important;
}

body.auth-mode .topbar,
body.auth-mode .bottom-nav{
  display:none !important;
}

body.auth-mode .app{
  width:100% !important;
  max-width:none !important;
  min-height:100vh !important;
  padding-bottom:0 !important;
  background:#080a0d !important;
}

body.auth-mode .screen{
  padding:0 !important;
}

/* Main background */
.auth-shell{
  position:relative;
  min-height:100vh;
  width:100%;
  overflow:hidden;
  box-sizing:border-box;
  padding:34px 24px 55px;
  background:
    radial-gradient(circle at 72% 17%,rgba(222,174,50,.13),transparent 23%),
    radial-gradient(circle at 20% 85%,rgba(180,135,30,.09),transparent 28%),
    linear-gradient(145deg,#05070a 0%,#0b0e12 47%,#050608 100%);
  color:#171717;
}

/* Decorative golden globe curves */
.auth-shell::before{
  content:"";
  position:absolute;
  width:620px;
  height:620px;
  right:-310px;
  top:10px;
  border:1px solid rgba(224,178,55,.38);
  border-radius:50%;
  box-shadow:
    0 0 0 42px rgba(224,178,55,.025),
    0 0 0 110px rgba(224,178,55,.018);
  pointer-events:none;
}

.auth-shell::after{
  content:"";
  position:absolute;
  width:760px;
  height:760px;
  left:-500px;
  bottom:-470px;
  border:1px solid rgba(224,178,55,.38);
  border-radius:50%;
  pointer-events:none;
}

.auth-glow{
  position:absolute;
  pointer-events:none;
  border-radius:50%;
  filter:blur(25px);
}

.auth-glow-one{
  width:170px;
  height:170px;
  top:75px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(221,174,55,.10);
}

.auth-glow-two{
  width:240px;
  height:240px;
  bottom:30px;
  right:-80px;
  background:rgba(221,174,55,.06);
}

/* Brand */
.auth-brand{
  position:relative;
  z-index:2;
  text-align:center;
  padding:5px 0 27px;
}

.auth-logo-mark{
  width:112px;
  height:112px;
  margin:0 auto 18px;
  border-radius:29px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:61px;
  font-weight:900;
  color:#090909;
  background:
    linear-gradient(145deg,#ffe58b 0%,#e6b83e 45%,#b98213 100%);
  border:2px solid rgba(255,227,133,.45);
  box-shadow:
    0 0 28px rgba(226,175,52,.25),
    inset 0 1px 0 rgba(255,255,255,.45);
}

.auth-brand-name{
  font-size:39px;
  line-height:1;
  font-weight:900;
  letter-spacing:-1.5px;
  color:#f5f5f5;
}

.auth-brand-name span{
  color:#e5b43d;
}

.auth-tagline{
  margin-top:17px;
  color:#e5e5e5;
  font-size:11px;
  letter-spacing:5px;
  white-space:nowrap;
}

/* White curved card */
.auth-card-golden{
  position:relative;
  z-index:3;
  width:min(100%,650px);
  margin:0 auto;
  border-radius:42px 42px 34px 34px;
  padding:3px;
  background:
    linear-gradient(135deg,
      #fffdf8 0%,
      #f2d276 13%,
      #ffffff 23%,
      #ffffff 77%,
      #d6a62d 90%,
      #fff9e9 100%);
  box-shadow:
    0 20px 60px rgba(0,0,0,.42),
    0 0 25px rgba(221,173,48,.12);
}

.auth-card-inner{
  background:
    linear-gradient(180deg,#ffffff 0%,#fcfcfc 70%,#f8f8f8 100%);
  border-radius:39px 39px 31px 31px;
  padding:39px 35px 31px;
}

.auth-title{
  text-align:center;
  font-size:31px;
  line-height:1.18;
  font-weight:850;
  letter-spacing:-1px;
  color:#101010;
}

.auth-title span{
  color:#a87516;
}

.auth-subtitle{
  text-align:center;
  margin:18px 0 28px;
  color:#686d73;
  font-size:17px;
  line-height:1.4;
}

/* Inputs */
.auth-input-wrap{
  position:relative;
  height:72px;
  margin-bottom:14px;
  display:flex;
  align-items:center;
  background:linear-gradient(180deg,#fff,#f8f8f8);
  border:1px solid #e4e4e4;
  border-radius:23px;
  box-shadow:
    0 4px 13px rgba(0,0,0,.055),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.auth-input-wrap:focus-within{
  border-color:#d6aa42;
  box-shadow:
    0 0 0 3px rgba(214,170,66,.10),
    0 5px 16px rgba(0,0,0,.06);
}

.auth-input-icon{
  width:62px;
  flex:none;
  text-align:center;
  font-size:27px;
  color:#171717;
  line-height:1;
}

.auth-input-wrap input{
  width:100% !important;
  height:100% !important;
  box-sizing:border-box !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:23px !important;
  padding:0 54px 0 0 !important;
  font-size:18px !important;
  color:#171717 !important;
}

.auth-input-wrap input::placeholder{
  color:#85898f;
  opacity:1;
}

.auth-eye{
  position:absolute;
  right:19px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#111;
  font-size:20px;
  padding:7px;
  cursor:pointer;
}

/* Forgot */
.auth-forgot-golden{
  text-align:right;
  margin:2px 9px 27px;
}

.auth-forgot-golden button{
  border:0;
  background:none;
  padding:0;
  color:#8b651d;
  font-size:16px;
  font-weight:700;
  text-decoration:underline;
  cursor:pointer;
}

/* Gold main button */
.auth-main-btn{
  width:100%;
  height:74px;
  border:0;
  border-radius:23px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:38px;
  font-size:20px;
  font-weight:850;
  color:#111;
  background:
    linear-gradient(135deg,#ffe078 0%,#e8b83e 52%,#c99320 100%);
  box-shadow:
    0 11px 25px rgba(208,157,39,.28),
    inset 0 1px 0 rgba(255,255,255,.42);
  cursor:pointer;
}

.auth-main-btn b{
  font-size:31px;
  line-height:1;
  font-weight:500;
}

/* OR */
.auth-or{
  display:flex;
  align-items:center;
  gap:18px;
  margin:22px 0 19px;
}

.auth-or span{
  height:1px;
  flex:1;
  background:#dedede;
}

.auth-or b{
  font-size:18px;
  font-weight:500;
  color:#222;
}

/* Bottom */
.auth-bottom-text{
  text-align:center;
  color:#303030;
  font-size:16px;
  line-height:1.5;
}

.auth-bottom-text button{
  border:0;
  background:none;
  padding:0 0 0 5px;
  color:#93691b;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}

/* Register */
.register-card .auth-card-inner{
  padding-top:37px;
}

.register-card .auth-subtitle{
  margin-bottom:27px;
}

/* Mobile */
@media(max-width:520px){

  .auth-shell{
    padding:26px 24px 45px;
  }

  .auth-logo-mark{
    width:108px;
    height:108px;
    border-radius:29px;
    font-size:58px;
  }

  .auth-brand-name{
    font-size:38px;
  }

  .auth-tagline{
    font-size:9px;
    letter-spacing:4px;
  }

  .auth-card-golden{
    border-radius:36px 36px 29px 29px;
  }

  .auth-card-inner{
    border-radius:33px 33px 26px 26px;
    padding:34px 32px 28px;
  }

  .auth-title{
    font-size:30px;
  }

  .auth-subtitle{
    font-size:16px;
  }

  .auth-input-wrap{
    height:70px;
    border-radius:22px;
  }

  .auth-main-btn{
    height:72px;
    border-radius:22px;
  }
}

@media(max-width:390px){

  .auth-shell{
    padding-left:17px;
    padding-right:17px;
  }

  .auth-brand-name{
    font-size:34px;
  }

  .auth-tagline{
    font-size:8px;
    letter-spacing:3px;
  }

  .auth-card-inner{
    padding-left:23px;
    padding-right:23px;
  }

  .auth-title{
    font-size:27px;
  }

  .auth-input-icon{
    width:55px;
    font-size:24px;
  }

  .auth-input-wrap input{
    font-size:16px !important;
  }
}


/* ===== RPX PAY AUTH MOBILE SIZE FIX ===== */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.auth-screen {
  width: 100% !important;
  max-width: 100% !important;
  min-height: calc(100vh - 64px) !important;
  padding: 20px 16px 95px !important;
  overflow-x: hidden;
}

.auth-screen > div {
  width: 100% !important;
  max-width: 390px !important;
  margin: 0 auto !important;
}

.auth-screen input {
  max-width: 100% !important;
  font-size: 16px !important;
}

.auth-screen button {
  max-width: 100%;
}

@media (max-width: 430px) {

  .auth-screen {
    padding: 16px 14px 92px !important;
  }

  .auth-screen > div {
    max-width: 100% !important;
  }

  .auth-screen h1 {
    font-size: 30px !important;
    line-height: 1.12 !important;
  }

  .auth-screen p {
    font-size: 15px !important;
  }

  .auth-card {
    width: 100% !important;
    padding: 22px 18px !important;
    border-radius: 28px !important;
  }

  .auth-card input {
    height: 58px !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
  }
}

/* prevent oversized mobile scaling */
@media (max-width: 380px) {
  .auth-screen h1 {
    font-size: 27px !important;
  }

  .auth-card {
    padding: 20px 15px !important;
  }

  .auth-card input {
    height: 54px !important;
  }
}


/* ===== RPX AUTH MOBILE SIZE FIX ===== */

html,
body {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.auth-mode {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: #050505;
}

body.auth-mode #screen {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.auth-mode .auth-shell {
  width: 100%;
  min-height: 100dvh;
  min-height: 100vh;
  margin: 0;
  padding: 34px 16px 36px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
}

body.auth-mode .auth-brand {
  width: 100%;
  max-width: 430px;
  margin: 0 auto 26px;
  text-align: center;
  flex: 0 0 auto;
}

body.auth-mode .auth-logo-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  box-sizing: border-box;
}

body.auth-mode .auth-brand-name {
  font-size: 38px;
  line-height: 1.05;
  white-space: nowrap;
}

body.auth-mode .auth-tagline {
  margin-top: 13px;
  font-size: 12px;
  letter-spacing: 6px;
  white-space: nowrap;
}

body.auth-mode .auth-card-golden {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  box-sizing: border-box;
  flex: 0 0 auto;
}

body.auth-mode .auth-card-inner {
  width: 100%;
  box-sizing: border-box;
  padding: 32px 24px 30px;
}

body.auth-mode .auth-title {
  width: 100%;
  box-sizing: border-box;
  font-size: 32px;
  line-height: 1.12;
  text-align: center;
}

body.auth-mode .auth-subtitle {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  margin: 14px 0 26px;
}

body.auth-mode .auth-input-wrap {
  width: 100%;
  min-height: 62px;
  box-sizing: border-box;
  margin-bottom: 14px;
}

body.auth-mode .auth-input-wrap input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.auth-mode .auth-main-btn {
  width: 100%;
  min-height: 62px;
  box-sizing: border-box;
  margin-top: 10px;
}

body.auth-mode .auth-or {
  width: 100%;
  box-sizing: border-box;
  margin: 22px 0 16px;
}

body.auth-mode .auth-bottom-text {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 430px) {

  body.auth-mode .auth-shell {
    padding: 24px 12px 30px;
  }

  body.auth-mode .auth-brand {
    margin-bottom: 22px;
  }

  body.auth-mode .auth-logo-mark {
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
  }

  body.auth-mode .auth-brand-name {
    font-size: 34px;
  }

  body.auth-mode .auth-tagline {
    font-size: 10px;
    letter-spacing: 4px;
  }

  body.auth-mode .auth-card-golden {
    width: 100%;
    max-width: 410px;
  }

  body.auth-mode .auth-card-inner {
    padding: 28px 18px 26px;
  }

  body.auth-mode .auth-title {
    font-size: 30px;
  }

  body.auth-mode .auth-subtitle {
    font-size: 15px;
    margin-bottom: 22px;
  }

  body.auth-mode .auth-input-wrap {
    min-height: 60px;
  }

  body.auth-mode .auth-main-btn {
    min-height: 60px;
  }
}

@media (max-width: 360px) {

  body.auth-mode .auth-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  body.auth-mode .auth-card-inner {
    padding-left: 15px;
    padding-right: 15px;
  }

  body.auth-mode .auth-brand-name {
    font-size: 30px;
  }

  body.auth-mode .auth-title {
    font-size: 27px;
  }
}


/* ===== FINAL RPX PAY AUTH - FIT FULL PAGE ===== */

body.auth-mode #screen{
  width:100%;
  max-width:none;
  padding:0 !important;
  margin:0 !important;
}

body.auth-mode .auth-shell{
  width:100%;
  min-height:100dvh;
  height:auto;
  padding:28px 12px 24px !important;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  overflow-x:hidden;
}

body.auth-mode .auth-brand{
  width:100%;
  max-width:430px;
  margin:0 auto 18px !important;
}

body.auth-mode .auth-logo-mark{
  width:72px !important;
  height:72px !important;
  margin-bottom:10px !important;
  font-size:36px !important;
}

body.auth-mode .auth-brand-name{
  font-size:34px !important;
  line-height:1 !important;
}

body.auth-mode .auth-tagline{
  margin-top:9px !important;
  font-size:10px !important;
  letter-spacing:5px !important;
}

body.auth-mode .auth-card-golden{
  width:100% !important;
  max-width:430px !important;
  margin:0 auto !important;
  box-sizing:border-box;
}

body.auth-mode .auth-card-inner{
  width:100% !important;
  padding:27px 18px 24px !important;
  box-sizing:border-box;
}

/* TITLE */

body.auth-mode .auth-title{
  font-size:30px !important;
  line-height:1.1 !important;
  margin:0 !important;
}

body.auth-mode .auth-subtitle{
  font-size:15px !important;
  line-height:1.35 !important;
  margin:12px 0 20px !important;
}

/* INPUTS — FIXED HEIGHT */

body.auth-mode .auth-input-wrap{
  width:100% !important;
  height:62px !important;
  min-height:62px !important;
  max-height:62px !important;
  margin:0 0 12px !important;
  padding:0 !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
}

body.auth-mode .auth-input-wrap input{
  height:100% !important;
  min-height:0 !important;
  padding:0 48px 0 58px !important;
  font-size:17px !important;
  line-height:62px !important;
  box-sizing:border-box !important;
}

body.auth-mode .auth-input-icon{
  left:20px !important;
  font-size:22px !important;
}

/* EYE */

body.auth-mode .auth-eye{
  right:16px !important;
  font-size:18px !important;
}

/* FORGOT */

body.auth-mode .auth-forgot-golden{
  margin:2px 2px 16px !important;
}

/* MAIN BUTTON */

body.auth-mode .auth-main-btn{
  width:100% !important;
  height:62px !important;
  min-height:62px !important;
  max-height:62px !important;
  margin:4px 0 0 !important;
  padding:0 22px !important;
  box-sizing:border-box !important;
  font-size:18px !important;
}

/* OR */

body.auth-mode .auth-or{
  margin:17px 0 12px !important;
}

/* BOTTOM */

body.auth-mode .auth-bottom-text{
  font-size:14px !important;
  line-height:1.35 !important;
}

/* REGISTER */

body.auth-mode .register-card .auth-card-inner{
  padding-top:25px !important;
  padding-bottom:22px !important;
}

body.auth-mode .register-card .auth-subtitle{
  margin-bottom:18px !important;
}

body.auth-mode .register-card .auth-input-wrap{
  height:60px !important;
  min-height:60px !important;
  max-height:60px !important;
  margin-bottom:11px !important;
}

body.auth-mode .register-card .auth-input-wrap input{
  line-height:60px !important;
}

body.auth-mode .register-card .auth-main-btn{
  height:60px !important;
  min-height:60px !important;
  max-height:60px !important;
  margin-top:3px !important;
}

/* SMALL PHONES */

@media(max-width:430px){

  body.auth-mode .auth-shell{
    padding:20px 10px 20px !important;
  }

  body.auth-mode .auth-brand{
    margin-bottom:15px !important;
  }

  body.auth-mode .auth-logo-mark{
    width:68px !important;
    height:68px !important;
    font-size:34px !important;
  }

  body.auth-mode .auth-brand-name{
    font-size:32px !important;
  }

  body.auth-mode .auth-tagline{
    font-size:9px !important;
    letter-spacing:4px !important;
  }

  body.auth-mode .auth-card-inner{
    padding:25px 16px 22px !important;
  }

  body.auth-mode .auth-title{
    font-size:28px !important;
  }

  body.auth-mode .auth-subtitle{
    font-size:14px !important;
  }

  body.auth-mode .auth-input-wrap{
    height:60px !important;
    min-height:60px !important;
    max-height:60px !important;
  }

  body.auth-mode .auth-input-wrap input{
    font-size:16px !important;
  }
}

/* VERY SHORT SCREEN */

@media(max-height:720px){

  body.auth-mode .auth-shell{
    padding-top:10px !important;
    padding-bottom:10px !important;
  }

  body.auth-mode .auth-brand{
    margin-bottom:10px !important;
  }

  body.auth-mode .auth-logo-mark{
    width:58px !important;
    height:58px !important;
    margin-bottom:7px !important;
  }

  body.auth-mode .auth-brand-name{
    font-size:28px !important;
  }

  body.auth-mode .auth-tagline{
    margin-top:6px !important;
  }

  body.auth-mode .auth-card-inner{
    padding-top:20px !important;
    padding-bottom:18px !important;
  }

  body.auth-mode .auth-input-wrap{
    height:54px !important;
    min-height:54px !important;
    max-height:54px !important;
    margin-bottom:9px !important;
  }

  body.auth-mode .auth-input-wrap input{
    line-height:54px !important;
  }

  body.auth-mode .auth-main-btn{
    height:54px !important;
    min-height:54px !important;
    max-height:54px !important;
  }
}


/* ===== FINAL RPX AUTH ALIGNMENT FIX ===== */

.auth-card-inner{
  width:100%;
  box-sizing:border-box;
}

.auth-title{
  text-align:center;
  line-height:1.12;
  letter-spacing:-1px;
}

.auth-subtitle{
  text-align:center;
  line-height:1.35;
}

/* Input rows */
.auth-input-wrap{
  position:relative;
  width:100%;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  margin-bottom:18px;
  overflow:hidden;
}

.auth-input-icon{
  position:absolute;
  left:38px;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  pointer-events:none;
}

.auth-input-wrap input{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding-left:82px !important;
  padding-right:62px !important;
  text-align:left !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.auth-eye{
  position:absolute;
  right:28px;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
}

/* Forgot password */
.auth-forgot-golden{
  width:100%;
  box-sizing:border-box;
  text-align:right;
  margin:2px 0 22px;
  padding-right:8px;
}

.auth-forgot-golden button{
  white-space:nowrap;
}

/* Main button */
.auth-main-btn{
  width:100%;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:55px;
}

.auth-main-btn b{
  line-height:1;
}

/* OR line */
.auth-or{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin:22px 0 18px;
}

.auth-or span{
  flex:1;
  height:1px;
  background:#ddd;
}

.auth-or b{
  flex:0 0 auto;
  font-weight:500;
}

/* Bottom text */
.auth-bottom-text{
  width:100%;
  box-sizing:border-box;
  text-align:center;
  line-height:1.4;
  white-space:normal;
  margin:0;
  padding:0 4px 4px;
}

.auth-bottom-text button{
  white-space:nowrap;
}

/* Register page */
.register-card .auth-card-inner{
  padding-bottom:6px;
}

.register-card .auth-input-wrap{
  margin-bottom:16px;
}

.register-card .auth-main-btn{
  margin-top:4px;
}

.register-card .auth-bottom-text{
  margin-top:16px;
}

/* Prevent long invitation placeholder from breaking layout */
#regInvitation{
  padding-right:28px !important;
}

/* Mobile */
@media (max-width:600px){
  .auth-input-icon{
    left:32px;
  }

  .auth-input-wrap input{
    padding-left:74px !important;
    padding-right:58px !important;
  }

  .auth-eye{
    right:24px;
  }

  .auth-main-btn{
    gap:48px;
  }

  .auth-title{
    letter-spacing:-0.8px;
  }
}


/* ===== RPX AUTH FINAL MOBILE ALIGNMENT ===== */

.auth-card-inner{
  box-sizing:border-box;
  width:100%;
}

.auth-title{
  text-align:center;
  line-height:1.12;
  letter-spacing:-0.6px;
}

.auth-subtitle{
  text-align:center;
  line-height:1.35;
}

.auth-input-wrap{
  width:100%;
  min-height:74px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:16px;
}

.auth-input-wrap .auth-input-icon{
  flex:0 0 38px;
  width:38px;
  min-width:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.auth-input-wrap input{
  flex:1 1 auto;
  min-width:0;
  width:100%;
  box-sizing:border-box;
  text-align:left !important;
  padding:0 !important;
  margin:0 !important;
  line-height:1.2;
}

.auth-input-wrap .auth-eye{
  flex:0 0 34px;
  width:34px;
  min-width:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin:0;
}

.auth-main-btn{
  width:100%;
  min-height:76px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.auth-main-btn span{
  line-height:1;
}

.auth-main-btn b{
  position:absolute;
  right:30%;
  line-height:1;
}

.auth-forgot-golden{
  width:100%;
  text-align:right;
  box-sizing:border-box;
}

.auth-or{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  box-sizing:border-box;
}

.auth-or span{
  flex:1;
  height:1px;
  background:#dedede;
}

.auth-bottom-text{
  width:100%;
  box-sizing:border-box;
  text-align:center;
  line-height:1.4;
  white-space:nowrap;
}

.auth-bottom-text button{
  white-space:nowrap;
}

.register-card .auth-input-wrap{
  margin-bottom:14px;
}

.register-card .auth-main-btn{
  margin-top:4px;
}

.register-card .auth-bottom-text{
  margin-top:18px;
  padding-bottom:2px;
}

@media (max-width:480px){

  .auth-card-inner{
    padding-left:30px;
    padding-right:30px;
  }

  .auth-title{
    font-size:36px;
  }

  .auth-subtitle{
    font-size:18px;
  }

  .auth-input-wrap{
    min-height:74px;
  }

  .auth-input-wrap input{
    font-size:20px;
  }

  .auth-main-btn{
    min-height:76px;
  }

  .auth-main-btn b{
    right:27%;
  }

  .auth-bottom-text{
    font-size:18px;
  }

  .register-card .auth-input-wrap{
    margin-bottom:12px;
  }
}


/* ===== RPX PAY DASHBOARD FIX ===== */
.app .section-title{
  color:#ffffff !important;
  font-size:24px;
  font-weight:800;
  line-height:1.2;
  margin:26px 0 14px;
}

.app .hero{
  margin-bottom:14px;
}

.app .balance-card{
  min-height:108px;
}

.app .balance-card .muted{
  color:#7f858b;
  font-size:16px;
}

.app .balance-card h2{
  color:#151719;
  font-weight:800;
}

.app .quick-grid button{
  min-height:150px;
}

.app .quick-grid button span{
  color:#151719;
  font-size:17px;
  font-weight:700;
}

.app .quick-grid button small{
  font-size:14px;
}

.app .rate-card{
  min-height:96px;
}

.app .rate-card b{
  color:#151719;
  font-size:18px;
}

.app .rate-card small{
  font-size:15px;
}

.app .steps div{
  min-height:125px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.app .steps span{
  color:#151719;
  font-size:14px;
  font-weight:600;
}

/* Keep authentication pages untouched */
body.auth-mode .section-title{
  color:inherit !important;
}

@media(max-width:430px){
  .app .section-title{
    font-size:22px;
    margin-top:24px;
  }

  .app .quick-grid button{
    min-height:145px;
  }

  .app .steps div{
    min-height:120px;
    padding:14px 8px;
  }
}


/* =====================================================
   RPX PAY — LOGIN STYLE DASHBOARD THEME
   Black + Gold + White
   ===================================================== */

body:not(.auth-mode) {
  background:
    radial-gradient(circle at 85% 8%, rgba(218,171,43,.16), transparent 28%),
    radial-gradient(circle at 10% 80%, rgba(218,171,43,.08), transparent 30%),
    #090a0b;
  color: #151515;
}

body:not(.auth-mode) .app {
  background: #090a0b;
}

/* Top header */
body:not(.auth-mode) .topbar {
  background: #101112;
  color: #fff;
  border-bottom: 1px solid rgba(218,171,43,.35);
}

body:not(.auth-mode) .brand {
  color: #fff;
}

body:not(.auth-mode) .brand-mark {
  background: linear-gradient(145deg,#ffe27a,#c99416);
  color: #111;
  box-shadow: 0 4px 18px rgba(218,171,43,.25);
}

/* Main hero */
body:not(.auth-mode) .hero {
  background:
    radial-gradient(circle at 90% 20%, rgba(255,220,100,.22), transparent 35%),
    linear-gradient(135deg,#090a0b,#17130a 55%,#8b6818);
  border: 1px solid rgba(224,181,61,.55);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

body:not(.auth-mode) .hero-tag {
  color: #f1c94f;
}

body:not(.auth-mode) .hero h1 {
  color: #fff;
}

body:not(.auth-mode) .hero p {
  color: #e9e9e9;
}

/* Gold buttons */
body:not(.auth-mode) .btn.light,
body:not(.auth-mode) .mini-btn {
  background: linear-gradient(135deg,#ffe16b,#d8a522);
  color: #111;
  box-shadow: 0 7px 18px rgba(218,171,43,.22);
}

body:not(.auth-mode) .btn.light:hover,
body:not(.auth-mode) .mini-btn:hover {
  background: linear-gradient(135deg,#ffe98c,#e0b02f);
}

/* White dashboard cards */
body:not(.auth-mode) .balance-card,
body:not(.auth-mode) .quick-grid button,
body:not(.auth-mode) .order-card,
body:not(.auth-mode) .empty,
body:not(.auth-mode) .profile,
body:not(.auth-mode) .menu {
  background: #fff;
  border: 1px solid rgba(218,171,43,.18);
  box-shadow: 0 7px 24px rgba(0,0,0,.28);
}

/* Balance */
body:not(.auth-mode) .balance-card h2 {
  color: #151515;
}

/* Quick action icons */
body:not(.auth-mode) .quick-grid b {
  color: #bd8a13;
}

body:not(.auth-mode) .quick-grid button span {
  color: #151515;
}

body:not(.auth-mode) .quick-grid button small {
  color: #777;
}

/* Rate card */
body:not(.auth-mode) .rate-card {
  background: linear-gradient(135deg,#fffdf4,#f7e7ad);
  border: 1px solid rgba(210,164,39,.5);
  box-shadow: 0 7px 24px rgba(0,0,0,.22);
}

body:not(.auth-mode) .rate-card b {
  color: #171717;
}

body:not(.auth-mode) .rate-card small {
  color: #777;
}

body:not(.auth-mode) .live {
  color: #9a6d05;
}

/* How it works */
body:not(.auth-mode) .section-title {
  color: #fff;
}

body:not(.auth-mode) .steps div {
  background: #fff;
  border: 1px solid rgba(218,171,43,.18);
  box-shadow: 0 7px 20px rgba(0,0,0,.25);
}

body:not(.auth-mode) .steps b {
  background: linear-gradient(145deg,#ffe27a,#d4a326);
  color: #111;
}

/* Page headings */
body:not(.auth-mode) .page-head h2 {
  color: #fff;
}

body:not(.auth-mode) .icon-btn,
body:not(.auth-mode) .text-btn {
  color: #d5a62d;
}

/* Deposit / Sell form cards */
body:not(.auth-mode) .form-card {
  background: #fff;
  border: 1px solid rgba(218,171,43,.25);
  box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

body:not(.auth-mode) .choice.selected {
  border-color: #d5a62d;
  color: #a97709;
}

body:not(.auth-mode) .address button {
  background: linear-gradient(135deg,#ffe27a,#d8a522);
  color: #111;
}

/* Bottom navigation */
body:not(.auth-mode) .bottom-nav {
  background: #101112;
  border-top: 1px solid rgba(218,171,43,.4);
  box-shadow: 0 -5px 25px rgba(0,0,0,.4);
}

body:not(.auth-mode) .bottom-nav button {
  background: #101112;
  color: #777;
}

body:not(.auth-mode) .bottom-nav button.active {
  color: #fff;
}

body:not(.auth-mode) .bottom-nav button.active span {
  color: #d9aa2e;
}

body:not(.auth-mode) .bottom-nav button span {
  color: #777;
}

/* Profile / Mine */
body:not(.auth-mode) .profile {
  color: #151515;
}

body:not(.auth-mode) .menu button {
  background: #fff;
  color: #151515;
}

body:not(.auth-mode) .logout-btn {
  color: #a33;
}

/* Inputs */
body:not(.auth-mode) input {
  background: #fff;
  color: #151515;
  border-color: #ddd;
}


/* ===== RPX PAY DARK + GOLD THEME ===== */
:root{
  --green:#d6ad32;
  --green2:#f0c94f;
  --bg:#070809;
  --text:#151515;
  --muted:#777;
  --card:#ffffff;
}

html,body{
  background:#070809 !important;
  color:#fff;
}

.app{
  background:#070809 !important;
  color:#fff;
}

.topbar{
  background:#0b0c0e !important;
  color:#fff;
  border-bottom:1px solid #594714 !important;
}

.brand{
  color:#fff;
}

.brand-mark{
  background:linear-gradient(145deg,#ffe071,#c99b20) !important;
  color:#111 !important;
  box-shadow:0 0 18px #d6ad3240;
}

.text-btn{
  color:#d6ad32 !important;
}

.screen{
  background:#070809;
}

/* Hero */
.hero{
  background:
    radial-gradient(circle at 85% 20%,#b8891d55,transparent 35%),
    linear-gradient(145deg,#080909,#17130a 55%,#735815) !important;
  border:1px solid #9b7b24;
  box-shadow:0 8px 25px #000;
}

.hero .btn.light{
  background:linear-gradient(145deg,#ffe071,#d9aa28) !important;
  color:#111 !important;
  box-shadow:0 5px 18px #d6ad3255;
}

/* Balance */
.balance-card{
  background:#fff !important;
  color:#151515 !important;
}

.mini-btn{
  background:linear-gradient(145deg,#ffe071,#d9aa28) !important;
  color:#111 !important;
}

/* Quick buttons */
.quick-grid button{
  background:#fff !important;
  color:#151515 !important;
}

.quick-grid b{
  color:#bd921d !important;
}

/* Rate */
.rate-card{
  background:linear-gradient(135deg,#fffdf3,#f7e4a4) !important;
  color:#151515 !important;
  border:1px solid #d6ad32;
}

.live{
  color:#a37a0c !important;
}

/* How it works */
.section-title{
  color:#fff;
}

.steps div{
  background:#fff !important;
  color:#151515 !important;
}

.steps b{
  background:linear-gradient(145deg,#ffe071,#d6ad32) !important;
  color:#111 !important;
}

/* Forms / cards */
.form-card,
.order-card,
.empty,
.menu{
  background:#fff !important;
  color:#151515 !important;
}

.choice{
  background:#fff !important;
  color:#151515 !important;
}

.choice.selected{
  border-color:#d6ad32 !important;
  color:#a77d0c !important;
}

.notice{
  background:#f4f6ff !important;
}

.address button{
  background:#f6df8c !important;
  color:#111 !important;
}

.sell-rate b{
  color:#a77d0c !important;
}

.receive-box{
  background:#f5f7ff !important;
}

.btn{
  background:linear-gradient(145deg,#ffe071,#d6ad32) !important;
  color:#111 !important;
}

.profile{
  background:#fff !important;
  color:#151515 !important;
}

.menu button{
  background:#fff !important;
  color:#151515 !important;
}

.menu button:last-child{
  color:#b33b3b !important;
}

/* Bottom navigation */
.bottom-nav{
  background:#0b0c0e !important;
  border-top:1px solid #594714 !important;
}

.bottom-nav button{
  background:#0b0c0e !important;
  color:#777 !important;
}

.bottom-nav button.active{
  color:#fff !important;
}

.bottom-nav button.active span{
  color:#d6ad32 !important;
}

/* Gold borders / headings */
.page-head h2{
  color:#fff;
}

.page-head .text-btn{
  color:#d6ad32 !important;
}

.status{
  background:#fff1cc !important;
  color:#956f0d !important;
}

/* Inputs */
input{
  background:#fff !important;
  color:#151515 !important;
}

input:focus{
  border-color:#d6ad32 !important;
  box-shadow:0 0 0 2px #d6ad3225;
}

/* Scroll area */
body::-webkit-scrollbar{
  width:5px;
}

body::-webkit-scrollbar-track{
  background:#070809;
}

body::-webkit-scrollbar-thumb{
  background:#80651b;
  border-radius:10px;
}


/* ===== RPX PAY BLACK & GOLD THEME ===== */

:root{
  --gold:#d4af37;
  --gold2:#f0c94d;
  --black:#080808;
  --black2:#111111;
  --white:#f5f5f5;
  --muted:#a8a8a8;
  --card:#111111;
}

/* Main */
html,body{
  background:#050505 !important;
  color:var(--white);
}

.app{
  background:#050505 !important;
}

/* Top bar */
.topbar{
  background:#080808 !important;
  border-bottom:1px solid #3a3016 !important;
}

/* Cards */
.balance-card,
.quick-grid button,
.steps div,
.form-card,
.order-card,
.empty,
.menu,
.profile{
  background:#111111 !important;
  color:#f5f5f5 !important;
  border:1px solid #3b3219 !important;
}

/* Profile */
.profile{
  border-color:#3b3219 !important;
}

/* Headings/text */
.section-title,
.page-head h2,
.form-card h3,
.order-top b,
.balance-card h2{
  color:#f5f5f5 !important;
}

/* Muted text */
.muted,
.quick-grid small,
.rate-card small,
.order-top small,
.order-detail span{
  color:#a8a8a8 !important;
}

/* Quick action cards */
.quick-grid button{
  border:1px solid #3b3219 !important;
}

.quick-grid b{
  color:var(--gold) !important;
}

/* Gold buttons */
.btn,
.full,
.btn.light{
  background:linear-gradient(135deg,#f4d35e,#c99f24) !important;
  color:#080808 !important;
  border:none !important;
}

/* Outline button */
.btn.outline{
  background:transparent !important;
  color:var(--gold2) !important;
  border:1px solid var(--gold) !important;
}

/* Mini button */
.mini-btn{
  background:#2a2412 !important;
  color:var(--gold2) !important;
  border:1px solid #80681d !important;
}

/* Rate card */
.rate-card{
  background:linear-gradient(135deg,#19160b,#332a0c) !important;
  border:1px solid #8b7220 !important;
}

.live{
  color:var(--gold2) !important;
}

/* Network choice */
.choice{
  background:#0f0f0f !important;
  color:#eeeeee !important;
  border:1px solid #4a4022 !important;
}

.choice.selected{
  background:#211b08 !important;
  color:var(--gold2) !important;
  border:2px solid var(--gold) !important;
}

/* Notice */
.notice{
  background:#151515 !important;
  color:#bdbdbd !important;
  border:1px solid #302b1d !important;
}

/* Inputs */
input{
  background:#0d0d0d !important;
  color:#f5f5f5 !important;
  border:1px solid #4a4022 !important;
}

input::placeholder{
  color:#777 !important;
}

/* Deposit address */
.address{
  background:#0d0d0d !important;
  color:#f5f5f5 !important;
  border:1px solid #4a4022 !important;
}

.address button{
  background:#2a2412 !important;
  color:var(--gold2) !important;
  border:1px solid #80681d !important;
}

/* Receive box */
.receive-box{
  background:#151515 !important;
  border:1px solid #302b1d !important;
}

/* Sell rate */
.sell-rate{
  border-bottom:1px solid #302b1d !important;
}

.sell-rate b{
  color:var(--gold2) !important;
}

/* Order status */
.status{
  background:#33290d !important;
  color:#f0c94d !important;
  border:1px solid #705b19 !important;
}

.status.completed{
  background:#10261d !important;
  color:#65d5a5 !important;
}

.status.rejected{
  background:#301414 !important;
  color:#ff7777 !important;
}

/* Menu */
.menu button{
  background:#111111 !important;
  color:#eeeeee !important;
  border-bottom:1px solid #292929 !important;
}

.menu button:last-child{
  border-bottom:none !important;
}

/* Bottom navigation */
.bottom-nav{
  background:#080808 !important;
  border-top:1px solid #3a3016 !important;
}

.bottom-nav button{
  background:#080808 !important;
  color:#777 !important;
}

.bottom-nav button.active{
  color:#eeeeee !important;
}

.bottom-nav button.active span{
  color:var(--gold2) !important;
}

/* Brand */
.brand{
  color:#f5f5f5 !important;
}

.brand-mark{
  background:linear-gradient(135deg,#f4d35e,#c99f24) !important;
  color:#080808 !important;
}

/* Back/text buttons */
.text-btn{
  color:var(--gold2) !important;
}

/* QR container stays light for proper scanning */
.qr{
  background:#ffffff !important;
  border-color:#eeeeee !important;
}

/* Toast */
#toast{
  background:#151515 !important;
  color:#f5f5f5 !important;
  border:1px solid #4a4022 !important;
}

/* Account avatar */
.avatar{
  border:2px solid #8b7220;
}

/* Bottom gold line/details */
.page-head{
  color:#f5f5f5;
}


/* ===== RPX PAY BLACK + GOLD TEXT FIX ===== */

/* Balance */
.balance-card{
  background:#111214 !important;
  color:#fff !important;
  border:1px solid #594714 !important;
}

.balance-card *{
  color:#fff !important;
}

.balance-card .mini-btn{
  background:linear-gradient(145deg,#ffe071,#d6ad32) !important;
  color:#111 !important;
}

/* Quick buttons */
.quick-grid button{
  background:#111214 !important;
  color:#fff !important;
  border:1px solid #594714 !important;
}

.quick-grid button *{
  color:#fff !important;
}

.quick-grid button b,
.quick-grid b{
  color:#ffe071 !important;
}

/* Rate */
.rate-card{
  background:linear-gradient(135deg,#17130a,#332707) !important;
  color:#fff !important;
  border:1px solid #9b7b24 !important;
}

.rate-card *{
  color:#fff !important;
}

.rate-card .live{
  color:#ffe071 !important;
}

/* How it works */
.section-title{
  color:#fff !important;
}

.steps div{
  background:#111214 !important;
  color:#fff !important;
  border:1px solid #594714 !important;
}

.steps div *{
  color:#fff !important;
}

.steps b{
  background:linear-gradient(145deg,#ffe071,#d6ad32) !important;
  color:#111 !important;
}

/* Forms / cards */
.form-card,
.order-card,
.empty,
.menu,
.profile,
.choice{
  background:#111214 !important;
  color:#fff !important;
  border-color:#594714 !important;
}

.form-card *,
.order-card *,
.empty *,
.menu *,
.profile *,
.choice *{
  color:#fff !important;
}

/* Form input */
input,
textarea,
select{
  background:#0b0c0e !important;
  color:#fff !important;
  border-color:#594714 !important;
}

input::placeholder,
textarea::placeholder{
  color:#888 !important;
}

/* Sell page */
.sell-rate b{
  color:#ffe071 !important;
}

.receive-box{
  background:#17130a !important;
  color:#fff !important;
  border:1px solid #594714 !important;
}

.receive-box *{
  color:#fff !important;
}

/* Deposit page */
.choice.selected{
  background:#17130a !important;
  border-color:#d6ad32 !important;
  color:#ffe071 !important;
}

.notice{
  background:#17130a !important;
  color:#ddd !important;
  border:1px solid #594714 !important;
}

.address{
  background:#111214 !important;
  color:#fff !important;
  border-color:#594714 !important;
}

.address *{
  color:#fff !important;
}

.address button{
  background:linear-gradient(145deg,#ffe071,#d6ad32) !important;
  color:#111 !important;
}

/* Menu */
.menu button{
  background:#111214 !important;
  color:#fff !important;
  border-color:#594714 !important;
}

.menu button *{
  color:#fff !important;
}

/* Gold accent */
.gold,
.accent{
  color:#ffe071 !important;
}

/* Keep main buttons gold */
.btn{
  background:linear-gradient(145deg,#ffe071,#d6ad32) !important;
  color:#111 !important;
}

/* Bottom navigation */
.bottom-nav{
  background:#0b0c0e !important;
}

.bottom-nav *,
.nav-item{
  color:#888 !important;
}

.nav-item.active,
.nav-item.active *{
  color:#ffe071 !important;
}


.payment-methods{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:10px 0 18px;
}

.payment-method{
  border:1px solid #6f5a1c;
  border-radius:15px;
  padding:15px 10px;
  background:#111214;
  color:#fff;
  text-align:center;
  cursor:pointer;
}

.payment-method span{
  display:block;
  font-size:24px;
  margin-bottom:5px;
}

.payment-method b{
  display:block;
  color:#fff;
  font-size:15px;
}

.payment-method small{
  display:block;
  margin-top:4px;
  color:#b9b9b9;
}

.payment-method.active{
  background:linear-gradient(145deg,#ffe071,#c99b20);
  color:#111;
  border-color:#ffe071;
  box-shadow:0 5px 18px #d6ad3250;
}

.payment-method.active b,
.payment-method.active small{
  color:#111;
}

#bankFields label,
#upiFields label{
  color:#fff;
}

#bankFields input,
#upiFields input{
  background:#111214 !important;
  color:#fff !important;
  border:1px solid #5f4d1a !important;
}

#bankFields input::placeholder,
#upiFields input::placeholder{
  color:#8f8f8f;
}


.upi-logo{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:52px;
  height:30px;
  margin:0 auto 8px;
  border:2px solid #d6ad32;
  border-radius:8px;
  color:#d6ad32 !important;
  font-size:16px !important;
  font-weight:800;
  letter-spacing:1px;
}


.method-icon{
  width:64px;
  height:44px;
  margin:0 auto 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#d6ad32;
  font-weight:800;
  font-size:18px;
}

.upi-icon{
  border:2px solid #d6ad32;
  border-radius:10px;
  letter-spacing:1px;
  background:#111214;
}

.bank-icon{
  font-size:40px;
  line-height:1;
}

.payment-method.active .method-icon{
  color:#8f6b08;
}

.method-icon{
  position:relative;
  width:58px;
  height:42px;
  margin:0 auto 8px;
  display:block;
  color:#d6ad32;
}

.upi-icon{
  border:2px solid #d6ad32;
  border-radius:10px;
  background:transparent;
}

.upi-icon::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:8px;
  height:3px;
  border-radius:3px;
  background:#d6ad32;
  box-shadow:0 -7px 0 rgba(214,173,50,.45);
}

.bank-icon{
  width:58px;
  height:42px;
  border:0;
}

.bank-icon::before{
  content:"";
  position:absolute;
  left:4px;
  top:2px;
  width:50px;
  height:14px;
  border:2px solid #d6ad32;
  border-radius:3px;
  transform:skewX(-8deg);
}

.bank-icon::after{
  content:"";
  position:absolute;
  left:9px;
  bottom:2px;
  width:40px;
  height:20px;
  border-left:4px solid #d6ad32;
  border-right:4px solid #d6ad32;
  box-shadow:
    10px 0 0 -2px #d6ad32,
    20px 0 0 -2px #d6ad32,
    30px 0 0 -2px #d6ad32;
}

.payment-method.active .method-icon{
  color:#8f6b08;
}


.payment-select-box{
  margin:10px 0 18px;
  position:relative;
}

.payment-select-box select{
  width:100%;
  height:58px;
  padding:0 48px 0 18px;
  border:1px solid #6f5a1c;
  border-radius:14px;
  background:#111214;
  color:#fff;
  font-size:17px;
  font-weight:600;
  outline:none;
  appearance:auto;
}

.payment-select-box select:focus{
  border-color:#d6ad32;
  box-shadow:0 0 0 2px #d6ad3225;
}

.payment-select-box option{
  background:#111214;
  color:#fff;
}


/* Orders - Black & Gold */
.order-card{
  background:linear-gradient(145deg,#111214,#0b0c0e) !important;
  border:1px solid #594714 !important;
  box-shadow:0 8px 24px rgba(0,0,0,.35) !important;
  color:#fff !important;
}

.order-top b{
  color:#ffe071 !important;
}

.order-top small{
  color:#a8a8a8 !important;
}

.order-detail{
  border-top:1px solid #302810;
  padding-top:13px;
}

.order-detail span{
  color:#9f9f9f !important;
}

.order-detail b{
  color:#f5f5f5 !important;
  overflow-wrap:anywhere;
}

.order-detail span,
.order-detail b{
  min-width:0;
}

.status{
  background:#2a220e !important;
  color:#ffe071 !important;
  border:1px solid #6f5817;
}

.status.completed{
  background:#172414 !important;
  color:#9ee27b !important;
  border-color:#3d6b2c;
}

.status.rejected{
  background:#281414 !important;
  color:#ff8f8f !important;
  border-color:#6d3030;
}

/* Payment method label */
.order-detail b:first-of-type{
  word-break:break-word;
}


/* Payment method select - Black & Gold */
.payment-method-select{
  width:100% !important;
  min-height:56px !important;
  padding:14px 42px 14px 16px !important;
  border:1px solid #594714 !important;
  border-radius:14px !important;
  background:#0b0c0e !important;
  color:#ffe071 !important;
  font-size:16px !important;
  font-weight:700 !important;
  outline:none !important;
  appearance:auto;
}

.payment-method-select:focus{
  border-color:#ffe071 !important;
  box-shadow:0 0 0 2px rgba(255,224,113,.12) !important;
}

.payment-method-select option{
  background:#111214 !important;
  color:#fff !important;
}


/* Saved Payment Details */
.saved-payment-box{
  margin-top:18px;
  padding:16px;
  border:1px solid #594714;
  border-radius:17px;
  background:linear-gradient(145deg,#17130a,#0d0e10);
  box-shadow:0 7px 22px rgba(0,0,0,.28);
}

.saved-payment-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  margin-bottom:4px;
  border-bottom:1px solid #302810;
}

.saved-payment-title{
  color:#ffe071;
  font-weight:800;
  font-size:16px;
}

.saved-payment-head small{
  display:block;
  margin-top:4px;
  color:#999;
  font-size:12px;
}

.saved-edit-btn{
  border:1px solid #8a6b1c;
  background:#2a220e;
  color:#ffe071;
  border-radius:10px;
  padding:8px 15px;
  font-weight:700;
  font-size:13px;
}

.saved-payment-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:15px;
  padding:10px 0;
  border-bottom:1px solid #252016;
}

.saved-payment-row:last-child{
  border-bottom:0;
}

.saved-payment-label{
  color:#999;
  font-size:12px;
}

.saved-payment-value{
  color:#f5f5f5;
  font-weight:700;
  text-align:right;
  word-break:break-word;
}


/* Payment box form layout */
.saved-payment-box label{
  display:block;
  margin-top:14px;
  margin-bottom:7px;
}

.saved-payment-box input,
.saved-payment-box select{
  box-sizing:border-box;
  width:100%;
}

.saved-payment-box .payment-inline-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px;
}

.saved-payment-box .payment-inline-row > div{
  min-width:0;
}

.saved-payment-box .payment-inline-row label{
  margin-top:0;
}

.saved-add-btn{
  margin-top:15px;
  width:100%;
  border:1px solid #8a6b1c;
  background:#2a220e;
  color:#ffe071;
  border-radius:12px;
  padding:12px;
  font-weight:800;
  font-size:14px;
}


/* Bank form: Saving/Current and IFSC must stay separated */
.saved-payment-box .bank-type-ifsc{
  display:block;
  margin-top:14px;
}

.saved-payment-box .bank-type-ifsc label{
  display:block;
  margin:0 0 7px 0;
}

.saved-payment-box .bank-type-ifsc select{
  width:100%;
  height:52px;
  box-sizing:border-box;
}

.saved-payment-box .bank-ifsc-field{
  display:block;
  margin-top:14px;
}

.saved-payment-box .bank-ifsc-field label{
  display:block;
  margin:0 0 7px 0;
}

.saved-payment-box .bank-ifsc-field input{
  width:100%;
  box-sizing:border-box;
}


.history-tabs{
 display:flex;
 gap:8px;
 margin:0 0 18px;
 padding:5px;
 border:1px solid rgba(230,190,50,.35);
 border-radius:14px;
 background:#111;
}

.history-tab{
 flex:1;
 min-height:46px;
 border:0;
 border-radius:10px;
 background:transparent;
 color:#aaa;
 font-size:15px;
 font-weight:700;
 cursor:pointer;
}

.history-tab.active{
 background:linear-gradient(135deg,#ffe16b,#d9ad22);
 color:#111;
}


/* ================================
   RPX PAY - HISTORY LAYOUT FIX
   ================================ */

.history-tabs{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:0 !important;
  width:100% !important;
  overflow:hidden !important;
}

.history-tab{
  width:100% !important;
  min-width:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.order-card{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

.deposit-card{
  padding:18px !important;
}

.deposit-card .order-top{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin-bottom:12px !important;
}

.deposit-amount{
  font-size:24px !important;
  line-height:1.2 !important;
}

.confirmed-status{
  white-space:nowrap !important;
  flex-shrink:0 !important;
}

.deposit-card .order-row{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:12px !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:7px 0 !important;
}

.deposit-card .order-row > span{
  flex:0 0 115px !important;
  min-width:0 !important;
  color:#aaa !important;
}

.deposit-card .order-row > b{
  flex:1 1 auto !important;
  min-width:0 !important;
  text-align:right !important;
  overflow:hidden !important;
}

.history-long-row{
  align-items:flex-start !important;
}

.history-value-box{
  flex:1 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
}

.history-hash{
  min-width:0 !important;
  max-width:calc(100% - 58px) !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  font-family:monospace !important;
  font-size:13px !important;
  word-break:normal !important;
}

.history-copy-btn{
  flex:0 0 auto !important;
  border:1px solid rgba(242,201,76,.45) !important;
  background:rgba(242,201,76,.08) !important;
  color:#f2c94c !important;
  border-radius:8px !important;
  padding:5px 8px !important;
  font-size:11px !important;
  font-weight:600 !important;
}

.history-copy-btn:active{
  transform:scale(.96);
}

@media(max-width:480px){

  .deposit-card{
    padding:15px !important;
  }

  .deposit-card .order-row{
    gap:8px !important;
  }

  .deposit-card .order-row > span{
    flex:0 0 100px !important;
    font-size:14px !important;
  }

  .deposit-card .order-row > b{
    font-size:14px !important;
  }

  .deposit-amount{
    font-size:22px !important;
  }

  .history-hash{
    font-size:12px !important;
  }

  .history-copy-btn{
    padding:5px 7px !important;
    font-size:10px !important;
  }
}


.tx-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  display:inline-block;
}

.tx-link:active{
  opacity:.65;
}


.tx-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  display:inline-block;
}

.tx-link:hover{
  text-decoration:underline;
}


.tx-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}

.tx-link:active{
  opacity:.6;
}


/* Transaction history UI */
.tx-history-row{
  align-items:flex-start;
  gap:14px;
}

.tx-history-box{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  min-width:0;
}

.tx-history-box .history-hash{
  display:block;
  max-width:230px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:700;
  text-align:right;
}

.bscscan-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border:1px solid #d6ad2b;
  border-radius:9px;
  color:#f4ca45;
  background:rgba(214,173,43,.08);
  text-decoration:none;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.bscscan-btn:active{
  transform:scale(.97);
  background:rgba(214,173,43,.18);
}

@media(max-width:480px){
  .tx-history-row{
    gap:10px;
  }

  .tx-history-box{
    max-width:65%;
  }

  .tx-history-box .history-hash{
    max-width:190px;
  }

  .bscscan-btn{
    font-size:11px;
    padding:6px 9px;
  }
}


/* Fix transaction row alignment */
.tx-history-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.tx-history-row > span{
  flex:0 0 auto;
}

.tx-history-box{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
  flex:1;
}

.tx-history-box .history-hash{
  display:block;
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:700;
  text-align:right;
}

.bscscan-btn{
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:8px;
  font-size:11px;
  white-space:nowrap;
}

@media(max-width:480px){
  .tx-history-row{
    gap:8px;
  }

  .tx-history-box{
    gap:6px;
  }

  .tx-history-box .history-hash{
    max-width:125px;
  }

  .bscscan-btn{
    padding:6px 8px;
    font-size:10px;
  }
}


/* =========================
   SELL HISTORY - CLEAN MOBILE UI
   ========================= */

.sell-history-card{
  padding:22px !important;
}

.sell-history-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding-bottom:18px;
  margin-bottom:6px;
  border-bottom:1px solid rgba(242,201,76,.18);
}

.sell-amount{
  font-size:27px;
  font-weight:800;
  line-height:1.15;
  color:#f2c94c;
}

.sell-type{
  margin-top:5px;
  font-size:15px;
  color:#aaa;
}

.sell-status{
  flex-shrink:0;
  padding:7px 12px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  border:1px solid rgba(255,255,255,.18);
}

.sell-status-rejected{
  color:#ff8d8d;
  background:rgba(255,80,80,.08);
  border-color:rgba(255,100,100,.3);
}

.sell-status-confirmed{
  color:#9ee6ad;
  background:rgba(70,200,100,.08);
  border-color:rgba(70,200,100,.3);
}

.sell-status-pending{
  color:#f2c94c;
  background:rgba(242,201,76,.08);
  border-color:rgba(242,201,76,.3);
}

.sell-details{
  margin-top:8px;
}

.sell-detail-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:11px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.sell-detail-row span{
  color:#999;
  font-size:14px;
  flex-shrink:0;
}

.sell-detail-row b{
  color:#f1f1f1;
  font-size:15px;
  text-align:right;
  overflow-wrap:anywhere;
}

.sell-inr{
  color:#f2c94c !important;
}

.sell-reject-box{
  margin-top:15px;
  padding:13px 14px;
  border-radius:12px;
  background:rgba(255,70,70,.07);
  border:1px solid rgba(255,90,90,.22);
}

.sell-reject-box span,
.sell-refund-box span{
  display:block;
  font-size:12px;
  color:#999;
  margin-bottom:5px;
}

.sell-reject-box b{
  display:block;
  color:#ff9a9a;
  font-size:14px;
  overflow-wrap:anywhere;
}

.sell-refund-box{
  margin-top:10px;
  padding:13px 14px;
  border-radius:12px;
  background:rgba(70,200,100,.06);
  border:1px solid rgba(70,200,100,.2);
}

.sell-refund-box b{
  color:#9ee6ad;
  font-size:15px;
}

.sell-footer{
  margin-top:15px;
  padding-top:13px;
  border-top:1px solid rgba(255,255,255,.08);
}

.sell-footer > div{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:6px 0;
}

.sell-footer span{
  color:#777;
  font-size:12px;
  flex-shrink:0;
}

.sell-footer b{
  color:#aaa;
  font-size:12px;
  text-align:right;
  overflow-wrap:anywhere;
  max-width:72%;
}

@media(max-width:520px){
  .sell-history-card{
    padding:20px !important;
  }

  .sell-amount{
    font-size:25px;
  }

  .sell-detail-row{
    gap:12px;
  }

  .sell-detail-row b{
    max-width:62%;
  }
}

