/* ================== THEME ================== */
:root {
  --bg-1: #0b0911;
  --bg-2: #1a1326;
  --ink: gray;
  --muted: #bda981;
  --ring: rgba(255, 255, 255, .08);
  --gold-1: #f0d08a;
  --gold-2: #d7a84f;
  --gold-text: gray;
  --shadow: 0 12px 28px rgba(0, 0, 0, .35);
  --r: 22px;
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --maxw: 100vw;
  --cardw: 100vw;
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 900px at -10% -20%, #2b2142 0%, transparent 55%),
    radial-gradient(900px 900px at 120% -10%, transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  padding-bottom: 80px;
}

/* ================== TOP BAR ================== */
.dash-top {
  max-width: var(--maxw);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 6px;
  color: #d9c596;
}

.dash-title {
  margin: 0 auto;
  font-weight: 800;
  color: #d9c596;
  font-size: 20px
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #d9c596;
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #d9c596;
  stroke-width: 2
}

/* ================== LAYOUT ================== */
.wrap {
  max-width: var(--maxw);
  margin: auto;
  padding: 8px 12px 110px;
}

.stack {
  flex: 1
}

.side {
  width: 360px
}

@media (min-width:992px) {
  .wrap {
    display: flex;
    gap: 22px
  }
}

/* Panel (cards) */
.panel {
  background: linear-gradient(180deg, #1b151f, #0f0c13);
  border: 1px solid var(--ring);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
  margin: 12px auto;
  width: 100%;
  max-width: var(--cardw);
}

.panel .muted {
  color: var(--muted)
}

.panel .tiny {
  font-size: 12px
}

/* ================== SIDEBAR ================== */
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  z-index: 980
}

.side-overlay.open {
  display: block
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 340px);
  background: linear-gradient(180deg, #161018, #0e0a12);
  border-right: 1px solid var(--ring);
  color: #d9c596;
  transform: translateX(-100%);
  transition: .25s transform;
  z-index: 981;
  display: flex;
  flex-direction: column;
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45)
}

.side-drawer.open {
  transform: translateX(0)
}

.side-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 8px;
  border-bottom: 1px solid var(--ring)
}

.side-head img {
  width:100px;
  object-fit: contain
}

.side-title {
  font-weight: 900
}

.side-scroll {
  overflow: auto;
  padding: 10px 10px 120px;
  max-height: calc(100vh - 60px);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-2) rgba(255, 255, 255, .06);
}

.side-scroll::-webkit-scrollbar {
  width: 10px;
}

.side-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
  border-radius: 12px;
}

.side-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border-radius: 12px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.side-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f6dca0, #e2b760);
}

.menu-title {
  color: #8e7e63;
  font-size: 12px;
  letter-spacing: .8px;
  margin: 12px 8px 6px
}

.m-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #d9c596;
  padding: 12px 12px;
  border-radius: 14px
}

.m-item:hover {
  background: rgba(255, 255, 255, .06)
}

.m-acc {
  width: 100%;
  border: none;
  background: transparent;
  color: #d9c596;
  padding: 12px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer
}

.m-acc:hover {
  background: rgba(255, 255, 255, .06)
}

.chev {
  margin-left: auto;
  transition: .2s transform
}

.m-acc[aria-expanded="true"] .chev {
  transform: rotate(180deg)
}

.sub {
  display: none;
  padding-left: 8px;
  margin: 4px 0 8px 12px;
  border-left: 1px dashed var(--ring)
}

.sub a {
  display: block;
  color: #d9c596;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px
}

.sub a:hover {
  background: rgba(255, 255, 255, .06)
}

.pill-active {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: var(--gold-text);
  font-weight: 800
}

/* ================== TOP CAROUSEL ================== */
.carousel-wrap {
  width: 100%;
  max-width: var(--cardw);
  margin: 12px auto 0;
  overflow: hidden;
  border-radius: var(--r);
}

.carousel-track {
  display: flex;
  transition: transform .35s ease;
}

.c-slide {
  min-width: 100%;
  background: linear-gradient(180deg, #1b151f, #0f0c13);
  border: 1px solid var(--ring);
  padding: 16px 16px 18px;
  position: relative;
  border-radius: 20px;
  margin-left: 10px;
}

.gold-art {
  position: absolute;
  right: 30px;
  bottom: 2px;
  width: 100px;
  height: 84px;
  object-fit: contain;
  opacity: .95;
  border-radius: 50px;
}

.badge-lite {
  display: inline-block;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f23;
  display: inline-block;
  margin-right: 8px
}

.live-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgb(103, 166, 7);
  display: inline-block;
  margin-right: 8px
}

.price {
  font-size: 28px;
  font-weight: 900
}

.price .unit {
  font-size: 14px;
  margin-left: 6px
}

.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 8px 0
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #6f5c33;
}

.dots .on {
  background: var(--gold-1)
}

/* ===== BUY panel bits ===== */
.toggle-row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, .06);
  padding: 6px;
  border-radius: 12px
}

.seg {
  flex: 1;
  border: none;
  background: transparent;
  color: #d9c596;
  font-weight: 800;
  border-radius: 10px;
  padding: 8px 10px
}

.seg.on {
  background: rgba(255, 255, 255, .10)
}

.calc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px
}

.input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
/*  gap: 8px;
*/  border-bottom: 2px solid #7e6122;
  border-radius: 12px;
/*  padding: 8px 4px
*/}

.input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f5e3b6;
  font-size: 20px
}

.grams {
  font-weight: 800
}

.chip {
  border: none;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, .06);
  color: #d9c596;
  margin-right: 8px
}

.cta {
  border: none;
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: var(--gold-text);
  font-weight: 900;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 14px 26px rgba(120, 85, 20, .35)
}

