/* Top Bar */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.profile-icon, .support-icon {
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
}

.profile-icon:hover, .support-icon:hover {
  color: var(--accent);
}


/* Header */
header {
  width: min(100%, 400px);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.assets-info {
  flex: 1;
}


.title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.2rem;
}

.toggle-visibility {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  font-size: 0.75rem;
  margin-bottom: 0.33rem;
  margin-left: 0.40rem;
}

.toggle-visibility:hover {
  color: var(--accent);
}

.assets-title {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-align: left;
}

.assets-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.assets-value.hidden {
  filter: blur(6px);
}

.deposit-button {
  background: var(--accent);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
  margin-left: 1rem;
}

.deposit-button i {
  font-size: 1rem;
  color: var(--bg);
}

.deposit-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Action Buttons */
.buttons {
  width: min(100%, 400px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* Changed from 2 to 4 columns */
  gap: 1rem;  /* Reduced gap for better fit */
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.buttons button {
  background: var(--glass);
  border: none;
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s;
}

.buttons button:hover {
  transform: translateY(-2px);
}

.buttons button i {
  font-size: 1.25rem;
  color: var(--accent);
}

.buttons .circle-btn {
  background: var(--glass);
  border: none;
  border-radius: 50%;
  width: 55px;  /* Slightly reduced size to fit in one line */
  height: 55px;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s;
  margin: 0 auto;
}

.buttons .circle-btn i {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.buttons .circle-btn span {
  font-size: 11px;
  color: var(--muted);
}

.buttons .circle-btn:hover {
  transform: translateY(-2px);
}

/* Navigation */
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.8rem 0.5rem;
  gap: 0.5rem;
}

nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s;
}

nav a.active {
  color: var(--accent);
}

nav a i {
  font-size: 1.25rem;
}

/* General Layout */
body {
  padding-bottom: 0.23rem;
}

/* Light Theme Overrides */
body.light-theme header,
body.light-theme .buttons button,
body.light-theme nav {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .buttons button:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Media Queries */
@media (min-width: 768px) {
header {
  width: min(100%, 700px);
}
.toggle-visibility {
    margin-bottom: 0.50rem;
}


  .profile-icon, .support-icon {
    font-size: 1.55rem;
    width: 48px;
    height: 48px;
  }

  .deposit-button {
    padding: 1rem 1.5rem;
    font-size: 16px;
  }
  
  .assets-value {
    font-size: 32px;
  }

  .buttons {
    width: min(100%, 800px);
    gap: 2rem;
  }

  .buttons button {
    font-size: 16px;
  }

  nav a {
    font-size: 14px;
  }

  .buttons .circle-btn {
    width: 75px;
    height: 75px;
  }
  
  .buttons .circle-btn span {
    font-size: 12px;
  }
}

/* Trading View Widget */
.tradingview-widget-container {
  margin: 1rem auto;
  width: min(100%, 400px);
  pointer-events: none;
}

.tradingview-widget-container__widget {
  user-select: none;
}

/* Hide any TradingView branding */
.tradingview-widget-copyright {
  display: none !important;
}

.balance-container {
    position: relative;
    display: inline-block;
}

.balance-spinner {
    position: absolute;
    left: 10%;
    top: 10%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}

.balance-loading {
    filter: blur(4px);
    opacity: 0.6;
    user-select: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Table and Controls Styles */

.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  padding: 0 1rem;
  width: min(100%, 400px);
  margin: 1rem auto;
}

.controls button {
  flex: 1 1 100px;
  padding: 10px 12px;
  font-size: 12px;
  background: inherit;
  color: #07d6f1;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  min-width: 100px;
  max-width: 140px;
  text-align: center;
}

.controls button.active { 
  border-bottom: var(--accent) 2px solid;
  background: inherit;
  color: var(--text);
  font-weight: 700;
}

.content {
  max-width: 960px;
  margin: 0 auto;
  margin-left: -16px;
  padding: 0 1rem;
  width: min(104%, 400px);
}

/* Table Styles */
table {
  width: 104%;
  border-collapse: separate;
  border-spacing: 0 12px;
  margin-bottom: 5rem;
}

thead {
  display: none;
}

tbody tr {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr;
  align-items: center;
  background: #1f1f1f;
  border-radius: 12px;
  padding: 8px 15px;
  margin-bottom: 10px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
  transition: background 0.3s ease;
  font-size: 13px;
}

tbody tr.positive {
  background-color: #024324a5;
}

tbody tr.negative {
  background-color: #5c0f0fa7;    
}

tbody tr:hover {
  background: #333;
}

td {
  padding: 0;
  font-weight: 600;
  font-size: inherit;
  text-align: center;
}

td:first-child {
  text-align: left;
  font-size: 11px;
}

td:nth-child(2) {
  font-weight: 500;
  font-size: 13px;
  color: #eee;
}

td.change {
  font-weight: 500;
  padding: 6px 5px;
  width: fit-content;
  margin: 0 auto;
  font-size: 11px;
  display: inline-block;
  min-width: 70px;
  text-align: center;
  user-select: none;
  margin-right: -0.21rem;
}

.green {
  color: #75ffbc;
  background: rgba(1, 94, 49, 0.853);
  box-shadow: 0 0 2px #00e67644;
}

.red {
  color: #ffabab;
  background: rgb(146, 3, 3);
  box-shadow: 0 0 2px #ff525244;
}

/* Desktop Styles */
@media(min-width: 650px) {
  h1 {
    font-size: 28px;
  }
  
  .controls {
    width: min(100%, 700px);
    align-items: center;

  }
  
  .content {
    width: min(100%, 700px);
    margin-left: auto;

  }
  
  .controls button {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  thead {
    display: table-header-group;
  }
  
  tbody tr {
    display: table-row;
    background: none;
    box-shadow: none;
    margin-bottom: 0;
    border-radius: 0;
    padding: 0;
    grid-template-columns: none;
    font-size: 10px;
  }
  
  td {
    padding: 10px;
    font-size: 15px;
    text-align: left;
  }
  
  td.change {
    margin: 0;
    display: block;
    width: 100px;
    margin-top: 4px;
    padding: 6px 12px;
    border: 2px solid;
    border-radius: 12px;
  }
  
  tbody tr.positive {
    box-shadow: none;
    background-color: rgba(1, 129, 1, 0.799);
  }
  
  tbody tr.negative {
    box-shadow: none;
    background-color: rgba(137, 4, 4, 0.753);
  }
  
  td:first-child {
    font-size: 13px;
  }
  
  td:nth-child(2) {
    color: #ffffff;
    font-weight: 600;
  }
  
  .green {
    border-color: #95ff77;
    background: rgba(28, 127, 3, 0.918);
  }
  
  .red {
    border-color: #ff5252;
    background: rgba(145, 1, 1, 0.867);
  }
}



/* Dashboard Styles */
/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 240px;
    height: 100vh;
    background: var(--bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    color: var(--text);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 999;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile i {
    font-size: 24px;
    color: var(--text);
}

.user-profile h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text);
}

#closeSidebar {
    cursor: pointer;
    font-size: 25px;
    color: red;
    transition: color 0.2s ease;
}

#closeSidebar:hover {
    color: var(--text);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid var(--muted);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.sidebar-menu li a:hover {
    background: var(--glass);
}

.sidebar-menu li a i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

/* Profile Icon Styles */
.profile-icon {
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.2s ease;
}

.profile-icon:hover {
    opacity: 0.8;
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Theme Toggle Button Style */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 1px;
    cursor: pointer;
    padding: 15px 20px;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background: var(--glass);
}

.theme-toggle i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    color: var(--text);
}

