/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Lato', sans-serif;
  background-color: #f9f9f9;
  min-height: 100vh;
  color: #000;
}

#appView {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  cursor: pointer;
  background: none;
  font-family: inherit;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 223px;
  min-height: 100vh;
  background: #fff;
  border-radius: 8px;
  padding: 29px 22px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
}

.sidebar-logo {
  text-align: center;
  padding: 4px 0 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-logo-img {
  width: 110px;
  height: auto;
  display: block;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #000;
  opacity: 0.5;
  transition: opacity 0.2s;
  position: relative;
}

.nav-item .material-icons-outlined {
  font-size: 16px;
}

.nav-item:hover {
  opacity: 0.8;
}

.nav-item.active {
  opacity: 1;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 52px;
  background: #000;
  box-shadow: 0px 4px 7px rgba(0, 0, 0, 0.8);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 223px;
  flex: 1;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
  background: #222121;
  border-radius: 10px;
  padding: 0 53px 20px;
  margin: 0 10px;
  position: relative;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 20px;
}

.header-page-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.header-page-title span {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}

.title-underline {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Currency Selector */
.currency-selector {
  background: #2c2c2c;
  border-radius: 20px;
  padding: 5px 12px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
}

.currency-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.currency-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
}

.currency-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.currency-icon.brl {
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.currency-icon.usdt {
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.currency-icon.active {
  border-color: #0fffd7;
  box-shadow: 0 0 8px rgba(15, 255, 215, 0.4);
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar img {
  width: 29px;
  height: 29px;
  border-radius: 100px;
  object-fit: cover;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #fff;
}

.user-email {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #fff;
  opacity: 0.5;
}

.user-dropdown {
  color: #fff;
  font-size: 16px;
  opacity: 0.5;
}

.user-dropdown-btn {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
}

.user-dropdown-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-btn .material-icons-outlined {
  font-size: 16px;
}

/* Wallet Info */
.header-wallet {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.wallet-label {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.5;
}

.wallet-icon {
  width: 14px;
  height: 14px;
}

.wallet-label span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #fff;
}

.wallet-currency-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10px;
  color: #0fffd7;
  background: rgba(15, 255, 215, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}

.balance-prefix {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  opacity: 0.6;
  margin-right: 4px;
}

.wallet-balance {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 4px;
}

.balance-value {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #fff;
}

.visibility-toggle {
  color: #fff;
  opacity: 0.5;
}

.visibility-toggle .material-icons-outlined {
  font-size: 24px;
}

.btn-fazer-recarga {
  background: #272626;
  border-radius: 23px;
  padding: 8px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #fff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.07);
  transition: background 0.2s;
}

.btn-fazer-recarga:hover {
  background: #3a3939;
}

/* ===== STATS CARDS ===== */
.stats-cards {
  display: flex;
  gap: 4px;
  margin-top: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 17px;
  width: 210px;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card-dark {
  background: #303030;
  color: #fff;
}

.stat-card-dark .stat-label,
.stat-card-dark .stat-value {
  color: #fff;
}

.stat-label {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 13px;
  opacity: 0.8;
  color: #272727;
}

.stat-value {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #272727;
}

/* ===== TABLE SECTION ===== */
.table-section {
  margin: 15px 10px;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
}

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

.table-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #000;
  letter-spacing: -0.5px;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Search Box */
.search-box {
  background: #353434;
  border-radius: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 27px;
  gap: 8px;
}

.search-filters {
  display: flex;
  gap: 2px;
}

.filter-pill {
  background: #383838;
  border-radius: 44px;
  padding: 2px 10px;
  font-family: 'Lato', sans-serif;
  font-size: 9px;
  color: #fff;
  opacity: 0.5;
  display: flex;
  align-items: center;
  gap: 2px;
}

.filter-pill .material-icons-outlined {
  font-size: 10px;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Lato', sans-serif;
  font-size: 9px;
  color: #fff;
  width: 200px;
}

.search-input::placeholder {
  color: #fff;
  opacity: 0.2;
}

.search-icon {
  color: #fff;
  font-size: 12px;
  opacity: 0.5;
}

.btn-filter {
  background: #353434;
  border-radius: 16px;
  padding: 6px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: #fff;
  opacity: 0.5;
  height: 27px;
}

.btn-action {
  background: #353434;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-action .material-icons-outlined {
  font-size: 14px;
  color: #fff;
  opacity: 0.7;
}

/* Data Table */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.data-table thead tr {
  background: #353434;
  border-radius: 6px;
}

.data-table thead th {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  text-align: left;
  padding: 8px 16px;
  white-space: nowrap;
}

.data-table thead th:first-child {
  border-radius: 6px 0 0 6px;
}

.data-table thead th:last-child {
  border-radius: 0 6px 6px 0;
}

.data-table tbody tr {
  background: #f9f9f9;
  border-radius: 4px;
}

.data-table tbody td {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #000;
  opacity: 0.7;
  padding: 10px 16px;
  white-space: nowrap;
}

.data-table tbody td:first-child {
  border-radius: 4px 0 0 4px;
}

.data-table tbody td:last-child {
  border-radius: 0 4px 4px 0;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 16px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.badge-pago {
  background: #17bfa3;
}

.badge-aguardando {
  background: #e8a200;
}

.badge-rejeitado {
  background: #e74c3c;
}

.badge-processando {
  background: #3498db;
}

.badge-recarga {
  background: rgba(0, 140, 107, 0.65);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  padding: 8px 0;
}

.pagination-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #636363;
  background: transparent;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.15s;
}

.pagination-btn:hover:not(.active):not(:disabled) {
  background: #f4f4f4;
  border-color: #ccc;
}

.pagination-btn.active {
  background: #222121;
  color: #fff;
  border-color: #222121;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn .material-icons-outlined {
  font-size: 18px;
}

.pagination-info {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #999;
  margin: 0 8px;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

/* ===== MODAL RECARGA ===== */
.modal-recarga {
  background: #fff;
  border-radius: 32px;
  width: 418px;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  height: 68px;
}

.modal-btn-back,
.modal-btn-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #000;
}

.modal-btn-back:hover,
.modal-btn-close:hover {
  background: #f4f4f4;
}

.modal-btn-back .material-icons-outlined,
.modal-btn-close .material-icons-outlined {
  font-size: 20px;
}

.modal-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #000;
  letter-spacing: -0.15px;
}

/* Modal Tabs */
.modal-tabs {
  padding: 0 24px;
}

.modal-tabs-bg {
  background: #f4f4f4;
  border-radius: 14px;
  display: flex;
  padding: 3px;
}

.modal-tab {
  flex: 1;
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #636363;
  text-align: center;
  border-radius: 10.5px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
}

.modal-tab.active {
  background: #fff;
  color: #000;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.04);
}

.modal-tab:hover:not(.active) {
  color: #000;
}

/* Modal Divider */
.modal-divider {
  height: 1px;
  background: #d1d5dc;
  opacity: 0.5;
  margin: 12px 24px 0;
}

/* Tab Content */
.tab-content {
  padding: 16px 24px;
}

.tab-content.hidden {
  display: none;
}

/* Selectors (Crypto) */
.modal-selectors {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.selector-group {
  flex: 1;
}

.selector-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #808080;
  margin-bottom: 8px;
}

.selector-dropdown {
  background: #f9fafb;
  border-radius: 100px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  height: 33px;
  position: relative;
}

.selector-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
  z-index: 20;
}

.selector-menu.open {
  display: block;
}

.selector-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 100px;
  cursor: pointer;
}

.selector-menu-item:hover {
  background: #f4f4f5;
}

.selector-dropdown:hover {
  background: #f0f1f3;
}

.selector-coin {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coin-icon {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  object-fit: cover;
}

.usdt-icon {
  background: #26a17b;
}

.pix-icon {
  background: #32bcad;
}

.coin-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #000;
  letter-spacing: 0.21px;
}

.selector-arrow {
  font-size: 16px;
  color: #999;
}

.selector-separator {
  color: #ccc;
  font-size: 18px;
  padding-bottom: 4px;
}

/* Input Card */
.modal-input-card {
  background: #f8f8f8;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.input-card-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #636363;
  margin-bottom: 8px;
  letter-spacing: 0.21px;
}

.input-card-value {
  display: flex;
  align-items: center;
  gap: 4px;
}

.input-currency {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #000;
  letter-spacing: -0.15px;
}

.input-amount {
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #000;
  letter-spacing: -0.15px;
  width: 100%;
}

.input-amount::placeholder {
  color: #808080;
}

/* Pix specific */
.pix-selector {
  margin-bottom: 16px;
}

.pix-selector .selector-dropdown {
  width: 110px;
}

.pix-input-card {
  padding: 20px;
}

.pix-valor-reais {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.pix-approx {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #959595;
}

.pix-converted {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #000;
  letter-spacing: 0.21px;
}

/* Fees */
.modal-fees {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid #eff0f6;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fee-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #959595;
  letter-spacing: -0.15px;
}

.fee-value {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #000;
  letter-spacing: -0.15px;
}

/* Submit Button */
.modal-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 48px);
  margin: 8px 24px 24px;
  height: 47px;
  background: #1c1c1c;
  border-radius: 100px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.31px;
  position: relative;
  box-shadow: 0px 10px 15px 0px #e5e7eb, 0px 4px 6px 0px #e5e7eb;
  transition: background 0.2s;
}

.modal-submit-btn:hover {
  background: #333;
}

.submit-icon {
  position: absolute;
  right: 7px;
  width: 36px;
  height: 36px;
  background: #0fffd7;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-icon .material-icons-outlined {
  font-size: 20px;
  color: #000;
}

/* ===== MODAL PIX CONFIRMAÇÃO ===== */
.modal-pix-confirm {
  background: #fff;
  border-radius: 24px;
  width: 715px;
  box-shadow: 0px 20px 25px rgba(0, 0, 0, 0.1), 0px 8px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #f6f6f6;
  padding: 24px 36px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.pix-confirm-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 33px;
  height: 33px;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #636363;
  cursor: pointer;
  background: none;
}

.pix-confirm-close:hover {
  background: #f4f4f4;
}

.pix-confirm-content {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

/* Lado Esquerdo */
.pix-confirm-left {
  flex: 1;
}

.pix-confirm-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  margin-bottom: 16px;
}

.pix-confirm-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.pix-confirm-amount {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.pix-confirm-currency {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #000;
}

.pix-confirm-value {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #000;
}

.pix-confirm-reais {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pix-confirm-reais-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #959595;
}

.pix-confirm-reais-approx {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #959595;
}

.pix-confirm-reais-value {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

.pix-confirm-fees {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pix-confirm-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pix-confirm-fee-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #959595;
}

.pix-confirm-fee-value {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #000;
}

/* Lado Direito */
.pix-confirm-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
}

.pix-confirm-right-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  margin-bottom: 4px;
}

.pix-confirm-right-amount {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #000;
  margin-bottom: 8px;
}

.pix-confirm-right-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #636363;
  text-align: center;
  margin-bottom: 12px;
}