/* ===== TRENDS ===== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px
}

.tab {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: #d9c596
}

.tab.on {
  background: rgba(255, 255, 255, .08)
}

.chart-box {
  height: 160px;
  background: rgba(255, 255, 255, .03);
  border-radius: 16px;
  overflow: hidden
}

/* ===== DESKTOP SIDE CARDS ===== */
.side-card {
  display: block;
  text-decoration: none;
  color: #d9c596;
  background: linear-gradient(180deg, #18131c, #0f0c13);
  border: 1px solid var(--ring);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: var(--shadow)
}

.side-title {
  font-weight: 800
}

.side-desc {
  color: #bda981;
  font-size: 14px
}

/* ===== BOTTOM NAV (fixed full width) ===== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(0px, var(--safe-bot));
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--ring);
  padding: 8px;
  display: flex;
  justify-content: space-around;
  z-index: 997;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #d9c596
}

.bn-item.active {
  color: var(--gold-1)
}

.bn-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2
}

/* ===== MOBILE full-bleed top carousel ===== */
@media (max-width:991.98px) {
  .carousel-wrap {
    max-width: none;
    border: 0;
    margin-left: -12px;
    margin-right: -12px
  }

  .panel {
    max-width: none
  }
}


.sec-title {
  font-weight: 800;
  color: #d9c596;
  margin: 14px 6px 6px
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

@media (max-width:991.98px) {

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:575.98px) {

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr
  }
}

.mini-card {
  background: linear-gradient(180deg, #18131c, #0f0c13);
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-card h6 {
  margin: 0;
  font-weight: 700;
  color: #bda981
}

.mini-card .val {
  font-weight: 900;
  color: var(--gold-1)
}

.pkg-card {
  background: linear-gradient(180deg, #1b151f, #0f0c13);
  border: 1px solid var(--ring);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
}

.pkg-card h5 {
  color: var(--gold-1);
  margin: 0 0 6px;
  font-weight: 900
}

.pkg-card p {
  margin: 2px 0;
  color: #d9c596
}

.news-box {
  margin-top: 24px;
  background: linear-gradient(180deg, #18131c, #0f0c13);
  border: 1px solid var(--ring);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
  max-height: 260px;
  /* height fix ताकि scroll हो */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-1) rgba(255, 255, 255, .06);
}

.news-box::-webkit-scrollbar {
  width: 8px;
}

.news-box::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border-radius: 8px;
}

.news-item {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.news-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.news-item .info {
  flex: 1;
}

.news-item .info h6 {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--gold-1);
}

.news-item .info p {
  margin: 0;
  font-size: 14px;
  color: #d9c596;
}




/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px
}

.topbar h1 {
  margin: 0 auto 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #d9c596
}

/* ===== CARDS / PROFILE ===== */
.cardx {
  background: linear-gradient(180deg, #1b151f, #0f0c13);
  border: 1px solid var(--ring);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.panel-pad {
  padding: 16px
}

.prof-wrap {
  display: flex;
  gap: 14px;
  align-items: center
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--gold-1);
  padding: 2px;
  background: #0f0c13;
}

.name {
  font-weight: 900;
  font-size: 18px
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--gold-text);
  font-weight: 800;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  padding: 4px 10px;
  border-radius: 999px
}

.grid {
  display: grid;
  gap: 10px;
  margin-top: 12px
}

.grid-2 {
  grid-template-columns: 1fr
}

@media(min-width:768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr
  }
}

.ibox {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 10px 12px;
}

.ibox label {
  display: block;
  font-size: 12px;
  color: #bda981;
  margin-bottom: 4px
}

.ibox .val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #f3e3bb
}

.i-btn {
  border: none;
  background: transparent;
  color: var(--gold-1);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px
}

.i-btn:hover {
  background: rgba(255, 255, 255, .06)
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap
}

.gold-btn {
  border: none;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  color: var(--gold-text);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 12px 24px rgba(120, 85, 20, .35)
}

.sec-title {
  font-weight: 800;
  color: #d9c596;
  
}

/* ===== SIDEBAR (dashboard जैसा) ===== */
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  z-index: 980
}

.side-overlay.open {
  display: block
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 340px);
  background: linear-gradient(180deg, #161018, #0e0a12);
  border-right: 1px solid var(--ring);
  color: #d9c596;
  transform: translateX(-100%);
  transition: .25s transform;
  z-index: 981;
  display: flex;
  flex-direction: column;
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45)
}

.side-drawer.open {
  transform: translateX(0)
}

.side-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 8px;
  border-bottom: 1px solid var(--ring)
}

.side-head img {
width:100px;
  object-fit: contain
}

.side-title {
  font-weight: 900
}

.side-scroll {
  overflow: auto;
  padding: 10px 10px 120px;
  max-height: calc(100vh - 60px);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-2) rgba(255, 255, 255, .06);
}

.side-scroll::-webkit-scrollbar {
  width: 10px;
}

.side-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
  border-radius: 12px;
}

.side-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border-radius: 12px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.m-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #d9c596;
  padding: 12px 12px;
  border-radius: 14px
}

.m-item:hover {
  background: rgba(255, 255, 255, .06)
}

.m-acc {
  width: 100%;
  border: none;
  background: transparent;
  color: #d9c596;
  padding: 12px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer
}

.m-acc:hover {
  background: rgba(255, 255, 255, .06)
}

.chev {
  margin-left: auto;
  transition: .2s transform
}

.m-acc[aria-expanded="true"] .chev {
  transform: rotate(180deg)
}

.sub {
  display: none;
  padding-left: 8px;
  margin: 4px 0 8px 12px;
  border-left: 1px dashed var(--ring)
}

.sub a {
  display: block;
  color: #d9c596;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px
}

.sub a:hover {
  background: rgba(255, 255, 255, .06)
}

.pill-active {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: var(--gold-text);
  font-weight: 800
}

/* edit profile */
/* ===== Buy UI (screenshot style) ===== */
.buy-box.panel {
  background: linear-gradient(180deg, #1b151f, #0f0c13);
  border: 1px solid var(--ring);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 14px 14px 16px;
  color: #d9c596;
}

/* toggle chips (already in your theme, keep for consistency) */
.toggle-row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, .06);
  padding: 6px;
  border-radius: 12px
}

.seg {
  flex: 1;
  border: none;
  background: transparent;
  color: #d9c596;
  font-weight: 800;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer
}

.seg.on {
  background: rgba(255, 255, 255, .10)
}

/* soft yellow input */
.calc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px
}

.money-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9e9ba;
  border: 2px solid #e0bf6b;
  color: #2f240c;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16) inset, 0 4px 10px rgba(0, 0, 0, .10);
}

.money-input:focus-within {
  border-color: #f0d08a;
  box-shadow: 0 0 0 4px rgba(240, 208, 138, .25), 0 6px 16px rgba(0, 0, 0, .10) inset;
}

.money-input span {
  font-weight: 900;
  opacity: .9
}

.money-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #2f240c;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .2px;
}

.money-input input::placeholder {
  color: #8a7a53
}

.grams {
  font-weight: 900;
  color: #d9c596
}

/* hint text below input */
.ff-hint {
  font-size: 12px;
  color: #bda981;
  margin-top: 6px
}

/* add-amount chips */
.chip-row {
  display: flex;
  gap: 10px;
  margin: 12px 0 8px;
  flex-wrap: wrap
}

.chip-gold {
  border: none;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, .06);
  color: #d9c596;
  cursor: pointer;
}

.chip-gold:hover {
  background: rgba(255, 255, 255, .10)
}

/* CTA button (bold gold gradient) */
.btn-gold {
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 900;
  cursor: pointer;
  color: var(--gold-text);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 14px 26px rgba(120, 85, 20, .35);
}

.btn-gold:active {
  transform: translateY(1px)
}

.trust-line {
  text-align: center;
  font-size: 12px;
  color: #bda981;
  margin-top: 8px;
}


/* edit profile */
/* responsive two-column grid that matches app view spacing */
.ff-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  grid-template-columns: 1fr 1fr;
}

.ff-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: red;
  margin: 0 0 6px 2px;
}

.ff-span-2 {
  grid-column: 1 / -1;
}

@media (max-width:768px) {
  .ff-grid {
    grid-template-columns: 1fr;
  }
}

/* money-input, ff-hint, btn-gold already present in your CSS.
   बस spacing & input heights को थोड़ा polish: */
