/* Dublogs app shell — dark sidebar dashboard layout */
@import url('mobile.css');

body.app-body {
  background: #0f1117;
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #13161f;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 300;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  animation: slideInLeft 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.app-sidebar-brand .logo {
  color: #fff;
}
.app-sidebar-brand .logo-text {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.app-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.app-nav::-webkit-scrollbar {
  display: none;
}

.app-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2px;
  position: relative;
  transition: background 0.22s ease, color 0.22s ease, transform 0.2s ease;
}
.app-nav a:hover {
  background: rgba(124, 58, 237, 0.12);
  color: #e2e8f0;
  text-decoration: none;
  transform: translateX(2px);
}
.app-nav a.active {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.1);
}
.app-nav a.active::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.8);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}
.app-nav a img, .app-nav a svg {
  width: 20px;
  height: 20px;
  opacity: 0.85;
  flex-shrink: 0;
  filter: brightness(0) invert(0.75);
}
.app-nav a.active img {
  filter: brightness(0) invert(1);
}

.app-sidebar-user {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.app-sidebar-user-info {
  min-width: 0;
}
.app-sidebar-user-info .name {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-sidebar-user-info .email {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main area */
.app-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0f1117;
}

.app-topbar {
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(19, 22, 31, 0.6);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeIn 0.4s ease both;
  animation-delay: 0.1s;
}

.app-menu-toggle {
  display: none;
  margin-right: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
}

.app-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(37, 99, 235, 0.35));
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: #e9d5ff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-wallet-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  color: #fff;
  text-decoration: none;
}
.app-wallet-pill img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(32%) saturate(1200%) hue-rotate(218deg);
}

.app-topbar-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1d27;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.app-topbar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}
.app-topbar-btn:active {
  transform: scale(0.96);
}
.app-topbar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.app-topbar-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.app-topbar-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.7);
}
.app-topbar-btn--notify:hover {
  color: #c4b5fd;
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.12);
}
.app-topbar-btn--logout:hover {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}
.app-topbar-notify-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 6px rgba(167, 139, 250, 0.8);
  border: 2px solid #1a1d27;
  pointer-events: none;
}
.app-topbar-notify-dot.hidden { display: none; }

.app-content {
  flex: 1;
  padding: 28px;
  max-width: 1200px;
  width: 100%;
}

/* Dashboard components */
.app-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 24px;
  font-size: 14px;
  color: #6ee7b7;
  line-height: 1.5;
}
.app-banner-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #6ee7b7;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.7;
}
.app-banner-close:hover { opacity: 1; }

