/* --- MAIN MENU BAR --- */
.top-horizontal-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #0D1117;
  border-bottom: 1px solid #21262C;
  padding: 0 20px;
  gap: 20px;
  z-index: 1000;
  font-family: "Segoe UI", sans-serif;
}

.top-menu-btn {
  background-color: transparent;
  border: none;
  color: #C9D1D9;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.top-menu-btn:hover {
  background-color: #21262D;
}

/* --- BALANCE DISPLAY (DEPOSIT AREA) --- */
.balance-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(145deg, #1A1F27, #0E1116);
  border: 1px solid #2B323B;
  border-radius: 12px;
  padding: 10px 18px;
  width: 150px;
  height: 65px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4),
              inset 0 1px 1px rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  margin-left: 930px;
}

.balance-btn:hover {
  background: linear-gradient(145deg, #212833, #13171E);
  border-color: #3A444E;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.5),
              0 0 8px rgba(35,134,54,0.25);
}

/* Top row (QT Demo | USD) */
.balance-header {
  font-size: 12px;
  color: #9BA3AF;
  display: flex;
  justify-content: space-between;
  width: 100%;
  letter-spacing: 0.2px;
}

/* Main balance number */
.balance-amount {
  font-size: 22px;
  color: #F0F6FC;
  font-weight: 600;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.2;
  margin-top: 2px;
}

/* Dropdown arrow */
.arrow {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 11px;
  color: #C9D1D9;
  opacity: 0.8;
  transition: transform 0.25s ease;
}

/* Rotate arrow when active */
.deposit-menu.active .arrow {
  transform: rotate(180deg);
}


/* --- DROPDOWN --- */
.deposit-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 150px;
  width: 220px;
  background-color: #161B22;
  border: 1px solid #30363D;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 1500;
  padding: 8px 0;
}

/* --- DROPDOWN ITEMS --- */
.dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  color: #C9D1D9;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background-color: #21262D;
}

/* --- ITEM TEXT --- */
.item-header {
  font-weight: 600;
  font-size: 14px;
}

.item-sub {
  font-size: 13px;
  color: #8B949E;
}

/* --- SAFE BUTTON INSIDE DROPDOWN --- */
.safe-btn {
  background-color: #238636;
  color: white;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.safe-btn:hover {
  background-color: #2ea043;
}

/* --- SHOW DROPDOWN WHEN ACTIVE --- */
.deposit-menu.active .deposit-dropdown {
  display: flex;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .top-horizontal-menu {
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 10px;
  }
  .deposit-menu {
    position: static;
    margin-top: 10px;
    width: 100%;
    justify-content: flex-end;
  }
  .deposit-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 6px;
  }
}

/* --- TOP UP BUTTON --- */
.topup-btn {
  background-color: #238636;
  color: white;
  text-align: center;
  border-radius: 8px;
  margin: 8px 10px 4px 10px;
  padding: 10px 0;
  font-weight: 600;
  transition: background 0.2s ease;
}

.topup-btn:hover {
  background-color: #2ea043;
}

/* --- POPUP STYLES --- */
.deposit-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #161B22;
  border: 1px solid #30363D;
  border-radius: 12px;
  width: 300px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  z-index: 2000;
  color: #C9D1D9;
}

.deposit-popup.active {
  display: block;
}

.popup-content h3 {
  margin-top: 0;
  color: #F0F6FC;
  font-size: 18px;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  color: #8B949E;
  cursor: pointer;
}

.close-popup:hover {
  color: #C9D1D9;
}

.preset-buttons {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
}

.preset {
  background-color: #21262D;
  color: #C9D1D9;
  border: 1px solid #30363D;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.preset:hover {
  background-color: #238636;
  color: white;
}

.input-container {
  display: flex;
  align-items: center;
  margin: 10px 0;
  background: #0D1117;
  border: 1px solid #30363D;
  border-radius: 8px;
  overflow: hidden;
}

#amountInput {
  flex: 1;
  background: transparent;
  border: none;
  color: #C9D1D9;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
}

.currency-symbol {
  padding: 8px 10px;
  color: #8B949E;
  background: #161B22;
}

.confirm-btn {
  background-color: #238636;
  color: white;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.confirm-btn:hover {
  background-color: #2ea043;
}
/* Stack text and button vertically */
.column-item {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 6px;
}

/* Make the top-up button full width inside item */
.column-item .topup-btn {
  width: 100%;
  margin: 4px 0 0 0;
  padding: 8px 0;
  text-align: center;
}
/* Make the QT Demo + $100 on one line */
.item-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Stack Top up button below the row */
.column-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: left;
}

/* Keep Top up full width below */
.column-item .topup-btn {
  width: 100%;
  margin-top: 4px;
  padding: 8px 0;
  text-align: center;
}

:root {
    --primary: #00e5ff;
    --primary-gradient: linear-gradient(90deg, #00e5ff, #0077ff);
    --card-bg: #161b22;
    --text-light: #e0e0e0;
    --text-muted: #8b949e;
    --border-color: #30363d;
    --hover-bg: rgba(0, 229, 255, 0.1);
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Profile Button */
.profile-container {
    position: relative;
}

.profile-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-weight: 500;
}

.arrow-profil {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
    margin-left: 5px;
    transition: transform 0.3s;
}

.profile-btn.active .arrow-profil {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    width: 260px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-header1 {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-header1-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-light);
}

.dropdown-header1-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--hover-bg);
    color: var(--primary);
}

.menu-item.logout:hover {
    color: #ff5252;
}

.icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}