.money-input {
  min-height: 52px;
}

.money-input input {
  height: 28px;
}

/* team */
/* ====== Paginated Table (Fusion Fund) ====== */
.ff-select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #2f240c;
  font-weight: 800;
  font-size: 16px;
}

.ff-select option {
  color: #2f240c;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  /*border: 1px solid var(--ring);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);*/
  min-height: 120px;
}

.table-wrap table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
  color: white;
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #1b151f, #0f0c13);
  color: var(--gold-1);
  font-weight: 800;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ring);
}

.table-wrap tbody td {
  padding: 12px 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, .06);
}

.table-wrap tbody tr:hover {
  background: rgba(255, 255, 255, .04)
}

/* loader */
.loader-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  background-size: 200% 100%;
  animation: ll 1.2s linear infinite;
  border-radius: 3px;
}

@keyframes ll {
  to {
    background-position: -200% 0;
  }
}

.team-status {
  color: #bda981;
}

/* Active/Inactive badges */
.badge-ok {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(64, 201, 120, .15);
  color: #78e0a6;
  font-weight: 700;
  font-size: 12px;
}

.badge-no {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 90, 90, .12);
  color: #ffb0b0;
  font-weight: 700;
  font-size: 12px;
}

/* Pagination */
.pager-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.pg-btn {
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, .05);
  color: #d9c596;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.pg-btn[disabled] {
  opacity: .5;
  cursor: not-allowed
}

.pg-nums {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pg-num {
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, .04);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  color: #d9c596;
}

.pg-num.on {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: var(--gold-text);
  border-color: transparent;
}


/* ------- Hide the real select but keep it accessible to JS ------- */
.ff-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* ------- Visible replacement control (button) ------- */
.ff-sel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: #f9e9ba;
  border: 2px solid #e0bf6b;
  color: #2f240c;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16) inset, 0 4px 10px rgba(0, 0, 0, .10);
  cursor: pointer;
}

.ff-sel:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(240, 208, 138, .25);
}

.ff-sel .ff-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ff-sel .ff-icon {
  font-size: 14px;
  opacity: .8
}

/* ------- Overlay (used both for dropdown & sheet) ------- */
.ff-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: .18s opacity;
  z-index: 998;
}

.ff-overlay.on {
  opacity: 1;
  pointer-events: auto;
}

/* ------- Popper (desktop) ------- */
.ff-menu {
  position: absolute;
  z-index: 999;
  background: linear-gradient(180deg, #1b151f, #0f0c13);
  border: 1px solid var(--ring);
  border-radius: 14px;
  min-width: 220px;
  max-height: 280px;
  overflow: auto;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
}

.ff-menu.on {
  display: block;
}

.ff-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d9c596;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.ff-item:hover {
  background: rgba(255, 255, 255, .06)
}

.ff-item.active {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: var(--gold-text);
  font-weight: 900;
}

/* Search box (inside menu) */
.ff-search {
  width: 100%;
  margin: 6px 6px 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, .06);
  color: #f3e3bb;
}

.ff-search::placeholder {
  color: #bda981
}

/* ------- Bottom Sheet (mobile) ------- */
@media (max-width:991.98px) {
  .ff-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px 18px 0 0;
    max-height: 75vh;
    min-width: auto;
    padding: 10px;
  }
}


/* ====== small utilities added for this page ====== */
.label-line {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 10px 12px;
  color: #d9c596;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.muted-mini {
  font-size: 12px;
  color: #bda981
}

.qr-box {
  display: none;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--ring);
  border-radius: 14px;
  text-align: center;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.btn-gold.outline {
  background: transparent;
  color: #d9c596;
  border: 1px solid var(--ring);
  box-shadow: none;
}

.warn {
  color: #b51a1a;
  font-weight: 800;
  background: rgba(181, 26, 26, .08);
  border: 1px solid rgba(181, 26, 26, .25);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 8px;
}

.loader-line {
  margin-top: 10px;
  display: none
}

.readonly input[readonly] {
  opacity: .9
}

/* Activation specific small styles */
.activation-card {
  max-width: 900px;
  margin: 6px auto;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--ring);
  background: linear-gradient(180deg, #1b151f, #0f0c13);
}

.button-29 {
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  color: var(--gold-text);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 10px 22px rgba(120, 85, 20, .25);
}

.button-29[disabled] {
  opacity: .6;
  cursor: not-allowed
}

/* timer */
/* ===== Countdown Timer styles (theme-matching) ===== */
.timer-panel {
  margin: 12px auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1b151f, #0f0c13);
  border: 1px solid var(--ring);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .03);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, .03);
}

.time-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px
}

.time-val {
  font-weight: 900;
  font-size: 20px;
  color: var(--gold-1);
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(240, 208, 138, 0.07), rgba(215, 168, 79, 0.03));
  min-width: 44px;
  text-align: center;
}

.time-label {
  font-size: 12px;
  color: #bda981;
  margin-top: 6px;
  font-weight: 800
}

.sep {
  font-weight: 900;
  color: #d9c596;
  font-size: 18px
}

@media (max-width:575.98px) {
  .timer-box {
    gap: 6px;
    padding: 6px
  }

  .time-val {
    font-size: 16px;
    min-width: 36px
  }

  .time-label {
    font-size: 11px
  }

  .timer-panel .h6 {
    font-size: 14px
  }
}


