/* ========================================
   TX Trading - Pages Common Styles
   Shared CSS for dashboard subpages
======================================== */

/* Content Area */
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  min-height: calc(100vh - 64px);
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.page-desc {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
}

.page-header-with-icon {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.page-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-icon.primary { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.page-icon.blue { background: hsl(210 100% 50% / 0.1); color: hsl(210 100% 50%); }
.page-icon.green { background: hsl(142 76% 36% / 0.1); color: hsl(142 76% 36%); }
.page-icon.purple { background: hsl(262 83% 58% / 0.1); color: hsl(262 83% 58%); }
.page-icon.orange { background: hsl(25 95% 53% / 0.1); color: hsl(25 95% 53%); }

/* Data Card */
.data-card {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px hsl(var(--foreground) / 0.03);
}

.filter-card {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 16px;
  padding: 16px 20px;
}

.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 40px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--background) / 0.5);
  color: hsl(var(--foreground));
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.filter-select {
  height: 40px;
  padding: 0 32px 0 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--background) / 0.5);
  color: hsl(var(--foreground));
  font-size: 14px;
  cursor: pointer;
  min-width: 140px;
}

/* Table Styles */
.table-responsive {
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

.data-table th {
  background: hsl(var(--muted) / 0.3);
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.data-table td {
  border-bottom: 1px solid hsl(var(--border) / 0.3);
  color: hsl(var(--foreground));
}

.data-table tr:hover td {
  background: hsl(var(--muted) / 0.3);
}

.data-table .text-right {
  text-align: right;
}

/* Mobile List View */
.mobile-list-view {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.mobile-card {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px hsl(var(--foreground) / 0.03);
}

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

.card-symbol {
  font-size: 18px;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.card-pnl {
  font-size: 18px;
  font-weight: 600;
}

.card-subheader {
  margin-bottom: 12px;
}

.card-side {
  font-size: 14px;
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 10px;
}

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

.card-item.full-width {
  grid-column: 1 / -1;
}

.card-label {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.card-value {
  font-size: 14px;
  color: hsl(var(--foreground));
  font-family: var(--font-mono, monospace);
}

.text-green { color: hsl(142 76% 36%); }
.text-red { color: hsl(0 84% 60%); }
.text-muted { color: hsl(var(--muted-foreground)); }

/* Mobile Responsive */
@media (max-width: 768px) {
  .responsive-table, .data-card .table-responsive {
    display: none;
  }

  .mobile-list-view {
    display: flex;
  }

  .deposit-list-table .data-table,
  .positions-table .data-table,
  .admin-apply-accounts-table .data-table {
    /* Legacy override cleanup if needed, but display: none on wrapper handles it */
  }
}

/* Original Legacy Media Queries - keeping if needed for other tables */
@media (max-width: 768px) {
  .deposit-list-table .data-table,
  .positions-table .data-table,
  .admin-apply-accounts-table .data-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .deposit-list-table .data-table thead,
  .positions-table .data-table thead,
  .admin-apply-accounts-table .data-table thead {
    display: none;
  }

  .deposit-list-table .data-table,
  .deposit-list-table .data-table tbody,
  .positions-table .data-table,
  .positions-table .data-table tbody,
  .admin-apply-accounts-table .data-table,
  .admin-apply-accounts-table .data-table tbody {
    display: block;
    width: 100%;
  }

  .deposit-list-table .data-table tr,
  .positions-table .data-table tr,
  .admin-apply-accounts-table .data-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: hsl(var(--card) / 0.9);
    border: 1px solid hsl(var(--border) / 0.5);
    padding: 10px 14px;
  }

  .deposit-list-table .data-table td,
  .positions-table .data-table td,
  .admin-apply-accounts-table .data-table td {
    display: flex;
    flex-direction: column;
    width: auto;
    padding: 4px 0;
    border-bottom: none;
  }

  .deposit-list-table .data-table td:first-child,
  .positions-table .data-table td:first-child,
  .admin-apply-accounts-table .data-table td:first-child {
    grid-column: 1 / -1;
    font-size: 15px;
    font-weight: 600;
  }

  .deposit-list-table .data-table td::before,
  .positions-table .data-table td::before,
  .admin-apply-accounts-table .data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2px;
  }
}


/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.badge-green { background: hsl(142 76% 36% / 0.1); color: hsl(142 76% 36%); }
.badge-red { background: hsl(0 84% 60% / 0.1); color: hsl(0 84% 60%); }
.badge-blue { background: hsl(210 100% 50% / 0.1); color: hsl(210 100% 50%); }
.badge-yellow { background: hsl(45 93% 47% / 0.1); color: hsl(45 93% 47%); }
.badge-orange { background: hsl(25 95% 53% / 0.1); color: hsl(25 95% 53%); }
.badge-gray { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.badge-outline { background: transparent; border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
.badge-outline-green { background: transparent; border: 1px solid hsl(142 76% 36% / 0.3); color: hsl(142 76% 36%); }
.badge-outline-blue { background: transparent; border: 1px solid hsl(210 100% 50% / 0.3); color: hsl(210 100% 50%); }
.badge-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }

.badge-green-outline, .badge-blue-outline, .badge-yellow-outline, .badge-red-outline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
}
.badge-green-outline { border: 1px solid hsl(142 76% 36% / 0.2); color: hsl(142 76% 36%); }
.badge-blue-outline { border: 1px solid hsl(210 100% 50% / 0.2); color: hsl(210 100% 50%); }
.badge-yellow-outline { border: 1px solid hsl(45 93% 47% / 0.2); color: hsl(45 93% 47%); }
.badge-red-outline { border: 1px solid hsl(0 84% 60% / 0.2); color: hsl(0 84% 60%); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--auth-gradient-mid)), hsl(var(--auth-gradient-end)));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--muted)); }

