* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: #f5f6fa; color: #2c3e50; }
.app { display: flex; min-height: 100vh; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f5f6fa; }
.login-card { width: min(100%, 420px); background: #fff; padding: 36px; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.login-brand { color: #27ae60; font-size: 22px; font-weight: 700; margin-bottom: 28px; }
.login-card h1 { margin-bottom: 8px; }
.login-card p { color: #777; margin-bottom: 24px; }
.login-card label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.login-card input { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; }
.login-card button { width: 100%; padding: 12px; border: 0; border-radius: 8px; background: #27ae60; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.login-error { min-height: 20px; margin-top: 14px; color: #e74c3c; font-size: 13px; }

/* Sidebar */
.sidebar { width: 220px; background: #fff; border-right: 1px solid #e8e8e8; padding: 20px 0; position: fixed; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 20px 30px; font-size: 20px; font-weight: 700; color: #27ae60; }
.nav-menu { display: flex; flex-direction: column; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #555; text-decoration: none; font-size: 15px; transition: 0.2s; border-left: 3px solid transparent; }
.nav-item:hover { background: #f8f9fa; color: #27ae60; }
.nav-item.active { color: #27ae60; border-left-color: #27ae60; background: #f0faf4; font-weight: 600; }

/* Main Content */
.main-content { margin-left: 220px; flex: 1; padding: 20px 30px; }
.header { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px 25px; border-radius: 12px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.search-bar { display: flex; align-items: center; gap: 10px; background: #f5f6fa; padding: 10px 18px; border-radius: 25px; width: 300px; }
.search-bar input { border: none; background: transparent; outline: none; width: 100%; }
.header-icons { display: flex; align-items: center; gap: 12px; }
.logout-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid #f0c9c5; border-radius: 8px; background: #fff; color: #e74c3c; cursor: pointer; font-size: 13px; font-weight: 600; }
.logout-btn:hover { background: #fff5f4; border-color: #e74c3c; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: #2c3e50; color: #fff; cursor: pointer; position: relative; }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; background: #e74c3c; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #27ae60; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* Dashboard Grid */
.dashboard, .wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.price-value { font-size: 32px; font-weight: 700; color: #2c3e50; margin-bottom: 15px; }
.chart-container { height: 250px; position: relative; }

/* Orderbook */
.coin-info { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.coin-icon { width: 45px; height: 45px; border-radius: 50%; background: #f7931a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.coin-name { font-size: 18px; font-weight: 600; }
.coin-price .price { font-size: 24px; font-weight: 700; }
.change.positive { color: #27ae60; font-size: 14px; font-weight: 600; }

.table-header, .table-head { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 10px 0; font-size: 12px; color: #888; border-bottom: 1px solid #eee; font-weight: 600; }
.table-row, .asset-row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }

/* Wallet Specific */
.balance-value { font-size: 36px; font-weight: 700; color: #2c3e50; margin-bottom: 10px; }
.balance-change { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #27ae60; }
.assets-section { margin-top: 30px; }
.asset-row { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: center; }
.table-head { grid-template-columns: 2fr 1fr 1fr 1fr; }
.asset-info { display: flex; align-items: center; gap: 12px; }
.asset-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }

.quick-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.action-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; background: #fff; border: 1px solid #eee; border-radius: 12px; cursor: pointer; transition: 0.2s; font-size: 14px; font-weight: 500; color: #2c3e50; }
.action-card:hover { border-color: #27ae60; transform: translateY(-2px); }
.action-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.action-icon.deposit { background: #e8f8f0; color: #27ae60; }
.action-icon.withdraw { background: #fde8e8; color: #e74c3c; }
.action-icon.transfer { background: #e8f0fe; color: #3b82f6; }
.action-icon.convert { background: #f3e8ff; color: #a855f7; }
/* ===================== */
/* WALLET TABS           */
/* ===================== */
.wallet-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 10px;
}

.wallet-tab {
  padding: 10px 24px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  transition: all 0.3s;
}

.wallet-tab:hover {
  background: #f0faf4;
  color: #27ae60;
}

.wallet-tab.active {
  background: #27ae60;
  color: #fff;
}

.transaction-filter {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.filter-presets, .filter-custom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-custom { margin-top: 12px; }
.filter-label, .filter-custom label { font-size: 13px; color: #555; font-weight: 600; }
.filter-preset, .filter-apply, .filter-reset { border: 1px solid #ddd; border-radius: 8px; padding: 8px 13px; background: #fff; cursor: pointer; font-size: 13px; color: #555; }
.filter-preset:hover, .filter-preset.active { background: #27ae60; border-color: #27ae60; color: #fff; }
.filter-custom input { margin-left: 5px; padding: 7px 8px; border: 1px solid #ddd; border-radius: 6px; color: #2c3e50; }
.filter-apply { background: #2c3e50; border-color: #2c3e50; color: #fff; }
.filter-reset { color: #e74c3c; }
.filter-result { margin-top: 10px; font-size: 12px; color: #888; }

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== */
/* DATA TABLE            */
/* ===================== */
.table-container {
  margin-top: 30px;
}

.table-container h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.data-table {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.data-table thead {
  background: #f8f9fa;
}

.data-table th {
  padding: 15px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e8e8e8;
  white-space: nowrap;
}

.data-table td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #2c3e50;
}

.data-table tbody tr:hover {
  background: #f8f9fa;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.completed {
  background: #e8f8f0;
  color: #27ae60;
}

.status-badge.pending {
  background: #fff3cd;
  color: #f39c12;
}

.status-badge.processing {
  background: #e8f0fe;
  color: #3b82f6;
}

.status-badge.failed {
  background: #fde8e8;
  color: #e74c3c;
}

/* TX Hash */
.tx-hash {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #27ae60;
  cursor: pointer;
  text-decoration: underline;
}

.tx-hash:hover {
  color: #219150;
}

/* ===================== */
/* FORM STYLES           */
/* ===================== */
.deposit-form,
.withdraw-form {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid #e8e8e8;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.form-select,
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.3s;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: #27ae60;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Deposit Address Box */
.deposit-address-box {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  border: 2px dashed #27ae60;
  margin-top: 20px;
}

.qr-code-placeholder {
  width: 180px;
  height: 180px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 48px;
}

.qr-code-placeholder span {
  font-size: 14px;
  margin-top: 10px;
}

.address-info {
  flex: 1;
}

.address-info label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #2c3e50;
}

.address-copy {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.address-copy input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: #f8f9fa;
}

.copy-btn {
  padding: 12px 24px;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: #219150;
}

.important-note {
  padding: 15px;
  background: #fff3cd;
  border-left: 4px solid #f39c12;
  border-radius: 6px;
  font-size: 13px;
  color: #856404;
}

.important-note i {
  margin-right: 8px;
}

/* Withdraw Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

.btn-cancel,
.btn-primary {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-size: 14px;
}

.btn-cancel {
  background: #f0f0f0;
  color: #666;
}

.btn-cancel:hover {
  background: #e0e0e0;
}

.btn-primary {
  background: #27ae60;
  color: #fff;
}

.btn-primary:hover {
  background: #219150;
}

/* Responsive */
@media (max-width: 1024px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .deposit-address-box {
    flex-direction: column;
  }
  
  .qr-code-placeholder {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .data-table {
    font-size: 12px;
  }
  
  .data-table th,
  .data-table td {
    padding: 10px;
  }
  
  .wallet-tabs {
    overflow-x: auto;
  }
}
/* ===================== */
/* SETTINGS PAGE         */
/* ===================== */
.settings-icon {
  background: #f0f0f0;
  color: #27ae60;
}

/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-icon.total {
  background: #e8f0fe;
  color: #3b82f6;
}

.stat-icon.admin {
  background: #e8f8f0;
  color: #27ae60;
}

.stat-icon.super {
  background: #f3e8ff;
  color: #a855f7;
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
}

/* Table Header Row */
.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.table-header-row h3 {
  font-size: 18px;
  color: #2c3e50;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f6fa;
  padding: 8px 16px;
  border-radius: 25px;
  width: 250px;
}

.search-box i {
  color: #999;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}

/* Role Badge */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.role-badge.admin {
  background: #e8f8f0;
  color: #27ae60;
}

.role-badge.superadmin {
  background: #f3e8ff;
  color: #a855f7;
}

/* Status Badge */
.status-badge.active {
  background: #e8f8f0;
  color: #27ae60;
}

/* Action Buttons */
.action-btns {
  display: flex;
  gap: 8px;
}

.action-btn-sm {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}

.action-btn-sm.edit {
  background: #e8f0fe;
  color: #3b82f6;
}

.action-btn-sm.edit:hover {
  background: #3b82f6;
  color: #fff;
}

.action-btn-sm.delete {
  background: #fde8e8;
  color: #e74c3c;
}

.action-btn-sm.delete:hover {
  background: #e74c3c;
  color: #fff;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s;
}

.modal.small {
  max-width: 400px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e8e8e8;
}

.modal-header h3 {
  font-size: 18px;
  color: #2c3e50;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f6fa;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e74c3c;
  color: #fff;
}

.modal-body {
  padding: 25px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Password Input */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper .form-input {
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 14px;
}

.toggle-password:hover {
  color: #27ae60;
}

/* Required Field */
.required {
  color: #e74c3c;
}

/* Warning Text */
.warning-text {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 10px;
}

/* Danger Button */
.btn-danger {
  padding: 12px 28px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 14px;
}

.btn-danger:hover {
  background: #c0392b;
}

/* Profile Form */
.profile-form {
  padding: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  .data-table {
    overflow-x: auto;
  }
  
  .modal {
    width: 95%;
  }
}
/* ===================== */
/* ASSETS TABLE ENHANCED */
/* ===================== */
.asset-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 18px 15px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: all 0.2s;
}

.asset-row:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

.asset-row:last-child {
  border-bottom: none;
}

.asset-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.asset-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.asset-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 15px;
  margin-bottom: 3px;
}

.asset-symbol {
  font-size: 12px;
  color: #888;
}

.asset-balance {
  text-align: center;
}

.asset-balance-value {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
  margin-bottom: 3px;
}

.asset-balance-symbol {
  font-size: 11px;
  color: #888;
}

.asset-value {
  font-weight: 700;
  font-size: 15px;
  text-align: right;
}

.asset-change {
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.asset-change.positive {
  color: #27ae60;
}

.asset-change.negative {
  color: #e74c3c;
}

/* Summary Cards (Optional Enhancement) */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.summary-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.summary-card.deposit {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.summary-card.withdraw {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.summary-card.balance {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.summary-card h4 {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.summary-card .amount {
  font-size: 24px;
  font-weight: 700;
}

.summary-card .count {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .asset-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .asset-row > div:nth-child(3),
  .asset-row > div:nth-child(4) {
    grid-column: span 1;
  }
  
  .summary-cards {
    grid-template-columns: 1fr;
  }
}
/* ===================== */
/* AUTO SYNC STATUS BAR  */
/* ===================== */
.sync-status-bar {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.sync-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.sync-status.syncing {
  color: #3b82f6;
}

.sync-status.syncing i {
  color: #3b82f6;
  animation: pulse 1.5s infinite;
}

.sync-status.success {
  color: #27ae60;
}

.sync-status.success i {
  color: #27ae60;
}

.sync-status.error {
  color: #e74c3c;
}

.sync-status.error i {
  color: #e74c3c;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.sync-last-update {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
}

.sync-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.countdown {
  background: #f0f0f0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  min-width: 50px;
  text-align: center;
}

.countdown.active {
  background: #e8f8f0;
  color: #27ae60;
}

.sync-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  transition: all 0.2s;
}

.sync-toggle:hover {
  border-color: #27ae60;
  color: #27ae60;
}

.sync-toggle.paused {
  background: #fff3cd;
  border-color: #f39c12;
  color: #856404;
}

.sync-now-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #27ae60;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s;
}

.sync-now-btn:hover {
  background: #219150;
}

.sync-now-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .sync-status-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sync-controls {
    width: 100%;
    justify-content: space-between;
  }
}
/* ===================== */
/* OVERVIEW ENHANCED     */
/* ===================== */

/* ปรับ Grid Layout */
.wallet-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Overview Stats (4 การ์ด) */
.overview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.stat-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
  border: 1px solid #e8e8e8;
}

.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-box.deposit .stat-box-icon {
  background: #e8f8f0;
  color: #27ae60;
}

.stat-box.withdraw .stat-box-icon {
  background: #fde8e8;
  color: #e74c3c;
}

.stat-box.transactions .stat-box-icon {
  background: #e8f0fe;
  color: #3b82f6;
}

.stat-box.average .stat-box-icon {
  background: #f3e8ff;
  color: #a855f7;
}

.stat-box-info {
  flex: 1;
  min-width: 0;
}

.stat-box-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-box-value {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-box-count {
  font-size: 11px;
  color: #888;
}

/* Chart Card */
.chart-card {
  padding: 25px;
}

.chart-tabs {
  display: flex;
  gap: 8px;
}

.chart-tab {
  padding: 6px 14px;
  background: #f5f6fa;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  transition: all 0.2s;
}

.chart-tab.active {
  background: #27ae60;
  color: #fff;
}

.chart-container {
  height: 250px;
  position: relative;
  margin-top: 15px;
}

/* Assets Table Enhanced */
.assets-section {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e8e8e8;
}

.assets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.assets-header h3 {
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}

.assets-table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

.table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  padding: 12px 15px;
  background: #f8f9fa;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  border-bottom: 1px solid #e8e8e8;
}

.asset-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: background 0.2s;
}

.asset-row:hover {
  background: #f8f9fa;
}

.asset-row:last-child {
  border-bottom: none;
}

/* Progress Bar สำหรับสัดส่วน */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-bar.deposit {
  background: #27ae60;
}

.progress-bar.withdraw {
  background: #e74c3c;
}

/* Responsive */
@media (max-width: 1024px) {
  .wallet-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .overview-stats {
    grid-template-columns: 1fr;
  }
  
  .table-head,
  .asset-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .table-head > div:nth-child(3),
  .table-head > div:nth-child(4),
  .asset-row > div:nth-child(3),
  .asset-row > div:nth-child(4) {
    display: none;
  }
}