.pix-confirm-qr {
  width: 147px;
  height: 147px;
  border: 1px solid #eff0f6;
  border-radius: 10px;
  overflow: hidden;
}

.pix-confirm-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Código Pix */
.pix-confirm-code-row {
  display: flex;
  align-items: center;
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  overflow: hidden;
  height: 40px;
}

.pix-confirm-code-field {
  flex: 1;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #636363;
  display: flex;
  align-items: center;
  height: 100%;
}

.pix-confirm-copy-btn {
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  padding: 0 20px;
  height: 31px;
  margin-right: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #636363;
  cursor: pointer;
  background: none;
  white-space: nowrap;
}

.pix-confirm-copy-btn:hover {
  background: #f4f4f4;
}

/* Crypto Confirm Selectors */
.crypto-confirm-selectors {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.crypto-confirm-selector {
  flex: 1;
}

.crypto-confirm-selector-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #808080;
  margin-bottom: 10px;
}

.crypto-confirm-coin {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crypto-confirm-coin-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

.crypto-confirm-arrow {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #999;
  padding-bottom: 4px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* ===== PIX CUSTOMER FIELDS ===== */
.pix-customer-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pix-field-row {
  display: flex;
  gap: 10px;
}

.pix-field-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pix-field-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #888;
}

.pix-field-input {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

.pix-field-input:focus {
  border-color: #0fffd7;
}

.pix-field-input::placeholder {
  color: #bbb;
}

/* ===== PIX ERROR MESSAGE ===== */
.pix-error-msg {
  background: rgba(255, 59, 59, 0.12);
  border: 1px solid rgba(255, 59, 59, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #ff3b3b;
  text-align: center;
}

/* ===== CONVERSION CARD ===== */
.conversion-card {
  padding: 0 4px;
}

.conversion-section {
  margin-bottom: 4px;
}

.conversion-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.conversion-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.conversion-input-field {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.conversion-input-field .conversion-currency-symbol {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #222;
}

.conversion-amount-input {
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #222;
  width: 100%;
}

.conversion-amount-input::placeholder {
  color: #bbb;
  font-weight: 400;
}

.conversion-result-field {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.conversion-result-field .conversion-currency-symbol {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #222;
}

.conversion-result-value {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #222;
}

.conversion-currency-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.conversion-currency-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.conversion-arrow-down {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: #999;
}

.conversion-arrow-down .material-icons-outlined {
  font-size: 22px;
}

.conversion-rate {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #888;
}

.conversion-rate .material-icons-outlined {
  color: #bbb;
}

.conversion-fees {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: 4px;
}

.conversion-fees .fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.conversion-fees .fee-label {
  color: #888;
}

.conversion-fees .fee-value {
  color: #222;
  font-weight: 500;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loading-overlay.active {
  display: flex;
}

/* ===== SUCCESS MODAL ===== */
.success-card {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.25);
  width: 384px;
  padding: 44px 32px 32px;
  text-align: center;
  position: relative;
  animation: successSlideIn 0.4s ease;
}

@keyframes successSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-indicator {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 47px;
  height: 47px;
  animation: successBounce 0.6s ease 0.2s;
}

@keyframes successBounce {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.15); }
}

.success-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 32px;
}

.success-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #636363;
  line-height: 24px;
  letter-spacing: -0.2px;
  margin: 0 0 24px;
}

.success-close-btn {
  display: block;
  width: 100%;
  height: 46px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: -0.3px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s;
}

.success-close-btn:hover {
  opacity: 0.85;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #0fffd7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

/* ===== PIX CONFIRMATION EXTRAS ===== */
.pix-confirm-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pix-status-label,
.pix-id-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.pix-status-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #0fffd7;
  background: rgba(15, 255, 215, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

.pix-confirm-id {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.pix-id-value {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-all;
  max-width: 180px;
  text-align: right;
}

/* QR code container */
.pix-confirm-qr canvas,
.pix-confirm-qr img {
  border-radius: 8px;
  max-width: 200px;
  max-height: 200px;
}

/* ===== DATE FILTER DROPDOWN ===== */
.filter-wrapper {
  position: relative;
}

.filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  width: 328px;
  background: #2c2c2c;
  border-radius: 10px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.48), 0 0 4px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.filter-dropdown.active {
  display: block;
}

/* Quick filter pills bar */
.filter-pills-bar {
  display: flex;
  gap: 2px;
  padding: 8px;
  background: #353535;
  border-radius: 50px;
  margin: 12px;
}

.filter-pill-option {
  flex: 1;
  height: 25px;
  border: none;
  background: transparent;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  padding: 0 4px;
}

.filter-pill-option:hover {
  color: rgba(255, 255, 255, 0.8);
}

.filter-pill-option.active {
  background: #222121;
  color: #fff;
}

/* Calendar Container */
.calendar-container {
  padding: 0 16px 8px;
}

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

.calendar-month-label {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #fff;
  font-weight: 400;
}

.calendar-nav {
  display: flex;
  gap: 4px;
}

.calendar-nav-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.calendar-nav-btn .material-icons-outlined {
  font-size: 20px;
}

/* Weekday headers */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.calendar-weekdays span {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #eeecf1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 0;
}

/* Calendar days grid */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.22px;
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.1);
}

.calendar-day.other-month {
  color: rgba(255, 255, 255, 0.3);
}

.calendar-day.today {
  background: rgba(15, 255, 215, 0.2);
  color: #0fffd7;
}

.calendar-day.selected {
  background: #0fffd7;
  color: #000;
  font-weight: 600;
}

/* Filter apply button */
.filter-dropdown-actions {
  padding: 8px 16px 12px;
  display: flex;
  justify-content: flex-end;
}

.filter-apply-btn {
  background: #0fffd7;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 6px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-apply-btn:hover {
  background: #00e6be;
}

/* ===== MODAL CHAVE PIX (saque) ===== */
.pixkey-summary {
  margin: 4px 24px 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pixkey-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.pixkey-summary-label {
  color: #6b7280;
  font-weight: 500;
}

.pixkey-summary-value {
  color: #111;
  font-weight: 600;
}

.pixkey-summary-divider {
  height: 1px;
  background: #e5e7eb;
}

.pixkey-summary-total .pixkey-summary-label {
  color: #111;
  font-weight: 600;
}

.pixkey-summary-total .pixkey-summary-value {
  color: #0a8a66;
  font-size: 16px;
  font-weight: 700;
}

.pixkey-field-group {
  margin: 16px 24px 0;
}

.pixkey-field-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 8px;
}

.pixkey-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pixkey-chip {
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pixkey-chip:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.pixkey-chip.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.pixkey-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pixkey-input-wrap:focus-within {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.pixkey-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  height: 100%;
}

.pixkey-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.pixkey-hint {
  display: block;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #9ca3af;
}

#modalPixKey .pix-error-msg {
  margin: 12px 24px 0;
}

#modalPixKey .modal-submit-btn {
  margin-top: 20px;
}