/* ====== Simple modal / backdrop styles (add to your stylesheet) ====== */
.ff-timer-modal[hidden] { display: none; }
.ff-timer-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ff-timer-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
}
.ff-timer-panel {
  position: relative;
  z-index: 1201;
  max-width: 520px;
  /* width: calc(100% - 40px); */
  background: linear-gradient(180deg,#1b151f,#0f0c13);
  border: 1px solid var(--ring);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  padding: 18px;
  color: var(--d9c596, #d9c596);
}
.ff-timer-panel h3 { margin-top:0; margin-bottom:6px; font-size:16px; }
.ff-timer-panel p { margin:0 0 10px; color: #bda981; }
.modal-timer-box .time-seg { min-width:56px; text-align:center; }
.modal-timer-box .time-val { font-weight:900; font-size:20px; color:var(--gold-1); padding:6px 10px; border-radius:8px; background: rgba(240,208,138,0.06); }
.ff-timer-actions button { min-width:120px; }
@media (max-width:480px) {
  .ff-timer-panel { padding:12px; }
  .modal-timer-box .time-val { font-size:16px; }
}


/* ===== QR Modal fixes — paste at end of css/style.css ===== */

/* default hidden (JS toggles display:block) */
.qr-modal { display: none; position: fixed; inset: 0; z-index: 1400; }

/* backdrop covers whole viewport */
.qr-modal-backdrop,
.qr-modal .qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* center panel */
.qr-modal-panel,
.qr-modal .qr-modal-panel {
  position: relative;
  z-index: 1401;
  max-width: 520px;
  width: min(96%, 720px);
  margin: 28px auto; /* small top spacing on mobile */
  background: linear-gradient(180deg,#1b151f,#0f0c13);
  border: 1px solid var(--ring);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  color: var(--ink);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

/* header */
.qr-modal-head {
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:space-between;
  margin-bottom:6px;
}
.qr-modal-head h3 { margin:0; font-size:16px; font-weight:900; color:var(--gold-1); }
.qr-close {
  border:none;
  background:transparent;
  color:#d9c596;
  font-weight:900;
  font-size:18px;
  line-height:1;
  padding:6px 8px;
  border-radius:8px;
  cursor:pointer;
}
.qr-close:hover{ background: rgba(255,255,255,0.04); }

/* body area */
.qr-modal-body { display:flex; flex-direction:column; gap:12px; }

/* top info rows */
.qr-modal-info { display:flex; gap:12px; flex-wrap:wrap; justify-content:space-between; align-items:center; }
.qr-info-row{ display:flex; flex-direction:column; gap:6px; min-width:120px; }
.qr-info-val{ font-weight:900; color:var(--gold-1); font-size:18px; }

/* loader */
.qr-loading { text-align:center; padding:22px 6px; color:#bda981; }

/* content (hidden until loaded) */
.qr-modal-content { display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; justify-content:center; width:100%; }

/* QR canvas container */
.qr-canvas, #qrModalCanvas {
  min-width: 100px;
  min-height: 100px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  border:1px dashed rgba(255,255,255,0.03);
  padding:10px;
  box-sizing:border-box;
}

/* input boxes inside modal */
.qr-modal-panel .ibox { background: rgba(255,255,255,0.02); border:1px solid var(--ring); border-radius:10px; padding:8px; }
.qr-modal-panel .ibox input,
.qr-modal-panel .ibox .val input {
  width:100%;
  border:0;
  background:transparent;
  color:var(--ink);
  padding:6px 4px;
  font-weight:800;
}

/* action buttons row */
.qr-actions { display:flex; gap:10px; justify-content:center; align-items:center; width:100%; flex-wrap:wrap; }
.qr-actions .btn-gold { min-width:140px; }

/* responsive adjustments */
@media (max-width: 640px) {
  .qr-modal-panel { padding:12px; margin: 10px auto; }
  .qr-modal-content { flex-direction:column; align-items:center; }
  .qr-canvas { min-width: 160px; min-height:160px; }
  .qr-info-val{ font-size:16px; }
}

/* ensure modal appears above other UI (bottom-nav etc) */
.qr-modal, .qr-modal-panel { z-index: 1400 !important; }

/* Accessibility: focus outline for close & buttons (visible on keyboard navigation) */
.qr-close:focus, .qr-actions .btn-gold:focus, .qr-modal-panel .btn-gold:focus {
  outline: 3px solid rgba(240,208,138,0.18);
  outline-offset: 2px;
}

/* small polish: loader -> hide when content visible (JS toggles display) */
.qr-loading[hidden], .qr-modal-content[hidden] { display:none !important; }

/* fallback if any global rule broke text color */
.qr-modal-panel, .qr-modal-panel * { color: inherit; }



/* Minimal non-visual fixes for timer — paste at END of css/style.css */
/* DOES NOT change fonts, sizes, colors — only ensures visibility if accidentally hidden */

#loanTimer, #loanTimer * ,
.ff-timer-panel, .ff-timer-panel * {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* keep original appearance: do NOT override color/font-size; only prevent display:none */
#loanTimer { display: block !important; }
.timer-box, .modal-timer-box { display: flex !important; }



/* ===== News-style leader scroller ===== */
#loanPanels .leader-scroller {
    max-height: 280px;
    overflow: auto; /* scrolling happens here */
    border: 1px solid var(--muted,#333);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
}

#loanPanels .leader-list {
    padding: 6px;
}

#loanPanels .leader-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.04); /* like news card */
    border: 1px solid rgba(255,255,255,.06);
    margin: 6px 0;
}

    #loanPanels .leader-row:hover {
        background: rgba(255,255,255,.06);
    }

#loanPanels .avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    font-weight: 700;
    border-radius: 50%;
    background: radial-gradient(120% 120% at 30% 30%, #f0d08a 0%, #a27c2f 60%, #6e5520 100%);
    color: #2f240c;
}

#loanPanels .info {
    flex: 1 1 auto;
    min-width: 0;
}

    #loanPanels .info .title {
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #loanPanels .info .sub {
        font-size: 12px;
        opacity: .75;
    }

#loanPanels .amt {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

#loanPanels .t-right {
    text-align: right;
}

#loanPanels .amt.pos {
    color: #79d28b;
}
/* your theme green */
/*#loanPanels .amt.neg {
    color: #79d28b;
}*/
/* red for Due Amount in Loan Defaulters */
#loanPanels .amt.neg {
    color: #ff6b6b;
}
/* or #ff5252 */

/* keep green per theme */


/* grid layout: Name | User ID | Amount */
.grid3 {
    display: grid;
    grid-template-columns: 1.6fr 1fr auto;
    align-items: center;
    gap: 12px;
}

/* scroller shell (match News look) */
#loanPanels .leader-scroller {
    max-height: 300px;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
}

/* sticky header */
#loanPanels .leader-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 14px;
    font-weight: 700;
    letter-spacing: .2px;
    background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.35)), rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(4px);
}

/* rows */
#loanPanels .leader-list {
    padding: 6px 8px 10px;
}

#loanPanels .leader-row {
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.04);
}

    #loanPanels .leader-row:hover {
        background: rgba(255,255,255,.06);
    }

#loanPanels .namecell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#loanPanels .title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#loanPanels .uidcell {
    font-size: 13px;
    opacity: .9;
}

#loanPanels .amt {
    font-weight: 700;
    white-space: nowrap;
}

#loanPanels .t-right {
    text-align: right;
}

#loanPanels .pos {
    color: #79d28b;
}

#loanPanels .neg {
    color: #79d28b;
}
/* चाहें तो red दें: #ff6b6b */

/* avatar (gold) */
#loanPanels .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: radial-gradient(120% 120% at 30% 30%, #f0d08a 0%, #b89342 60%, #6e5520 100%);
    color: #2f240c;
}

/* GOLD SCROLLBAR (same as News) */
#loanPanels .leader-scroller::-webkit-scrollbar {
    width: 10px;
}

#loanPanels .leader-scroller::-webkit-scrollbar-track {
    background: rgba(240,208,138,.15);
    border-radius: 8px;
}

#loanPanels .leader-scroller::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f0d08a, #b89342);
    border-radius: 8px;
    border: 2px solid rgba(0,0,0,.25);
}

#loanPanels .leader-scroller {
    scrollbar-width: thin;
    /*scrollbar-color: #b89342 rgba(240,208,138,.15);*/
    scrollbar-color: var(--gold-1) rgba(255, 255, 255, .06);
}
/* Head + Rows: exact same 3-column grid */
#loanPanels .leader-head.grid3,
#loanPanels .leader-row.grid3 {
    display: grid !important; /* force grid (override old flex) */
    grid-template-columns: 1.6fr 1fr auto; /* Name | User ID | Amount */
    align-items: center;
    gap: 12px;
}

