/* =========================================================
   KeuanganKu Mobile App - Dark Glassmorphism Native Theme
   ========================================================= */

:root {
  --bg-app: #0B0F19;
  --bg-header: #111827;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --bg-sheet: #151D2E;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.5);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent-primary: #6366F1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --color-safe: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-urgent: #F43F5E;
  --color-blue: #3B82F6;
  --color-cyan: #06B6D4;
  --color-purple: #8B5CF6;
  --color-orange: #F97316;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --safe-bottom: env(safe-area-inset-bottom, 20px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #030712;
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* Mobile Application Shell / Container */
.mobile-app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  padding-bottom: calc(85px + var(--safe-bottom));
}

/* Header & Profile */
.mobile-header {
  background: linear-gradient(180deg, #131D31 0%, #0B0F19 100%);
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-color);
}

.header-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-primary), #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #FFF;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.greeting-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.12);
}

.sync-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-safe);
}

/* Net Worth Banner Card */
.net-worth-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.nw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.nw-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.toggle-eye {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.badge-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.status-healthy {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.nw-amount {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: var(--font-mono);
  color: #FFF;
  margin-bottom: 16px;
}

.nw-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.nw-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-title {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-val {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Quick Action Buttons */
.quick-actions-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-app);
}

.quick-action-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.quick-action-btn:active {
  transform: scale(0.93);
}

.qa-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #FFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.bg-red { background: linear-gradient(135deg, #EF4444, #DC2626); }
.bg-green { background: linear-gradient(135deg, #10B981, #059669); }
.bg-blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.bg-purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.bg-orange { background: linear-gradient(135deg, #F97316, #EA580C); }
.bg-cyan { background: linear-gradient(135deg, #06B6D4, #0891B2); }

.quick-action-btn span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Main Content Area */
.mobile-content {
  flex: 1;
  padding: 0 16px;
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
  animation: tabFadeIn 0.25s ease;
}

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

.section-container {
  margin-bottom: 22px;
}

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

.section-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.see-all-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-mini {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Horizontal Accounts Swiper */
.horizontal-accounts-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.horizontal-accounts-scroll::-webkit-scrollbar {
  display: none;
}

.debit-account-card {
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.debit-account-card.primary-card {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(20, 27, 45, 0.95) 100%);
}

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

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

.brand-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  color: #FFF;
  letter-spacing: 0.5px;
}

.bg-bca { background: #0060AF; }
.bg-mandiri { background: #00387A; }
.bg-bni { background: #005E6A; }
.bg-bri { background: #00529C; }
.bg-ovo { background: #7C3AED; }
.bg-gopay { background: #00AED6; }
.bg-dana { background: #118EEA; }
.bg-shopee { background: #EE4D2D; }
.bg-kredivo { background: #F97316; }
.bg-akulaku { background: #E11927; }
.bg-cash { background: #10B981; }
.bg-custom { background: #6366F1; }

.acc-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-bottom .balance-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.card-bottom .balance-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Credit Limits List Cards */
.limits-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.limit-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.limit-acc-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.limit-acc-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
}

.limit-due-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

.limit-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.limit-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.limit-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #F59E0B, #EF4444);
  transition: width 0.4s ease;
}

.limit-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.limit-details-row .avail-lbl {
  color: var(--text-secondary);
}

.limit-details-row .avail-val {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.limit-details-row .used-val {
  color: var(--text-muted);
}

/* Category Filter Chips */
.filter-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.filter-chips-scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.chip.active, .chip:active {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent-primary);
  color: #FFF;
}

/* Transactions Timeline Feed */
.transactions-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.tx-item:active {
  transform: scale(0.98);
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.tx-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.tx-icon-expense {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

.tx-icon-income {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.tx-icon-transfer {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

.tx-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.tx-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tx-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.tx-amount {
  font-size: 0.92rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.tx-amount.expense { color: #F87171; }
.tx-amount.income { color: #34D399; }
.tx-amount.transfer { color: #60A5FA; }

.tx-acc-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Bills Radar Cards */
.bills-summary-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.bs-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bs-item span {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.bs-item strong {
  font-size: 1.1rem;
  font-family: var(--font-mono);
}

.sub-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
}

.sub-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sub-tab.active {
  background: rgba(244, 63, 94, 0.2);
  border-color: #F43F5E;
  color: #FFF;
}

.bills-radar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bill-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bill-card-item.urgent {
  border-left: 4px solid var(--color-urgent);
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.08) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.bill-card-item.soon {
  border-left: 4px solid var(--color-warning);
}

.bill-card-item.safe {
  border-left: 4px solid var(--color-safe);
}

.bill-item-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bill-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.bill-due-info {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bill-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.bill-amount {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.bill-countdown-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* AI Strategy Cards */
.ai-insight-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ai-header i { font-size: 1.4rem; }
.ai-header h4 { font-size: 0.95rem; font-weight: 700; }
.ai-header span { font-size: 0.72rem; color: var(--text-secondary); }

.daily-budget-val {
  font-size: 1.7rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #34D399;
  margin-bottom: 8px;
}

.ai-tip {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ai-strategy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strategy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
}

.strategy-card.border-bca { border-left: 4px solid var(--color-blue); }
.strategy-card.border-bni { border-left: 4px solid var(--color-cyan); }
.strategy-card.border-kredivo { border-left: 4px solid var(--color-orange); }

.st-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #FFF;
  flex-shrink: 0;
}

.st-content h5 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.st-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(65px + var(--safe-bottom));
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: var(--safe-bottom);
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 60px;
}

.nav-item i {
  font-size: 1.15rem;
}

.nav-item.active {
  color: var(--accent-primary);
}

.nav-item.active i {
  transform: translateY(-2px);
}

.nav-fab-placeholder {
  width: 60px;
}

/* Floating Action Button (FAB) */
.floating-fab {
  position: fixed;
  bottom: calc(25px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #FFF;
  border: 4px solid var(--bg-app);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 105;
  transition: all 0.2s ease;
}

.floating-fab:active {
  transform: translateX(-50%) scale(0.92);
}

/* Bottom Sheet Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.bottom-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg-sheet);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-top: 1px solid var(--border-color);
  max-height: 90vh;
  overflow-y: auto;
  padding: 16px 20px calc(25px + var(--safe-bottom));
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin: 0 auto 14px;
}

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

.sheet-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.sheet-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Segmented Control */
.segmented-control {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.segment-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.segment-btn.active {
  background: var(--accent-primary);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Forms in Sheet */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  font-family: var(--font-main);
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-primary);
}

.amount-input-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 14px;
}

.amount-input-box:focus-within {
  border-color: var(--accent-primary);
}

.curr-prefix {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-right: 8px;
}

.form-amount {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #FFF;
  outline: none;
  width: 100%;
}

.quick-chips-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.chip-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  cursor: pointer;
}

.chip-sm:active {
  background: var(--accent-primary);
  color: #FFF;
}

/* Account Select Chips */
.account-select-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.acc-select-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.acc-select-chip.active {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.2);
}

.acc-select-chip .chip-name {
  font-size: 0.78rem;
  font-weight: 700;
}

.acc-select-chip .chip-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Logo Picker Grid */
.logo-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.logo-pick-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.logo-pick-item.active {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.2);
}

.logo-pick-item span:last-child {
  font-size: 0.7rem;
  font-weight: 600;
}

/* Buttons */
.sheet-actions {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #8B5CF6 100%);
  color: #FFF;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary-outline {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-info-outline {
  background: transparent;
  border: 1px dashed var(--color-cyan);
  color: var(--color-cyan);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #FFF;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease;
}

.toast.toast-success { border-left: 4px solid var(--color-safe); }
.toast.toast-error { border-left: 4px solid var(--color-danger); }

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

/* Helpers */
.text-safe { color: #34D399 !important; }
.text-warning { color: #FBBF24 !important; }
.text-danger { color: #F87171 !important; }
.text-urgent { color: #FB7185 !important; }
.text-blue { color: #60A5FA !important; }
.text-cyan { color: #22D3EE !important; }
.text-purple { color: #A78BFA !important; }
.text-orange { color: #FB923C !important; }
.text-muted { color: var(--text-muted) !important; }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.flex-1 { flex: 1; }
.form-row { display: flex; gap: 10px; }

/* ========================================== */
/* AI CHAT ASSISTANT COMPONENT               */
/* ========================================== */
.ai-chat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ai-chat-header {
  padding: 14px 16px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.1rem;
}

.ai-messages-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.ai-msg.msg-assistant {
  align-self: flex-start;
}

.ai-msg.msg-user {
  align-self: flex-end;
}

.ai-msg .msg-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.ai-msg.msg-assistant .msg-bubble {
  background: rgba(30, 41, 59, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-top-left-radius: 4px;
}

.ai-msg.msg-user .msg-bubble {
  background: var(--accent-primary);
  color: #FFF;
  border-top-right-radius: 4px;
}

.ai-msg .msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3px;
  padding: 0 4px;
}

.ai-msg.msg-assistant .msg-time { align-self: flex-start; }
.ai-msg.msg-user .msg-time { align-self: flex-end; }

.ai-quick-chips {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid var(--border-glass);
  scrollbar-width: none;
}
.ai-quick-chips::-webkit-scrollbar { display: none; }

.quick-chip {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-light);
  color: #FFF;
}

.ai-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(17, 24, 39, 0.95);
  border-top: 1px solid var(--border-glass);
}

.ai-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #FFF;
  font-size: 0.85rem;
  outline: none;
}

.ai-input-bar input:focus {
  border-color: var(--accent-light);
  background: rgba(255, 255, 255, 0.08);
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  color: #FFF;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ai-send-btn:hover {
  transform: scale(1.05);
}

/* ========================================== */
/* TRANSFER & ADMIN FEE STYLES               */
/* ========================================== */
.admin-fee-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.chip-fee {
  flex: 1;
  text-align: center;
  font-size: 0.68rem !important;
  padding: 5px 4px !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.chip-fee:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #F59E0B;
  color: #FFF;
}

.transfer-summary-card {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