/* ===== MODAL RETIRADA ===== */
.withdraw-amount-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 24px 0;
  padding: 8px 0 4px;
}

.withdraw-amount-prefix {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #111;
}

.withdraw-amount-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #111;
  text-align: left;
  width: 140px;
  padding: 0;
}

.withdraw-quick-amounts {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 14px 24px 0;
  flex-wrap: wrap;
}

.withdraw-quick-btn {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.withdraw-quick-btn:hover {
  background: #f4f4f5;
}

.withdraw-quick-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.withdraw-currency-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 24px 0;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  background: #fafafa;
}

.withdraw-currency-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.withdraw-currency-info {
  display: flex;
  flex-direction: column;
}

.withdraw-currency-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.withdraw-currency-rate {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #6b7280;
}

.withdraw-field {
  margin: 14px 24px 0;
}

.withdraw-note-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #111;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.withdraw-note-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.withdraw-note-input::placeholder {
  color: #9ca3af;
}

.withdraw-summary {
  margin: 14px 24px 0;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

#modalWithdraw .pix-error-msg {
  margin: 10px 24px 0;
}

#modalWithdraw .modal-submit-btn,
#modalWithdrawDest .modal-submit-btn {
  margin-top: 18px;
}

.sync-status-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  margin-left: 4px;
  border-radius: 4px;
  color: #6b7280;
  vertical-align: middle;
}