.theme-toggle span {
    color: var(--text);
}

.uid-field {
    padding: 15px 20px;
    border-bottom: 1px solid var(--muted);
}

.uid-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uid-label {
    color: var(--muted);
    font-size: 1rem;
}

.uid-value {
    color: var(--text);
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.copy-uid {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 14px 8px;
    transition: color 0.2s ease;
}

.copy-uid:hover {
    color: var(--text);
}

/* security page css */

/* Security Page Styles */

.security-section {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    margin: 1rem auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    width: min(100%, 400px);
}

.security-section h2 {
    color: var(--text);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.btn {
    background: var(--accent);
    color: var(--bg);
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: opacity 0.2s ease;
    width: auto;
}

.btn:hover {
    opacity: 0.9;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--muted);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--text);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Form Styles */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--muted);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: var(--accent);
}

/* PIN Toggle Section */
.pin-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

#pinStatus {
    color: var(--muted);
    font-size: 0.9375rem;
}

/* 2FA Section */
#2faStatus {
    margin-bottom: 1.25rem;
}

#2faStatus p {
    color: var(--muted);
    margin-bottom:  0.5rem;
}

#2faStatusText {
    color: var(--text);
    font-weight: 500;
}

#qrCode {
    background: var(--glass);
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: inline-block;
}

