* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  overflow: hidden;
  background: #050d05;
}

body {
  background: #050d05;
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  width: 100%;
  overscroll-behavior: none;
}

.app {
  height: 100vh;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  overscroll-behavior: none;
}

.scr {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
  background: #0d1f0f;
  position: relative;
  width: 100%;
  overscroll-behavior: contain;
}

.scr.on {
  display: flex;
  padding-bottom: 80px;
}

.tb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.tb h2 {
  font-size: 15px;
  font-weight: 800;
}

.tb p {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 1px;
}

.tbr {
  display: flex;
  gap: 8px;
}

.av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.sb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: background 0.15s;
}
.sb:active {
  background: rgba(255, 255, 255, 0.22);
}

.bn {
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0 20px;
  flex-shrink: 0;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.ni {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  cursor: pointer;
  opacity: 0.5;
  font-size: 9px;
  gap: 3px;
  transition: opacity 0.2s;
}
.ni-more { opacity: 0.7; }

.ni.on {
  opacity: 1;
  color: #52b788;
}

.nic {
  font-size: 20px;
}

.sc2 {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sc2::-webkit-scrollbar {
  display: none;
}

.sec {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 0 8px;
}

/* PROFILE */
.ph {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.pa {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #52b788, #1b4332);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 2px solid rgba(82, 183, 136, 0.5);
  flex-shrink: 0;
  position: relative;
}

.plv {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, #f4c542, #f4a261);
  border-radius: 8px;
  padding: 1px 5px;
  font-size: 8px;
  font-weight: 900;
  color: #000;
  border: 1.5px solid #0d1f0f;
}

.pn {
  font-size: 15px;
  font-weight: 800;
}

.ps {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 1px;
}

.pb {
  display: flex;
  gap: 4px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.bd {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(82, 183, 136, 0.12);
  border: 1px solid rgba(82, 183, 136, 0.3);
  color: #52b788;
}

.bd.gd {
  background: rgba(244, 197, 66, 0.12);
  border-color: rgba(244, 197, 66, 0.3);
  color: #f4c542;
}

.sr {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  flex-shrink: 0;
}

.st {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 11px;
  padding: 9px 5px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sn {
  font-size: 14px;
  font-weight: 800;
  color: #52b788;
}

.sl {
  font-size: 8px;
  opacity: 0.5;
  margin-top: 2px;
}

.cr {
  display: flex;
  gap: 5px;
  padding: 0 14px 8px;
  flex-shrink: 0;
  align-items: center;
}

.clbl {
  font-size: 10px;
  opacity: 0.4;
}

.cb {
  padding: 4px 9px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.cb.on {
  background: rgba(82, 183, 136, 0.2);
  border-color: rgba(82, 183, 136, 0.5);
  color: #52b788;
}

.swlbl {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sw-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(82, 183, 136, 0.22);
  border: 1.5px solid rgba(82, 183, 136, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.95);
  transition:
    opacity 0.25s,
    background 0.2s;
  flex-shrink: 0;
}

.sw-arrow-btn:active {
  background: rgba(82, 183, 136, 0.45);
}

.sw-arrow-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.swwrap{flex:1;overflow:hidden;position:relative;min-height:0;}
.swtrack {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swcard {
  min-width: 100%;
  height: 100%;
  padding: 8px 14px 4px;
}

.swcard::-webkit-scrollbar {
  display: none;
}

.swcard.sw-thirsty .tc {
  animation: swThirsty 3s ease-in-out infinite;
  border-radius: 18px;
}
.swcard.sw-critical .tc {
  animation: swCritical 1.4s ease-in-out infinite;
  border-radius: 18px;
}
@keyframes swThirsty {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(244,162,97,0.25); }
  50%       { box-shadow: 0 0 0 2px rgba(244,162,97,0.55), 0 0 14px rgba(244,162,97,0.18); }
}
@keyframes swCritical {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(230,57,70,0.3); }
  50%       { box-shadow: 0 0 0 2px rgba(230,57,70,0.65), 0 0 18px rgba(230,57,70,0.22); }
}

.dts {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}

.dt {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.25s;
  cursor: pointer;
}

.dt.on {
  background: #52b788;
  width: 18px;
  border-radius: 3px;
}

.tc {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  height: calc(100% - 4px);
  display: flex;
  flex-direction: column;
}

.tcp {
  width: 100%;
  height: 150px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  position: relative;
}

.pine {
  background: linear-gradient(160deg, #1b4332, #2d6a4f, #40916c);
}

.oak {
  background: linear-gradient(160deg, #3a2a00, #6b4c00, #8b6914);
}

.apple {
  background: linear-gradient(160deg, #3a1a2a, #7a2d4f, #c0607a);
}

.fir {
  background: linear-gradient(160deg, #0a2a1a, #1a5032, #2a7048);
}

.ntag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #52b788;
  border: 1px solid rgba(82, 183, 136, 0.4);
}

.pw {
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
}

.pi {
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pbdg {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e63946;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1b4332;
  animation: bp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bp {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.tcb {
  padding: 11px;
  flex: 1;
}

.tcb::-webkit-scrollbar {
  display: none;
}

.tn {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}

.tm {
  font-size: 10px;
  opacity: 0.5;
  margin-bottom: 8px;
}

.stk {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 197, 66, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(244, 197, 66, 0.2);
}

.stk b {
  font-size: 11px;
  font-weight: 700;
  color: #f4c542;
}

.stk p {
  font-size: 9px;
  opacity: 0.6;
}

.ig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 8px;
}

.ii {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 7px 10px;
}

.il {
  font-size: 8px;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.iv {
  font-size: 12px;
  font-weight: 700;
}

.iv.g {
  color: #52b788;
}

.iv.y {
  color: #f4c542;
}

.hrow {
  margin-bottom: 8px;
}

.hrt {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 4px;
}

.hb {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.hf {
  height: 100%;
  border-radius: 6px;
}

.cbtns {
  display: flex;
  gap: 5px;
}

.cbtn {
  flex: 1;
  padding: 10px 5px;
  border: none;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.cbtn:active {
  transform: scale(0.96);
}

.bw {
  background: linear-gradient(135deg, #0096c7, #0077b6);
  color: #fff;
}

.bw.done {
  background: linear-gradient(135deg, #2d6a4f, #1b4332);
}

.bv {
  background: linear-gradient(135deg, #f4a261, #e76f51);
  color: #fff;
}

.bm {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 38px;
}

.addc {
  background: rgba(82, 183, 136, 0.06);
  border: 2px dashed rgba(82, 183, 136, 0.3);
  border-radius: 18px;
  height: calc(100% - 4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
}

.adde {
  font-size: 52px;
  margin-bottom: 14px;
}

.addt {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.adds {
  font-size: 12px;
  opacity: 0.6;
  line-height: 1.5;
  margin-bottom: 20px;
}

.addb {
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 28px;
  cursor: pointer;
}

/* XP BAR */
.xp-wrap {
  padding: 6px 14px 2px;
  flex-shrink: 0;
}

.xp-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin-bottom: 4px;
  opacity: 0.75;
}

.xp-lv {
  font-weight: 800;
  color: #52b788;
}

.xp-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #52b788, #74c69d);
  transition: width 0.5s ease;
}

/* SIDE BUTTONS */
.side-btn {
  position: absolute;
  right: 0;
  width: 50px;
  height: 50px;
  border-radius: 50% 0 0 50%;
  background: rgba(10, 26, 10, 0.1);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(82, 183, 136, 0.35);
  border-right: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 1px;
  transition: transform 0.2s;
  box-shadow: -3px 0 16px rgba(0, 0, 0, 0.4);
  z-index: 50;
}

.side-btn:active {
  transform: scaleX(0.92);
}

.side-btn-top {
  top: 52px;
}

.side-btn-mid {
  top: 50%;
  transform: translateY(-50%);
}

.side-btn-mid:active {
  transform: translateY(-50%) scaleX(0.92);
}

.side-btn-bot {
  bottom: 70px;
}

.side-btn-ic {
  font-size: 18px;
  line-height: 1;
}

.side-btn-lbl {
  font-size: 7px;
  font-weight: 700;
  opacity: 0.6;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.side-btn-badge {
  position: absolute;
  top: 3px;
  right: 5px;
  background: #e63946;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 8px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0d1f0f;
}

/* ACHIEVEMENTS */
.ach-sum {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 12px 8px;
  margin: 12px 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ach-s {
  text-align: center;
}

.ach-sn {
  font-size: 20px;
  font-weight: 900;
  color: #52b788;
}

.ach-sl {
  font-size: 9px;
  opacity: 0.5;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 0 8px;
}

.ach-card {
  border-radius: 14px;
  padding: 12px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.ach-card.unlocked {
  background: rgba(82, 183, 136, 0.08);
  border-color: rgba(82, 183, 136, 0.3);
}

.ach-card.gold {
  background: rgba(244, 197, 66, 0.08);
  border-color: rgba(244, 197, 66, 0.35);
}

.ach-card.locked {
  opacity: 0.55;
}

.ach-ic {
  font-size: 28px;
  margin: 4px 0 2px;
}

.ach-nm {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.ach-desc {
  font-size: 9px;
  opacity: 0.5;
  line-height: 1.4;
}

.ach-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(82, 183, 136, 0.25);
  border: 1.5px solid #52b788;
  font-size: 10px;
  font-weight: 900;
  color: #52b788;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ach-gold-check {
  background: rgba(244, 197, 66, 0.2);
  border-color: #f4c542;
  color: #f4c542;
}

.ach-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  opacity: 0.4;
}

.ach-prog {
  width: 100%;
  margin-top: 4px;
}

.ach-prog-txt {
  font-size: 8px;
  opacity: 0.5;
  margin-bottom: 3px;
}

.ach-prog-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.ach-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #52b788, #40916c);
  border-radius: 4px;
}

/* QUESTS */
.q-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 6px;
}

.q-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s;
}

.q-tab.on {
  background: rgba(82, 183, 136, 0.15);
  border-color: rgba(82, 183, 136, 0.4);
  color: #52b788;
  opacity: 1;
}

.q-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
}

.q-card.active {
  border-color: rgba(82, 183, 136, 0.25);
  background: rgba(82, 183, 136, 0.05);
}

.q-card.done {
  opacity: 0.6;
}

.q-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.q-ic {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.q-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 3px;
}

.q-desc {
  font-size: 10px;
  opacity: 0.55;
  line-height: 1.4;
}

.q-reward {
  flex-shrink: 0;
  text-align: center;
  background: rgba(244, 197, 66, 0.1);
  border: 1px solid rgba(244, 197, 66, 0.25);
  border-radius: 10px;
  padding: 6px 10px;
}

.q-rew-val {
  font-size: 13px;
  font-weight: 900;
  color: #f4c542;
}

.q-rew-lbl {
  font-size: 8px;
  opacity: 0.6;
  margin-top: 1px;
}

.q-prog-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.q-prog-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.q-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #52b788, #40916c);
  border-radius: 5px;
}

.q-prog-txt {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.6;
  white-space: nowrap;
}

.q-btn {
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s;
}

.q-btn:active {
  transform: scale(0.97);
}

.q-btn.done-btn {
  background: linear-gradient(
    135deg,
    rgba(244, 197, 66, 0.18),
    rgba(244, 162, 97, 0.12)
  );
  border: 1px solid rgba(244, 197, 66, 0.4);
  color: #f4c542;
  cursor: default;
}

.q-btn.claim-btn {
  background: linear-gradient(135deg, #f4c542, #f4a261);
  color: #000;
  font-weight: 900;
}

.q-card.locked {
  opacity: 0.55;
  pointer-events: none;
}

.q-lv {
  display: inline-block;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(244, 197, 66, 0.15);
  border: 1px solid rgba(244, 197, 66, 0.3);
  color: #f4c542;
  margin-bottom: 4px;
}

/* GIFT */
.gift-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 600;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.gift-bg.on {
  display: flex;
}

.gift-sheet {
  background: #0d1f0f;
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 420px;
  padding: 20px 20px 72px;
  border-top: 1px solid rgba(82, 183, 136, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gift-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 0 auto 18px;
}

.gift-title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 4px;
}

.gift-sub {
  font-size: 11px;
  opacity: 0.5;
  margin-bottom: 16px;
}

.gift-tree-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(82, 183, 136, 0.08);
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.gift-tree-ic {
  font-size: 28px;
}

.gift-tree-nm {
  font-size: 13px;
  font-weight: 800;
}

.gift-tree-hint {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 2px;
}

.gift-contacts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gift-contacts::-webkit-scrollbar {
  display: none;
}

.gift-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.gift-contact-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d6a4f, #1b4332);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.gift-contact.sel .gift-contact-av {
  border-color: #52b788;
}

.gift-contact-nm {
  font-size: 9px;
  opacity: 0.6;
  max-width: 48px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-or {
  text-align: center;
  font-size: 10px;
  opacity: 0.35;
  margin: 8px 0;
}

.gift-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  padding: 11px 14px;
  margin-bottom: 10px;
  outline: none;
  font-family: inherit;
}

.gift-input:focus {
  border-color: rgba(82, 183, 136, 0.5);
}

.gift-input::placeholder {
  opacity: 0.4;
}

.gift-msg {
  resize: none;
  height: 70px;
}

.gift-send {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s;
}

.gift-send:active {
  transform: scale(0.97);
}

.gift-cancel {
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  cursor: pointer;
  margin-top: 6px;
}

.gift-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .6;
  margin: 10px 0 4px;
}

.gift-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: .7;
}

.gift-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: .7;
  margin: 10px 0 4px;
}

.gift-price-val {
  font-size: 16px;
  font-weight: 900;
  color: #52b788;
  opacity: 1;
}

.gift-link-box {
  background: rgba(82, 183, 136, 0.12);
  border: 1px solid rgba(82, 183, 136, 0.35);
  border-radius: 10px;
  padding: 12px;
  font-size: 11px;
  word-break: break-all;
  color: #74c69d;
  margin: 12px 0;
  min-height: 40px;
}

.gift-send + .gift-send {
  margin-top: 8px;
}

.gift-tg-btn {
  background: linear-gradient(135deg, #229ED9, #1470a0);
}

/* LEADERBOARD */
.lb-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 8px;
}

.lb-tab {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s;
}

.lb-tab.on {
  background: rgba(82, 183, 136, 0.15);
  border-color: rgba(82, 183, 136, 0.4);
  color: #52b788;
  opacity: 1;
}

.lb-mypos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(82, 183, 136, 0.1);
  border: 1px solid rgba(82, 183, 136, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.lb-mypos-lbl {
  font-size: 10px;
  opacity: 0.6;
}

.lb-mypos-val {
  font-size: 14px;
  font-weight: 900;
  color: #52b788;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lb-row.me {
  background: rgba(82, 183, 136, 0.12);
  border-color: rgba(82, 183, 136, 0.35);
}

.lb-row.sep {
  background: transparent;
  border: none;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 18px;
  margin: 0;
  padding: 4px;
}

.lb-rank {
  font-size: 18px;
  width: 28px;
  text-align: center;
  font-weight: 900;
  flex-shrink: 0;
}

.lb-rank.num {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.lb-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d6a4f, #1b4332);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.lb-av.me-av {
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  border: 2px solid #52b788;
}

.lb-info {
  flex: 1;
  min-width: 0;
}

.lb-name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-sub {
  font-size: 9px;
  opacity: 0.5;
  margin-top: 2px;
}

.lb-val {
  font-size: 13px;
  font-weight: 900;
  color: #52b788;
  white-space: nowrap;
  flex-shrink: 0;
}

.lb-val.gold {
  color: #f4c542;
}

.lb-val.silver {
  color: #b0b8c1;
}

.lb-val.bronze {
  color: #cd7f32;
}

/* FOREST */
#forest {
  background: #0a1a0a;
}

.leg {
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  opacity: 0.7;
}

.ld {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ld.mine {
  background: #f4c542;
}

.ld.fr {
  background: rgba(255, 255, 255, 0.15);
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

.ld.tk {
  background: #2d6a4f;
}

.ld.vi {
  background: #f4a261;
}

.zslide {
  min-width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.zslide::-webkit-scrollbar {
  display: none;
}

.zbg {
  border-radius: 16px;
  padding: 12px;
  margin: 8px;
}

.za {
  background: radial-gradient(
    ellipse at center,
    rgba(30, 70, 40, 0.8),
    rgba(10, 26, 10, 0.98)
  );
}

.zb {
  background: radial-gradient(
    ellipse at center,
    rgba(65, 48, 10, 0.8),
    rgba(10, 26, 10, 0.98)
  );
}

.zc {
  background: radial-gradient(
    ellipse at center,
    rgba(85, 22, 48, 0.7),
    rgba(10, 26, 10, 0.98)
  );
}

.zd {
  background: radial-gradient(
    ellipse at center,
    rgba(12, 58, 38, 0.8),
    rgba(10, 26, 10, 0.98)
  );
}

.zh {
  margin-bottom: 12px;
}

.zh h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
}

.zh p {
  font-size: 10px;
  opacity: 0.55;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.pl {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 22px;
  border: 1.5px solid transparent;
  transition: transform 0.15s;
}

.pl:active {
  transform: scale(0.91);
}

.pl.fr {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.2);
}

.pl.fr:hover {
  border-color: rgba(82, 183, 136, 0.5);
  background: rgba(82, 183, 136, 0.07);
  color: rgba(82, 183, 136, 0.7);
}

.pl.pt {
  background: rgba(18, 52, 28, 0.65);
  border-color: rgba(40, 100, 60, 0.4);
}

.pl.po {
  background: rgba(52, 38, 8, 0.65);
  border-color: rgba(100, 76, 16, 0.4);
}

.pl.pap {
  background: rgba(65, 18, 38, 0.55);
  border-color: rgba(130, 40, 80, 0.4);
}

.pl.pf {
  background: rgba(8, 42, 28, 0.7);
  border-color: rgba(20, 80, 52, 0.4);
}

.pl.mine {
  background: rgba(82, 183, 136, 0.18);
  border-color: #f4c542;
  animation: gg 2.5s ease-in-out infinite;
}

@keyframes gg {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(244, 197, 66, 0.4);
  }

  50% {
    box-shadow:
      0 0 26px rgba(244, 197, 66, 0.85),
      0 0 40px rgba(244, 197, 66, 0.2);
  }
}

.pl.vis {
  border-color: rgba(244, 162, 97, 0.5);
}

.ptree {
  display: inline-block;
  animation: sw 3s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.ptree-free {
  opacity: 0.18;
  animation: none;
  filter: grayscale(40%);
}

@keyframes sw {
  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

.pnum {
  font-size: 7px;
  opacity: 0.28;
  font-weight: 600;
  margin-top: 1px;
}

.pstar {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #f4c542, #f4a261);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0a1a0a;
  color: #000;
  font-weight: 900;
}

.pguide {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #f4a261;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BUY */
.bs {
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-x: hidden;
}
.bs:not(.in-profile) {
  flex: 1;
  overflow-y: auto;
  padding: 0 14px 88px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.bs::-webkit-scrollbar {
  display: none;
}

.tlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.tt {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.tt.on {
  border-color: #52b788;
  background: rgba(82, 183, 136, 0.1);
}

.tt.unavail {
  opacity: 0.4;
  pointer-events: none;
}

.tt.unavail .tpr {
  font-size: 11px;
  color: #f4a261;
}

.tic {
  font-size: 30px;
  flex-shrink: 0;
}

.tn2 {
  font-size: 13px;
  font-weight: 700;
}

.td2 {
  font-size: 9px;
  opacity: 0.5;
  margin-top: 2px;
}

.tzone {
  font-size: 9px;
  color: #52b788;
  font-weight: 700;
  margin-top: 3px;
}

.tpr {
  font-size: 14px;
  font-weight: 800;
  color: #52b788;
  flex-shrink: 0;
}

.iib {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(82, 183, 136, 0.12);
  border: 1px solid rgba(82, 183, 136, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  color: #52b788;
  font-weight: 900;
}

.ipanel {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 13px;
  padding: 12px;
  margin-bottom: 4px;
  border: 1px solid rgba(82, 183, 136, 0.15);
  display: none;
}

.ipanel.on {
  display: block;
}

.fact {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fact:last-child {
  border-bottom: none;
}

.fic {
  font-size: 14px;
  flex-shrink: 0;
}

.ftx {
  font-size: 11px;
  opacity: 0.8;
  line-height: 1.5;
}

.ftx b {
  color: #52b788;
  display: block;
  font-size: 9px;
  margin-bottom: 1px;
  text-transform: uppercase;
}

.plans {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.plan {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 5px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.plan.on {
  border-color: #52b788;
  background: rgba(82, 183, 136, 0.1);
}

.planp {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 2px;
}

.planpr {
  font-size: 13px;
  font-weight: 800;
  color: #52b788;
}

.plansv {
  font-size: 8px;
  color: #f4c542;
  margin-top: 2px;
}

.planbdg {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #f4c542;
  color: #000;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.fi {
  width: 100%;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  outline: none;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.fi:focus {
  border-color: #52b788;
}

.fi::placeholder {
  opacity: 0.35;
}

textarea.fi {
  resize: none;
  height: 60px;
}

.pays {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 4px;
}

.pm {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.pm.on {
  border-color: #52b788;
  background: rgba(82, 183, 136, 0.08);
}

.pmic {
  font-size: 22px;
  flex-shrink: 0;
}

.pmnm {
  font-size: 13px;
  font-weight: 700;
}

.pmsub {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 1px;
}

.pmchk {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.pm.on .pmchk {
  background: #52b788;
  border-color: #52b788;
}

.tbar {
  background: rgba(82, 183, 136, 0.08);
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-radius: 13px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tval {
  font-size: 18px;
  font-weight: 900;
  color: #52b788;
}

.bbtn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(82, 183, 136, 0.3);
  transition: transform 0.15s;
}

.bbtn:active {
  transform: scale(0.98);
}

/* SETTINGS */
.pcard {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
  margin-bottom: 4px;
}

.pedit {
  margin-left: auto;
  background: rgba(82, 183, 136, 0.12);
  border: 1px solid rgba(82, 183, 136, 0.3);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 11px;
  color: #52b788;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.lrow,
.crow {
  display: flex;
  gap: 6px;
}

.lb,
.cbb {
  flex: 1;
  padding: 10px 5px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 2px solid transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.5;
}

.lb.on,
.cbb.on {
  border-color: #52b788;
  background: rgba(82, 183, 136, 0.12);
  color: #52b788;
}

.si {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 13px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

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

.sic {
  font-size: 18px;
  width: 26px;
  text-align: center;
}

.slbl {
  font-size: 13px;
  font-weight: 600;
}

.ssub {
  font-size: 9px;
  opacity: 0.5;
  margin-top: 1px;
}

.sir {
  font-size: 12px;
  opacity: 0.4;
}

.tog {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
}

.tog.on {
  background: #52b788;
}

.tknob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s;
}

.tog.on .tknob {
  transform: translateX(18px);
}

.ref-box {
  background: linear-gradient(
    135deg,
    rgba(82, 183, 136, 0.1),
    rgba(52, 144, 106, 0.05)
  );
  border: 1px solid rgba(82, 183, 136, 0.25);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 6px;
}

.rreward {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
}

.rr {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 11px;
  padding: 9px;
  text-align: center;
}

.rrn {
  font-size: 18px;
  font-weight: 900;
  color: #52b788;
}

.rrl {
  font-size: 9px;
  opacity: 0.5;
  margin-top: 2px;
}

.ref-link {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 11px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.ref-url {
  font-size: 11px;
  opacity: 0.6;
  font-family: monospace;
}

.ref-copy {
  background: #52b788;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  cursor: pointer;
}

.ph-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phi:last-child {
  border-bottom: none;
}

.phic {
  font-size: 20px;
  flex-shrink: 0;
}

.phnm {
  font-size: 12px;
  font-weight: 700;
}

.phdt {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 1px;
}

.pham {
  font-size: 13px;
  font-weight: 800;
  color: #52b788;
  margin-left: auto;
  flex-shrink: 0;
}

.dbtn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 13px;
  background: rgba(230, 57, 70, 0.1);
  color: #e63946;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(230, 57, 70, 0.2);
  margin-bottom: 6px;
}

/* MODAL */
.mbg {
  position: absolute;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.mbg.on {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: linear-gradient(160deg, #0f2a12, #1a3a1a);
  border-radius: 24px 24px 0 0;
  padding: 16px 16px 72px;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(82, 183, 136, 0.2);
  transform: translateY(40px);
  transition: transform 0.3s;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mbg.on .modal {
  transform: translateY(0);
}

.modal::-webkit-scrollbar {
  display: none;
}

.mh {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 0 auto 14px;
}

.mic {
  font-size: 42px;
  text-align: center;
  margin-bottom: 8px;
}

.mtt {
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3px;
}

.msb {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 14px;
}

.mgr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.mi {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 11px;
  padding: 9px;
}

.mil {
  font-size: 8px;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.miv {
  font-size: 12px;
  font-weight: 700;
}

.miv.g {
  color: #52b788;
}

.miv.o {
  color: #f4a261;
}

.miv.gd {
  color: #f4c542;
}

.mb {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 7px;
  transition: transform 0.15s;
}

.mb:last-child {
  margin-bottom: 0;
}

.mb:active {
  transform: scale(0.98);
}

.mb-g {
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  color: #fff;
}

.mb-o {
  background: linear-gradient(135deg, #f4a261, #e76f51);
  color: #fff;
}

.mb-gd {
  background: linear-gradient(135deg, #f4c542, #f4a261);
  color: #000;
  font-weight: 900;
}

.mb-x {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* PHOTO */
.pbg {
  position: absolute;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.pbg.on {
  opacity: 1;
  pointer-events: all;
}

.pframe {
  width: 88%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(82, 183, 136, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.pframe.has-photo {
  aspect-ratio: unset;
}

.pframe.has-photo .psky,
.pframe.has-photo .ptrees-bg,
.pframe.has-photo .ptree-main,
.pframe.has-photo .pground {
  display: none;
}

.real-tree-photo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  border-radius: inherit;
}

.pf-gallery {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  z-index: 5;
}

.gal-btn {
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gal-counter {
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  background: rgba(0,0,0,0.35);
  padding: 3px 9px;
  border-radius: 10px;
}

.psky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #4a9ecf 0%,
    #87ceeb 38%,
    #a8d8a8 38%,
    #2d6a4f 55%,
    #1b4332 100%
  );
}

.ptrees-bg {
  position: absolute;
  bottom: 32%;
  left: 0;
  right: 0;
  height: 40%;
  background:
    radial-gradient(ellipse at 20% 100%, #1a4a26 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, #2d6a4f 0%, transparent 45%),
    radial-gradient(ellipse at 80% 100%, #1b4332 0%, transparent 50%);
  pointer-events: none;
}

.ptree-main {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 64px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.pground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, #2d4a1a 0%, #1a2e0f 100%);
}

.pvignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
  z-index: 3;
}


.photo-hint {
  font-size: 9px;
  opacity: 0.25;
  margin-top: 4px;
  font-style: italic;
}

.pcls {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* EVENT BANNERS */
.ev-banner {
  margin: 4px 14px 0;
  border-radius: 13px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  animation: evpulse 3s ease-in-out infinite;
}

@keyframes evpulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.85;
  }
}

.ev-ic {
  font-size: 22px;
  flex-shrink: 0;
}

.ev-body {
  flex: 1;
  min-width: 0;
}

.ev-nm {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 1px;
}

.ev-desc {
  font-size: 9px;
  opacity: 0.75;
  line-height: 1.4;
}

.ev-hint {
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
}

/* SUCCESS */
.succ {
  position: absolute;
  inset: 0;
  z-index: 700;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.succ.on {
  opacity: 1;
  pointer-events: all;
}

.suic {
  font-size: 76px;
  margin-bottom: 18px;
  animation: bce 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bce {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.sut {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.sus {
  font-size: 13px;
  opacity: 0.6;
  line-height: 1.6;
  margin-bottom: 20px;
}

.subox {
  background: rgba(82, 183, 136, 0.1);
  border: 1px solid rgba(82, 183, 136, 0.25);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 300px;
  text-align: left;
}

.surow {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.surow:last-child {
  border-bottom: none;
}

.sul {
  opacity: 0.6;
}

.suv {
  font-weight: 700;
  color: #52b788;
}

.subk {
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 36px;
  cursor: pointer;
}

/* FX */
#spl {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(ellipse at center bottom, #1a3a1a, #0a1a0a 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s;
}

#spl.out {
  opacity: 0;
  pointer-events: none;
}

#spl canvas {
  margin-left: 65px;
}

.stl {
  font-size: 24px;
  font-weight: 900;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(12px);
  background: linear-gradient(135deg, #52b788, #b7e4c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition:
    opacity 0.7s,
    transform 0.7s;
}

.ssb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.7s 0.15s;
}

.sdts {
  display: flex;
  gap: 6px;
  margin-top: 22px;
  opacity: 0;
  transition: opacity 0.5s 0.3s;
}

.sdt {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(82, 183, 136, 0.45);
  animation: sdp 1s infinite;
}

.sdt:nth-child(2) {
  animation-delay: 0.2s;
}

.sdt:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes sdp {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

.svv {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.drop {
  position: fixed;
  pointer-events: none;
  font-size: 18px;
  animation: du 0.9s ease forwards;
  z-index: 999;
}

@keyframes du {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(-80px) scale(0.2);
    opacity: 0;
  }
}

.conf {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: cf 2.5s ease forwards;
  z-index: 998;
  pointer-events: none;
}

@keyframes cf {
  0% {
    transform: translateY(-10px) rotate(0);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.toast {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(82, 183, 136, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 20px;
  z-index: 800;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: normal;
  max-width: 78%;
  text-align: center;
  pointer-events: none;
}

.toast.on {
  opacity: 1;
  pointer-events: auto;
}

/* SOCIAL WATERING */
.pl.thirsty {
  border-color: rgba(244, 162, 97, 0.8) !important;
  animation: gg 4s ease-in-out infinite !important;
}

.pl.critical {
  border-color: rgba(230, 57, 70, 0.9) !important;
  animation: crit 0.9s ease-in-out infinite !important;
}

.pl.critical .ptree {
  opacity: 0.55;
}

@keyframes crit {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.3);
  }

  50% {
    box-shadow:
      0 0 18px rgba(230, 57, 70, 0.75),
      0 0 30px rgba(230, 57, 70, 0.2);
  }
}

/* ABANDONED / ADOPTABLE TREES */
.pl.abnd {
  border-color: rgba(244, 162, 97, 0.9) !important;
  background: rgba(244, 162, 97, 0.1) !important;
  animation: abnd-pulse 2s ease-in-out infinite !important;
}

.pl.abnd .ptree {
  opacity: 0.65;
}

@keyframes abnd-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.5);
  }
  50% {
    box-shadow:
      0 0 14px rgba(244, 162, 97, 0.8),
      0 0 28px rgba(244, 162, 97, 0.25);
  }
}

.help-tag {
  position: absolute;
  top: -7px;
  left: -5px;
  font-size: 12px;
  line-height: 1;
  z-index: 2;
}

.dry-hours {
  font-size: 8px;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0.7;
}

.sw-info {
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.sw-info b {
  color: #e63946;
}

.danger-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  background: rgba(230, 57, 70, 0.08);
  border-bottom: 1px solid rgba(230, 57, 70, 0.15);
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #e63946;
}

/* ACTIVITY FEED */
.act-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.act-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.act-item.mine {
  background: rgba(82, 183, 136, 0.08);
  border-color: rgba(82, 183, 136, 0.2);
}

.act-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d6a4f, #1b4332);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.act-body {
  flex: 1;
  min-width: 0;
}

.act-tx {
  font-size: 11px;
  line-height: 1.4;
}

.act-tx b {
  color: #52b788;
}

.act-tm {
  font-size: 9px;
  opacity: 0.35;
  margin-top: 2px;
}

.act-ic {
  font-size: 16px;
  flex-shrink: 0;
}

/* WEATHER & SEASON */
.weather-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(144, 224, 239, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  font-size: 11px;
}

.weather-ic {
  font-size: 16px;
}

.weather-txt {
  opacity: 0.65;
  flex: 1;
}

.weather-bonus {
  font-size: 10px;
  font-weight: 700;
  color: #52b788;
}

.season-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 16px;
  flex-shrink: 0;
  font-size: 10px;
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.02);
}

/* SIDE BTN EXTRA */
.side-btn-top2 {
  top: 116px;
}


/* NAMEPLATE INSCRIPTION */
.ins-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 8px;
}

.ins-lbl {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ins-info-btn {
  background: rgba(82, 183, 136, 0.15);
  border: 1.5px solid rgba(82, 183, 136, 0.3);
  color: #52b788;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.ins-tip {
  background: rgba(82, 183, 136, 0.07);
  border: 1px solid rgba(82, 183, 136, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 8px;
  display: none;
}

.ins-tip.on {
  display: block;
}

/* SEASONAL FX */
.leaf,
.snow-flake {
  position: absolute;
  pointer-events: none;
  z-index: 40;
  animation: fall 4s linear forwards;
}

@keyframes fall {
  0% {
    transform: translateY(-30px) rotate(0);
    opacity: 0.8;
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* BALANCE BUTTON */
.tb-bal {
  background: rgba(82, 183, 136, 0.12);
  border: 1px solid rgba(82, 183, 136, 0.3);
  border-radius: 10px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 900;
  color: #52b788;
  cursor: pointer;
  transition: background 0.2s;
}

.tb-bal:active {
  background: rgba(82, 183, 136, 0.25);
}

/* TOPUP SCREEN */
.topup-bal {
  text-align: center;
  padding: 20px 0 8px;
}

.topup-bal-lbl {
  font-size: 11px;
  opacity: 0.5;
  margin-bottom: 6px;
}

.topup-bal-val {
  font-size: 36px;
  font-weight: 900;
  color: #52b788;
}

.topup-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 10px;
}

.topup-amt {
  padding: 12px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.topup-amt.on {
  background: rgba(82, 183, 136, 0.15);
  border-color: rgba(82, 183, 136, 0.5);
}

.topup-amt-val {
  font-size: 15px;
  font-weight: 900;
  color: #52b788;
}

.topup-amt-usd {
  font-size: 9px;
  opacity: 0.45;
  margin-top: 2px;
}

.topup-or {
  text-align: center;
  font-size: 10px;
  opacity: 0.3;
  margin: 8px 0;
}

.topup-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 14px;
  outline: none;
  font-family: inherit;
  text-align: center;
  margin-bottom: 12px;
}

.topup-input:focus {
  border-color: rgba(82, 183, 136, 0.5);
}

.topup-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

/* NEW USER SCREEN */
.nu-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 90px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nu-wrap::-webkit-scrollbar {
  display: none;
}

.nu-globe {
  font-size: 72px;
  text-align: center;
  padding: 20px 0 8px;
}

.nu-title {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #52b788, #b7e4c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nu-sub {
  font-size: 13px;
  opacity: 0.65;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 8px;
}

.nu-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.nu-st {
  flex: 1;
  background: rgba(82, 183, 136, 0.08);
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
}

.nu-sn {
  font-size: 18px;
  font-weight: 900;
  color: #52b788;
}

.nu-sl {
  font-size: 9px;
  opacity: 0.5;
  margin-top: 4px;
  line-height: 1.4;
}

.nu-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.nu-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 12px;
}

.nu-sic {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  margin-top: 1px;
}

.nu-stx {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.nu-stx2 {
  font-size: 11px;
  opacity: 0.5;
  line-height: 1.4;
}

.nu-banner {
  background: linear-gradient(
    135deg,
    rgba(244, 197, 66, 0.1),
    rgba(244, 162, 97, 0.06)
  );
  border: 1px solid rgba(244, 197, 66, 0.3);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.nu-banner:active {
  border-color: rgba(244, 197, 66, 0.6);
}

.nu-ban-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.nu-ban-ic {
  font-size: 30px;
  flex-shrink: 0;
}

.nu-ban-title {
  font-size: 14px;
  font-weight: 800;
  color: #f4c542;
}

.nu-ban-sub {
  font-size: 11px;
  opacity: 0.65;
  line-height: 1.5;
  margin-bottom: 12px;
}

.nu-ban-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nu-ban-pr {
  font-size: 22px;
  font-weight: 900;
  color: #52b788;
}

.nu-ban-old {
  font-size: 12px;
  text-decoration: line-through;
  opacity: 0.4;
  margin-left: 6px;
}

.nu-ban-btn {
  background: linear-gradient(135deg, #f4c542, #f4a261);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 14px;
  cursor: pointer;
}

.nu-main-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #52b788, #2d6a4f);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(82, 183, 136, 0.3);
  transition: transform 0.15s;
}

.nu-main-btn:active {
  transform: scale(0.98);
}

.nu-demo-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.nu-demo-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

/* VISIT SHEET */
.cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 6px;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-month-lbl {
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 10px;
}

.cal-hd {
  text-align: center;
  font-size: 9px;
  opacity: 0.4;
  font-weight: 700;
  padding: 3px 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.cal-day:not(.past):hover {
  background: rgba(82, 183, 136, 0.2);
}

.cal-day.past {
  opacity: 0.2;
  cursor: default;
}

.cal-day.sel {
  background: #52b788;
  color: #fff;
  font-weight: 900;
}

.visit-guests {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 10px;
}

.visit-guests-lbl {
  font-size: 12px;
  font-weight: 600;
}

.visit-guests-ctrl {
  display: flex;
  align-items: center;
  gap: 14px;
}

.visit-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(82, 183, 136, 0.15);
  border: 1.5px solid rgba(82, 183, 136, 0.35);
  color: #52b788;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.visit-guest-count {
  font-size: 18px;
  font-weight: 900;
  min-width: 20px;
  text-align: center;
}

.visit-notes-row {
  margin: 10px 0 4px;
}

.visit-actions {
  padding-top: 4px;
}

#visitBg {
  align-items: flex-start;
}

#visitBg .gift-sheet {
  border-radius: 0 0 22px 22px;
  border-top: none;
  border-bottom: 1px solid rgba(82, 183, 136, 0.2);
  max-height: 100vh;
  padding-top: 12px;
  padding-bottom: 24px;
}

.visit-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
  padding-top: 2px;
}

.visit-close-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.visit-close-btn:active {
  background: rgba(255, 255, 255, 0.32);
}

.visit-notes {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  padding: 10px 12px;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}

.visit-notes::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.visit-notes:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.visit-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2px;
  margin-bottom: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.visit-total-lbl {
  font-size: 12px;
  opacity: 0.6;
}

.visit-total-val {
  font-size: 22px;
  font-weight: 900;
  color: #52b788;
}

/* ══ CO₂ CALCULATOR ══ */
.co2-calc {
  background: linear-gradient(135deg, rgba(82,183,136,.12), rgba(82,183,136,.06));
  border: 1px solid rgba(82,183,136,.25);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
}
.co2-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.co2-icon { font-size: 28px; }
.co2-title { font-size: 14px; font-weight: 800; }
.co2-sub { font-size: 11px; opacity: .55; margin-top: 2px; }
.co2-controls { display: flex; gap: 8px; margin-bottom: 12px; }
.co2-sel {
  flex: 1; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(82,183,136,.3);
  background: rgba(82,183,136,.08); color: inherit; font-size: 13px; font-weight: 700;
  -webkit-appearance: none; appearance: none;
}
.co2-result {
  font-size: 28px; font-weight: 900; color: #52b788; text-align: center; letter-spacing: -.5px;
}
.co2-eq {
  font-size: 11px; opacity: .5; text-align: center; margin-top: 4px;
}

/* ══ STOCK BADGE ══ */
.stock-badge {
  display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 7px;
  border-radius: 99px; background: rgba(82,183,136,.2); color: #52b788;
  margin-left: 6px; vertical-align: middle;
}
.stock-badge.low { background: rgba(244,162,97,.2); color: #f4a261; }
.stock-badge.sold { background: rgba(230,57,70,.2); color: #e63946; }

/* ══ REFERRAL TIERS ══ */
.ref-tiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 4px;
}
.ref-tier {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(82,183,136,.07);
  border: 1px solid rgba(82,183,136,.15);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
.rt-ic { font-size: 15px; flex-shrink: 0; }
.rt-txt { flex: 1; opacity: .75; }
.rt-val { font-weight: 800; color: #52b788; white-space: nowrap; }

/* ══ REFERRAL SHARE BUTTON ══ */
.ref-share-btn {
  background: rgba(82,183,136,.15) !important;
  color: #52b788 !important;
  border-color: rgba(82,183,136,.3) !important;
  margin-top: 6px;
}

/* ══ REFERRAL DETAIL BUTTON ══ */
.ref-detail-btn {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  background: rgba(82,183,136,.1);
  border: 1px solid rgba(82,183,136,.25);
  border-radius: 12px;
  color: #52b788;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.ref-detail-btn:active { background: rgba(82,183,136,.2); }

/* ══ REFERRAL POPUP ══ */
.ref-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9980;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: motivFadeIn .25s ease both;
}
.ref-popup-sheet {
  background: linear-gradient(180deg, #1b4332 0%, #0d1f13 100%);
  border: 1px solid rgba(82,183,136,.2);
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  animation: refSheetIn .32s cubic-bezier(.22,1,.36,1) both;
}
@keyframes refSheetIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.ref-popup-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(82,183,136,.12);
  flex-shrink: 0;
}
.ref-popup-title {
  font-size: 16px;
  font-weight: 800;
  color: #52b788;
}
.ref-popup-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-popup-summary {
  display: flex;
  gap: 0;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(82,183,136,.1);
  flex-shrink: 0;
}
.rps-item {
  flex: 1;
  text-align: center;
}
.rps-num {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.rps-lbl {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ref-popup-list {
  overflow-y: auto;
  padding: 12px 14px 20px;
  flex: 1;
}
.ref-popup-loading,
.ref-popup-empty {
  text-align: center;
  padding: 32px 16px;
  color: rgba(255,255,255,.4);
  font-size: 14px;
  line-height: 1.6;
}
.ref-person-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  margin-bottom: 8px;
}
.ref-person-card.rpc-active {
  background: rgba(82,183,136,.08);
  border-color: rgba(82,183,136,.18);
}
.rpc-icon { font-size: 22px; flex-shrink: 0; }
.rpc-info { flex: 1; min-width: 0; }
.rpc-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rpc-status {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}
.rpc-earn {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.rpc-earn-pos { color: #52b788; }

/* ══ MOTIVATIONAL POPUP ══ */
.motiv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: motivFadeIn .35s ease both;
}
@keyframes motivFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.motiv-sheet {
  background: linear-gradient(160deg, #0a1f12 0%, #1b4332 45%, #2d6a4f 100%);
  border: 1px solid rgba(82,183,136,.28);
  border-radius: 24px;
  padding: 32px 22px 26px;
  width: min(340px, 90vw);
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.motiv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s;
}
.motiv-close:hover { background: rgba(255,255,255,.2); }
.motiv-title {
  text-align: center;
  color: #52b788;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 22px;
}
.motiv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.motiv-card {
  background: rgba(82,183,136,.08);
  border: 1px solid rgba(82,183,136,.18);
  border-radius: 18px;
  padding: 18px 10px 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(22px) scale(.95);
  transition: none;
}
.motiv-card.mc-show {
  animation: mcSlideIn .45s cubic-bezier(.22,1,.36,1) both;
}
@keyframes mcSlideIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mc-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}
.mc-num {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}
.mc-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.motiv-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #52b788, #40916c);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .4s;
}
.motiv-btn.mc-show {
  opacity: 1;
  transform: translateY(0);
}
.motiv-btn:active { filter: brightness(.9); }

/* ══ MORE SHEET ══ */
.more-sheet {
  width: 100%;
  background: #0f1f12;
  border-radius: 22px 22px 0 0;
  padding: 0 16px 32px;
  animation: moreUp 0.26s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes moreUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.more-handle {
  width: 38px; height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 99px;
  margin: 12px auto 14px;
}
.more-title {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}
.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.more-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(82,183,136,0.07);
  border: 1px solid rgba(82,183,136,0.13);
  border-radius: 18px;
  padding: 20px 12px 16px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.more-item:active { background: rgba(82,183,136,0.15); }
.more-item-ic { font-size: 34px; line-height: 1; }
.more-item-lbl { font-size: 13px; font-weight: 700; opacity: 0.85; }
.more-item-badge {
  position: absolute;
  top: 10px; right: 12px;
  background: #e63946; color: #fff;
  border-radius: 99px;
  font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px;
  align-items: center; justify-content: center;
  padding: 0 4px;
}
.more-nav-dot {
  position: absolute;
  top: -1px; right: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e63946;
  display: none;
}