.sync-status-btn:hover {
  background: #f4f4f5;
  color: #111;
}

/* ===== WEBHOOKS PAGE ===== */
.webhook-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 760px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.04);
}

.webhook-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.webhook-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  margin-top: 8px;
  flex-shrink: 0;
}

.webhook-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #111;
  margin: 0 0 4px;
}

.webhook-card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.webhook-url-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 8px;
}

.webhook-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
}

.webhook-url-input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #111;
  outline: none;
  cursor: text;
}

.webhook-url-input:focus {
  border-color: #111;
  background: #fff;
}

.webhook-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.webhook-copy-btn:hover {
  background: #333;
}

.webhook-copy-btn.copied {
  background: #10b981;
}

.webhook-instructions {
  background: #fafafa;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.webhook-instructions-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #111;
  margin: 0 0 12px;
}

.webhook-steps {
  margin: 0;
  padding-left: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
}

.webhook-steps li {
  margin-bottom: 4px;
}

.webhook-steps a {
  color: #111;
  text-decoration: underline;
  font-weight: 500;
}

.webhook-notice {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #1e3a8a;
  line-height: 1.55;
}

.webhook-notice .material-icons-outlined {
  font-size: 18px;
  color: #3b82f6;
  flex-shrink: 0;
}

.webhook-notice-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.webhook-notice-warn .material-icons-outlined {
  color: #f59e0b;
}

