/* Bank Page Specific Styles */

.bank-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.bank-card {
  background: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid #3a3a3a;
  background: #1f1f1f;
}

.tab-button {
  flex: 1;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-button:hover {
  color: #ccc;
  background: rgba(102, 126, 234, 0.1);
}

.tab-button.active {
  color: #667eea;
  background: #2a2a2a;
  border-bottom-color: #667eea;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 40px;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

.tab-header {
  margin-bottom: 30px;
}

.tab-header h2 {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.tab-subtitle {
  color: #888;
  font-size: 0.95rem;
}

/* Conversion Info */
.conversion-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.conversion-label {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 600;
}

.conversion-rate {
  color: #667eea;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

/* Form Groups */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.1rem;
  border: 2px solid #444;
  border-radius: 8px;
  background: #1a1a1a;
  color: #ffffff;
  transition: all 0.3s ease;
}

.input-field:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field::placeholder {
  color: #666;
}

.conversion-display {
  margin-top: 8px;
  color: #888;
  font-size: 0.95rem;
}

.conversion-display span {
  color: #667eea;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

/* Network Selector */
.network-selector {
  margin-bottom: 25px;
}

.network-selector label {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.select-field {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid #444;
  border-radius: 8px;
  background: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-field:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-field option {
  background: #1a1a1a;
  color: #ffffff;
}

/* Address Section */
.address-section {
  margin-bottom: 30px;
}

.address-section label {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.address-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #1a1a1a;
  border: 2px solid #444;
  border-radius: 8px;
}

.address-display code {
  flex: 1;
  color: #667eea;
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

.btn-copy {
  padding: 8px 16px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #5568d3;
  transform: translateY(-1px);
}

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

/* Action Toggle (for USDC tab) */
.action-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  padding: 6px;
  background: #1a1a1a;
  border-radius: 10px;
}

.toggle-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  color: #ccc;
}

.toggle-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Action Sections */
.action-section {
  display: none;
}

.action-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Available Balance */
.available-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.available-balance span {
  color: #ccc;
  font-size: 0.9rem;
}

.available-balance strong {
  color: #22c55e;
  font-size: 1.2rem;
  font-family: 'Courier New', monospace;
}

/* Max Button */
.btn-max {
  position: absolute;
  right: 10px;
  top: 38px;
  padding: 8px 16px;
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  border: 1px solid #667eea;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-max:hover {
  background: #667eea;
  color: white;
}

/* Fee Info */
.fee-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.fee-info span:last-child {
  color: #ffa726;
  font-weight: 600;
}

/* Primary Button */
.btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

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

.btn-primary:disabled {
  background: #444;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .tab-content {
    padding: 25px 20px;
  }

  .tab-header h2 {
    font-size: 1.5rem;
  }

  .tab-button {
    padding: 14px 12px;
    font-size: 0.9rem;
  }

  .address-display {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy {
    width: 100%;
  }

  .history-table-container {
    overflow-x: auto;
  }

  .history-table th,
  .history-table td {
    padding: 12px 8px;
    font-size: 0.85rem;
  }

  .history-table th:first-child,
  .history-table td:first-child {
    min-width: 80px;
  }
}

/* History Table Styles */
.history-table-container {
  margin-top: 30px;
  overflow-x: auto;
  border-radius: 8px;
  background: #1a1a1a;
  border: 2px solid #444;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.history-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.history-table th {
  padding: 16px 20px;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.history-table tbody tr {
  border-bottom: 1px solid #333;
  transition: background 0.2s ease;
}

.history-table tbody tr:hover {
  background: #2a2a2a;
}

.history-table tbody tr:last-child {
  border-bottom: none;
}

.history-table td {
  padding: 18px 20px;
  color: #ccc;
  vertical-align: middle;
}

.history-table td:first-child {
  color: #888;
  font-size: 0.85rem;
  white-space: nowrap;
}

.history-asset {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: #ffffff;
}

.history-note {
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
  font-style: italic;
}

.history-action {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.history-action.deposit {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.history-action.withdraw {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.history-action.convert {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.history-action.activate {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.history-action.return {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.history-amount-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-amount {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.history-fee {
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
  font-family: 'Courier New', monospace;
}

.history-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.history-status.done {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.history-status.done::before {
  content: '✓';
  font-size: 1rem;
}

.history-status.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.history-status.pending::before {
  content: '⏳';
  font-size: 0.9rem;
}

.history-status.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.history-status.failed::before {
  content: '✗';
  font-size: 1rem;
}

.history-empty {
  padding: 60px 20px;
  text-align: center;
  color: #666;
}

.history-empty-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

.history-empty-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.history-empty-subtitle {
  font-size: 0.9rem;
  color: #555;
}

/* Deposit Status Section */
.deposit-status-section {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid #444;
  border-radius: 12px;
  min-height: 120px;
}

.deposit-status-pending {
  border-left: 4px solid #fbbf24;
  padding: 15px;
}

.deposit-status-completed {
  border-left: 4px solid #22c55e;
  padding: 15px;
}

.deposit-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.deposit-status-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.deposit-status-icon {
  font-size: 1.3rem;
}

.deposit-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.deposit-status-badge.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.deposit-status-badge.completed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.deposit-status-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deposit-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.deposit-status-label {
  color: #888;
  font-weight: 500;
}

.deposit-status-value {
  color: #ffffff;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.deposit-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 600;
  font-size: 1rem;
}

.deposit-countdown-icon {
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.deposit-empty-state {
  text-align: center;
  padding: 30px 20px;
  color: #666;
}

.deposit-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

.deposit-empty-text {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.deposit-empty-subtitle {
  font-size: 0.85rem;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .deposit-status-section {
    padding: 20px;
  }

  .deposit-status-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .deposit-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* MoonPay Button */
.btn-moonpay {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #7b3ff2 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(123, 63, 242, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
  animation: moonpayBounce 1s ease-out 1s;
}

@keyframes moonpayBounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-4px);
  }
}

.btn-moonpay:hover {
  background: linear-gradient(135deg, #6b2ff0 0%, #9745f5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 63, 242, 0.4);
}

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

.moonpay-icon {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .btn-moonpay {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .btn-moonpay span:last-child {
    display: none;
  }
  
  .moonpay-icon {
    font-size: 1.4rem;
  }
}
