/* ==========================================================================
   ADMIN PANEL STYLES (MATCHING USER PORTAL FINTECH GLASS AESTHETIC)
   ========================================================================== */

body.admin-page-body,
body:has(.admin-wrapper) {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  background-color: #040711 !important;
  background-image: 
    radial-gradient(circle at 10% 15%, rgb(22 22 22 / 30%) 0%, transparent 45%), 
    radial-gradient(circle at 90% 85%, rgba(15, 189, 241, 0.28) 0%, transparent 45%), 
    radial-gradient(circle at 50% 50%, rgba(15, 21, 34, 0.45) 0%, rgba(4, 7, 17, 0.85) 100%), 
    linear-gradient(135deg, rgba(4, 7, 17, 0.58), rgba(8, 14, 28, 0.65)), 
    url(../images/crypto_city_bg.png) !important;
  background-attachment: fixed !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  color: #ffffff;
  font-family: var(--font-family-sans);
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   ADMIN SIDEBAR - USER PORTAL MATCHING DESIGN & COLOR THEME
   ========================================================================== */

.admin-sidebar {
  width: 230px;
  background: rgba(10, 15, 26, 0.96) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border-right: 1px solid rgba(15, 189, 241, 0.3) !important;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 0;
  z-index: 1030 !important;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.85);
  will-change: transform;
}

.admin-brand,
.sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(15, 189, 241, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
}

.admin-brand:hover,
.sidebar-brand-link:hover {
  opacity: 0.88;
}

@media (min-width: 992px) {
  .admin-topbar .sidebar-brand-link,
  .user-topbar .sidebar-brand-link {
    min-width: 230px;
    width: 230px;
    flex-shrink: 0;
  }
}

.sidebar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.admin-menu,
.sidebar-menu {
  padding: 0.85rem 0.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.admin-menu-cat,
.menu-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-primary, #f1c40f);
  padding: 0.6rem 0.6rem 0.2rem;
  font-weight: 700;
}

/* Nav Group Accordion Toggles (User Left Sidebar Style) */
.nav-group,
.admin-menu-group {
  margin-bottom: 0.35rem;
}

.nav-group-toggle,
.admin-menu-cat-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
  text-align: left;
  outline: none;
}