.btn-danger-outline {
  background: transparent;
  border: 1px solid hsl(0 84% 60% / 0.3);
  color: hsl(0 84% 60%);
}
.btn-danger-outline:hover { background: hsl(0 84% 60% / 0.1); }

/* Admin deposit status block */
.status-block {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
}

.status-title {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}

.status-content {
  font-weight: 500;
}

.text-success { color: hsl(142 76% 36%); }
.text-danger { color: hsl(0 84% 60%); }

.status-error-details {
  margin-top: 8px;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  color: hsl(0 84% 60%);
  background: hsl(0 84% 60% / 0.08);
  border: 1px solid hsl(0 84% 60% / 0.2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-all;
}

/* Admin users modal (theme-aware) */
.modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: hsl(var(--foreground));
}

.modal-section {
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.modal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-section-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.modal-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-inline-form .form-input {
  min-width: 200px;
  flex: 1 1 200px;
}

.modal-switch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 16px;
}

.modal-divider {
  height: 1px;
  background: hsl(var(--border));
  margin: 14px 0;
}

@media (max-width: 640px) {
  .modal-inline-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.icon-btn-outline {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.icon-btn-outline:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }

.btn-icon-danger {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: hsl(0 84% 60%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icon-danger:hover { background: hsl(0 84% 60% / 0.1); }

/* P&L Cell */
.pnl-cell { display: flex; flex-direction: column; }
.pnl-cell.positive { color: hsl(142 76% 36%); }
.pnl-cell.negative { color: hsl(0 84% 60%); }
.pnl-value { font-weight: 600; }
.pnl-percent { font-size: 12px; opacity: 0.8; }

/* Pagination */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.pagination-info { font-size: 14px; color: hsl(var(--muted-foreground)); }
.pagination-buttons { display: flex; gap: 8px; align-items: center; }
.pagination-current { font-size: 14px; color: hsl(var(--muted-foreground)); padding: 0 8px; }

/* Utility Classes */
.font-medium { font-weight: 500; }
.font-mono { font-family: 'SF Mono', Monaco, Consolas, monospace; }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-green { color: hsl(142 76% 36%); }
.text-red { color: hsl(0 84% 60%); }
.text-yellow { color: hsl(45 93% 47%); }
.text-xs { font-size: 12px; }
.truncate { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex-col { display: flex; flex-direction: column; gap: 4px; }

/* Mobile Card View */
.mobile-cards { display: none; }

@media (max-width: 768px) {
  .pagination-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 40px;
  }

  .pagination-buttons {
    width: 100%;
    justify-content: center;
  }

  .filter-row { flex-direction: column; }
  .filter-select { width: 100%; }
}

.position-card {
  background: hsl(var(--card) / 0.8);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 16px;
  padding: 20px;
}

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

.position-symbol {
  display: flex;
  align-items: center;
  gap: 10px;
}

.symbol-name {
  font-size: 18px;
  font-weight: 600;
}

.position-pnl {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.position-pnl.positive { background: hsl(142 76% 36% / 0.1); }
.position-pnl.negative { background: hsl(0 84% 60% / 0.1); }

.pnl-label {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 4px;
}

.pnl-amount {
  font-size: 20px;
  font-weight: 700;
}

.position-pnl.positive .pnl-amount { color: hsl(142 76% 36%); }
.position-pnl.negative .pnl-amount { color: hsl(0 84% 60%); }

.position-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

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

.detail-item.full-width { grid-column: span 2; }
.detail-label { font-size: 14px; color: hsl(var(--muted-foreground)); }
.detail-value { font-weight: 500; }
.detail-value.orange { color: hsl(25 95% 53%); }

/* Form Styles */
.form-card {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px hsl(var(--foreground) / 0.03);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  color: hsl(var(--primary));
}

.form-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.form-content { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 500; color: hsl(var(--foreground)); }
.form-label .required { color: hsl(var(--destructive)); }

.form-input, .form-select, .form-textarea {
  padding: 12px 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--secondary) / 0.5);
  color: hsl(var(--foreground));
  font-size: 14px;
  transition: all 0.2s;
}

body.dark .form-input,
body.dark .form-select,
body.dark .form-textarea {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.1);
}

.form-input.with-icon { padding-left: 40px; }

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
}