/* Cells */
#loanPanels .namecell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#loanPanels .title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#loanPanels .uidcell {
    font-variant-numeric: tabular-nums;
    opacity: .9;
}

#loanPanels .amt {
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}




/* ===== One-line circular actions (desktop + mobile) ===== */
.action-row {
    /* force single row */
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* prevent wrapping */
    padding: 8px 4px;
}

.act {
    flex: 1 1 0; /* equal widths */
    border: 0;
    background: transparent;
    color: var(--gold-text,#e9e3cf);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .act .ic {
        width: 64px;
        height: 64px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        box-shadow: 0 10px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
    }

        .act .ic svg {
            width: 28px;
            height: 28px;
            stroke: var(--gold-1); /* use your theme’s gold */
            stroke-width: 2.8; /* bolder line */
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none; /* clean outline look */
            transition: stroke .2s, transform .2s;
        }

    .act .lbl {
        font-size: .86rem;
        font-weight: 600;
        color: var(--gold-1);
    }
    /* theme text */

    /* themed circles (kept from earlier suggestion) */
    .act.green .ic {      
        background: linear-gradient(180deg, #1b151f, #0f0c13);
    }

    .act.red .ic {
        background: linear-gradient(180deg, #1b151f, #0f0c13);
    }

    .act.purple .ic {
        background: linear-gradient(180deg, #1b151f, #0f0c13);
    }

    .act.blue .ic {
        background: linear-gradient(180deg, #1b151f, #0f0c13);
    }

    /* press / hover */
    .act:active .ic {
        transform: scale(.97)
    }

    .act:hover .ic {
        filter: brightness(1.05)
    }

/* ===== Tighten for small screens but keep 4-in-a-row ===== */
@media (max-width:680px) {
    .action-row {
        gap: 16px;
    }

    .act .ic {
        width: 54px;
        height: 54px;
    }

        .act .ic svg {
            width: 22px;
            height: 22px;
        }

    .act .lbl {
        font-size: .78rem;
    }
}

@media (max-width:380px) {
    .action-row {
        gap: 12px;
    }

    .act .ic {
        width: 48px;
        height: 48px;
    }

        .act .ic svg {
            width: 20px;
            height: 20px;
        }

    .act .lbl {
        font-size: .72rem;
    }
}


#chipWrap {
/*    display: flex;
*/    flex-wrap: wrap;
    gap: 1px;
    /*margin-top: 12px;*/ /* space above chips */
}


.toggle-row .seg.on {
    background: #f0d08a;
    color: #2f240c;
    border-color: #f0d08a;
}



/* ================== THEME (Red / Gray / White) ================== */
:root {
    --bg-1: #0b0911;
    --bg-2: #1a1326;
    --ink: #F5F5F5; /* primary text color -> white */
    --muted: #BDBDBD; /* muted/secondary text */
    --ring: rgba(255, 255, 255, .06);
    /* replacing gold palette with red accents */
    --gold-1: #FF3B30; /* primary accent (was gold-1) */
    --gold-2: #C21807; /* deeper accent (was gold-2) */
    --gold-text: #2b0b09; /* text shown on accent backgrounds */

    --shadow: 0 12px 28px rgba(0, 0, 0, .35);
    --r: 22px;
    --safe-bot: env(safe-area-inset-bottom, 0px);
    --maxw: 100vw;
    --cardw: 100vw;
}

/* keep html/body & layout same */
html,
body {
    height: 100%
}

body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(1200px 900px at -10% -20%, rgba(43,33,66,0.75) 0%, transparent 55%), radial-gradient(900px 900px at 120% -10%, transparent 60%), linear-gradient(160deg, var(--bg-1), var(--bg-2));
    padding-bottom: 80px;
}

/* ================== TOP BAR ================== */
.dash-top {
    max-width: var(--maxw);
    margin: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 6px;
    color: var(--muted);
}

.dash-title {
    margin: 0 auto;
    font-weight: 800;
    color: var(--muted);
    font-size: 20px
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
    border-radius: 999px;
    cursor: pointer
}

    .icon-btn svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: var(--muted);
        stroke-width: 2
    }

/* ================== LAYOUT ================== */
.wrap {
    max-width: var(--maxw);
    margin: auto;
    padding: 8px 12px 110px;
}

.stack {
    flex: 1
}

.side {
    width: 360px
}

@media (min-width:992px) {
    .wrap {
        display: flex;
        gap: 22px
    }
}

/* Panel (cards) */
.panel {
    background: linear-gradient(180deg, #1b151f, #0f0c13);
    border: 1px solid var(--ring);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 16px 16px 18px;
    margin: 12px auto;
    width: 100%;
    max-width: var(--cardw);
}

    .panel .muted {
        color: var(--muted)
    }

    .panel .tiny {
        font-size: 12px
    }

/* ================== SIDEBAR ================== */
.side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    z-index: 980
}

    .side-overlay.open {
        display: block
    }

.side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 340px);
    background: linear-gradient(180deg, #161018, #0e0a12);
    border-right: 1px solid var(--ring);
    color: var(--muted);
    transform: translateX(-100%);
    transition: .25s transform;
    z-index: 981;
    display: flex;
    flex-direction: column;
    border-top-right-radius: 22px;
    border-bottom-right-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45)
}

    .side-drawer.open {
        transform: translateX(0)
    }

.side-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 8px;
    border-bottom: 1px solid var(--ring)
}

    .side-head img {
        width: 100px;
        object-fit: contain
    }

.side-title {
    font-weight: 900
}

/* change scrollbar hint to accent-red */
.side-scroll {
    overflow: auto;
    padding: 10px 10px 120px;
    max-height: calc(100vh - 60px);
    scrollbar-width: thin;
    scrollbar-color: var(--gold-2) rgba(255, 255, 255, .06);
}

    .side-scroll::-webkit-scrollbar {
        width: 10px;
    }

    .side-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, .03);
        border-radius: 12px;
    }

    .side-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
        border-radius: 12px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

        .side-scroll::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
        }

/* menu text */
.menu-title {
    color: #8e7e63; /* keep subtle */
    font-size: 12px;
    letter-spacing: .8px;
    margin: 12px 8px 6px
}

.m-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--muted);
    padding: 12px 12px;
    border-radius: 14px
}

    .m-item:hover {
        background: rgba(255, 255, 255, .04)
    }

.m-acc {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 12px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer
}

    .m-acc:hover {
        background: rgba(255, 255, 255, .04)
    }

.chev {
    margin-left: auto;
    transition: .2s transform
}

.m-acc[aria-expanded="true"] .chev {
    transform: rotate(180deg)
}

.sub {
    display: none;
    padding-left: 8px;
    margin: 4px 0 8px 12px;
    border-left: 1px dashed var(--ring)
}

    .sub a {
        display: block;
        color: var(--muted);
        text-decoration: none;
        padding: 8px 10px;
        border-radius: 10px
    }

        .sub a:hover {
            background: rgba(255, 255, 255, .04)
        }

/* pill active now uses accent gradient (red) */
.pill-active {
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    color: var(--gold-text);
    font-weight: 800
}