/* Modal IP Error */
.ip-error-card {
  background: #fff;
  border-radius: 24px;
  width: min(92vw, 520px);
  padding: 36px 36px 28px;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
  text-align: center;
}

.ip-error-indicator {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ip-error-indicator .material-icons-outlined {
  font-size: 32px;
  color: #dc2626;
}

.ip-error-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #111;
  margin: 0 0 8px;
}

.ip-error-description {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 20px;
  text-align: left;
}

.ip-error-card .webhook-url-label {
  text-align: left;
}

.ip-error-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.ip-error-link-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 100px;
  background: #111;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s;
}

.ip-error-link-btn:hover {
  background: #333;
}

.ip-error-close-btn {
  padding: 0 24px;
  height: 46px;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.15s;
}

.ip-error-close-btn:hover {
  background: #f9fafb;
}

/* Evita flash da tela de login: quando o script pré-render detecta sessão válida,
   invertemos a visibilidade inicial antes do paint.
   A lógica async depois confirma e usa showAppView/showLoginView se precisar. */
html[data-auth-preloaded="1"] #loginView { display: none !important; }
html[data-auth-preloaded="1"] #appView { display: flex !important; }

/* ===== LOGIN ===== */
.login-view {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 50;
  background: #fff;
}

.login-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 8vw;
  position: relative;
  min-width: 0;
}