.form-textarea { min-height: 100px; resize: none; }
.form-hint { font-size: 12px; color: hsl(var(--muted-foreground)); }

.notice-box {
  padding: 16px;
  border-radius: 12px;
  background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
}

.notice-box h4 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.notice-box ul { list-style: none; font-size: 12px; color: hsl(var(--muted-foreground)); }
.notice-box li { padding: 2px 0; }
.notice-box li::before { content: '• '; }

/* Settings Page */
.settings-tabs {
  display: flex;
  background: hsl(var(--muted) / 0.5);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.settings-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-tab:hover { color: hsl(var(--foreground)); }
.settings-tab.active {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: 0 2px 8px hsl(var(--foreground) / 0.05);
}

.tab-content { display: none; flex-direction: column; gap: 16px; }
.tab-content.active { display: flex; }

.settings-card {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 16px;
  overflow: hidden;
}

.settings-card-header, .settings-card-header-simple {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.settings-card-header:hover { background: hsl(var(--muted) / 0.5); }
.settings-card-header-simple { cursor: default; }
.settings-card-header-simple:hover { background: transparent; }

.settings-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-card-icon.primary { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.settings-card-icon.blue { background: hsl(210 100% 50% / 0.1); color: hsl(210 100% 50%); }
.settings-card-icon.green { background: hsl(142 76% 36% / 0.1); color: hsl(142 76% 36%); }
.settings-card-icon.orange { background: hsl(25 95% 53% / 0.1); color: hsl(25 95% 53%); }
.settings-card-icon.purple { background: hsl(262 83% 58% / 0.1); color: hsl(262 83% 58%); }

.settings-card-info { flex: 1; }
.settings-card-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.settings-card-info p { font-size: 13px; color: hsl(var(--muted-foreground)); }

.settings-card-status { display: flex; align-items: center; gap: 8px; }

.status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.green { background: hsl(142 76% 36% / 0.1); color: hsl(142 76% 36%); border: 1px solid hsl(142 76% 36% / 0.3); }
.status-badge.yellow { background: hsl(45 93% 47% / 0.1); color: hsl(45 93% 47%); border: 1px solid hsl(45 93% 47% / 0.3); }
.status-badge.blue { background: hsl(210 100% 50% / 0.1); color: hsl(210 100% 50%); border: 1px solid hsl(210 100% 50% / 0.3); }

.chevron { transition: transform 0.2s; }
.settings-card.open .chevron { transform: rotate(180deg); }

.settings-card-content {
  display: none;
  padding: 0 20px 20px;
  flex-direction: column;
  gap: 16px;
}

.settings-card.open .settings-card-content { display: flex; }

.pin-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pin-input {
  width: 48px;
  height: 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--secondary) / 0.5);
  color: hsl(var(--foreground));
}

.pin-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: hsl(45 93% 47% / 0.1);
  color: hsl(45 93% 47%);
}

.warning-box p { font-size: 13px; color: hsl(var(--muted-foreground)); }

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.toggle-item:last-child { border-bottom: none; }

.toggle-info { display: flex; align-items: center; gap: 12px; }
.toggle-info svg { color: hsl(var(--muted-foreground)); }

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: hsl(var(--muted));
  border-radius: 12px;
  transition: 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider { background: hsl(var(--primary)); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.card-list {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 12px;
  background: hsl(var(--muted) / 0.3);
}

.payment-card-info { display: flex; align-items: center; gap: 12px; }
.payment-card-info > div { display: flex; flex-direction: column; gap: 2px; }
.card-icon { font-size: 24px; }
.card-name { font-weight: 500; font-size: 14px; }
.card-number { font-size: 13px; color: hsl(var(--muted-foreground)); }

.payment-card-actions { display: flex; align-items: center; gap: 8px; }

.default-badge {
  padding: 4px 8px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.currency-badge {
  padding: 4px 8px;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.network-badge {
  padding: 4px 8px;
  background: hsl(142 76% 36% / 0.1);
  color: hsl(142 76% 36%);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.network-badge.blue {
  background: hsl(210 100% 50% / 0.1);
  color: hsl(210 100% 50%);
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin { animation: spin 1s linear infinite; }