.nav-group-toggle:hover,
.admin-menu-cat-toggle:hover {
  background: rgba(15, 189, 241, 0.08);
  color: var(--gold-primary, #f1c40f);
}

.nav-group.open > .nav-group-toggle,
.nav-group.active > .nav-group-toggle,
.nav-group.expanded > .nav-group-toggle,
.admin-menu-group.expanded .admin-menu-cat-toggle,
.admin-menu-group.active-group .admin-menu-cat-toggle {
  color: var(--gold-primary, #f1c40f);
  background: rgba(15, 189, 241, 0.12);
  border-color: rgba(15, 189, 241, 0.25);
}

.toggle-arrow,
.admin-menu-cat-toggle .toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #94a3b8;
}

.nav-group.open .toggle-arrow,
.nav-group.active .toggle-arrow,
.nav-group.expanded .toggle-arrow,
.admin-menu-group.expanded .toggle-icon {
  transform: rotate(180deg);
  color: var(--gold-primary, #f1c40f);
}

.nav-group-sub,
.admin-submenu {
  display: none;
  padding-left: 0.4rem;
  margin-top: 0.2rem;
  margin-bottom: 0.35rem;
  border-left: 2px solid rgba(15, 189, 241, 0.35);
  margin-left: 0.85rem;
}

.nav-group.open > .nav-group-sub,
.nav-group.active > .nav-group-sub,
.nav-group.expanded > .nav-group-sub,
.admin-menu-group.expanded .admin-submenu {
  display: block;
}

.nav-group-sub .nav-item-admin,
.admin-submenu .nav-item-admin {
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.1rem;
}

.nav-item-admin {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  color: #94a3b8;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.84rem;
  margin-bottom: 0.15rem;
  text-decoration: none !important;
  transition: all var(--transition-fast, 0.2s ease);
}

.nav-item-admin i {
  font-size: 0.95rem;
  color: #94a3b8;
  transition: color var(--transition-fast, 0.2s ease);
}

.nav-item-admin:hover {
  background: rgba(15, 189, 241, 0.08);
  color: var(--gold-primary, #f1c40f) !important;
}

.nav-item-admin:hover i {
  color: var(--gold-primary, #f1c40f);
}

.nav-item-admin.active {
  background: rgba(15, 189, 241, 0.14) !important;
  color: var(--gold-primary, #f1c40f) !important;
  font-weight: 600;
}

.nav-item-admin.active i {
  color: var(--gold-primary, #f1c40f) !important;
}

.admin-main {
  flex-grow: 1;
  margin-left: 230px !important;
  margin-top: 64px !important;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  width: calc(100% - 230px) !important;
  max-width: calc(100% - 230px) !important;
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.admin-topbar {
  height: 64px;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(10, 15, 26, 0.95) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border-bottom: 1px solid rgba(15, 189, 241, 0.3) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.admin-topbar .topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  white-space: nowrap;
}

.dash-stat-card,
.gold-card {
  background: linear-gradient(145deg, rgba(16, 23, 38, 0.96) 0%, rgba(8, 12, 22, 0.98) 100%) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border: 1px solid rgba(15, 189, 241, 0.45) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 
              0 15px 45px rgba(0, 0, 0, 0.85), 
              0 0 25px rgba(15, 189, 241, 0.2) !important;
  padding: 1.25rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dash-stat-card:hover,
.gold-card:hover {
  border-color: rgba(15, 189, 241, 0.75) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 
              0 20px 55px rgba(0, 0, 0, 0.95), 
              0 0 35px rgba(15, 189, 241, 0.35) !important;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  font-weight: 600;
  display: block;
}

.stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 189, 241, 0.15);
  border: 1px solid rgba(15, 189, 241, 0.4);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hash-verify-box {
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid rgba(15, 189, 241, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: var(--font-family-mono);
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--gold-primary);
}

/* Glass Type Transparent Action Buttons (Approve & Reject) */
.btn-approve-withdrawal,
.btn-approve-deposit,
.btn-approve-theme {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.9rem !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none !important;
}

.btn-approve-withdrawal:hover,
.btn-approve-deposit:hover,
.btn-approve-theme:hover {
  background: rgba(16, 185, 129, 0.3) !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6) !important;
  transform: none !important;
}

.btn-reject-withdrawal,
.btn-reject-deposit,
.btn-reject-theme {
  background: rgba(244, 63, 94, 0.14) !important;
  color: #fb7185 !important;
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.9rem !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.2) !important;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
  text-decoration: none !important;
}

.btn-reject-withdrawal:hover,
.btn-reject-deposit:hover,
.btn-reject-theme:hover {
  background: rgba(244, 63, 94, 0.3) !important;
  color: #ffffff !important;
  border-color: #f43f5e !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.6) !important;
  transform: none !important;
}

/* Equal Sizing & Alignment for Modal Cancel Buttons */
.btn-cancel-theme,
.swal2-cancel,
.swal2-popup .swal2-cancel,
.swal-theme-popup-dark .swal2-cancel {
  background: transparent !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.9rem !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

.btn-cancel-theme:hover,
.swal2-cancel:hover,
.swal2-popup .swal2-cancel:hover,
.swal-theme-popup-dark .swal2-cancel:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15) !important;
  transform: none !important;
}

.swal2-deny,
.swal2-actions .swal2-deny {
  display: none !important;
}

/* ==========================================================================
   PROFESSIONAL FINTECH GLASS MODAL WINDOW DESIGNS (SUCCESS & ERROR)
   ========================================================================== */

.modal-fintech-glass .modal-content {
  background: rgba(12, 17, 28, 0.97) !important;
  backdrop-filter: blur(25px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
  border: 1px solid rgba(15, 189, 241, 0.45) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.95), 0 0 35px rgba(15, 189, 241, 0.25) !important;
  color: #ffffff !important;
  overflow: hidden;
}

.modal-fintech-glass.modal-success-theme .modal-content {
  border-color: rgba(16, 185, 129, 0.55) !important;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.95), 0 0 45px rgba(16, 185, 129, 0.35) !important;
}

.modal-fintech-glass.modal-error-theme .modal-content {
  border-color: rgba(244, 63, 94, 0.55) !important;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.95), 0 0 45px rgba(244, 63, 94, 0.35) !important;
}

.modal-fintech-glass .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 1.25rem 1.5rem !important;
}

.modal-fintech-glass .modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 1.15rem 1.5rem !important;
}

/* Modal Icon Badges */
.modal-icon-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1.25rem;
  font-size: 2.1rem;
}

.modal-icon-badge.modal-icon-success {
  background: rgba(16, 185, 129, 0.14);
  border: 2px solid #10b981;
  color: #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
  animation: modalGlowPulseSuccess 2s infinite alternate;
}

.modal-icon-badge.modal-icon-error {
  background: rgba(225, 29, 72, 0.14);
  border: 2px solid #f43f5e;
  color: #fb7185;
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.45);
  animation: modalGlowPulseError 2s infinite alternate;
}

.modal-icon-badge.modal-icon-gold {
  background: rgba(15, 189, 241, 0.14);
  border: 2px solid #f1c40f;
  color: #f1c40f;
  box-shadow: 0 0 30px rgba(15, 189, 241, 0.45);
  animation: modalGlowPulseGold 2s infinite alternate;
}

@keyframes modalGlowPulseSuccess {
  0% { transform: scale(0.96); box-shadow: 0 0 20px rgba(16, 185, 129, 0.35); }
  100% { transform: scale(1.06); box-shadow: 0 0 40px rgba(16, 185, 129, 0.65); }
}