/* Hide/Show Elements */
.hidden {
    display: none;
}

/* Security Page Styles */
.security-section {
    touch-action: manipulation;
}

.input-group input {
    font-size: 16px; /* Prevents iOS zoom */
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/* Add to existing body styles */
body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/* Form input specific styles */
input[type="text"],
input[type="password"],
input[type="number"] {
    font-size: 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .security-section {
        width: min(100%, 500px);
        padding: 1rem;
    }

    .security-section h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 680px) {
.page-head {
  margin-top: 2rem;
  text-align: center;
  font-size: 11px;

}
}


/* Notifications Styles */
.notifications-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    width: min(100%, 600px);
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    background: var(--bg);
    padding: 16px;
    border-radius: 1px;
    border-bottom: 1px solid#07d6f1;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-item.unread {
    background: rgb(0, 0, 118);
    border-left: 7px solid var(--accent);
    border-radius: 12px;
    
    
}

body.light-theme .notification-item {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notification-header {
    margin-bottom: 4px;
}

.notification-title {
    font-weight: 500;
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.70rem;
}

/* Message Modal */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message-modal.active {
    opacity: 1;
    display: flex;
}

.modal-content {
    background: var(--bg);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.light-theme .modal-content {
    background: #ffffff;
}

.message-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: var(--glass);
    padding: 15px;
    position: relative;
}

.modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: var(--text);
}

.close-btn {
    position: absolute;
    right: 16px;
    top: 16px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--glass);
    color: var(--text);
}

.modal-body {
    padding: 20px;
    color: var(--text);
}

.message-meta {
    margin-top: 20px;
    padding-top: 5px;
    border-top: 1px solid var(--muted);
    color: var(--muted);
    font-size: 0.75rem;
}

#messageContent {
    line-height: 1.6;
    margin-bottom: 50px;
}

.modal-footer {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.delete-btn:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    text-align: center;
    padding: 2rem;
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--muted);
    opacity: 0.5;
}

.empty-state p {
    color: var(--muted);
    font-size: 1rem;
    margin: 0;
}

.hidden {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  
    .notification-item {
        padding: 14px;
    }

    .notification-title {
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
    }
}




/* Notification Modal */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.notification-modal.active {
    opacity: 1;
    visibility: visible;
}

.notification-modal .modal-content {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    transform: translateY(-30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.light-theme .notification-modal .modal-content {
    background: var(--glass);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.notification-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--muted);
}

.modal-header i {
    color: var(--accent);
    font-size: 24px;
    animation: pulse 2s infinite;
}

.modal-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    margin-bottom: 24px;
}

.modal-body p {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text);
    padding: 10px 20px;
    border: 1px solid var(--muted);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-secondary:hover {
    background: var(--muted);
    transform: translateY(-2px);
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: red;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}




/* Settings Page Styles */
/* Settings Container */
.settings-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.21rem;
}

.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