.app-greeting {
  margin-bottom: 28px;
}
.app-greeting h1 {
  font-size: 28px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.app-greeting h1 .accent {
  background: linear-gradient(135deg, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app-greeting p {
  color: #64748b;
  font-size: 15px;
  margin-top: 6px;
}

.app-onboard {
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
}
.app-onboard h2 {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 24px;
}
.app-onboard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .app-onboard-steps { grid-template-columns: 1fr; }
}
.app-onboard-step {
  text-align: center;
  padding: 0 12px;
}
.app-onboard-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.app-onboard-icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}
.app-onboard-icon.green { background: linear-gradient(135deg, #059669, #10b981); }
.app-onboard-icon.purple { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.app-onboard-icon.blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.app-onboard-step h3 {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
}
.app-onboard-step p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}
.app-onboard-dismiss {
  margin-top: 20px;
  font-size: 13px;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.app-onboard-dismiss:hover { color: #a78bfa; }

.app-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .app-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .app-stats-row { grid-template-columns: 1fr; }
}

/* Balance hero banner */
.dash-balance-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 36px;
  border-radius: 20px;
  margin-bottom: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 45%, #2563eb 100%);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35);
}
.dash-balance-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  pointer-events: none;
}
.dash-balance-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.dash-balance-amount {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.dash-fund-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.dash-fund-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Mini stat cards */
.dash-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .dash-mini-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .dash-mini-stats { grid-template-columns: 1fr; }
}
.dash-mini-stat {
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-mini-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-mini-stat-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
.dash-mini-stat-icon.purple { background: rgba(124, 58, 237, 0.25); }
.dash-mini-stat-icon.blue { background: rgba(37, 99, 235, 0.25); }
.dash-mini-stat-icon.teal { background: rgba(16, 185, 129, 0.2); }
.dash-mini-stat-icon.amber { background: rgba(245, 158, 11, 0.2); }
.dash-mini-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
}
.dash-mini-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
}

/* Quick action cards */
.dash-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .dash-actions { grid-template-columns: 1fr; }
}
.app-action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.app-action-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.app-action-card.purple { background: rgba(124, 58, 237, 0.12); border-color: rgba(124, 58, 237, 0.25); }
.app-action-card.blue { background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.25); }
.app-action-card.teal { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.22); }
.app-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-action-card.purple .app-action-icon { background: rgba(124, 58, 237, 0.3); }
.app-action-card.blue .app-action-icon { background: rgba(37, 99, 235, 0.3); }
.app-action-card.teal .app-action-icon { background: rgba(16, 185, 129, 0.25); }
.app-action-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}
.app-action-body { flex: 1; min-width: 0; }
.app-action-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.app-action-body p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.app-action-arrow {
  color: #64748b;
  font-size: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.app-action-card:hover .app-action-arrow {
  transform: translateX(4px);
  color: #a78bfa;
}

/* Recent activity */
.dash-recent {
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}
.dash-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-recent-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
}
.dash-recent-head a {
  font-size: 13px;
  color: #a78bfa;
  text-decoration: none;
}
.dash-recent-head a:hover { text-decoration: underline; }
.dash-activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadeUp 0.4s ease both;
}
.dash-activity-item:last-child { border-bottom: none; padding-bottom: 0; }
.dash-activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-activity-icon.credit {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.dash-activity-icon.debit {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.dash-activity-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(68%) sepia(52%) saturate(500%) hue-rotate(115deg);
}
.dash-activity-icon.debit img {
  filter: brightness(0) saturate(100%) invert(55%) sepia(80%) saturate(600%) hue-rotate(320deg);
}
.dash-activity-body { flex: 1; min-width: 0; }
.dash-activity-body .title {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}
.dash-activity-body .meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.dash-activity-amount {
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.dash-activity-amount.positive { color: #34d399; }
.dash-activity-amount.negative { color: #f87171; }

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.app-stat-card {
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
}
.app-stat-card .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 8px;
}
.app-stat-card .value {
  font-size: 26px;
  font-weight: 700;
  color: #f1f5f9;
}
.app-stat-card .value.grad {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Dark-themed cards inside app */
.app-body .card {
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.app-body .card.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  border-color: rgba(124, 58, 237, 0.25);
}
.app-body .card-title {
  color: #c4b5fd;
}
.app-body .form-group label { color: #94a3b8; }
.app-body .form-group input,
.app-body .form-group select,
.app-body .form-group textarea {
  background: #0f1117;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}
.app-body .text-muted { color: #64748b; }
.app-body .page-title { color: #f1f5f9; }
.app-body th {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border-color: rgba(255, 255, 255, 0.06);
}
.app-body td { border-color: rgba(255, 255, 255, 0.06); }

/* Admin tab navigation — pill buttons, clearly interactive */
.app-body .tabs {
  gap: 8px;
  border-bottom: none;
  margin-bottom: 24px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.app-body .tab {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border-bottom: none;
  margin-bottom: 0;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.app-body .tab:hover {
  color: #f8fafc;
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.35);
  cursor: pointer;
}
.app-body .tab.active {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  border-color: rgba(167, 139, 250, 0.5);
  border-bottom: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  font-weight: 600;
}

.app-body .btn {
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}
.app-body .btn:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45);
}
.app-body .btn-sm {
  padding: 6px 14px;
  font-weight: 600;
}
.app-body .btn-outline {
  background: rgba(124, 58, 237, 0.1);
  color: #e9d5ff;
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: none;
}
.app-body .btn-outline:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.22);
  color: #fff;
  border-color: rgba(167, 139, 250, 0.7);
}
.app-body .btn-danger {
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}
.app-body .btn-danger:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45);
}
.app-body .btn:disabled,
.app-body .tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.app-body .empty { color: #64748b; }
.app-body .tag {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border-color: rgba(124, 58, 237, 0.3);
}
.app-body .tag-green {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}
.app-body .tag-yellow {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}
.app-body .tag-red {
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.35);
}
.app-body .alert-error { background: rgba(220, 38, 38, 0.12); border-color: rgba(220, 38, 38, 0.3); color: #fca5a5; }
.app-body .alert-success { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.app-body .alert-info { background: rgba(124, 58, 237, 0.12); border-color: rgba(124, 58, 237, 0.3); color: #c4b5fd; }

.app-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 16px;
}

.app-fab-support {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  animation: pulseSoft 3s ease-in-out infinite;
}
.app-fab-support:hover {
  filter: brightness(1.08);
  color: #fff;
  text-decoration: none;
  animation: none;
  transform: scale(1.04);
}
.app-fab-support img { width: 20px; height: 20px; }

.app-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 299;
}

@media (max-width: 900px) {
  .app-sidebar {
    transform: translateX(-100%);
    animation: none;
    visibility: hidden;
    pointer-events: none;
  }
  .app-sidebar.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .app-sidebar-overlay.open { display: block; }
  .app-main { margin-left: 0; }
  .app-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .app-content { padding: 20px 16px; }
}

body.app-body.sidebar-open {
  overflow: hidden;
}

.app-view { display: none; }
.app-view.active { display: block; }

/* ─── Wallet page ─────────────────────────────────────────────────────── */
.wallet-page-title {
  font-size: 28px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.wallet-balance-banner {
  margin-bottom: 28px;
}
.wallet-balance-banner .dash-balance-hero {
  justify-content: flex-start;
}

.wallet-fund-section {
  margin-bottom: 36px;
}

.wallet-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.wallet-quick-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.wallet-quick-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}
.wallet-quick-btn.active {
  background: rgba(124, 58, 237, 0.25);
  border-color: #7c3aed;
  color: #e9d5ff;
}

.wallet-fund-row {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181b26;
}
.wallet-fund-row input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 15px;
  outline: none;
}
.wallet-fund-row input::placeholder { color: #64748b; }
.wallet-fund-submit {
  padding: 16px 28px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
  flex-shrink: 0;
}
.wallet-fund-submit:hover { filter: brightness(1.08); }
.wallet-fund-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.wallet-promo label {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 10px;
}
.wallet-promo-row {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181b26;
  max-width: 480px;
}
.wallet-promo-row input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 14px;
  outline: none;
}
.wallet-promo-row input::placeholder { color: #64748b; }
.wallet-promo-apply {
  padding: 14px 22px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.wallet-promo-apply:hover { background: rgba(124, 58, 237, 0.2); }

.wallet-history-title {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 16px;
}

.wallet-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #181b26;
}
.wallet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.wallet-table thead th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wallet-table tbody td {
  padding: 16px 20px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.wallet-table tbody tr:last-child td { border-bottom: none; }
.wallet-table tbody tr {
  transition: background 0.15s ease;
}
.wallet-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.06);
}
.wallet-tx-amount.positive { color: #34d399; font-weight: 600; }
.wallet-tx-amount.negative { color: #f87171; font-weight: 600; }

.wallet-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.wallet-status.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.wallet-status.pending {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.wallet-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
}
.wallet-page-btn {
  padding: 8px 18px;
  border-radius: 10px;
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.wallet-page-btn:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.15);
  color: #e2e8f0;
}
.wallet-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.wallet-page-info {
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 600px) {
  .wallet-fund-row { flex-direction: column; }
  .wallet-fund-submit { width: 100%; border-radius: 0; }
  .wallet-promo-row { max-width: 100%; flex-direction: column; }
  .wallet-promo-apply { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.08); }
}

.bank-verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.bank-preview {
  font-size: 13px;
  color: var(--success);
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.app-body .bank-preview { color: #6ee7b7; }

.app-control-center-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #c4b5fd !important;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.32);
  text-decoration: none !important;
  margin-right: 8px;
}
.app-control-center-link:hover {
  background: rgba(124, 58, 237, 0.24);
  color: #e9d5ff !important;
}