.login-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}

.login-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #111;
  margin: 0 0 8px;
  line-height: 1.25;
}

.login-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 28px;
  line-height: 1.55;
}

.login-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 6px;
}

.login-input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #111;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.login-input::placeholder {
  color: #9ca3af;
}

.login-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  margin-bottom: 14px;
}

.login-submit-btn {
  height: 46px;
  border: none;
  border-radius: 100px;
  background: #111;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s, opacity 0.15s;
}

.login-submit-btn:hover {
  background: #333;
}

.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-footer {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #9ca3af;
  letter-spacing: 0.5px;
}

.login-right {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo {
  width: 220px;
  height: auto;
  filter: invert(1);
}

@media (max-width: 768px) {
  .login-view { grid-template-columns: 1fr; }
  .login-right { display: none; }
  .login-left { padding: 48px 24px; }
}

/* ===== CARTEIRAS SALVAS (USDT) ===== */
.saved-wallets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.saved-wallets-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.saved-wallets-new-btn:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.saved-wallets-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 232px; /* ~4 itens visíveis; sugere scroll quando há mais */
  overflow-y: auto;
  padding-right: 4px; /* espaço pra scrollbar não colar nos itens */
  /* mascara fade no rodapé pra indicar que há mais conteúdo */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent);
}

/* Quando a lista NÃO precisa rolar, remove a máscara — caso contrário o último item
   fica com fade aplicado mesmo sem scroll. JS adiciona .is-scrollable quando >max-height. */
.saved-wallets-list:not(.is-scrollable) {
  -webkit-mask-image: none;
          mask-image: none;
}

.saved-wallets-list::-webkit-scrollbar {
  width: 6px;
}
.saved-wallets-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}
.saved-wallets-list::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.saved-wallet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.saved-wallet-item:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.saved-wallet-item.active {
  border-color: #111;
  background: #fafafa;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.saved-wallet-network {
  width: 28px;
  height: 28px;
  border-radius: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.saved-wallet-network img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-wallet-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.saved-wallet-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-wallet-address {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-wallet-delete {
  width: 28px;
  height: 28px;
  border-radius: 100%;
  border: none;
  background: transparent;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.saved-wallet-delete:hover {
  background: #fef2f2;
  color: #dc2626;
}

.saved-wallet-delete .material-icons-outlined {
  font-size: 18px;
}

.saved-wallets-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.saved-wallets-divider::before,
.saved-wallets-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.save-wallet-block {
  margin: 8px 24px 0;
}

.save-wallet-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.save-wallet-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #111;
  cursor: pointer;
}

.save-wallet-label-input {
  width: 100%;
  height: 40px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #111;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.save-wallet-label-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

/* ===== QR CODE SCANNER ===== */
.qr-scan-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  color: #111;
}

.qr-scan-btn:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.qr-scan-btn .material-icons-outlined {
  font-size: 20px;
}

.qr-scanner-card {
  background: #111;
  color: #fff;
  border-radius: 20px;
  width: min(92vw, 420px);
  padding: 18px 18px 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: modalSlideIn 0.3s ease;
}

.qr-scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qr-scanner-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.qr-scanner-close {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qr-scanner-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.qr-scanner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.qr-scanner-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-scanner-frame {
  position: absolute;
  inset: 14%;
  pointer-events: none;
}

.qr-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #0fffd7;
  border-style: solid;
  border-width: 0;
}

.qr-corner-tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 6px; }
.qr-corner-tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }
.qr-corner-bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 6px; }
.qr-corner-br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; }