/* Section Styling */
.settings-section {
    background: var(--glass);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .settings-section {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.settings-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.settings-section h2 {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--muted);
}

.settings-section h2 i {
    color: var(--accent);
}

/* Profile Picture */
.profile-picture {
    text-align: center;
    margin-bottom: 3rem;
}

.picture-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

body.light-theme .picture-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.picture-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.picture-container:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.picture-container:hover .overlay {
    opacity: 1;
}

.overlay i {
    color: white;
    font-size: 2rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.picture-container:hover .overlay i {
    transform: translateY(0);
}

/* Form Controls */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}

.input-group input {
    width: 105%;
    padding: 1rem;
    border: 2px solid var(--muted);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-left: -10px;
}

.input-group input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

body.light-theme .input-group input {
    background: white;
}

.input-group input:disabled {
    background: var(--glass);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Save Button */
.save-btn {
    background: var(--success);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.4);
}

/* Danger Zone */
.danger-zone {
    border: 2px solid #ff3366;
}

body.light-theme .danger-zone {
    background: rgba(255, 51, 102, 0.05);
}

.danger-zone h2 {
    color: #ff3366;
}

.danger-zone h2 i {
    color: #ff3366;
}

.delete-btn {
    background: #ff3366;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #ff1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass);
}

body.light-theme .modal-content {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Header Styling */
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--muted);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Update the action button base styles */
.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 140px;
    text-align: center;
}

.action-btn i {
    display: none;
}

.edit-btn {
    background: var(--accent);
    color: white;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}

.save-btn {
    background: var(--success, #2ed573);
    color: white;
}

.cancel-btn {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--muted);
}

.action-btn:hover {
    transform: translateY(-2px);
}

.save-btn:hover {
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.4);
}

.cancel-btn:hover {
    background: var(--muted);
}



.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}



.settings-header h1 {
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 600;
    
}




