/* ============ RECENT TRANSACTIONS SECTION ============ */
.recent-transactions {
  position: relative;
  padding: 120px 0;
  background: var(--dark-bg);
  overflow: hidden;
}

/* Background Effects */
.transactions-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.trans-orb-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 214, 143, 0.08), transparent);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 10s ease-in-out infinite;
}

.trans-orb-2 {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.1), transparent);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite reverse;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(124, 92, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 252, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.transactions-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.header-left {
  flex: 1;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 1.5s ease-in-out infinite;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
}

.header-right {
  flex-shrink: 0;
}

.transaction-stats {
  display: flex;
  align-items: center;
  gap: 25px;
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.15);
  border-radius: 16px;
  padding: 20px 30px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(124, 92, 252, 0.2), transparent);
}

/* ============ TRANSACTION TICKER ============ */
.transaction-ticker {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 40px;
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track-wrapper {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-track {
  display: flex;
  gap: 40px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ticker-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.ticker-icon.deposit {
  background: rgba(0, 214, 143, 0.15);
  color: var(--success);
}

.ticker-icon.withdrawal {
  background: rgba(255, 61, 113, 0.15);
  color: var(--danger);
}

.ticker-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-user {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.ticker-action {
  font-size: 12px;
  color: var(--text-muted);
}

.ticker-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.ticker-amount.deposit-amount {
  color: var(--success);
}

.ticker-amount.withdraw-amount {
  color: var(--danger);
}

.ticker-coin {
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.ticker-time {
  font-size: 11px;
  color: var(--text-muted);
}

.ticker-track:hover {
  animation-play-state: paused;
}

/* ============ TABLES GRID ============ */
.tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Table Card */
.table-card {
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.table-card:hover {
  border-color: rgba(124, 92, 252, 0.3);
  box-shadow: 0 20px 40px rgba(124, 92, 252, 0.1);
}

.deposits-card {
  border-top: 3px solid var(--success);
}

.withdrawals-card {
  border-top: 3px solid var(--danger);
}

/* Table Header */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px;
  border-bottom: 1px solid rgba(124, 92, 252, 0.1);
}

.table-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.table-icon {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.deposit-icon {
  background: rgba(0, 214, 143, 0.15);
  color: var(--success);
}

.withdraw-icon {
  background: rgba(255, 61, 113, 0.15);
  color: var(--danger);
}

.table-title-group h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.table-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot-small {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 1.5s ease-in-out infinite;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 6px;
  background: rgba(26, 26, 62, 0.5);
  border-radius: 10px;
  padding: 4px;
}

.filter-btn {
  padding: 6px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(124, 92, 252, 0.1);
}

.filter-btn.active {
  background: rgba(124, 92, 252, 0.2);
  color: var(--primary);
}

/* Table Wrapper */
.table-wrapper {
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
}

.table-wrapper::-webkit-scrollbar {
  width: 4px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 252, 0.2);
  border-radius: 2px;
}

/* Transaction Table */
.transaction-table {
  width: 100%;
  border-collapse: collapse;
}

.transaction-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.transaction-table thead th {
  background: var(--dark-card);
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 2px solid rgba(124, 92, 252, 0.1);
}

.transaction-table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(124, 92, 252, 0.05);
}

.transaction-table tbody tr:hover {
  background: rgba(124, 92, 252, 0.05);
}

.transaction-table tbody tr.new-row {
  animation: rowHighlight 2s ease;
}

.transaction-table tbody td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* User Column */
.col-user {
  min-width: 140px;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.avatar-1 {
  background: linear-gradient(135deg, #7C5CFC, #6344E0);
}

.avatar-2 {
  background: linear-gradient(135deg, #00D4FF, #0099CC);
}

.avatar-3 {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
}

.avatar-4 {
  background: linear-gradient(135deg, #00D68F, #00A86B);
}

.avatar-5 {
  background: linear-gradient(135deg, #FF6B6B, #FF3D71);
}

.avatar-6 {
  background: linear-gradient(135deg, #FDCB6E, #F39C12);
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* Amount Column */
.col-amount {
  min-width: 120px;
}

.amount-cell {
  font-weight: 700;
  color: var(--text-primary);
}

.deposit-amount {
  color: var(--success);
}

.withdraw-amount {
  color: var(--danger);
}

/* Coin Column */
.col-coin {
  min-width: 80px;
}

.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.2);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.coin-badge.btc {
  background: rgba(247, 147, 26, 0.1);
  border-color: rgba(247, 147, 26, 0.3);
  color: #F7931A;
}

.coin-badge.eth {
  background: rgba(98, 126, 234, 0.1);
  border-color: rgba(98, 126, 234, 0.3);
  color: #627EEA;
}

.coin-badge.usdt {
  background: rgba(0, 214, 143, 0.1);
  border-color: rgba(0, 214, 143, 0.3);
  color: #00D68F;
}

.coin-badge i {
  font-size: 10px;
}

/* Method Column */
.col-method {
  min-width: 100px;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-secondary);
}

.method-badge i {
  font-size: 14px;
  color: var(--text-muted);
}

/* Time Column */
.col-time {
  min-width: 80px;
}

.time-cell {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Status Column */
.col-status {
  min-width: 90px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.completed {
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.3);
  color: var(--success);
}

.status-badge.pending {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--accent);
}

.status-badge.failed {
  background: rgba(255, 61, 113, 0.1);
  border: 1px solid rgba(255, 61, 113, 0.3);
  color: var(--danger);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.completed {
  background: var(--success);
}

.status-dot.pending {
  background: var(--accent);
  animation: livePulse 1.5s ease-in-out infinite;
}

.status-dot.failed {
  background: var(--danger);
}

/* Table Footer */
.table-footer {
  padding: 15px 30px;
  border-top: 1px solid rgba(124, 92, 252, 0.1);
  text-align: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.view-all-btn:hover {
  background: rgba(124, 92, 252, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.view-all-btn i {
  transition: transform 0.3s ease;
}

.view-all-btn:hover i {
  transform: translateX(3px);
}

/* ============ TRANSACTION POPUP ============ */
.transaction-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(100px);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.transaction-popup.show {
  opacity: 1;
  transform: translateX(0);
}

.popup-content {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  min-width: 300px;
}

.popup-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 214, 143, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--success);
  flex-shrink: 0;
}

.popup-icon.withdrawal-icon {
  background: rgba(255, 61, 113, 0.15);
  color: var(--danger);
}

.popup-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popup-user {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.popup-action {
  font-size: 12px;
  color: var(--text-muted);
}

.popup-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--success);
}

.popup-amount.withdrawal {
  color: var(--danger);
}

/* ============ ANIMATIONS ============ */
@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.7);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 8px rgba(0, 214, 143, 0);
  }
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes rowHighlight {
  0% {
    background: rgba(0, 214, 143, 0.15);
  }

  100% {
    background: transparent;
  }
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .tables-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .recent-transactions {
    padding: 80px 0;
  }

  .transactions-container {
    padding: 0 30px;
  }

  .section-header {
    flex-direction: column;
  }

  .section-title {
    font-size: 32px;
  }

  .transaction-stats {
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 1;
  }

  .table-header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .filter-buttons {
    width: 100%;
    justify-content: center;
  }

  .transaction-table thead th,
  .transaction-table tbody td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .transaction-popup {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }

  .popup-content {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .transactions-container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .ticker-item {
    gap: 8px;
  }

  .transaction-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stat-item {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .coin-badge,
  .method-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}