/* =========================================================
   PROFILE — identity, balance, wallet link, menu
   ========================================================= */

/* ---------------- avatar ---------------- */

.profile-avatar-box {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 30px;
  color: var(--gold-2);
  background: radial-gradient(
      circle at 50% 28%,
      rgba(255, 199, 90, 0.24),
      rgba(10, 15, 26, 0.92) 72%
    ),
    var(--panel-strong);
  border: 1px solid rgba(255, 199, 90, 0.55);
  box-shadow: 0 0 0 5px rgba(255, 199, 90, 0.07),
    0 18px 34px -20px rgba(240, 165, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.profile-avatar-box::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 199, 90, 0.22);
  pointer-events: none;
}

.profile-avatar-box img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

#profile-username {
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
}

#verified-badge {
  color: var(--cyan-2) !important;
  filter: drop-shadow(0 0 8px rgba(70, 216, 255, 0.75));
}

#partner-badge {
  background: var(--gold-grad) !important;
  color: #10141f !important;
  border: none !important;
  border-radius: 99px;
  padding: 4px 11px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px -10px rgba(240, 165, 0, 0.95);
}

/* ---------------- balance hero ---------------- */

.wallet-card {
  position: relative;
  padding: 14px 14px 12px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    160deg,
    rgba(255, 199, 90, 0.15) 0%,
    rgba(20, 27, 46, 0.94) 42%,
    rgba(10, 15, 26, 0.98) 100%
  );
  border: 1px solid rgba(255, 199, 90, 0.32);
  box-shadow: var(--shadow-lg), 0 0 46px -26px rgba(240, 165, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  text-align: center;
}

.wallet-card::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(255, 199, 90, 0.22),
    transparent 65%
  );
  pointer-events: none;
}

.wallet-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 229, 166, 0.75),
    transparent
  );
}

.wallet-card h6 {
  position: relative;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.wallet-balance {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-shadow: 0 0 28px rgba(255, 199, 90, 0.35);
}

.wallet-balance span:not(#profile-balance) {
  color: var(--gold-2) !important;
  font-size: 13px !important;
}

.exchange-rate {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 4px 11px;
  border-radius: 99px;
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 600;
  color: var(--gold-1);
  background: rgba(255, 199, 90, 0.08);
  border: 1px solid rgba(255, 199, 90, 0.24);
}

/* ---------------- wallet connect ---------------- */

.wallet-connect-card {
  margin-bottom: 18px;
  padding: 15px;
  border-radius: var(--radius-lg);
  background: var(--glass-grad);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wallet-connect-card h6 {
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 800;
}

.wallet-connect-card p {
  color: var(--muted) !important;
  font-size: 11px;
  line-height: 1.6;
}

.connect-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 13px;
  font-size: 18px;
  color: var(--cyan-2);
  background: rgba(70, 216, 255, 0.1);
  border: 1px solid rgba(70, 216, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px -10px rgba(70, 216, 255, 0.9);
}

#ton-connect-button {
  margin-top: 13px;
}

#ton-connect-button button,
#ton-connect-button > div {
  border-radius: 12px !important;
}

.btn-connect-wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  border: none;
  border-radius: 12px;
  background: var(--gold-grad);
  color: #10141f;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 24px -14px rgba(240, 165, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-connect-wallet:hover {
  color: #10141f;
  filter: brightness(1.06);
}

/* ---------------- action tiles ---------------- */

.action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 100%;
  padding: 18px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, filter 0.25s ease,
    box-shadow 0.25s ease;
}

.action-btn i {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.16);
}

.btn-exchange {
  color: #eafcff;
  background: linear-gradient(
    160deg,
    rgba(70, 216, 255, 0.28) 0%,
    rgba(11, 24, 40, 0.95) 68%
  );
  border-color: rgba(70, 216, 255, 0.35);
  box-shadow: 0 20px 38px -26px rgba(70, 216, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-exchange i {
  color: var(--cyan-1);
}

.btn-withdraw {
  color: #1a1305;
  background: var(--gold-grad);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 38px -22px rgba(240, 165, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-withdraw i {
  color: #10141f;
  background: rgba(255, 255, 255, 0.22);
}

.action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 24px 44px -24px rgba(240, 165, 0, 0.9);
}

.action-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ---------------- settings list ---------------- */

.mine-container > h6.text-white {
  margin-bottom: 12px !important;
  font-size: 15px;
  font-weight: 800;
  color: var(--text) !important;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--glass-grad);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 0.22s ease, transform 0.2s ease,
    background 0.22s ease;
}

.settings-item:hover {
  color: var(--text);
  transform: translateY(-1px);
  border-color: rgba(255, 199, 90, 0.3);
  background: linear-gradient(
    160deg,
    rgba(255, 199, 90, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}

.settings-item i:first-child {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  font-size: 14px;
  color: var(--gold-2);
  background: rgba(255, 199, 90, 0.1);
  border: 1px solid rgba(255, 199, 90, 0.2);
}

.settings-item i.text-info {
  color: var(--cyan-2) !important;
  background: rgba(70, 216, 255, 0.08);
  border-color: rgba(70, 216, 255, 0.2);
}

.settings-item i.text-warning {
  color: var(--gold-2) !important;
}

.settings-item i.text-cyan {
  color: var(--cyan-2) !important;
  background: rgba(70, 216, 255, 0.08);
  border-color: rgba(70, 216, 255, 0.2);
}

.settings-item i.ms-auto {
  width: auto;
  height: auto;
  color: #5f6d8c;
  background: none;
  border: none;
}

.lang-item {
  cursor: default;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
}

.lang-pill {
  border: none;
  border-radius: 99px;
  padding: 5px 12px;
  font-family: "Cairo", sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  background: transparent;
}

.lang-pill.active {
  background: var(--gold-grad);
  color: #10141f;
}

.logout-item {
  color: var(--red-1);
  border-color: rgba(255, 107, 138, 0.22);
}

.logout-item:hover {
  background: rgba(255, 107, 138, 0.08);
}
