:root {
  --gold-light: #ffeebb;
  --gold-main: #f4c430;
  --gold-dark: #b8860b;
  --gold-gradient: linear-gradient(135deg, #F4C430 0%, #b8860b 100%);
  --bg-dark-radial: radial-gradient(circle at 50% 0%, #151515 0%, #050505 100%);
  --glass-bg: rgba(20, 20, 20, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-white: #ffffff;
  --text-gold: #f4c430;
  --text-grey: #b0b0b0;
  --font-main: 'Outfit', sans-serif;
  --sidebar-width: 280px;
  --primary-gold: #F4C430;
  --gold-primary: #F4C430;
  --gold-gradient-rich: linear-gradient(135deg, #d4af37 0%, #b8860b 50%, #8c6d1f 100%);
  --gold-gradient-bright: linear-gradient(135deg, #F4C430 0%, #f9d976 100%);
  --gold-glow: 0 0 20px rgba(244, 196, 48, 0.3);
  --bg-body: #050505;
  --bg-card: #141414;
  --bg-input: #0a0a0a;
  --text-muted: #aaaaaa;
  --danger: #ef4444;
  --success: #26a17b;
  --line-color: #F4C430;
}

* {
  box-sizing: border-box;
}

body,
input,
button,
select,
textarea {
  font-family: var(--font-main) !important;
  color: var(--text-white);
}

body {
  background: var(--bg-dark-radial);
  background-color: #050505;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.background-patterns {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.dashboard-container {
  position: relative;
  z-index: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
  transition: margin 0.3s ease;
  width: calc(100% - var(--sidebar-width));
  font-family: var(--font-main);
}

.nav-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width) !important;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(15px);
  border-right: 1px solid var(--glass-border);
  z-index: 1000;
  transition: transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  height: auto;
}

.brand-logo {
  margin-bottom: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.brand-logo img {
  width: 160px; /* matches the previous (React) system's inline width:160 */
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(244, 196, 48, 0.2));
  transition: transform 0.3s;
}

.brand-logo img:hover {
  transform: scale(1.05);
}

.nav-menu {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.nav-menu-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 5px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-menu-scroll::-webkit-scrollbar {
  width: 4px;
}

.nav-menu-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.nav-menu-scroll::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

.nav-menu-bottom {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-menu-bottom .nav-item {
  margin-bottom: 0;
}

.user-card {
  padding: 1.2rem;
  margin-bottom: 2rem;
  background: linear-gradient(145deg,
      rgba(30, 30, 30, 0.8),
      rgba(5, 5, 5, 0.9));
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.user-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-gradient);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: rgba(244, 196, 48, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold-main);
  border: 1px solid rgba(244, 196, 48, 0.3);
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.1);
}

.user-name {
  color: var(--gold-light);
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.user-email {
  color: #888;
  margin: 0;
  font-size: 0.8rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  color: var(--text-grey);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: linear-gradient(90deg,
      rgba(244, 196, 48, 0.1) 0%,
      transparent 100%);
  color: var(--gold-main);
  border-color: rgba(244, 196, 48, 0.1);
  padding-left: 1.4rem;
}

.nav-item.active {
  background: linear-gradient(90deg,
      rgba(244, 196, 48, 0.15) 0%,
      rgba(244, 196, 48, 0.02) 100%);
  color: #fff;
  border-left: 3px solid var(--gold-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-item i {
  width: 24px;
  text-align: center;
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.nav-item:hover i,
.nav-item.active i {
  color: var(--gold-main);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 10px 10px;
}

.nav-dropdown.dropdown-open .dropdown-menu {
  max-height: 500px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu .nav-item {
  padding-left: 3.5rem;
  font-size: 0.9rem;
  border: none;
  color: #999;
}

.dropdown-menu .nav-item:hover {
  color: var(--gold-main);
  padding-left: 3.7rem;
}

.dropdown-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.nav-dropdown.dropdown-open .dropdown-icon {
  transform: rotate(180deg);
  color: var(--gold-main);
}

.sidebar-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: 1px solid var(--gold-dark);
  color: var(--gold-main);
  font-size: 1.2rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.sidebar-close:hover {
  background: var(--gold-main);
  color: #000;
}

.glass-panel {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  margin-bottom: 2rem;
}

.table-heading {
  color: var(--text-white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 15px;
  border-left: 4px solid var(--gold-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: 10px;
}

.styled-table thead tr {
  background: transparent;
}

.styled-table th {
  color: var(--gold-main);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 12px 15px;
  border: none;
  white-space: nowrap;
  text-align: left;
}

.styled-table tbody tr {
  background: rgba(30, 30, 30, 0.4);
  transition: transform 0.2s,
    background 0.2s;
}

.styled-table td {
  padding: 15px;
  color: #e0e0e0;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.styled-table td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.styled-table td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-cell {
  font-family: "Courier New", monospace;
  color: var(--gold-main);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.status.active {
  background: rgba(76, 209, 55, 0.15);
  color: #4cd137;
  border: 1px solid #4cd137;
}

.status.inactive,
.status.pending {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

.pagination-container {
  display: flex;
  justify-content: center;
  padding: 20px 0px;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination-group {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 15px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination-btn {
  background: #1a1a1a;
  border: 1px solid rgba(244, 196, 48, 0.2);
  color: #F4C430;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.8rem;
}

.pagination-btn:hover:not(:disabled) {
  background: #F4C430;
  color: #000;
}

.pagination-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  color: #666;
}

.pagination-info {
  color: #888;
  font-size: 0.8rem;
  font-family: monospace;
  margin: 0 10px;
}

.notification {
  position: fixed;
  top: 25px;
  right: 25px;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  z-index: 9999;
  font-weight: 500;
  font-size: 0.95rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateX(150%);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  align-items: center;
  color: #fff;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-left: 4px solid #34d399;
}

.notification.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-left: 4px solid #f87171;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  background: transparent;
  box-sizing: border-box;
}

.burger-menu {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(244, 196, 48, 0.3);
  color: #F4C430;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: none;
}

.burger-menu:hover {
  background: rgba(244, 196, 48, 0.15);
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.3);
  border-color: #F4C430;
}

.btn-logout {
  background: linear-gradient(145deg, rgba(20, 5, 5, 0.8), rgba(40, 10, 10, 0.9));
  color: #ff4d4d;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 77, 77, 0.3);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: auto;
}

.btn-logout:hover {
  background: rgba(255, 77, 77, 0.15);
  border-color: #ff4d4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.25);
}

.btn-logout i {
  font-size: 1rem;
}

.user-container {
  margin-bottom: 1.5rem;
}

#greetingMessage {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.profile-hero-section {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.hero-card {
  border-radius: 24px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-card.user-info {
  background: linear-gradient(160deg, #1a1500 0%, #080808 60%, #000000 100%);
  border: 1px solid rgba(244, 196, 48, 0.3);
  box-shadow: 0 10px 40px rgba(244, 196, 48, 0.05);
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  height: 100%;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  z-index: 2;
}

.hero-card.user-info::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.user-avatar-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.3);
  flex-shrink: 0;
  position: relative;
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #000;
  border: 2px solid #000;
}

.avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: #000;
  border-radius: 50%;
  border: 1px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.avatar-badge img {
  width: 12px;
  border: none;
}

.user-text h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.user-text h3 span {
  color: var(--primary-gold);
}

.user-text p {
  margin: 4px 0 0;
  color: var(--text-grey);
  font-size: 0.85rem;
}

.user-text p span {
  color: #fff;
  font-weight: 600;
  margin-left: 3px;
}

.rank-section {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(244, 196, 48, 0.04));
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.04);
}

.rank-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rank-label {
  display: block;
  color: var(--text-grey);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  font-weight: 600;
}

.rank-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(244, 196, 48, 0.16);
  border: 1px solid rgba(244, 196, 48, 0.4);
  color: #f8df91;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.rank-progress-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.rank-stars-row {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-row-label {
  min-width: 44px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.stars {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
}

.star-with-tooltip {
  position: relative;
  display: inline-flex;
}

.star-with-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  background: rgba(9, 9, 9, 0.95);
  color: #f5d982;
  border: 1px solid rgba(244, 196, 48, 0.45);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.7rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 15;
}

.star-with-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 3px);
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(244, 196, 48, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 14;
}

.star-with-tooltip:hover::after,
.star-with-tooltip:hover::before {
  opacity: 1;
}

.star-with-tooltip:hover::after {
  transform: translateX(-50%) translateY(0);
}

.stars i {
  color: #2a2a2a;
  font-size: 0.95rem;
  margin-right: 0;
  padding: 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}

.stars i.active {
  color: var(--primary-gold);
  text-shadow: 0 0 10px rgba(244, 196, 48, 0.6);
  transform: translateY(-1px);
  border-color: rgba(244, 196, 48, 0.45);
  background: rgba(244, 196, 48, 0.12);
}

.pool-stars i {
  font-size: 0.88rem;
  padding: 5px;
}

.hero-card.links-info .link-section .input-group {
  min-height: 48px;
}

.wallet-pill {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.profile-summary-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 2;
  padding-top: 6px;
}

.profile-summary-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 64px;
  justify-content: center;
}

.profile-summary-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

.profile-summary-value {
  color: #f4e3a6;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.1;
}

.wallet-pill:hover {
  border-color: var(--primary-gold);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.1);
}

.wallet-pill span {
  font-family: 'Courier New', monospace;
  color: #ccc;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-pill i {
  color: var(--primary-gold);
  font-size: 1rem;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-card.links-info {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.7), rgba(15, 15, 15, 0.8));
  border: 1px solid rgba(244, 196, 48, 0.3);
  padding-bottom: 1.5rem;
}

.link-section {
  margin-bottom: 1.5rem;
}

.section-label {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.5px;
  text-align: center;
}

.link-section .input-group {
  display: flex;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 12px;
  align-items: center;
  transition: border-color 0.3s;
  position: relative;
  margin-bottom: 2rem;
}

.input-group:focus-within {
  border-color: var(--primary-gold);
}

.input-group input {
  background: transparent;
  border: none;
  color: #ddd;
  padding: 10px 5px;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
}

.input-group i {
  padding: 8px;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.input-group i:hover {
  color: var(--primary-gold);
}

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

.preview-input {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 12px 20px;
  color: #fff;
  outline: none;
  width: 100%;
  transition: border-color 0.3s;
}

.preview-input:focus {
  border-color: var(--primary-gold);
}

.go-btn {
  background: linear-gradient(90deg, #FFD700 0%, #F4C430 100%);
  color: #000;
  border: none;
  font-weight: 800;
  padding: 0 30px;
  height: 45px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.go-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(244, 196, 48, 0.5);
}

.hero-card.ksn-card {
  background: radial-gradient(circle at top right, rgba(244, 196, 48, 0.16), transparent 45%),
    linear-gradient(145deg, #171717, #0a0a0a);
  padding: 1.2rem 1.3rem;
  display: flex;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 196, 48, 0.28);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(244, 196, 48, 0.08);
  min-height: 156px;
}

.ksn-card-full {
  grid-column: 1 / -1;
}

.hero-card.ksn-card::before {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.ksn-info {
  text-align: left;
  z-index: 2;
  width: 100%;
}

.ksn-info h4 {
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.ksn-pill {
  background: linear-gradient(135deg, #f4c430, #b8860b);
  color: #0d0d0d;
  padding: 7px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.98rem;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(244, 196, 48, 0.3);
}

.ksn-details {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.ksn-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 7px 10px;
}

.ksn-detail-row strong {
  color: #f5e9bd;
  font-size: 0.84rem;
  font-weight: 700;
}

.ksn-visuals i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.metric-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.grid-section-title {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  color: var(--primary-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.grid-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 196, 48, 0.3), transparent);
}

.program-section-header {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 196, 48, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.program-section-header i {
  color: var(--primary-gold);
  background: rgba(244, 196, 48, 0.1);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(244, 196, 48, 0.3);
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.1);
}

.metric-card {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.6), rgba(10, 10, 10, 0.9));
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
  box-shadow: 0 5px 20px rgba(244, 196, 48, 0.15);
}

.metric-card.program-card {
  background: radial-gradient(circle at top right, rgba(244, 196, 48, 0.08), transparent 40%), linear-gradient(145deg, #181818, #0a0a0a);
  border: 1px solid rgba(244, 196, 48, 0.2);
}

.metric-card.program-card:hover {
  background: radial-gradient(circle at top right, rgba(244, 196, 48, 0.15), transparent 50%), linear-gradient(145deg, #202020, #0f0f0f);
  border-color: var(--primary-gold);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.metric-title {
  color: var(--text-grey);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.metric-icon-bg {
  color: var(--primary-gold);
  font-size: 1.5rem;
  opacity: 0.4;
  filter: drop-shadow(0 0 5px rgba(244, 196, 48, 0.3));
}

.metric-value {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  font-family: 'Outfit', sans-serif;
}

.metric-value span {
  font-size: 0.6em;
  color: var(--primary-gold);
  margin-left: 3px;
  vertical-align: middle;
}

.metric-subtext {
  color: #666;
  font-size: 0.75rem;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  width: fit-content;
}

.subsection-title-card {
  grid-column: 1 / -1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem 0;
  margin-bottom: -1rem;
  margin-top: 1rem;
}

.subsection-title-card .metric-title {
  color: var(--primary-gold);
  font-size: 1rem;
  font-weight: 700;
}

.split-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  width: 100%;
}

.split-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.split-item.right {
  text-align: right;
  align-items: flex-end;
}

.split-value {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.split-label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  margin-top: 2px;
}

.split-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 15px;
  align-self: stretch;
}

.x2-section-container {
  margin-top: 3rem;
  padding: 1rem 0;
}

.x2-section-title {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.x2-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: #F4C430;
  border-radius: 2px;
}

.x2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.x2-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 240px;
}

.x2-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 196, 48, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.x2-bg-number {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.x2-level-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
  margin-bottom: 1rem;
}

.x2-price {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.x2-label {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.x2-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1;
  transition: 0.3s;
}

.x2-card.status-next {
  border-color: #F4C430;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  box-shadow: 0 0 20px rgba(244, 196, 48, 0.1);
}

.x2-card.status-next .x2-level-badge {
  background: #F4C430;
  color: #000;
}

.x2-card.status-next .x2-btn {
  background: linear-gradient(90deg, #b8860b, #F4C430);
  color: #000;
  box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.x2-card.status-next .x2-btn:hover {
  transform: scale(1.05);
}

.x2-card.status-locked {
  opacity: 0.7;
}

.x2-card.status-locked .x2-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #555;
  cursor: not-allowed;
}

.x2-card.status-active {
  border-color: #4ade80;
}

.x2-card.status-active .x2-level-badge {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.x2-card.status-active .x2-btn {
  background: transparent;
  color: #4ade80;
  border: 1px solid #4ade80;
  cursor: default;
}

.x3-promo-container {
  margin-top: 3rem;
  position: relative;
}

.x3-promo-card {
  background: linear-gradient(135deg, #b8860b 0%, #F4C430 50%, #FFD700 100%);
  border-radius: 24px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(244, 196, 48, 0.2);
}

.x3-promo-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.x3-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  z-index: 2;
}

.x3-text-content h2 {
  color: #000;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.5px;
}

.x3-text-content p {
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.x3-actions {
  display: flex;
  gap: 1rem;
}

.x3-action-btn {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 0.97rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.x3-action-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.x3-action-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.x3-action-btn-staking {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 10px 26px rgba(30, 58, 138, 0.45);
}

.x3-action-btn-staking:hover {
  background: linear-gradient(135deg, #1e293b 0%, #1d4ed8 100%);
  border-color: rgba(147, 197, 253, 0.95);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.5);
}

.x3-action-btn-compounding {
  background: linear-gradient(135deg, #422006 0%, #92400e 100%);
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 10px 26px rgba(180, 83, 9, 0.45);
}

.x3-action-btn-compounding:hover {
  background: linear-gradient(135deg, #7c2d12 0%, #b45309 100%);
  border-color: rgba(253, 224, 71, 1);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.55);
}

.x3-stats-bar {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.x3-stat-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.x3-stat-label {
  color: #F4C430;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.x3-stat-value {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.content-wrapper {
  margin-left: 280px;
  padding: 2rem;
  width: calc(100% - 280px);
  min-height: 100vh;
  background: radial-gradient(circle at top center, #1a1a1a 0%, var(--bg-body) 70%);
  font-family: 'Outfit', sans-serif;
}

.page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(244, 196, 48, 0.4);
  display: inline-block;
}

.page-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.staking-card {
  max-width: 580px;
  margin: 0 auto;
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 24px;
  border: 1px solid transparent;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(244, 196, 48, 0.1);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.staking-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(244, 196, 48, 0.6), rgba(184, 134, 11, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.level-badge-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(244, 196, 48, 0.15);
}

.lb-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.lb-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: rgba(244, 196, 48, 0.08);
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid rgba(244, 196, 48, 0.2);
  box-shadow: var(--gold-glow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.limit-section {
  margin-bottom: 2rem;
}

.limit-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.limit-label {
  color: var(--text-muted);
}

.limit-vals {
  color: #fff;
  font-weight: 700;
  font-family: monospace;
}

.limit-vals span {
  color: var(--gold-primary);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 10px;
  transition: width 0.6s ease;
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.4);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shine 2s infinite;
  transform: skewX(-20deg);
}

.staking-card .input-group {
  position: relative;
  margin-bottom: 2rem;
}

@keyframes shine {





  0% {
    left: -50px;
  }

  100% {
    left: 120%;
  }





}

.stats-row {
  display: flex;
  gap: 15px;
  margin-bottom: 2.5rem;
}

.stat-pill {
  flex: 1;
  background: rgba(244, 196, 48, 0.03);
  padding: 15px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(244, 196, 48, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--gold-glow);
  border-color: rgba(244, 196, 48, 0.3);
}

.sp-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.sp-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.sp-highlight {
  color: var(--gold-primary);
  text-shadow: 0 1px 10px rgba(244, 196, 48, 0.3);
}

.wallet-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.wi-label {
  color: var(--text-muted);
}

.wi-bal {
  color: var(--success);
  font-weight: 600;
}

.content-wrapper .custom-input {
  width: 100%;
  background: #080808;
  border: 1px solid rgba(244, 196, 48, 0.2);
  padding: 20px 22px;
  border-radius: 16px;
  color: var(--gold-primary);
  font-size: 1.3rem;
  font-weight: 700;
  outline: none;
  transition: all 0.3s;
  padding-right: 120px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.content-wrapper.custom-input:focus {
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.content-wrapper .custom-input::placeholder {
  color: rgba(244, 196, 48, 0.3) !important;
}

.content-wrapper .custom-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  color: #666;
}

.input-actions {
  position: absolute;
  right: 14px;
  top: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-badge {
  color: #000;
  font-size: 0.9rem;
  font-weight: 800;
  background: var(--gold-gradient);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: var(--gold-glow);
}

.btn-max {
  background: rgba(244, 196, 48, 0.1);
  color: var(--gold-primary);
  border: 1px solid rgba(244, 196, 48, 0.4);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-max:hover {
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
  box-shadow: var(--gold-glow);
}

.btn-submit {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 50px;
  background: var(--gold-gradient);
  color: #000;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(244, 196, 48, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(244, 196, 48, 0.5);
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:disabled {
  background: #2a2a2a;
  color: #555;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status-alert {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
  min-height: 24px;
  font-weight: 600;
}

.text-success {
  color: var(--success);
  text-shadow: 0 0 10px rgba(38, 161, 123, 0.4);
}

.text-error {
  color: var(--danger);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.locked-overlay {
  text-align: center;
  padding: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: var(--danger);
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 5px 20px rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(5px);
}

.compounding-card {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
}

.compounding-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(244, 196, 48, 0.5), rgba(184, 134, 11, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes shine {



  0% {
    left: -50px;
  }

  100% {
    left: 120%;
  }



}

.stats-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(244, 196, 48, 0.15);
}

.stat-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.highlight-gold {
  color: var(--gold-primary) !important;
  text-shadow: var(--gold-glow);
}

.plan-selector-title {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.plan-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 2rem;
}

.plan-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.plan-btn:hover {
  background: rgba(244, 196, 48, 0.1);
  border-color: rgba(244, 196, 48, 0.3);
}

.plan-btn.active {
  background: var(--gold-gradient);
  border-color: transparent;
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

.plan-btn.active .plan-year {
  color: #000;
}

.plan-btn.active .plan-min {
  color: #222;
}

.plan-year {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.plan-min {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.input-group {
  position: relative;
  margin-bottom: 2rem;
}

.summary-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.sb-label {
  color: var(--text-muted);
}

.sb-val {
  color: #fff;
  font-weight: 600;
}

.status-msg {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 24px;
  display: inline-block;
  margin-right: 15px;
}

.profile-card {
  background: #1a1a1a;
  border: 1px solid rgba(244, 196, 48, 0.1);
  border-radius: 20px;
  overflow: visible;
  margin-top: 1rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.card-header {
  padding: 2rem;
  background: linear-gradient(90deg, rgba(244, 196, 48, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #F4C430 0%, #b8860b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
  font-weight: 700;
}

.header-text h2 {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.header-text p {
  color: #888;
  margin: 5px 0 0 0;
  font-size: 0.9rem;
}

.card-body {
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.form-group {
  margin-bottom: 5px;
}

.form-label {
  display: block;
  color: #888;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.profile-card .custom-input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-weight: 400;
}

.profile-card .custom-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.1);
}

.profile-card .custom-input:read-only {
  background: #121212;
  color: #666;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
}

.form-group--phone-full {
  grid-column: 1 / -1;
}

.profile-phone-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.profile-phone-row__prefix {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 48%;
}

@media (min-width: 480px) {
  .profile-phone-row__prefix {
    max-width: min(280px, 46vw);
  }
}

.profile-country-picker {
  position: relative;
  width: 100%;
}

.profile-country-picker__trigger {
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.25;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.profile-country-picker__trigger:focus-visible {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.1);
}

.profile-country-picker__trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-country-picker__trigger-flag {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.profile-country-picker__trigger-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.profile-country-picker__trigger-name {
  font-weight: 600;
  color: #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-country-picker__trigger-dial {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.profile-country-picker__chevron {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 2px;
}

.profile-country-picker__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: #121212;
  border: 1px solid rgba(244, 196, 48, 0.25);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(320px, 55vh);
}

.profile-country-picker__search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  color: #fff;
  font-size: 0.88rem;
  font-family: "Outfit", system-ui, sans-serif;
  outline: none;
}

.profile-country-picker__search::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.profile-country-picker__search:focus {
  background: #0d0d0d;
}

.profile-country-picker__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.profile-country-picker__empty {
  padding: 14px 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  text-align: center;
}

.profile-country-picker__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.82rem;
  transition: background 0.15s ease;
}

.profile-country-picker__item:hover,
.profile-country-picker__item:focus-visible {
  background: rgba(244, 196, 48, 0.1);
  outline: none;
}

.profile-country-picker__item.is-active {
  background: rgba(244, 196, 48, 0.14);
}

.profile-country-picker__item-flag {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.profile-country-picker__item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-country-picker__item-name {
  font-weight: 600;
  color: #eee;
  line-height: 1.2;
}

.profile-country-picker__item-dial {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.form-group--geo-loading {
  grid-column: 1 / -1;
}

.profile-geo-loading {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(244, 196, 48, 0.08);
  border: 1px solid rgba(244, 196, 48, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-align: center;
}

/* Profile — searchable country / state / city / district */
.profile-geo-select {
  position: relative;
}

.profile-geo-select__inner {
  position: relative;
}

.profile-geo-select__trigger {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.profile-geo-select__trigger:focus-visible {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.1);
}

.profile-geo-select__trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-geo-select__trigger-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-geo-select__chevron {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

.profile-geo-select__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 45;
  background: #121212;
  border: 1px solid rgba(244, 196, 48, 0.22);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(300px, 50vh);
}

.profile-geo-select__search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  color: #fff;
  font-size: 0.88rem;
  font-family: "Outfit", system-ui, sans-serif;
  outline: none;
}

.profile-geo-select__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.profile-geo-select__empty {
  padding: 14px 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  text-align: center;
}

.profile-geo-select__item {
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #eee;
  cursor: pointer;
  text-align: left;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.86rem;
  transition: background 0.15s ease;
}

.profile-geo-select__item:hover,
.profile-geo-select__item:focus-visible {
  background: rgba(244, 196, 48, 0.1);
  outline: none;
}

.profile-geo-select__item.is-active {
  background: rgba(244, 196, 48, 0.14);
  color: #fff;
}

.profile-phone-row__input {
  flex: 1;
  min-width: 0;
}

.form-group--dob {
  grid-column: span 1;
}

.profile-dob-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-dob-wrap__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gold-main);
  font-size: 1rem;
  opacity: 0.9;
  z-index: 1;
}

.profile-dob-wrap__input[type="date"] {
  width: 100%;
  padding-left: 46px;
  padding-right: 16px;
  color-scheme: dark;
  cursor: pointer;
}

.profile-dob-wrap__input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
  filter: invert(0.85) sepia(1) saturate(1.6) hue-rotate(5deg) brightness(1.05);
}

.profile-dob-wrap__input[type="date"]:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}

.profile-dob-wrap__input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.action-row {
  margin-top: 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.btn-update {
  background: linear-gradient(135deg, #F4C430 0%, #b8860b 100%);
  color: #000;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(244, 196, 48, 0.2);
}

.btn-update:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 196, 48, 0.3);
}

.btn-update:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.tree {
  display: inline-block;
  margin: 0 auto;
}

.tree ul {
  padding-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-left: 0;
  margin: 0;
}

.tree li {
  list-style-type: none;
  position: relative;
  padding: 20px 10px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.tree li::before,
.tree li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid var(--line-color);
  width: 50%;
  height: 20px;
}

.tree li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid var(--line-color);
  margin-left: -1px;
}

.tree li:only-child::after,
.tree li:only-child::before {
  display: none;
}

.tree li:only-child {
  padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
  border: 0 none;
}

.tree li:last-child::before {
  border-right: 2px solid var(--line-color);
  border-radius: 0 10px 0 0;
  margin-right: -1px;
}

.tree li:first-child::after {
  border-radius: 10px 0 0 0;
}

.tree ul ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid var(--line-color);
  width: 0;
  height: 20px;
  margin-left: -1px;
}

.node-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  min-width: 90px;
  min-height: 90px;
  position: relative;
  transition: all 0.3s;
  z-index: 2;
  cursor: default;
}

.node-card.active {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.15);
  background: linear-gradient(145deg, #222, #111);
}

.node-card.empty {
  opacity: 0.6;
  border-style: dashed;
  border-color: #444;
}

.node-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.2rem;
  z-index: 3;
}

.node-card.empty .node-icon {
  border-color: #444;
  color: #444;
}

.node-id {
  display: block;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.node-status {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-green {
  background: #4ade80;
  box-shadow: 0 0 5px #4ade80;
}

.status-red {
  background: #ef4444;
}

.node-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 106%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 12px;
  width: 200px;
  text-align: left;
  z-index: 100;
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

.node-card:hover .node-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.node-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--gold-primary) transparent transparent transparent;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.75rem;
  color: #ccc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3px;
}

.tooltip-row:last-child {
  border: none;
  margin: 0;
  padding: 0;
}

.tooltip-row strong {
  color: var(--gold-primary);
}

.view-tree-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  text-decoration: none;
  padding: 6px;
  border-radius: 4px;
  margin-top: 8px;
  transition: transform 0.2s;
}

.view-tree-btn:hover {
  transform: scale(1.05);
}

.back-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.back-btn:hover {
  background: var(--gold-primary);
  color: #000;
}

.tree-page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tree-title {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.tree-scroll-container {
  width: 100%;
  overflow: auto;
  padding: 220px 0 50px 0;
  background: radial-gradient(circle at center, #111 0%, #050505 70%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  white-space: nowrap;
}

.history-card {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(244, 196, 48, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.history-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.x3-staking-convert-open i {
  margin-right: 8px;
}

.royalty-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.royalty-filter-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.royalty-period-pill {
  font-size: 0.9rem;
  padding: 7px 16px;
}

.history-title {
  color: #F4C430;
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.total-pill {
  background: linear-gradient(135deg, #F4C430 0%, #b8860b 100%);
  color: #000;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* X3 staking — convert to auto compounding modal */
.x3-convert-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: max(1.25rem, env(safe-area-inset-top, 0px), 6vh) 1.25rem
    max(1.25rem, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: x3-convert-overlay-in 0.22s ease-out;
}

@keyframes x3-convert-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Dashboard — APR announcement (reuses convert modal shell) */
.dashboard-apr-notice-overlay {
  align-items: center;
}

.dashboard-apr-notice-modal {
  max-width: 460px;
}

.dashboard-apr-notice__footnote {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-grey);
  font-weight: 400;
}

.x3-convert-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  flex-shrink: 0;
  margin-inline: auto;
  background: linear-gradient(165deg, #1c1c1c 0%, #0a0a0a 100%);
  border: 1px solid rgba(244, 196, 48, 0.28);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 56px rgba(0, 0, 0, 0.6),
    0 0 48px rgba(244, 196, 48, 0.09);
  overflow: hidden;
  animation: x3-convert-panel-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes x3-convert-panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.x3-convert-modal__accent {
  height: 4px;
  background: var(--gold-gradient);
}

.x3-convert-modal__body {
  padding: 1.65rem 1.65rem 1.45rem;
}

.x3-convert-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.x3-convert-modal__close:hover:not(:disabled) {
  background: rgba(244, 196, 48, 0.12);
  color: var(--gold-main);
}

.x3-convert-modal__close:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.x3-convert-modal__close i {
  font-size: 1.15rem;
}

.x3-convert-modal__header {
  text-align: center;
  margin-bottom: 1.4rem;
  padding: 0 2.25rem 0 0.25rem;
}

.x3-convert-modal__icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.95rem;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(244, 196, 48, 0.16),
    rgba(184, 134, 11, 0.06)
  );
  border: 1px solid rgba(244, 196, 48, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-main);
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.x3-convert-modal__header h2 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.x3-convert-modal__subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.5;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.x3-convert-modal__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.45rem;
}

.x3-convert-modal__metric {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
}

.x3-convert-modal__metric-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 7px;
}

.x3-convert-modal__metric-value {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  color: #f2f2f2;
  font-variant-numeric: tabular-nums;
}

.x3-convert-modal__metric-value--gold {
  color: var(--gold-main);
}

.x3-convert-modal__metric-suffix {
  font-size: 0.82em;
  font-weight: 600;
  opacity: 0.85;
  margin-left: 2px;
}

.x3-convert-modal__section-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 11px;
}

.x3-convert-modal__amount-wrap {
  margin-bottom: 1.35rem;
}

.x3-convert-modal__amount-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

.x3-convert-modal__amount-input:focus {
  outline: none;
  border-color: rgba(244, 196, 48, 0.45);
  box-shadow: 0 0 0 1px rgba(244, 196, 48, 0.2);
}

.x3-convert-modal__amount-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.x3-convert-modal__amount-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.x3-convert-modal__year-buttons.plan-buttons {
  margin-bottom: 0;
  gap: 10px;
}

.x3-convert-modal__year-buttons .plan-btn {
  padding: 12px 6px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x3-convert-modal__year-buttons .plan-year {
  font-size: 1.02rem;
  margin-bottom: 0;
}

.x3-convert-modal__footer {
  display: flex;
  gap: 11px;
  margin-top: 1.5rem;
  padding-top: 0.15rem;
}

.x3-convert-modal__btn-cancel {
  flex: 1;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.x3-convert-modal__btn-cancel:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.x3-convert-modal__btn-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.x3-convert-modal__btn-confirm {
  flex: 1.35;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--gold-gradient);
  color: #111;
  box-shadow: var(--gold-glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.x3-convert-modal__btn-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(244, 196, 48, 0.42);
}

.x3-convert-modal__btn-confirm:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.x3-convert-modal__btn-confirm .fa-circle-notch {
  margin-right: 8px;
}

/* Notifications — larger read modal */
.notification-view-overlay {
  align-items: flex-start;
  padding: max(1rem, env(safe-area-inset-top, 0px), min(6vh, 3rem)) 1rem
    max(1rem, env(safe-area-inset-bottom, 0px));
}

.notification-view-modal {
  max-width: min(92vw, 720px);
  width: 100%;
}

.notification-view-modal__body {
  padding: 1.5rem 1.75rem 1.35rem;
}

.notification-view-head {
  text-align: left;
  margin-bottom: 1.35rem;
  padding-right: 2.5rem;
}

.notification-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 1rem;
}

.notification-view-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.notification-view-pill i {
  font-size: 0.72rem;
  opacity: 0.85;
}

.notification-view-pill--id {
  background: rgba(244, 196, 48, 0.12);
  border: 1px solid rgba(244, 196, 48, 0.28);
  color: var(--gold-light);
}

.notification-view-pill--date {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.notification-view-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.notification-view-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(
    145deg,
    rgba(244, 196, 48, 0.18),
    rgba(184, 134, 11, 0.08)
  );
  border: 1px solid rgba(244, 196, 48, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-main);
  font-size: 1rem;
}

.notification-view-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  line-height: 1.35;
  word-break: break-word;
}

.notification-view-section {
  margin-bottom: 0.25rem;
}

.notification-view-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  line-height: 1.2;
}

.notification-view-body {
  margin: 0;
  max-height: min(58vh, 480px);
  min-height: 120px;
  overflow-y: auto;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.28) 100%);
  border: 1px solid rgba(244, 196, 48, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.notification-view-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.65;
}

.notification-view-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
  font-style: italic;
}

.notification-view-footer {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-view-close-btn {
  min-width: 200px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--gold-gradient);
  color: #111;
  box-shadow: var(--gold-glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.notification-view-close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(244, 196, 48, 0.42);
}

@media (max-width: 480px) {
  .notification-view-modal {
    max-width: 100%;
  }

  .notification-view-body {
    max-height: min(52vh, 400px);
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .x3-convert-modal__metrics {
    grid-template-columns: 1fr;
  }

  .x3-convert-modal__year-buttons.plan-buttons {
    flex-direction: column;
  }

  .x3-convert-modal__footer {
    flex-direction: column-reverse;
  }

  .x3-convert-modal__btn-confirm,
  .x3-convert-modal__btn-cancel {
    flex: none;
    width: 100%;
  }
}

.placement-generation-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.placement-generation-label {
  font-size: 0.85rem;
  color: #d9d9d9;
  letter-spacing: 0.2px;
}

.admin-select,
.placement-generation-select {
  min-width: 140px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(244, 196, 48, 0.35);
  background: linear-gradient(145deg, #171717, #0c0c0c);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-select:hover,
.placement-generation-select:hover {
  border-color: rgba(244, 196, 48, 0.7);
}

.admin-select:focus,
.placement-generation-select:focus {
  border-color: #f4c430;
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.2);
}

.admin-select option,
.placement-generation-select option {
  background: #141414;
  color: #fff;
}

@media (max-width: 768px) {
  .placement-generation-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .admin-select,
  .placement-generation-select {
    min-width: 120px;
  }

  .royalty-filter-bar {
    align-items: stretch;
  }

  .royalty-filter-meta {
    width: 100%;
    justify-content: flex-start;
  }
}

.deposit-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 72vh;
  padding: 24px 16px;
}

.deposit-card {
  background: radial-gradient(circle at top right, rgba(244, 196, 48, 0.12), transparent 35%),
    linear-gradient(150deg, #181818, #090909);
  border: 1px solid rgba(244, 196, 48, 0.24);
  border-radius: 20px;
  padding: 2.2rem;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(244, 196, 48, 0.08);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.deposit-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-icon {
  width: 62px;
  height: 62px;
  background: rgba(244, 196, 48, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(244, 196, 48, 0.3);
  font-size: 1.6rem;
  color: #F4C430;
}

.deposit-plan-badge {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(244, 196, 48, 0.12);
  color: #f8d96a;
  border: 1px solid rgba(244, 196, 48, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 600;
}

.card-title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-align: left;
}

.card-subtitle {
  color: #a9a9a9;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}

.deposit-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1.2rem;
}

.deposit-meta-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deposit-meta-item span {
  color: #8e8e8e;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.deposit-meta-item strong {
  color: #fff;
  font-size: 0.93rem;
}

.wallet-on {
  color: #34d399 !important;
}

.wallet-off {
  color: #fca5a5 !important;
}

.amount-group {
  position: relative;
  margin-bottom: 1.2rem;
  text-align: left;
}

.amount-label {
  display: block;
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 8px;
  margin-left: 5px;
}

.input-wrapper {
  position: relative;
}

.deposit-input {
  width: 100%;
  background: #060606;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 15px 20px;
  color: #fff;
  font-size: 1.06rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  padding-right: 80px;
}

.deposit-input:focus {
  border-color: #F4C430;
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.14);
}

.input-suffix {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #26a17b;
  font-weight: 700;
}

.conversion-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px;
  margin-top: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.conv-label {
  font-size: 0.8rem;
  color: #888;
  display: block;
  margin-bottom: 5px;
}

.conv-value {
  font-size: 1.32rem;
  color: #F4C430;
  font-weight: 700;
}

.conv-rate {
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
}

.balance-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8a8a8a;
  margin-top: 10px;
  padding: 0 2px;
}

.balance-val {
  color: #fff;
  font-weight: 500;
  max-width: 68%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-btn {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-stack {
  margin-top: 0.25rem;
}

.btn-connect {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-connect:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-gold {
  background: linear-gradient(90deg, #b8860b, #F4C430, #b8860b);
  background-size: 200%;
  color: #000;
  animation: gradientMove 3s infinite linear;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(244, 196, 48, 0.3);
}

.btn-gold:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes gradientMove {


  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }


}

.steps-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #353535;
  transition: 0.3s;
}

.step-dot.active {
  background: #F4C430;
  box-shadow: 0 0 8px #F4C430;
}

.deposit-status-msg {
  margin-top: 14px;
  color: #9b9b9b;
  font-size: 0.88rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .deposit-card {
    padding: 1.3rem;
    border-radius: 16px;
  }

  .deposit-meta {
    grid-template-columns: 1fr;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .card-subtitle {
    font-size: 0.85rem;
  }
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.filter-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filter-card .page-title {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.date-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-card .input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.filter-card .input-label {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.filter-card .date-input {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  outline: none;
  font-family: 'Outfit', sans-serif;
  color-scheme: dark;
}

.filter-card .date-input:focus {
  border-color: #F4C430;
}

.btn-result {
  background: #198754;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 18px;
  transition: 0.3s;
}

.btn-result:hover {
  background: #157347;
  transform: translateY(-2px);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.biz-card {
  background: #0a0a0a;
  border: 1px solid rgba(244, 196, 48, 0.2);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.biz-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, transparent, #F4C430, transparent);
  opacity: 0.5;
}

.biz-title {
  color: #F4C430;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

.stat-row {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
  color: #ccc;
  font-size: 0.95rem;
}

.stat-value {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.header-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
}

.b-b-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.header-btn i {
  font-size: 14px;
}

.header-btn-key {
  gap: 8px;
}

.header-key-logo-wrap {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.header-key-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: brightness(1.15) contrast(1.18);
}

.table-responsive .header-btn {
  display: inline-flex;
  font-size: 12px;
  padding: 8px 12px;
}

.directs-toolbar-row {
  margin-bottom: 12px;
  color: #ccc;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.directs-toolbar-text strong {
  color: #f4c430;
  font-weight: 700;
}

.directs-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(244, 196, 48, 0.35);
  background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(20, 20, 20, 0.95));
  color: #f4c430;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.directs-reset-btn:hover {
  border-color: #f4c430;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(244, 196, 48, 0.2);
  background: linear-gradient(145deg, rgba(55, 55, 55, 0.95), rgba(25, 25, 25, 0.95));
}

.directs-reset-btn:active {
  transform: translateY(0);
}

.directs-reset-btn:focus-visible {
  outline: 2px solid rgba(244, 196, 48, 0.55);
  outline-offset: 2px;
}

.content-wrapper-auto-compound {
  position: relative;
}

.calculator-outer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: #000000bd;
  padding: 30px;
  align-items: flex-start;
}

.calculator-inner.hero-card.links-info {
  display: block;
  max-width: 600px;
  width: 100%;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}

.calculator-btn-box {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.auto-compound-calculate-btn {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.auto-compound-calculate-btn button.btn-update.header-btn {
  font-size: 14px;
  padding: 12px 26px;
}

.close-popup {
  position: absolute;
  right: 20px;
  top: 20px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}


.close-popup i {
  font-size: 24px;
}

.calculator-inner.hero-card.links-info {
  display: block;
  max-width: 600px;
  width: 100%;
  position: sticky;
  top: 40px;
}

.x3-actions .x3-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-header .bell {
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: #fff;
  transform: rotate(0deg);
  transform-origin: 50% 4px;
}

.dashboard-header .fa-layers {
  position: relative;
  margin-right: 10px;
  display: inline-flex;
  width: 20px;
}

.dashboard-header .fa-layers.active .bell {
  animation: ring 2.3s infinite;
}

.dashboard-header .fa-layers .notification-bubble {
  opacity: 1;
  visibility: visible;
}

.dashboard-header .fa-layers.active .notification-bubble::before {
  animation-name: bounce;
  animation-delay: 450ms;
}

.dashboard-header .notification-bubble {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  width: 10px;
  height: 10px;
  top: 0;
  left: 65%;
}

.dashboard-header .active .notification-bubble::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #F4C430;
  border-radius: 50%;
  transform: scale(0);
  animation-duration: 800ms;
  animation-fill-mode: both;
  right: -2px;
  top: 0;
}

.notification-box {
  margin-right: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.dashboard-header .notification-header-link {
  color: #fff;
  text-decoration: none;
}

.dashboard-header .notification-header-link:hover {
  color: #f4c430;
}

.dashboard-header .notification-header-link:visited {
  color: #fff;
}

.dashboard-header .notification-header-link:hover:visited {
  color: #f4c430;
}

span.notification-text {
  font-size: 16px;
}

.progress-bar-dashboard div div:nth-child(2) {
  margin-top: -20px;
}

text.CircularProgressbar-text {
  fill: #fff !important;
}

.active-user {
  margin-top: 50px;
}

.active-user .metric-card {
  margin-top: 30px;
  text-align: center;
  display: flex;
  gap: 20px;
}

@keyframes ring {

  0%,
  100% {
    transform: rotate(0deg);
  }

  17.542% {
    transform: rotate(0deg);
  }

  35.084% {
    transform: rotate(-20deg);
  }

  48.2405% {
    transform: rotate(20deg);
  }

  57.0115% {
    transform: rotate(-20deg);
  }

  64.9054% {
    transform: rotate(8deg);
  }

  74.5535% {
    transform: rotate(-15deg);
  }

  78.939% {
    transform: rotate(-1deg);
  }
}

@keyframes bounce {
  0% {
    transform: scale(0);
  }

  14% {
    transform: scale(1.15);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.15);
  }

  70% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

.metric-card.metric-card2 .grid-section-title {
  position: absolute;
  top: -72px;
  background: #101010;
  padding: 0 5px 0 10px;
  left: -10px;
}

.metric-card.metric-card2 {
  overflow: unset;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filter-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .date-controls {
    width: 100%;
    justify-content: space-between;
  }

  .btn-result {
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 992px) {
  .content-wrapper {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }
}

@media (max-width: 992px) {
  .dashboard-container {
    margin-left: 0;
    width: 100%;
    padding: 1.5rem;
  }

  .nav-sidebar {
    left: 0 !important;
    top: 0;
    bottom: 0;
    transform: translateX(-120%);
    box-shadow: none !important;
    width: var(--sidebar-width) !important;
  }

  .nav-sidebar.active {
    transform: translateX(0);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.8) !important;
  }

  .sidebar-close {
    display: flex;
  }
}

@media (max-width: 1232px) {
  .metric-card.metric-card2.metric-card-partner {
    margin-top: 70px !important;
  }

  .metric-card.metric-card2.metric-card-partner .grid-section-title {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .dashboard-container {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }

  .profile-hero-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .right-column {
    gap: 1rem;
  }

  .metric-grid {
    grid-template-columns: 1fr !important;
  }

  .preview-input {
    width: 100%;
    min-width: 0;
  }

  .metric-card.metric-card2.metric-card-earning {
    margin-top: 70px;
  }

  .metric-card.metric-card2.metric-card-earning .grid-section-title {
    width: 100%;
  }

  .profile-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .program-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .program-grid .metric-card {
    padding: 1rem;
  }

  .program-grid .metric-title {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .program-grid .metric-value {
    font-size: 1.25rem;
    margin-bottom: 2px;
  }

  .program-grid .metric-subtext {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .x2-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
}

@media (max-width:991px) {
  .burger-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .x3-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .x3-actions {
    width: 100%;
    flex-direction: column;
  }

  .x3-action-btn {
    width: 100%;
    text-align: center;
  }

  .x3-stats-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .x3-stats-bar.x3-stats-bar-progress {
    justify-content: center;
    text-align: center;
  }

  .x3-stats-bar.x3-stats-bar-progress .x3-stat-item {
    width: 100%;
  }

  .progress-bar-dashboard {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .progress-bar-dashboard>div {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .logout-text {
    display: none;
  }

  .btn-logout {
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    transform: translateY(-150%);
    justify-content: center;
  }

  .notification.show {
    transform: translateY(0);
  }

  .dashboard-header .header-btn {
    font-size: 0 !important;
    gap: 0 !important;
    width: 55px;
  }

  span.notification-text {
    display: none;
  }

  .notification-box {
    margin-right: 5px;
  }

  .history-title {
    font-size: 1.2rem;
  }

  .tree-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 992px) {
  .content-wrapper {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }
}