/* Responsive Design */
@media (max-width: 768px) {
    .settings-container {
        padding: 0.134rem;
        width: 100%;
        margin-left: -5px;
    }

    .settings-section {
        padding: 1.5rem;
    }

    .picture-container {
        width: 120px;
        height: 120px;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .settings-header {
        padding: 1rem;
    }

    .settings-header h1 {
        font-size: 1.75rem;
    }

    .edit-profile-btn {
        padding: 0.6rem 1rem;
    }

    .action-btn {
        padding: 0.6rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .settings-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .settings-header h1 {
        font-size: 1.4rem;
        margin-top: -1.5rem;
    }

    .action-btn {
        width: 60%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }

    /* Remove the span display none */
    .action-btn span {
        display: inline-flex;
    }

    .action-btn i {
        font-size: 1rem;
    }
}



/* Update modal styles *//* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 420px;
    width: 90%;
    transform: translateY(0);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.modal-content p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cancel-btn, .confirm-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cancel-btn {
    background: transparent;
    border: 1px solid var(--muted);
    color: var(--text);
}

.confirm-btn {
    background: var(--error, #ff4757);
    border: none;
    color: white;
}

.cancel-btn:hover {
    background: var(--glass);
    border-color: var(--text);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
}

.hidden {
    display: none;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem;
        border-radius: 20px;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .modal-buttons {
        flex-direction: column-reverse;
    }

    .cancel-btn, .confirm-btn {
        width: 100%;
        padding: 1rem;
        text-align: center;
    }
}



.uid-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copy-uid-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-uid-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.copy-uid-btn:active {
    transform: scale(0.95);
}

/* Touch device optimizations */
@media (hover: none) {
    .copy-uid-btn {
        padding: 0.5rem;
    }
    
    .copy-uid-btn i {
        font-size: 1.1rem;
    }
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.stat-value {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}



/* ==== Invitation & Referral Page Styles ==== */

.container {
  width: 100%;
  max-width: 650px;
  margin: auto;
  padding: 0.21rem;
}

/* Header */
.page-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.page-header .back-link {
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.page-header .back-link:hover {
  color: var(--accent);
}

.page-header h1 {
  font-size: 1.5rem;
  color: var(--accent);
  flex-grow: 1;
}

/* Rewards Banner */
.rewards-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--glass);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.reward-icon {
  font-size: 3rem;
  color: var(--accent);
}

.reward-info h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.reward-info p {
  font-size: 1rem;
  color: var(--muted);
}

/* Referral Card */
.referral-card {
  background: var(--glass);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.referral-header h2 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.code-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.code-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: nowrap;
}

.code-input {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.copy-button {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.copy-button:hover {
  background: #00b3e6;
}

/* Share Section */
.share-section {
  margin-bottom: 2rem;
}

.share-section h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.share-options {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-option {
  flex: 1 1 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: none;
  min-width: 140px;
}

.share-option i {
  font-size: 1.2rem;
}

.share-option.whatsapp {
  background-color: #25D366;
}

.share-option.telegram {
  background-color: #0088cc;
}

.share-option:hover {
  transform: scale(1.02);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  background: var(--glass);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.stat-item i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Referral History */
.history-section {
  margin-bottom: 2rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.history-header h3 {
  font-size: 1.1rem;
  color: var(--text);
}

.history-counter {
  font-size: 0.9rem;
  color: var(--muted);
}

.history-list {
  background: var(--glass);
  border-radius: 12px;
  padding: 1rem;
  min-height: 80px;
  backdrop-filter: blur(8px);
}

/* Responsive Typography & Layout */
@media (min-width: 600px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .reward-info h3 {
    font-size: 1.25rem;
  }

  .code-input {
    font-size: 1rem;
  }

  .copy-button {
    font-size: 1rem;
  }

  .share-options {
    flex-direction: row;
  }
}


.referrals-list {
    background: var(--bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;
}

.referral-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.referral-item:last-child {
    border-bottom: none;
}

.referral-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.referral-name {
    color: var(--text);
    font-weight: 500;
}

.referral-date {
    color: var(--muted);
    font-size: 0.875rem;
}

.referral-stats {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.referral-earnings {
    color: var(--accent);
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-active {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

.status-pending {
    background: rgba(255, 171, 0, 0.15);
    color: #ffab00;
}

.status-inactive {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

@media (max-width: 768px) {
    .referral-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .referral-info {
        width: 100%;
    }

    .referral-stats {
        width: 100%;
        justify-content: space-between;
    }
}



/* level modal style */
.clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable:hover {
    transform: translateY(-2px);
}

.level-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.level-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-modal-content {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
}

.current-level {
    text-align: center;
    margin-bottom: 2rem;
}

.level-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent);
    display: block;
}

.level-text {
    color: var(--muted);
    font-size: 0.9rem;
}

.level-progress {
    margin-bottom: 2rem;
}

.progress-text {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.level-rewards {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.level-rewards h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

.level-rewards ul {
    list-style: none;
    padding: 0;
}

.level-rewards li {
    color: var(--muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.assets-value {
    transition: opacity 0.2s ease-in-out;
}

.toggle-visibility i {
    transition: transform 0.3s ease;
}

.toggle-visibility:hover i {
    transform: scale(1.1);
}




/* Updated Deposit Page Styles */
.deposit-page {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text);
  background-color: var(--bg);
  height: auto;
}

.deposit-page h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    margin-top: -20px;
}

.warning-message {
  background: var(--warning-bg);
  border: 2px solid var(--warning-border);
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
  color: var(--warning-text);
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.min-deposit-text {
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
}

#walletQRCode {
    display: block;
    margin: 20px auto;
    max-width: 200px;
    height: auto;
    background: var(--glass);
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wallet-address-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: var(--glass);
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  word-break: break-all;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#walletAddress {
    color: var(--text);
    font-size: 0.75rem;
    font-family: monospace;
}

.copy-icon {
  cursor: pointer;
  padding: 8px;
  color: var(--accent);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  border-radius: 6px;
}

.copy-icon:hover {
  background: var(--glass);
  transform: scale(1.1);
}

.copy-icon:active {
    transform: scale(0.95);
    opacity: 0.7;
}

.warning-text {
    color: var(--warning-text);
    text-align: center;
    margin-top: 1.2rem;
    margin-bottom: -5px;
    font-size: 15px;
    font-weight: normal;
}

.confirm-btn, .submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.confirm-btn:hover, .submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#amountInput {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: var(--glass);
    color: var(--text);
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#amountInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
  outline: none;
}

/* Place in your CSS file */
.balance-spinner {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent, #00d1ff);
  font-size: 1em;
  vertical-align: middle;
}