/* ================== TOP CAROUSEL ================== */
.carousel-wrap {
    width: 100%;
    max-width: var(--cardw);
    margin: 12px auto 0;
    overflow: hidden;
    border-radius: var(--r);
}

.carousel-track {
    display: flex;
    transition: transform .35s ease;
}

.c-slide {
    min-width: 100%;
    background: linear-gradient(180deg, #1b151f, #0f0c13);
    border: 1px solid var(--ring);
    padding: 16px 16px 18px;
    position: relative;
    border-radius: 20px;
    margin-left: 10px;
}

/* video art remains but slightly desaturated so red accents pop */
.gold-art {
    position: absolute;
    right: 30px;
    bottom: 2px;
    width: 100px;
    height: 84px;
    object-fit: contain;
    opacity: .9;
    border-radius: 50px;
    filter: saturate(.85) contrast(.95);
}

/* neutral badge-lite */
.badge-lite {
    display: inline-block;
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px
}

/* live dots: active = green, alert = red */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold-1);
    display: inline-block;
    margin-right: 8px
}

.live-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgb(103, 166, 7);
    display: inline-block;
    margin-right: 8px
}

.price {
    font-size: 28px;
    font-weight: 900
}

    .price .unit {
        font-size: 14px;
        margin-left: 6px
    }

/* carousel dots: default -> desaturated; active -> accent */
.dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 8px 0
}

    .dots button {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        border: none;
        background: rgba(255,255,255,0.03);
    }

    .dots .on {
        background: var(--gold-1)
    }

/* ===== BUY panel bits ===== */
.toggle-row {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, .04);
    padding: 6px;
    border-radius: 12px
}

.seg {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    border-radius: 10px;
    padding: 8px 10px
}

    .seg.on {
        background: rgba(255, 255, 255, .07)
    }

.calc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px
}

/* input underline keep neutral but use accent border on focus */
.input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 8px 4px
}

    .input-wrap input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        color: var(--ink);
        font-size: 20px
    }

.grams {
    font-weight: 800
}

/* chip style neutral; text color muted */
.chip {
    border: none;
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 800;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    margin-right: 8px
}

/* CTA button - replace gold gradient with red gradient but keep same shape/shadow */
.cta {
    border: none;
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    color: var(--gold-text);
    font-weight: 900;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 14px 26px rgba(194,30,7, .18)
}

/* ===== TRENDS ===== */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px
}

.tab {
    border: none;
    border-radius: 999px;
    padding: 6px 10px;
    background: transparent;
    color: var(--muted)
}

    .tab.on {
        background: rgba(255, 255, 255, .06)
    }

.chart-box {
    height: 160px;
    background: rgba(255, 255, 255, .03);
    border-radius: 16px;
    overflow: hidden
}

    /* SVG chart gradient override — replace old gold stops with accent */
    .chart-box svg stop[stop-color="#f0d08a"],
    .chart-box svg stop[stop-color="#f0d08a"] ~ stop {
        stop-color: var(--gold-1) !important;
    }

    .chart-box svg path[stroke="#f0d08a"] {
        stroke: var(--gold-1) !important;
    }

/* ===== DESKTOP SIDE CARDS ===== */
.side-card {
    display: block;
    text-decoration: none;
    color: var(--muted);
    background: linear-gradient(180deg, #18131c, #0f0c13);
    border: 1px solid var(--ring);
    border-radius: 18px;
    padding: 14px;
    margin: 12px 0;
    box-shadow: var(--shadow)
}

.side-title {
    font-weight: 800
}

.side-desc {
    color: red;
    font-size: 14px
}

/* ===== BOTTOM NAV (fixed full width) ===== */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: max(0px, var(--safe-bot));
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--ring);
    padding: 8px;
    display: flex;
    justify-content: space-around;
    z-index: 997;
}

.bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--muted)
}

    .bn-item.active {
        color: var(--gold-1)
    }

    .bn-item svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2
    }

/* ===== MOBILE full-bleed top carousel ===== */
@media (max-width:991.98px) {
    .carousel-wrap {
        max-width: none;
        border: 0;
        margin-left: -12px;
        margin-right: -12px
    }

    .panel {
        max-width: none
    }
}


.sec-title {
    font-weight: 800;
    color: var(--muted);
    margin: 14px 6px 6px
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

@media (max-width:991.98px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:575.98px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr
    }
}

.mini-card {
    background: linear-gradient(180deg, #18131c, #0f0c13);
    border: 1px solid var(--ring);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .mini-card h6 {
        margin: 0;
        font-weight: 700;
        color: var(--muted)
    }

    /* mini-card value now uses accent color */
    .mini-card .val {
        font-weight: 900;
        color: var(--gold-1)
    }

.pkg-card {
    background: linear-gradient(180deg, #1b151f, #0f0c13);
    border: 1px solid var(--ring);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
}

    .pkg-card h5 {
        color: var(--gold-1);
        margin: 0 0 6px;
        font-weight: 900
    }

    .pkg-card p {
        margin: 2px 0;
        color: var(--muted)
    }

.news-box {
    margin-top: 24px;
    background: linear-gradient(180deg, #18131c, #0f0c13);
    border: 1px solid var(--ring);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-1) rgba(255, 255, 255, .06);
}

    .news-box::-webkit-scrollbar {
        width: 8px;
    }

    .news-box::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
        border-radius: 8px;
    }

.news-item {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--ring);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

    .news-item img {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        object-fit: cover;
    }

    .news-item .info {
        flex: 1;
    }

        .news-item .info h6 {
            margin: 0 0 4px;
            font-weight: 700;
            color: var(--gold-1);
        }

        .news-item .info p {
            margin: 0;
            font-size: 14px;
            color: var(--muted);
        }

/* ===== TOPBAR ===== */
.topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px
}

    .topbar h1 {
        margin: 0 auto 0 6px;
        font-size: 20px;
        font-weight: 800;
        color: var(--muted)
    }

/* ===== CARDS / PROFILE ===== */
.cardx {
    background: linear-gradient(180deg, #1b151f, #0f0c13);
    border: 1px solid var(--ring);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.panel-pad {
    padding: 16px
}

.prof-wrap {
    display: flex;
    gap: 14px;
    align-items: center
}

/* avatar border now subtle red outline */
.avatar {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid rgba(255,59,48,0.12);
    padding: 2px;
    background: #0f0c13;
}

.name {
    font-weight: 900;
    font-size: 18px
}

/* tag style uses new accent gradient */
.tag {
    display: inline-block;
    font-size: 12px;
    color: var(--gold-text);
    font-weight: 800;
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    padding: 4px 10px;
    border-radius: 999px
}

.grid {
    display: grid;
    gap: 10px;
    margin-top: 12px
}

.grid-2 {
    grid-template-columns: 1fr
}

@media(min-width:768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr
    }
}

.ibox {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--ring);
    border-radius: 14px;
    padding: 10px 12px;
}

    .ibox label {
        display: block;
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 4px
    }

    .ibox .val {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 800;
        color: var(--ink)
    }

/* icon button color -> accent for emphasis */
.i-btn {
    border: none;
    background: transparent;
    color: var(--gold-1);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px
}

    .i-btn:hover {
        background: rgba(255, 255, 255, .04)
    }

.actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap
}