.qr-scanner-laser {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0fffd7 50%, transparent);
  animation: qrLaser 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(15, 255, 215, 0.6);
}

@keyframes qrLaser {
  0%   { top: 8%; }
  50%  { top: 88%; }
  100% { top: 8%; }
}

.qr-scanner-hint {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #b5b5b5;
  text-align: center;
  margin: 14px 0 0;
}

.qr-scanner-error {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-align: center;
}

/* Ícone de erro ao lado do saldo (aparece quando XGate falha) */
.balance-error-icon {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  border: none;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  animation: pulseBalError 2s ease-in-out infinite;
}
.balance-error-icon:hover { background: rgba(239, 68, 68, 0.25); color: #fee2e2; }
.balance-error-icon .material-icons-outlined { font-size: 18px; }
@keyframes pulseBalError {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   HAMBURGER + SIDEBAR BACKDROP (mobile) — sempre ocultos no desktop
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111;
  margin-right: 12px;
}

.mobile-menu-btn:hover { background: #f4f4f5; }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 45;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   RESPONSIVIDADE — tablet (≤1024px) e mobile (≤768px / ≤480px)
   ========================================================================== */

/* Tablet: reduz sidebar, ajusta padding */
@media (max-width: 1024px) {
  .sidebar { width: 200px; padding: 20px 14px; }
  .main-content { margin-left: 200px; }
  .modal-pix-confirm { width: min(92vw, 715px); }
}

/* Mobile: sidebar vira drawer */
@media (max-width: 768px) {
  /* Main content ocupa a tela inteira; sidebar vira drawer off-screen */
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 50;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .main-content { margin-left: 0; width: 100%; }

  .mobile-menu-btn { display: inline-flex; }

  /* Header: reorganiza em linhas */
  .header { padding: 14px; }
  .header-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-page-title {
    order: 1;
    flex: 1;
    font-size: 18px;
  }
  .header-page-title span { font-size: 18px; }
  .header-right {
    order: 2;
    gap: 8px;
  }
  .currency-selector { order: 3; }

  /* Wallet section stackado */
  .header-wallet {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    margin-top: 14px;
  }
  .wallet-balance { font-size: 22px; }
  .balance-value { font-size: 28px !important; }
  .btn-fazer-recarga { width: 100%; justify-content: center; }

  /* User profile menor */
  .user-info { display: none; }
  .user-avatar img { width: 28px; height: 28px; }

  /* Stats cards: empilhar em 2 colunas, ou 1 coluna <480 */
  .stats-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-card {
    padding: 14px;
    min-width: 0;
  }
  .stat-value { font-size: 16px !important; }
  .stat-label { font-size: 11px; }

  /* Tabelas: transforma cada linha em um card empilhado (sem scroll horizontal)
     Cada <td> ganha um rótulo à esquerda vindo do data-label="..." */
  .table-wrapper {
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
  .data-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  .data-table thead { display: none; }
  .data-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }
  .data-table tbody tr + tr { margin-top: 10px; }
  .data-table tbody tr:hover { background: #fafafa; }
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #111;
    text-align: right;
    min-width: 0;
  }
  .data-table td + td { border-top: 1px solid #f1f2f4; }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6b7280;
    flex-shrink: 0;
    text-align: left;
  }
  /* Valor na direita: quebra em múltiplas linhas se for muito longo
     (ex: chave PIX / endereço wallet / nome comprido) */
  .data-table td > *:last-child { min-width: 0; }
  .data-table td {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  /* Mensagem de "Nenhuma transação encontrada" ainda em célula única */
  .data-table tbody tr td[colspan] {
    display: block;
    text-align: center;
    color: #999;
    padding: 20px 0;
  }
  .data-table tbody tr td[colspan]::before { content: none; }

  /* Table header (título + busca + filtros) vira coluna */
  .table-section { padding: 14px; }
  .table-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .table-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .search-box {
    width: 100%;
    order: 1;
  }
  .filter-wrapper { order: 2; }

  /* Filter dropdown fica embaixo da tela */
  .filter-dropdown {
    position: fixed;
    inset: auto 8px 8px 8px;
    width: auto;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 30;
  }

  /* TODOS os modais: largura responsiva, centralizados, com rolagem interna se precisarem */
  .modal-overlay {
    padding: 20px 8px;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Quando o conteúdo é menor que a viewport, fica centralizado.
     Quando é maior, margin auto colapsa pra 0 e o overlay faz scroll normalmente. */
  .modal-overlay > * { margin: auto 0; }

  .modal-recarga {
    width: min(94vw, 418px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
  .modal-pix-confirm {
    width: min(94vw, 715px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 20px 18px;
  }

  /* Modal PIX confirm: lado direito (QR) quebra linha embaixo no mobile */
  .pix-confirm-content {
    flex-direction: column;
    gap: 20px;
  }
  .pix-confirm-right {
    width: 100%;
    align-items: center;
  }

  /* Modal sucesso */
  .success-card {
    width: min(94vw, 384px);
    padding: 32px 24px;
  }

  /* Modal webhook page */
  .webhook-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .webhook-card-header { flex-wrap: wrap; }
  .webhook-url-row {
    flex-direction: column;
    align-items: stretch;
  }
  .webhook-copy-btn { width: 100%; justify-content: center; }
  .webhook-url-input { font-size: 11px; padding: 0 12px; height: 44px; }
  .webhook-instructions { padding: 16px; }

  /* Modal IP error */
  .ip-error-card {
    width: min(94vw, 520px);
    padding: 24px 20px 20px;
  }
  .ip-error-actions { flex-direction: column; }
  .ip-error-close-btn { padding: 0 20px; }

  /* Modal de retirada */
  .withdraw-amount-display { margin: 12px 16px 0; }
  .withdraw-amount-input { width: 120px; font-size: 28px; }
  .withdraw-amount-prefix { font-size: 22px; }
  .withdraw-quick-amounts { margin: 10px 16px 0; }
  .withdraw-currency-card { margin: 12px 16px 0; padding: 8px 12px; }
  .withdraw-field { margin: 10px 16px 0; }
  .withdraw-summary { margin: 12px 16px 0; }
  #modalWithdraw .pix-error-msg { margin: 10px 16px 0; }
  #modalWithdraw .modal-submit-btn,
  #modalWithdrawDest .modal-submit-btn { margin: 14px 16px 16px; width: calc(100% - 32px); }

  /* PIX key modal */
  .pixkey-summary { margin: 4px 16px 0; padding: 14px; }
  .pixkey-field-group { margin: 12px 16px 0; }
  .save-wallet-block { margin: 8px 16px 0; }

  /* Mobile: modal já é scrollável — evita scroll duplo na lista de carteiras salvas */
  .saved-wallets-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    -webkit-mask-image: none;
            mask-image: none;
  }

  /* Submit btn genérico dentro de modal-recarga */
  .modal-submit-btn { width: calc(100% - 32px); margin: 8px 16px 16px; }

  /* Paginação encolhe em mobile */
  .pagination { flex-wrap: wrap; gap: 4px; padding: 10px 0; }
  .pagination-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .pagination-info { font-size: 11px; }

  /* Tabs do modal de transação */
  .modal-tabs-bg { flex-wrap: wrap; }
  .modal-tab { padding: 8px 10px; font-size: 12px; }

  /* Selector dropdowns no modal crypto */
  .modal-selectors { padding: 0 16px; gap: 10px; }

  /* QR scanner modal */
  .qr-scanner-card { padding: 14px 14px 18px; }

  /* Calendário do filtro */
  .calendar-days { width: auto; }
  .calendar-container { padding: 10px; }
}

/* Phones pequenos (≤480px) */
@media (max-width: 480px) {
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .stats-cards .stat-card:nth-child(3) { grid-column: 1 / -1; }

  .header-page-title span { font-size: 16px; }
  .balance-value { font-size: 24px !important; }

  .data-table td { font-size: 12px; }
  .data-table td::before { font-size: 10px; }

  .modal-title { font-size: 18px; }
  .pix-confirm-title { font-size: 14px; }
  .pix-confirm-currency, .pix-confirm-value { font-size: 20px; }
  .pix-confirm-right-amount { font-size: 20px; }
  .pix-confirm-right-title { font-size: 14px; }
  .pix-confirm-qr { width: 130px; height: 130px; }

  .login-title { font-size: 20px; }
  .login-subtitle { font-size: 12px; }

  .withdraw-quick-btn { padding: 6px 12px; font-size: 11px; }
}

/* iOS: evita zoom automático em inputs quando foca (<16px dispara zoom) */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px;
  }
}
