/* ===== MY CARDS PAGE ===== */
.cards-page {
  padding: 24px;
  max-width: 1200px;
}

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

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: #f0f6fc;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #5cb8e6;
  color: #0a0e17;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.btn-primary:hover {
  background: #7ccbf0;
}

/* Card Hero + Details Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Debit Card Visual ===== */
.card-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.debit-card {
  position: relative;
  width: 390px;
  height: 245px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(92,184,230,.15);
}

.debit-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111827 0%, #1a2332 40%, #0f1923 100%);
  z-index: 0;
}
.debit-card-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92,184,230,.12) 0%, transparent 70%);
}

.debit-card-content {
  position: relative;
  z-index: 1;
  padding: 24px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.debit-card-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5cb8e6;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.debit-card-type {
  font-size: 11px;
  color: rgba(240,246,252,.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(240,246,252,.15);
  padding: 3px 10px;
  border-radius: 20px;
}

.debit-card-chip {
  margin-top: 6px;
}

.debit-card-number {
  font-size: 22px;
  font-weight: 500;
  color: #f0f6fc;
  letter-spacing: 4px;
  font-family: 'Courier New', monospace;
}

.debit-card-bottom {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.debit-card-holder,
.debit-card-expiry {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.debit-card-label {
  font-size: 9px;
  text-transform: uppercase;
  color: rgba(240,246,252,.4);
  letter-spacing: 1px;
}

.debit-card-name {
  font-size: 13px;
  font-weight: 500;
  color: #f0f6fc;
  letter-spacing: 1px;
}

.debit-card-visa {
  margin-left: auto;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b949e;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #484f58;
}
.status-dot.active {
  background: #3fb950;
  box-shadow: 0 0 8px rgba(63,185,80,.4);
}

/* ===== Card Details Section ===== */
.card-details-section {
  background: #111827;
  border: 1px solid rgba(240,246,252,.06);
  border-radius: 12px;
  padding: 24px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: #f0f6fc;
  margin-bottom: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: #8b949e;
}

.detail-value {
  font-size: 18px;
  font-weight: 600;
  color: #f0f6fc;
}
.detail-value.highlight {
  color: #5cb8e6;
}

/* Card Actions */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(240,246,252,.04);
  border: 1px solid rgba(240,246,252,.08);
  border-radius: 8px;
  color: #c9d1d9;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.card-action-btn:hover {
  background: rgba(92,184,230,.1);
  border-color: rgba(92,184,230,.3);
  color: #5cb8e6;
}

/* ===== Transaction Table ===== */
.section-panel {
  background: #111827;
  border: 1px solid rgba(240,246,252,.06);
  border-radius: 12px;
  padding: 24px;
}

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

.view-all-link {
  font-size: 13px;
  color: #5cb8e6;
  text-decoration: none;
}
.view-all-link:hover {
  text-decoration: underline;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(240,246,252,.06);
}

.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: #c9d1d9;
  border-bottom: 1px solid rgba(240,246,252,.04);
}

.data-table tbody tr:hover {
  background: rgba(240,246,252,.02);
}

.merchant-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.merchant-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.amount-negative {
  color: #f85149;
  font-weight: 500;
}

.amount-positive {
  color: #3fb950;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.status-badge.completed {
  background: rgba(63,185,80,.12);
  color: #3fb950;
}
.status-badge.pending {
  background: rgba(210,153,34,.12);
  color: #d29922;
}
.status-badge.failed {
  background: rgba(248,81,73,.12);
  color: #f85149;
}