/* gold-btn replaced with red gradient but identical style */
.gold-btn {
    border: none;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 900;
    color: var(--gold-text);
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    box-shadow: 0 12px 24px rgba(194,30,7, .18)
}

.sec-title {
    font-weight: 800;
    color: var(--muted);
}

/* ===== SIDEBAR (dashboard जैसा) ===== */
/* (duplicate rules kept intentionally — color variables already replaced above) */

/* edit profile */
/* ===== Buy UI (screenshot style) ===== */
/* keep look but change highlight colors to match red theme */
.buy-box.panel {
    background: linear-gradient(180deg, #1b151f, #0f0c13);
    border: 1px solid var(--ring);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 14px 14px 16px;
    color: var(--muted);
}

/* toggle chips (already in your theme, keep for consistency) */
.toggle-row {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, .04);
    padding: 6px;
    border-radius: 12px
}

.seg {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer
}

    .seg.on {
        background: rgba(255, 255, 255, .07)
    }

/* money-input: make neutral white field (readable) but keep same sizing and corner radius */
.money-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 2px solid rgba(0,0,0,0.06);
    color: var(--gold-text);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06) inset, 0 4px 10px rgba(0, 0, 0, .06);
}

    .money-input:focus-within {
        border-color: var(--gold-1);
        box-shadow: 0 0 0 6px rgba(255,59,48,0.06), 0 6px 16px rgba(0, 0, 0, .06) inset;
    }

    .money-input span {
        font-weight: 900;
        opacity: .95;
        color: var(--gold-1);
    }

    .money-input input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        color: var(--gold-text);
        font-weight: 800;
        font-size: 20px;
        letter-spacing: .2px;
    }

        .money-input input::placeholder {
            color: rgba(43,11,9,0.45);
        }

.grams {
    font-weight: 900;
    color: var(--muted)
}

/* hint text below input */
.ff-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px
}

/* add-amount chips */
.chip-row {
    display: flex;
    gap: 10px;
    margin: 12px 0 8px;
    flex-wrap: wrap
}

.chip-gold {
    border: none;
    border-radius: 999px;
    padding: 9px 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    cursor: pointer;
}

    .chip-gold:hover {
        background: rgba(255, 255, 255, .06)
    }

/* CTA button (bold red gradient now) */
.btn-gold {
    border: none;
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 900;
    cursor: pointer;
    color: var(--gold-text);
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    box-shadow: 0 14px 26px rgba(194,30,7, .18);
}

    .btn-gold:active {
        transform: translateY(1px)
    }

.trust-line {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

/* ff-select / ff-sel (replace pale-yellow with white neutral using same sizing) */
.ff-select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--gold-text);
    font-weight: 800;
    font-size: 16px;
}

.ff-sel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    background: #ffffff;
    border: 2px solid var(--gold-1);
    color: var(--gold-text);
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06) inset, 0 4px 10px rgba(0, 0, 0, .06);
    cursor: pointer;
}

    .ff-sel:focus {
        outline: none;
        box-shadow: 0 0 0 6px rgba(255,59,48,0.06);
    }

    .ff-sel .ff-label {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .ff-sel .ff-icon {
        font-size: 14px;
        opacity: .8
    }

/* ------- Popper (desktop) ------- */
.ff-menu {
    position: absolute;
    z-index: 999;
    background: linear-gradient(180deg, #1b151f, #0f0c13);
    border: 1px solid var(--ring);
    border-radius: 14px;
    min-width: 220px;
    max-height: 280px;
    overflow: auto;
    box-shadow: var(--shadow);
    padding: 6px;
    display: none;
}

    .ff-menu.on {
        display: block;
    }

.ff-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
}

    .ff-item:hover {
        background: rgba(255, 255, 255, .04)
    }

    .ff-item.active {
        background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
        color: var(--gold-text);
        font-weight: 900;
    }

/* Search box (inside menu) */
.ff-search {
    width: 100%;
    margin: 6px 6px 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--ring);
    background: rgba(255, 255, 255, .04);
    color: var(--ink);
}

    .ff-search::placeholder {
        color: var(--muted)
    }

/* ------- Bottom Sheet (mobile) ------- */
@media (max-width:991.98px) {
    .ff-menu {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 18px 18px 0 0;
        max-height: 75vh;
        min-width: auto;
        padding: 10px;
    }
}

/* ====== small utilities added for this page ====== */
.label-line {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--ring);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--muted);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.muted-mini {
    font-size: 12px;
    color: var(--muted)
}

.qr-box {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--ring);
    border-radius: 14px;
    text-align: center;
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.btn-gold.outline {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--ring);
    box-shadow: none;
}

/* warn keep same but colors OK */
.warn {
    color: #b51a1a;
    font-weight: 800;
    background: rgba(181, 26, 26, .08);
    border: 1px solid rgba(181, 26, 26, .25);
    border-radius: 10px;
    padding: 8px 10px;
    margin-top: 8px;
}

/* loader */
.loader-line {
    margin-top: 10px;
    display: none
}

/* small fixes */
.readonly input[readonly] {
    opacity: .9
}

/* Activation card button */
.activation-card {
    max-width: 900px;
    margin: 6px auto;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--ring);
    background: linear-gradient(180deg, #1b151f, #0f0c13);
}

.button-29 {
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    color: var(--gold-text);
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    box-shadow: 0 10px 22px rgba(194,30,7, .12);
}

    .button-29[disabled] {
        opacity: .6;
        cursor: not-allowed
    }

/* ===== timer styles (use accent for time value background) ===== */
.time-val {
    font-weight: 900;
    font-size: 20px;
    color: var(--gold-1);
    padding: 6px 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,59,48,0.06), rgba(194,30,7,0.03));
    min-width: 44px;
    text-align: center;
}

/* modal / qr modal header color -> accent */
.qr-modal-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: var(--gold-1);
}

.qr-info-val {
    font-weight: 900;
    color: var(--gold-1);
    font-size: 18px;
}

/* ===== News-style leader scroller ===== */
#loanPanels .leader-scroller {
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--muted);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
}

#loanPanels .leader-list {
    padding: 6px;
}

#loanPanels .leader-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    margin: 6px 0;
}

    #loanPanels .leader-row:hover {
        background: rgba(255,255,255,.06);
    }

/* avatar (replace gold gradient with subtle red-tinted gradient) */
#loanPanels .avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    font-weight: 700;
    border-radius: 50%;
    background: radial-gradient(120% 120% at 30% 30%, rgba(255,59,48,0.12) 0%, rgba(194,30,7,0.08) 60%, #3a1b1b 100%);
    color: var(--gold-text);
}

/* Amount colors: positive keep green, negative red */
#loanPanels .amt.pos {
    color: #79d28b;
}

#loanPanels .amt.neg {
    color: #ff6b6b;
}