@keyframes modalGlowPulseError {
  0% { transform: scale(0.96); box-shadow: 0 0 20px rgba(244, 63, 94, 0.35); }
  100% { transform: scale(1.06); box-shadow: 0 0 40px rgba(244, 63, 94, 0.65); }
}

@keyframes modalGlowPulseGold {
  0% { transform: scale(0.96); box-shadow: 0 0 20px rgba(15, 189, 241, 0.35); }
  100% { transform: scale(1.06); box-shadow: 0 0 40px rgba(15, 189, 241, 0.65); }
}

.modal-details-card {
  background: rgba(8, 12, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
}

.modal-error-card {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 12px;
  padding: 1rem;
}

/* Transparent Glass View Button (Matching Edit Button Look) */
.btn-view-news,
.btn-view-theme {
  background: rgba(15, 189, 241, 0.12) !important;
  color: #f1c40f !important;
  border: 1px solid rgba(15, 189, 241, 0.45) !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.85rem !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  box-shadow: 0 2px 8px rgba(15, 189, 241, 0.2) !important;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
  text-decoration: none !important;
}

.btn-view-news:hover,
.btn-view-theme:hover {
  background: rgba(15, 189, 241, 0.28) !important;
  color: #ffffff !important;
  border-color: #f1c40f !important;
  box-shadow: 0 0 16px rgba(15, 189, 241, 0.55) !important;
  transform: none !important;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 17, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1055;
  transition: opacity 0.3s ease;
}

body.sidebar-open .sidebar-backdrop {
  display: block;
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    top: 0 !important;
    height: 100vh !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1090 !important;
    background: rgba(10, 15, 26, 0.98) !important;
    border-right: 1px solid rgba(15, 189, 241, 0.4) !important;
    box-shadow: 10px 0 45px rgba(0, 0, 0, 0.95);
  }

  .admin-sidebar.show {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0 !important;
    margin-top: 64px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.sidebar-open .mobile-bottom-nav,
  .admin-sidebar.show ~ .mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

.modal-footer{
  justify-content: center;
}

/* Payout pending */

table.dataTable>tbody>tr.selected>* {
    box-shadow: inset 0 0 0 9999px rgb(116 253 13 / 10%) !important;
}

.btn-excel-glass {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.9rem !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
    transition: all var(--transition-fast) !important;
    text-decoration: none !important;
}

.btn-excel-glass:hover {
    background: rgba(16, 185, 129, 0.22) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.65) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px);
}

.btn-excel-glass:active {
    transform: translateY(0);
}

/* ================================
   GOLDEN RADIO BUTTON THEME
================================ */

.crypto-status-options .form-check {
    padding-left: 0;
    margin-right: 25px;
    display: inline-flex;
    align-items: center;
}

/* Hide default radio */
.crypto-status-options .gold-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom radio */
.crypto-status-options .gold-radio-label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    color: #d6d6d6;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    transition: all 0.25s ease;
}

/* Outer golden circle */
.crypto-status-options .gold-radio-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    border: 2px solid #0b60b8;
    border-radius: 50%;
    background: #111;
    box-shadow:
        inset 0 0 5px rgb(0 173 255 / 12%), 0 0 0 rgb(7 221 255 / 0%);
}

/* Inner gold dot */
.crypto-status-options .gold-radio-label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translateY(-50%) scale(0);
    border-radius: 50%;
    background: linear-gradient(135deg, #a0e9ff 0%, #2196f3 35%, #007fc9 100%);
    box-shadow:
        0 0 7px rgb(0 161 255 / 75%), 0 0 14px rgb(7 221 255 / 35%)
    transition: all 0.25s ease;
}

/* Checked state */
.crypto-status-options .gold-radio:checked + .gold-radio-label {
    color: #2196f3;
}

.crypto-status-options .gold-radio:checked + .gold-radio-label::before {
    border-color: #2196f3;
    background: rgb(7 209 255 / 8%);
    box-shadow:
        inset 0 0 6px rgb(0 231 255 / 15%), 0 0 8px rgb(7 186 255 / 35%);
}

.crypto-status-options .gold-radio:checked + .gold-radio-label::after {
    transform: translateY(-50%) scale(1);
}

/* Hover */
.crypto-status-options .gold-radio-label:hover {
    color: #2196f3;
}

.crypto-status-options .gold-radio-label:hover::before {
    border-color: #e5b900;
    box-shadow:
        0 0 7px rgba(255, 193, 7, 0.3);
}

/* Keyboard focus */
.crypto-status-options .gold-radio:focus-visible + .gold-radio-label::before {
    outline: 2px solid rgba(255, 215, 0, 0.55);
    outline-offset: 3px;
}

/* Error message */
.crypto-status-options .cstatus_error {
    margin-top: 8px;
}