/* grid layout: Name | User ID | Amount */
.grid3 {
    display: grid;
    grid-template-columns: 1.6fr 1fr auto;
    align-items: center;
    gap: 12px;
}

/* GOLD SCROLLBAR replacement for leader scroller -> red themed */
#loanPanels .leader-scroller::-webkit-scrollbar {
    width: 10px;
}

#loanPanels .leader-scroller::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

#loanPanels .leader-scroller::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    border-radius: 8px;
    border: 2px solid rgba(0,0,0,.25);
}

/* Head + Rows: consistent grid */
#loanPanels .leader-head.grid3,
#loanPanels .leader-row.grid3 {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr auto;
    align-items: center;
    gap: 12px;
}

/* ===== One-line circular actions (desktop + mobile) ===== */
.action-row {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px 4px;
}

.act {
    flex: 1 1 0;
    border: 0;
    background: transparent;
    color: var(--gold-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .act .ic {
        width: 64px;
        height: 64px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        box-shadow: 0 10px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
    }

        .act .ic svg {
            width: 28px;
            height: 28px;
            stroke: var(--gold-1);
            stroke-width: 2.8;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
            transition: stroke .2s, transform .2s;
        }

    .act .lbl {
        font-size: .86rem;
        font-weight: 600;
        color: var(--gold-1);
    }

    .act.green .ic,
    .act.red .ic,
    .act.purple .ic,
    .act.blue .ic {
        background: linear-gradient(180deg, #1b151f, #0f0c13);
    }

    /* press / hover */
    .act:active .ic {
        transform: scale(.97)
    }

    .act:hover .ic {
        filter: brightness(1.05)
    }

/* Tweak: selected toggle style uses accent */
.toggle-row .seg.on {
    background: rgba(255,59,48,0.10);
    color: var(--ink);
    border-color: rgba(255,59,48,0.12);
}

/* small helper */
.text-cut {
    text-decoration-color: rgba(255,255,255,0.08);
}

/* Focus outline (accessible) */
:focus {
    outline: 3px solid rgba(255,59,48,0.12);
    outline-offset: 3px;
}

/* keep rest of original rules intact (no layout changes) */

/* End of theme overrides */


/* === Minimal necessary CSS for Bonus structure === */

/* fallback theme variables */


/* container: left column + right big card */
.bonus-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 12px;
    align-items: start;
    margin: 12px 0;
}

    /* left column stacks top and mid */
    .bonus-wrap .left-col {
        display: grid;
        gap: 10px;
    }

    /* top row: bonus info (left) + price box (right small) */
    .bonus-wrap .top-row {
        display: flex;
        gap: 10px;
        align-items: stretch;
    }

    /* generic small card */
    .bonus-wrap .card {
        background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04));
        border: 1px solid var(--ring);
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.28);
        color: var(--ink);
    }

/* bonus text area (left of top-row) */
.bonus-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

/* price box (small right) */
.price-box {
    width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

    /* price styling */
    .price-box .label {
        font-size: 12px;
        color: var(--muted);
    }

    .price-box .value {
        font-weight: 800;
        font-size: 18px;
        color: var(--gold-1);
    }

/* middle row small cards */
.bonus-wrap .mid-row {
    display: flex;
    gap: 10px;
}

    .bonus-wrap .mid-row .card {
        flex: 1;
        min-height: 72px;
    }

/* right big panel */
.side-big {
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, rgba(240,208,138,0.06), rgba(215,168,79,0.02));
    border: 1px solid rgba(240,208,138,0.14);
/*    min-height: 180px;
*/}

    /* big title + desc */
    .side-big .title {
        font-weight: 900;
        font-size: 18px;
        color: var(--gold-1);
    }

    .side-big .desc {
        color: var(--ink);
        font-size: 13px;
        opacity: 0.95;
    }

/* CTA button */
.get-bonus-btn {
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(120,85,20,0.22);
}

/* responsive: stack on small screens */
@media (max-width:900px) {
    .bonus-wrap {
        grid-template-columns: 1fr;
    }

    .side-big {
        order: 99;
    }

    .top-row, .mid-row {
        flex-direction: column;
    }
}



/* =========================================
   UNIVERSAL WHITE THEME OVERRIDE (SAFE)
   NO DESIGN / LAYOUT CHANGE
   ========================================= */

/* 1. Root color overrides ONLY */
:root {
    --bg-1: #ffffff;
    --bg-2: #f5f6fa;
    --ink: #1f2937; /* primary text */
    --muted: #6b7280; /* secondary text */

    --ring: rgba(0,0,0,.08);
    /* keep accent colors AS-IS (gold / red etc.) */
}

/* 2. Body background – remove dark gradients */
body {
    background: white !important;
    color: red;
}

/* 3. ALL cards / panels → white */
.panel,
.c-slide,
.side-card,
.mini-card,
.pkg-card,
.news-box,
.news-item,
.cardx,
.buy-box,
.timer-panel,
.activation-card,
.side-big,
.bonus-box,
.price-box,
.qr-modal-panel,
.ff-timer-panel,
.ff-menu,
.ff-sel,
.money-input {
    background: #ffffff !important;
    color: var(--ink) !important;
    border-color: rgba(0,0,0,.08) !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.08) !important;
}

/* 4. Sidebar → white */
.side-drawer {
    background: #ffffff !important;
    color: var(--ink) !important;
}

/* 5. Topbar & bottom nav → white glass */
.dash-top,
.topbar,
.bottom-nav {
    background: rgba(255,255,255,.9) !important;
    backdrop-filter: blur(6px);
    border-color: rgba(0,0,0,.08) !important;
}

/* 6. Text fixes */
h1, h2, h3, h4, h5, h6 {
    color: #111827 !important;
}

.muted,
.muted-mini,
.small,
.tiny {
    color: #6b7280 !important;
}

/* 7. Inputs */
input,
select,
textarea {
    background: #ffffff !important;
    color: #111827 !important;
}

/* 8. Tables */
.table-wrap table {
    color: #111827 !important;
}

.table-wrap thead th {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

/* 9. Neutralize dark hover layers */
.m-item:hover,
.m-acc:hover,
.sub a:hover,
.news-item:hover,
.leader-row:hover {
    background: rgba(0,0,0,.04) !important;
}

/* 10. Remove decorative dark video/gradient art */
.gold-art {
    opacity: .25 !important;
    filter: grayscale(1);
}
/* ===== BUTTON COLOR FIX (IMPORTANT) ===== */
.btn-gold,
.gold-btn,
.cta,
.button-29,
.get-bonus-btn {
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2)) !important;
    color: var(--gold-text) !important; /* 👈 WHITE TEXT */
    border: none !important;
}

    /* hover / active */
    .btn-gold:hover,
    .gold-btn:hover,
    .cta:hover {
        filter: brightness(1.05);
    }

    .btn-gold:active,
    .gold-btn:active {
        transform: translateY(1px);
    }
.panel,
.cardx,
.mini-card,
.side-card,
.pkg-card,
.news-box,
.buy-box,
.timer-panel {
    background: #ffffff !important;
    color: var(--ink) !important;
    border-color: rgba(0,0,0,.08) !important;
}
