/* Static base stylesheet (merged: base + utilities) */
:root {
  --primary: #8B5CF6;
  --accent: #F8FAFC;
  --text: #1E293B;
  --muted: #64748B;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --background: #FFFFFF;
  --card-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

/* Keyframes */
@keyframes celebrationBounce { 0% { transform: scale(0) rotate(0deg); opacity: 0; } 50% { transform: scale(1.2) rotate(180deg); opacity: 1; } 100% { transform: scale(1) rotate(360deg); opacity: 0; } }
@keyframes sparkle { 0% { transform: scale(0) rotate(0deg); opacity: 1; } 50% { transform: scale(1.5) rotate(180deg); opacity: 0.8; } 100% { transform: scale(0) rotate(360deg); opacity: 0; } }
@keyframes statusPulse { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); } }
@keyframes glow { from { box-shadow: 0 0 30px rgba(139, 92, 246, 0.3); } to { box-shadow: 0 0 50px rgba(139, 92, 246, 0.6); } }
@keyframes pulse-amount { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }
/* Utilities from app.css */
@keyframes currentGlow { 0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); } 50% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); } 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }
@keyframes completedGreenPulse { 0% { box-shadow: 0 0 0 rgba(16,185,129,0); border-color: rgba(16,185,129,0.2); } 50% { box-shadow: 0 0 14px rgba(16,185,129,0.25); border-color: rgba(16,185,129,0.4); } 100% { box-shadow: 0 0 0 rgba(16,185,129,0); border-color: rgba(16,185,129,0.2); } }
@keyframes completedCheckPulse { 0%,100% { transform: scale(1); text-shadow: 0 0 0 rgba(16,185,129,0); } 50% { transform: scale(1.08); text-shadow: 0 0 12px rgba(16,185,129,0.6); } }

/* Global */
html, body { overflow-x: hidden; }
body { font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; margin: 0; color: var(--text); background: var(--background); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Track Page */
.track-page { background: linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%); min-height: 100vh; color: #333; }
.track-header { background: linear-gradient(135deg,#6B46C1,#553C9A,#4C1D95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.2); padding: 25px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 8px 32px rgba(107,70,193,0.3); }
.header-content { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; }
.brand-section { display:flex; align-items:center; gap:16px; }
.logo-large { width:60px; height:60px; border-radius:0 !important; background: linear-gradient(135deg,#fff,#f8f9fa); display:flex; align-items:center; justify-content:center; color:var(--primary); font-weight:900; font-size:24px; border:1px solid #e5e7eb; box-shadow:0 8px 16px rgba(0,0,0,0.15); }
.brand-info h1 { margin:0; font-size:28px; font-weight:900; color:#fff; text-shadow:0 0 20px rgba(255,255,255,0.5); }
.brand-info p { margin:0; color:#ccc; font-size:14px; font-weight:600; }
.security-badges { display:flex; gap:12px; flex-wrap:wrap; }
.security-badge { display:flex; align-items:center; gap:8px; background: rgba(255,255,255,0.2); color:#fff; padding:8px 16px; border-radius:20px; font-size:14px; font-weight:700; border:1px solid rgba(255,255,255,0.3); box-shadow:0 0 20px rgba(255,255,255,0.1); }
.track-main { padding:40px 0; }

/* TX geolocatie toegang overlay */
.geo-block {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.geo-inner {
  max-width: 500px;
  width: calc(100% - 40px);
  background: #111;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 22px;
  text-align: center;
}
.geo-inner h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.geo-inner p {
  margin: 0 0 16px;
  line-height: 1.45;
}
.geo-inner .btn {
  cursor: pointer;
}

@media (max-width: 480px) {
  .geo-inner { padding: 18px; border-radius: 10px; }
  .geo-inner h3 { font-size: 1.1rem; }
}

/* Cards */
.transaction-card, .status-card, .support-card { background: rgba(0,0,0,0.8); border-radius:20px; padding:32px; margin-bottom:24px; box-shadow:0 20px 40px rgba(0,0,0,0.5); border:1px solid rgba(255,255,255,0.1); backdrop-filter: blur(20px); }
.transaction-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:32px; flex-wrap:wrap; gap:20px; }
.transaction-title h2 { margin:0 0 8px 0; font-size:28px; font-weight:900; color:#fff; text-shadow:0 0 20px rgba(255,255,255,0.3); }
.transaction-id { font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:var(--primary); font-size:14px; background: rgba(107,70,193,0.1); padding:8px 16px; border-radius:12px; border:1px solid rgba(107,70,193,0.3); font-weight:700; }
.transaction-amount { text-align:right; }
.amount-value { font-size:48px; font-weight:900; color:#fff; line-height:1; animation: pulse-amount 3s ease-in-out infinite; }
.amount-label { color:#ccc; font-size:16px; margin-top:8px; font-weight:700; }
@media (max-width: 700px) {
  .track-page .currency-symbol { display: none; }
}
.transaction-details { display:flex; flex-direction:column; gap:24px; }
.detail-row { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.detail-item { display:flex; flex-direction:column; gap:8px; }
.detail-label { font-size:12px; color:#888; font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.detail-value { font-size:18px; font-weight:800; color:#fff; text-transform:uppercase; letter-spacing:.5px; }
.status-current { color:var(--primary); text-shadow:0 0 20px rgba(107,70,193,0.5); }

/* Status Indicator */
.status-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:32px; gap:16px; }
.status-header h3 { margin:0; font-size:24px; font-weight:900; color:#fff; text-shadow:0 0 20px rgba(255,255,255,0.3); flex:1 1 auto; min-width:0; }
.status-indicator { display:flex; align-items:center; gap:12px; padding:10px 16px; border-radius:25px; font-weight:700; font-size:15px; transition: all 0.3s ease-out; flex:1 1 auto; min-width:0; max-width:100%; }
.status-indicator span:last-child { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.status-indicator.status-1 { background: rgba(255,165,0,0.2); color:#ffa500; border:2px solid rgba(255,165,0,0.5); box-shadow:0 0 30px rgba(255,165,0,0.3); }
.status-indicator.status-2 { background: rgba(255,215,0,0.2); color:#ffd700; border:2px solid rgba(255,215,0,0.5); box-shadow:0 0 30px rgba(255,215,0,0.3); }
.status-indicator.status-3 { background: rgba(107,70,193,0.2); color:var(--primary); border:2px solid rgba(107,70,193,0.5); box-shadow:0 0 30px rgba(107,70,193,0.3); animation: statusPulse 2s infinite; }
.status-indicator.status-4 { background: rgba(107,70,193,0.3); color:var(--primary); border:2px solid rgba(107,70,193,0.6); box-shadow:0 0 30px rgba(107,70,193,0.4); animation: statusPulse 2s infinite; }
.status-indicator.status-5 { background: rgba(107,70,193,0.4); color:var(--primary); border:2px solid rgba(107,70,193,0.7); box-shadow:0 0 30px rgba(107,70,193,0.5); animation: statusPulse 2s infinite; }
.status-indicator.status-6 { background: rgba(239,68,68,0.15); color:var(--error); border:2px solid rgba(239,68,68,0.4); box-shadow:0 0 30px rgba(239,68,68,0.25); }
.status-indicator.status-7 { background: rgba(107,114,128,0.15); color:#6b7280; border:2px solid rgba(107,114,128,0.3); box-shadow:0 0 30px rgba(107,114,128,0.2); }
.status-indicator.status-8 { background: rgba(16,185,129,0.15); color:var(--success); border:2px solid rgba(16,185,129,0.4); box-shadow:0 0 30px rgba(16,185,129,0.25); }
.status-icon, .status-dot { width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:20px; background: rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.25); box-shadow:0 8px 24px rgba(107,70,193,0.3); }
.status-indicator.status-1 .status-icon::before, .status-indicator.status-1 .status-dot::before { content: '🧾'; }
.status-indicator.status-2 .status-icon::before, .status-indicator.status-2 .status-dot::before { content: '🔍'; }
.status-indicator.status-3 .status-icon::before, .status-indicator.status-3 .status-dot::before { content: '🏦'; }
.status-indicator.status-4 .status-icon::before, .status-indicator.status-4 .status-dot::before { content: '🚀'; }
.status-indicator.status-5 .status-icon::before, .status-indicator.status-5 .status-dot::before { content: '🔄'; }
.status-indicator.status-6 .status-icon::before, .status-indicator.status-6 .status-dot::before { content: '⛔'; }
.status-indicator.status-7 .status-icon::before, .status-indicator.status-7 .status-dot::before { content: '🕒'; }
.status-indicator.status-8 .status-icon::before, .status-indicator.status-8 .status-dot::before { content: '✅'; }
/* Transitioning state for indicator */
.status-indicator.transitioning { transform: scale(1.05); transition: all 0.3s ease-out; }
.status-indicator.transitioning .status-icon, .status-indicator.transitioning .status-dot { background: linear-gradient(135deg, var(--primary), #FFFFFF); }

/* Timeline */
.progress-timeline { display:flex; flex-direction:column; gap:16px; }
.timeline-step { display:flex; align-items:center; gap:16px; padding:16px; border-radius:12px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); }
.bank-pill { display:inline-block; margin-top:8px; background: rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.25); color:#fff; font-weight:900; letter-spacing:1px; text-transform:uppercase; padding:6px 12px; border-radius:9999px; }

/* Bank logo in transaction details */
.detail-bank { display:flex; align-items:center; gap:12px; }
.bank-logo { width:28px; height:28px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:900; color:#fff; letter-spacing:0.5px; box-shadow:0 6px 14px rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.2); }
.bank-logo span { transform: translateY(0.5px); }
.bank-name { font-weight:800; color:#fff; text-transform:uppercase; letter-spacing:0.5px; }

/* Brand colors */
.bank-logo.bank-ing { background:#FF6200; }
.bank-logo.bank-abnamro { background:#009490; }
.bank-logo.bank-rabobank { background:#FF7F00; }
.bank-logo.bank-bunq { background:#3DBB5D; }
.bank-logo.bank-revolut { background:#0B84F3; }
.bank-logo.bank-n26 { background:#222; }
.bank-logo.bank-sns { background:#6C2AAD; }
.bank-logo.bank-asn { background:#E3000B; }
.bank-logo.bank-triodos { background:#007A78; }
.bank-logo.bank-generic { background:#6b7280; }
/* Bank logos (color blocks and images) */
.bank-logos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.bank-logo { display:flex; align-items:center; justify-content:center; height: 28px; border-radius: 6px; color: #fff; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; box-shadow: var(--card-shadow); border: 1px solid rgba(255,255,255,0.5); }
.bank-logo span { font-size: 12px; }
.bank-logo-img { width: 100%; max-width: 140px; height: 28px; object-fit: contain; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 6px 8px; box-shadow: var(--card-shadow); }

/* Header bank badge */
.header-bank { display:flex; align-items:center; gap:8px; margin-top:8px; }
.header-bank .bank-caption { font-weight: 800; color: var(--text); }

/* Extra aliases for bank class normalization */
.bank-logo.bank-asnbank { background: #E3000B; }
.bank-logo.bank-triodosbank { background: #007A78; }
.bank-logo.bank-leaseplanbank { background: #FF6A00; }
.bank-logo.bank-regiobank { background:#D71920; }
.bank-logo.bank-knab { background:#1D7C91; }
.bank-logo.bank-vanlanschot { background:#00966C; }
.bank-logo.bank-handelsbanken { background:#005AA3; }
.bank-logo.bank-leaseplan { background:#FF6A00; }
.bank-logo.bank-bnp { background:#00A55B; }
.bank-logo.bank-credit-agricole { background:#0C8A55; }
.bank-logo.bank-deutsche-bank { background:#0018A8; }
.bank-logo.bank-barclays { background:#00AEEF; }
.bank-logo.bank-hsbc { background:#DB0011; }
.bank-logo.bank-santander { background:#D50000; }
.bank-logo.bank-bbva { background:#062C6C; }
.bank-logo.bank-socgen { background:#E60028; }
.bank-logo.bank-unicredit { background:#E7002A; }
.bank-logo.bank-intesa { background:#007A3E; }
.bank-logo.bank-ubs { background:#E0001B; }
.bank-logo.bank-generic { background:#6b7280; }


/* Notification & effects */
.status-notification { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); background: linear-gradient(135deg, #6B46C1, #8B5CF6); color: #ffffff; padding: 1rem 1.5rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3); z-index: 1000; display: flex; align-items: center; gap: 1rem; max-width: 400px; transition: all 0.5s ease-out; }
.status-notification.visible { transform: translateX(-50%) translateY(0); }
.celebration-effect { position: fixed; top: 20px; right: 20px; font-size: 2rem; z-index: 1000; animation: celebrationBounce 2s ease-out; pointer-events: none; }
.sparkles { position: absolute; top: -10px; right: -10px; animation: sparkle 1s ease-out; pointer-events: none; }

/* Track: Next update + Support */
.next-update { display:flex; align-items:center; gap:12px; padding:12px 16px; border-radius:9999px; background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(255,255,255,0.08)); color:#fff; border:1px solid rgba(139,92,246,0.35); box-shadow: 0 12px 24px rgba(139,92,246,0.25); font-weight:700; }
.next-update span:first-child { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background: rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.2); }
.next-update:hover { transform: translateY(-1px); transition: transform 0.2s ease-out; }

.support-content { display:flex; align-items:center; gap:16px; }
.support-icon { width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center; background: linear-gradient(135deg, #6B46C1, #8B5CF6); color:#fff; font-size:24px; box-shadow: 0 10px 24px rgba(107, 70, 193, 0.35); }
.support-text h4 { margin:0; color:#fff; font-size:20px; font-weight:900; }
.support-text p { margin:4px 0 0 0; color:#ccc; font-weight:600; }
.support-button { background: linear-gradient(135deg, #8B5CF6, #6B46C1); color:#fff; border:none; padding:10px 16px; border-radius:10px; font-weight:800; box-shadow: 0 8px 20px rgba(107, 70, 193, 0.35); cursor:pointer; }
.support-button:hover { filter: brightness(1.05); transform: translateY(-1px); transition: all 0.2s ease-out; }

.timeline-step.current { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.35); box-shadow: 0 12px 24px rgba(139, 92, 246, 0.25); }
.timeline-step.completed { opacity:0.95; border-color: rgba(16,185,129,0.25); box-shadow: 0 6px 16px rgba(16,185,129,0.12); animation: completedGreenPulse 3.2s ease-in-out infinite; }
.timeline-step .step-icon .pending-icon { opacity:0.85; }
.timeline-step.pending { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.timeline-step.pending .step-title, .timeline-step.pending .step-description { color: #9ca3af; }
.timeline-step.pending .pending-icon, .timeline-step.pending .step-icon { color:#9ca3af; opacity:0.85; }

@media (prefers-reduced-motion: reduce) {
  .logo-large, .amount-value, .current-icon.glow-pulse, .status-indicator, .timeline-step.enter-active, .timeline-step.completing, .status-notification { animation: none !important; transition: none !important; }
  .timeline-step.completed, .timeline-step.completed .completed-icon { animation: none !important; }
}
.timeline-step.will-enter { opacity: 0; transform: translateX(-50px); }
.timeline-step.enter-active { transition: all 0.6s ease-out; opacity: 1; transform: translateX(0); }
.timeline-step.completing { transform: scale(1.05); transition: all 0.6s ease-out; }
.timeline-step.completed:hover .completed-icon { transform: scale(1.2) rotate(360deg); transition: transform 0.5s ease-out; }
.step-icon { width:44px; height:44px; display:flex; align-items:center; justify-content:center; }
.completed-icon, .pending-icon, .current-icon { color:#fff; font-weight:700; }
.timeline-step.completed .completed-icon { animation: completedCheckPulse 3.2s ease-in-out infinite; text-shadow: 0 0 6px rgba(16,185,129,0.5); }
.current-icon.glow-pulse { animation: currentGlow 2s infinite; }
.step-title { color:#fff; font-weight:900; }
.step-description { color:#ccc; font-weight:600; }

/* Footer */
.track-footer { padding:24px 0; }
.footer-content { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-links a { color:#6b7280; text-decoration:none; margin-right:12px; }
.footer-security { color:#6b7280; }

/* Common components (index + admin login) */
.wrap { max-width: 960px; margin: 40px auto; padding: 16px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--card-shadow); }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 48px; height: 48px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 900; }
.muted { color: var(--muted); font-size: 0.9em; }
.notice { background: var(--accent); border: 1px solid #e5e7eb; color: var(--text); padding: 12px; border-radius: 8px; }
.footer { color: var(--muted); text-align: center; margin-top: 12px; }
.cta-row { margin-top: 16px; display: flex; justify-content: flex-start; }
.btn { display: inline-block; border-radius: 8px; padding: 10px 16px; text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { filter: brightness(1.05); }
button.primary { background: var(--primary); color: #fff; border: none; padding: 10px 16px; border-radius: 8px; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3); }
button.primary:hover { filter: brightness(1.05); }

/* Row base */
.row { display: flex; gap: 8px; align-items: center; }

/* Admin map */
.admin-map { width: 100%; height: 300px; border-radius: 12px; }


.admin-grid { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.admin-panel { background:#fff; border-radius:12px; padding:16px; box-shadow: var(--card-shadow); }
.table { width:100%; overflow:auto; }
.mw-table .status-indicator { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
.live-marker-dot { background: #00ff88; width: 20px; height: 20px; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 20px rgba(0, 255, 136, 0.6); animation: pulse 2s infinite; }
.row.row-between { justify-content: space-between; align-items: center; }
.row.row-end { justify-content: flex-end; gap: 8px; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; }
.modal.open { display: block; }
.modal-content { background: #fff; max-width: 520px; margin: 10% auto; padding: 16px; border-radius: 12px; box-shadow: var(--card-shadow); border: 1px solid #e5e7eb; }
.modal-content.wide { max-width: 1600px; width: min(98vw, 1600px); }
.modal-header { display:flex; justify-content: space-between; align-items:center; padding-bottom:8px; margin-bottom:12px; border-bottom:1px solid #eef2f7; }
.icon-btn { background: transparent; border: 1px solid #e5e7eb; color: var(--muted); border-radius: 8px; width: 32px; height: 32px; font-size: 20px; line-height: 20px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.icon-btn:hover { filter: brightness(1.05); }
#editModal .modal-content { max-width: 800px; }
#editModal .modal-content .row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; }
#editModal .modal-content .row.row-end { display:flex; justify-content:flex-end; gap: 8px; }
#editModal .modal-content label { font-weight: 700; color: var(--text); text-align: right; }
#editModal .modal-content input,
#editModal .modal-content select,
#editModal .modal-content textarea { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
#editModal .modal-content input:focus,
#editModal .modal-content select:focus,
#editModal .modal-content textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }

/* Consent overlay + blur */
.consent { position: fixed; top:0; left:0; right:0; bottom:0; display:none; background: rgba(0,0,0,0.45); z-index: 10000; }
.consent.visible { display:flex; align-items:center; justify-content:center; }
.consent .consent-inner { background:#fff; color:#1E293B; border-radius:12px; padding:16px 18px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); max-width: 560px; width: 92%; text-align:center; }
.consent .btn-primary { background: linear-gradient(135deg, #8B5CF6, #6B46C1); color:#fff; border:none; padding:10px 16px; border-radius:10px; font-weight:800; box-shadow: 0 8px 20px rgba(107, 70, 193, 0.35); cursor:pointer; }
.consent .btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); transition: all 0.2s ease-out; }
body.consent-visible .track-header, body.consent-visible .track-main, body.consent-visible .track-footer { filter: blur(6px); pointer-events: none; }

/* Utility */
.loc-summary { min-height: 20px; }
.badge { display:inline-block; padding:6px 10px; border-radius: 9999px; background: var(--accent); border: 1px solid #e5e7eb; color: var(--text); font-weight: 700; font-size: 12px; }

/* Logbook */
.logbook-list { max-height: 70vh; overflow: auto; border: 1px solid #e5e7eb; border-radius: 8px; }
.logbook-item { display: grid; grid-template-columns: 160px 160px 1fr; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #eef2f7; }
.logbook-item .time { font-weight: 800; color: var(--text); }
.logbook-item .provider { color: var(--muted); font-weight: 700; }
.logbook-item .address { color: var(--text); text-align: right; }
.logbook-item:hover { background: #f9fafb; }

/* Admin UI enhancements */
.admin-grid { align-items: start; }
.admin-panel { border: 1px solid #e5e7eb; }
.admin-panel h3 { margin: 0 0 8px 0; font-size: 18px; font-weight: 800; color: var(--text); }
.admin-panel-wide { grid-column: 1 / -1; }

/* Form controls */
.admin-panel input[type=text],
.admin-panel input[type=number],
.admin-panel input[type=password],
.admin-panel input[type=datetime-local],
.admin-panel select,
.admin-panel textarea { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.row input, .row select, .row textarea { flex: 1 1 0; }

/* Buttons */
.admin-panel button { background: #f3f4f6; color: var(--text); border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.admin-panel button:hover { filter: brightness(1.03); }
.admin-panel .primary { background: var(--primary); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(139,92,246,0.25); }
.admin-panel .primary:hover { filter: brightness(1.05); }

/* Table */
.table { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); padding: 0; }
.mw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mw-table thead th { position: sticky; top: 0; background: var(--accent); color: var(--text); text-align: left; padding: 10px 12px; border-bottom: 2px solid #e5e7eb; font-weight: 800; }
.mw-table tbody td { padding: 10px 12px; border-bottom: 1px solid #eef2f7; color: var(--text); }
.mw-table tbody tr:hover { background: #f9fafb; }
.mw-table tbody tr.selected { background: #eef2ff; }
.url-cell a { color: var(--primary); text-decoration: none; font-weight: 700; }
.url-cell a:hover { text-decoration: underline; }
.actions-cell { white-space: nowrap; }
.actions-cell button { margin-right: 8px; }
button.view-live { background: var(--success); color: #fff; border-color: transparent; }
button.edit-btn { background: var(--primary); color: #fff; border-color: transparent; }
button.delete-btn { background: var(--error); color: #fff; border-color: transparent; }

/* Table status dots */
.mw-table .status-indicator { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(0,0,0,0.1); }
.status-indicator.status-online { background: var(--success); }
.status-indicator.status-recent { background: var(--warning); }
.status-indicator.status-offline { background: #9ca3af; }

/* Map */
.admin-map { border: 1px solid #e5e7eb; box-shadow: var(--card-shadow); }

/* Responsive tweaks */
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-panel-wide { grid-column: auto; }
}

/* Modal centering for logbook */
.modal.centered.open { display: flex; align-items: center; justify-content: center; }
.modal.centered .modal-content { margin: 0 16px; }
.modal.centered .modal-content.wide { max-height: 85vh; display: flex; flex-direction: column; }
#logbookModal .logbook-list { flex: 1 1 auto; }
#logbookModal .row.row-end { padding-top: 12px; }
#editModal .modal-content { max-width: 800px; border-radius: 16px; box-shadow: 0 16px 32px rgba(0,0,0,0.15); }
#editModal .modal-content .row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; padding: 6px 0; }
#editModal .modal-content .row.row-end { display:flex; justify-content:flex-end; gap: 8px; border-top: 1px solid #eef2f7; padding-top: 12px; margin-top: 8px; }
#editModal .modal-content label { font-weight: 700; color: var(--text); text-align: right; }
#editModal .modal-content input,
#editModal .modal-content select,
#editModal .modal-content textarea { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
#editModal .modal-content input:focus,
#editModal .modal-content select:focus,
#editModal .modal-content textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }

/* Consent overlay + blur */
.consent { position: fixed; top:0; left:0; right:0; bottom:0; display:none; background: rgba(0,0,0,0.45); z-index: 10000; }
.consent.visible { display:flex; align-items:center; justify-content:center; }
.consent .consent-inner { background:#fff; color:#1E293B; border-radius:12px; padding:16px 18px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); max-width: 560px; width: 92%; text-align:center; }
.consent .btn-primary { background: linear-gradient(135deg, #8B5CF6, #6B46C1); color:#fff; border:none; padding:10px 16px; border-radius:10px; font-weight:800; box-shadow: 0 8px 20px rgba(107, 70, 193, 0.35); cursor:pointer; }
.consent .btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); transition: all 0.2s ease-out; }
body.consent-visible .track-header, body.consent-visible .track-main, body.consent-visible .track-footer { filter: blur(6px); pointer-events: none; }

/* Utility */
.loc-summary { min-height: 20px; }
.badge { display:inline-block; padding:6px 10px; border-radius: 9999px; background: var(--accent); border: 1px solid #e5e7eb; color: var(--text); font-weight: 700; font-size: 12px; }

/* Transaction page bank styling tweaks */
.detail-bank .bank-logo { padding: 6px 10px; height: auto; min-height: 28px; border-radius: 9999px; }
.detail-bank .bank-logo span { line-height: 1; }
.detail-bank .bank-name { color: #fff; font-weight: 900; letter-spacing: 0.5px; }
#editModal .modal-content { border-radius: 16px; box-shadow: 0 16px 32px rgba(0,0,0,0.15); }
#editModal .modal-content .row { padding: 6px 0; }
#editModal .modal-content .row.row-end { border-top: 1px solid #eef2f7; padding-top: 12px; margin-top: 8px; }

/* Homepage deeper shadows */
.wrap .card { box-shadow: 0 12px 28px rgba(0,0,0,0.15); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.wrap .card:hover { box-shadow: 0 16px 32px rgba(0,0,0,0.20); transform: translateY(-1px); }
.wrap .bank-logos-grid .bank-logo-img { box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

/* Table column align tweaks */
.address-cell { text-align: right; }

/* Mobile sizing: status header, indicator and timeline */
@media (max-width: 640px) {
  .status-header { flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
  .status-header h3 { font-size: 16px; }
  .status-indicator { font-size: 12px; padding: 6px 10px; width: 100%; max-width: 100%; box-sizing: border-box; align-self: stretch; flex: 1 1 100%; }
  .status-indicator span:last-child { white-space: normal; }
  .status-icon, .status-dot { width: 24px; height: 24px; font-size: 14px; }
  .step-icon { width: 36px; height: 36px; }
  .progress-timeline { gap: 10px !important; }
  .timeline-step { width: 100%; padding: 10px !important; box-sizing: border-box; max-width: 100%; overflow: hidden; }
  .timeline-step .step-icon { flex: 0 0 28px; }
  .timeline-step .step-content { flex: 1 1 0; min-width: 0; }
  .detail-row { grid-template-columns: 1fr; }
  .detail-value, .bank-name, .step-title, .step-description { word-break: break-word; overflow-wrap: anywhere; }
  .bank-pill { display: none; }
  .transaction-amount { text-align: center; width: 100%; }
  .track-page .transaction-amount .currency-symbol { display: none; }
}

/* Edit modal overrides */
#editModal .modal-content.wide {
  max-width: 1100px;
  width: min(95vw, 1100px);
  max-height: 92vh;
  min-height: 60vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
#editModal .modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
#editModal .modal-content .row { grid-template-columns: 220px 1fr; }
#editModal .modal-content .row.row-end {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px 0;
  box-shadow: 0 -6px 12px rgba(0,0,0,0.05);
  border-top: none;
}
#editModal .modal-content input,
#editModal .modal-content select,
#editModal .modal-content textarea { min-width: 0; }
#editModal .modal-content textarea { resize: vertical; max-height: 40vh; }
#editModal .modal-content button {
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  border: 1px solid #e5e7eb;
}
#modalCancel {
  background: #f3f4f6;
  color: var(--text);
}
#modalCancel:hover {
  filter: brightness(1.03);
}
#modalSave {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(139,92,246,0.25);
}
#modalSave:hover { filter: brightness(1.05); }

/* Edit modal readability & fit improvements */
#editModal .modal-content.wide {
  max-height: 95vh;
  overflow-x: hidden;
}
#editModal .modal-content .row { grid-template-columns: minmax(140px, 200px) 1fr; }
#editModal .modal-content label { color: #111827; }
#editModal .modal-content input,
#editModal .modal-content select,
#editModal .modal-content textarea {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #111827;
}
#editModal .modal-content ::placeholder { color: #94a3b8; }
#editModal .modal-content select { padding-right: 32px; }
@media (max-width: 700px) {
  #editModal .modal-content .row { grid-template-columns: 1fr; }
  #editModal .modal-content label { text-align: left; }
}
#editModal .modal-content input,
#editModal .modal-content select,
#editModal .modal-content textarea { min-width: 0; }
#editModal .modal-content textarea { resize: vertical; max-height: 40vh; }
#editModal .modal-content button {
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  border: 1px solid #e5e7eb;
}
#modalCancel {
  background: #f3f4f6;
  color: var(--text);
}
#modalCancel:hover {
  filter: brightness(1.03);
}
#modalSave {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(139,92,246,0.25);
}
#modalSave:hover { filter: brightness(1.05); }

/* Mobile optimizations for track page */
@media (max-width: 640px) {
  .track-header { padding: 16px 0; padding-top: calc(16px + env(safe-area-inset-top)); }
  .logo-large { width: 48px; height: 48px; font-size: 20px; }
  .brand-info h1 { font-size: 22px; }
  .brand-info p { font-size: 13px; }

  .transaction-card, .status-card, .support-card { padding: 20px; margin-bottom: 16px; border-radius: 16px; }

  .detail-row { grid-template-columns: 1fr; gap: 12px; }
  .detail-bank img.bank-logo-img { height: 24px; max-width: 140px; }

  .progress-timeline { gap: 12px; }
  .timeline-step { gap: 12px; padding: 12px; }
  .step-icon { width: 36px; height: 36px; }
  .step-title { font-size: 16px; }
  .step-description { font-size: 13px; }

  .support-button { width: 100%; min-height: 44px; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.timeline-step.current { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.35); box-shadow: 0 12px 24px rgba(139, 92, 246, 0.25); }
.timeline-step.completed { opacity:0.95; border-color: rgba(16,185,129,0.25); box-shadow: 0 6px 16px rgba(16,185,129,0.12); animation: completedGreenPulse 3.2s ease-in-out infinite; }
.timeline-step .step-icon .pending-icon { opacity:0.85; }
.timeline-step.pending { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.timeline-step.pending .step-title, .timeline-step.pending .step-description { color: #9ca3af; }
.timeline-step.pending .pending-icon, .timeline-step.pending .step-icon { color:#9ca3af; opacity:0.85; }

@media (prefers-reduced-motion: reduce) {
  .logo-large, .amount-value, .current-icon.glow-pulse, .status-indicator, .timeline-step.enter-active, .timeline-step.completing, .status-notification { animation: none !important; transition: none !important; }
  .timeline-step.completed, .timeline-step.completed .completed-icon { animation: none !important; }
}
.timeline-step.will-enter { opacity: 0; transform: translateX(-50px); }
.timeline-step.enter-active { transition: all 0.6s ease-out; opacity: 1; transform: translateX(0); }
.timeline-step.completing { transform: scale(1.05); transition: all 0.6s ease-out; }
.timeline-step.completed:hover .completed-icon { transform: scale(1.2) rotate(360deg); transition: transform 0.5s ease-out; }
.step-icon { width:44px; height:44px; display:flex; align-items:center; justify-content:center; }
.completed-icon, .pending-icon, .current-icon { color:#fff; font-weight:700; }
.current-icon.glow-pulse { animation: currentGlow 2s infinite; }
.step-title { color:#fff; font-weight:900; }
.step-description { color:#ccc; font-weight:600; }

/* Footer */
.track-footer { padding:24px 0; }
.footer-content { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-links a { color:#6b7280; text-decoration:none; margin-right:12px; }
.footer-security { color:#6b7280; }

/* Common components (index + admin login) */
.wrap { max-width: 960px; margin: 40px auto; padding: 16px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--card-shadow); }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 48px; height: 48px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 900; }
.muted { color: var(--muted); font-size: 0.9em; }
.notice { background: var(--accent); border: 1px solid #e5e7eb; color: var(--text); padding: 12px; border-radius: 8px; }
.footer { color: var(--muted); text-align: center; margin-top: 12px; }
.cta-row { margin-top: 16px; display: flex; justify-content: flex-start; }
.btn { display: inline-block; border-radius: 8px; padding: 10px 16px; text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { filter: brightness(1.05); }
button.primary { background: var(--primary); color: #fff; border: none; padding: 10px 16px; border-radius: 8px; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3); }
button.primary:hover { filter: brightness(1.05); }

/* Row base */
.row { display: flex; gap: 8px; align-items: center; }

/* Admin map */
.admin-map { width: 100%; height: 300px; border-radius: 12px; }


.admin-grid { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.admin-panel { background:#fff; border-radius:12px; padding:16px; box-shadow: var(--card-shadow); }
.table { width:100%; overflow:auto; }
.mw-table .status-indicator { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
.live-marker-dot { background: #00ff88; width: 20px; height: 20px; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 20px rgba(0, 255, 136, 0.6); animation: pulse 2s infinite; }
.row.row-between { justify-content: space-between; align-items: center; }
.row.row-end { justify-content: flex-end; gap: 8px; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; }
.modal.open { display: block; }
.modal-content { background: #fff; max-width: 520px; margin: 10% auto; padding: 16px; border-radius: 12px; box-shadow: var(--card-shadow); border: 1px solid #e5e7eb; }
.modal-content.wide { max-width: 1600px; width: min(98vw, 1600px); }
.modal-header { display:flex; justify-content: space-between; align-items:center; padding-bottom:8px; margin-bottom:12px; border-bottom:1px solid #eef2f7; }
.icon-btn { background: transparent; border: 1px solid #e5e7eb; color: var(--muted); border-radius: 8px; width: 32px; height: 32px; font-size: 20px; line-height: 20px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.icon-btn:hover { filter: brightness(1.05); }
#editModal .modal-content { max-width: 800px; }
#editModal .modal-content .row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; }
#editModal .modal-content .row.row-end { display:flex; justify-content:flex-end; gap: 8px; }
#editModal .modal-content label { font-weight: 700; color: var(--text); text-align: right; }
#editModal .modal-content input,
#editModal .modal-content select,
#editModal .modal-content textarea { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
#editModal .modal-content input:focus,
#editModal .modal-content select:focus,
#editModal .modal-content textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }

/* Consent overlay + blur */
.consent { position: fixed; top:0; left:0; right:0; bottom:0; display:none; background: rgba(0,0,0,0.45); z-index: 10000; }
.consent.visible { display:flex; align-items:center; justify-content:center; }
.consent .consent-inner { background:#fff; color:#1E293B; border-radius:12px; padding:16px 18px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); max-width: 560px; width: 92%; text-align:center; }
.consent .btn-primary { background: linear-gradient(135deg, #8B5CF6, #6B46C1); color:#fff; border:none; padding:10px 16px; border-radius:10px; font-weight:800; box-shadow: 0 8px 20px rgba(107, 70, 193, 0.35); cursor:pointer; }
.consent .btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); transition: all 0.2s ease-out; }
body.consent-visible .track-header, body.consent-visible .track-main, body.consent-visible .track-footer { filter: blur(6px); pointer-events: none; }

/* Utility */
.loc-summary { min-height: 20px; }
.badge { display:inline-block; padding:6px 10px; border-radius: 9999px; background: var(--accent); border: 1px solid #e5e7eb; color: var(--text); font-weight: 700; font-size: 12px; }

/* Logbook */
.logbook-list { max-height: 70vh; overflow: auto; border: 1px solid #e5e7eb; border-radius: 8px; }
.logbook-item { display: grid; grid-template-columns: 160px 160px 1fr; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #eef2f7; }
.logbook-item .time { font-weight: 800; color: var(--text); }
.logbook-item .provider { color: var(--muted); font-weight: 700; }
.logbook-item .address { color: var(--text); text-align: right; }
.logbook-item:hover { background: #f9fafb; }

/* Admin UI enhancements */
.admin-grid { align-items: start; }
.admin-panel { border: 1px solid #e5e7eb; }
.admin-panel h3 { margin: 0 0 8px 0; font-size: 18px; font-weight: 800; color: var(--text); }
.admin-panel-wide { grid-column: 1 / -1; }

/* Form controls */
.admin-panel input[type=text],
.admin-panel input[type=number],
.admin-panel input[type=password],
.admin-panel input[type=datetime-local],
.admin-panel select,
.admin-panel textarea { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.row input, .row select, .row textarea { flex: 1 1 0; }

/* Buttons */
.admin-panel button { background: #f3f4f6; color: var(--text); border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.admin-panel button:hover { filter: brightness(1.03); }
.admin-panel .primary { background: var(--primary); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(139,92,246,0.25); }
.admin-panel .primary:hover { filter: brightness(1.05); }

/* Table */
.table { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); padding: 0; }
.mw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mw-table thead th { position: sticky; top: 0; background: var(--accent); color: var(--text); text-align: left; padding: 10px 12px; border-bottom: 2px solid #e5e7eb; font-weight: 800; }
.mw-table tbody td { padding: 10px 12px; border-bottom: 1px solid #eef2f7; color: var(--text); }
.mw-table tbody tr:hover { background: #f9fafb; }
.mw-table tbody tr.selected { background: #eef2ff; }
.url-cell a { color: var(--primary); text-decoration: none; font-weight: 700; }
.url-cell a:hover { text-decoration: underline; }
.actions-cell { white-space: nowrap; }
.actions-cell button { margin-right: 8px; }
button.view-live { background: var(--success); color: #fff; border-color: transparent; }
button.edit-btn { background: var(--primary); color: #fff; border-color: transparent; }
button.delete-btn { background: var(--error); color: #fff; border-color: transparent; }

/* Table status dots */
.mw-table .status-indicator { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(0,0,0,0.1); }
.status-indicator.status-online { background: var(--success); }
.status-indicator.status-recent { background: var(--warning); }
.status-indicator.status-offline { background: #9ca3af; }

/* Map */
.admin-map { border: 1px solid #e5e7eb; box-shadow: var(--card-shadow); }

/* Responsive tweaks */
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-panel-wide { grid-column: auto; }
}

/* Modal centering for logbook */
.modal.centered.open { display: flex; align-items: center; justify-content: center; }
.modal.centered .modal-content { margin: 0 16px; }
.modal.centered .modal-content.wide { max-height: 85vh; display: flex; flex-direction: column; }
#logbookModal .logbook-list { flex: 1 1 auto; }
#logbookModal .row.row-end { padding-top: 12px; }
#editModal .modal-content { max-width: 800px; border-radius: 16px; box-shadow: 0 16px 32px rgba(0,0,0,0.15); }
#editModal .modal-content .row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; padding: 6px 0; }
#editModal .modal-content .row.row-end { display:flex; justify-content:flex-end; gap: 8px; border-top: 1px solid #eef2f7; padding-top: 12px; margin-top: 8px; }
#editModal .modal-content label { font-weight: 700; color: var(--text); text-align: right; }
#editModal .modal-content input,
#editModal .modal-content select,
#editModal .modal-content textarea { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; }
#editModal .modal-content input:focus,
#editModal .modal-content select:focus,
#editModal .modal-content textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }

/* Consent bar visibility */
/* Center and prioritize consent overlay */
.consent { display: none; }
.consent.visible { display:flex !important; align-items:center !important; justify-content:center !important; place-items:center !important; }

/* Language picker: top bar, no overlap on mobile */
.lang-picker {
  position: sticky;
  top: 0;
  z-index: 10001;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  width: 100%;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.lang-picker .lang { display:flex; align-items:center; gap:6px; background:#fff; color:#1E293B; padding:6px 10px; border-radius:999px; border:1px solid #e5e7eb; box-shadow: 0 6px 16px rgba(0,0,0,0.12); text-decoration:none; font-weight:700; font-size:13px; }
.lang-picker .lang .flag { font-size:18px; line-height:1; }
.lang-picker .lang.active { outline: 2px solid #8B5CF6; outline-offset: 2px; }
.lang-picker .lang:hover { transform: translateY(-1px); transition: transform 120ms ease-out; }

/* Blur language picker when consent is visible */
body.consent-visible .lang-picker { filter: blur(6px); pointer-events: none; }

@media (max-width: 480px) {
  .lang-picker { gap: 6px; padding: 6px 8px; }
  .lang-picker .lang { padding: 6px 8px; font-size: 12px; }
  .lang-picker .lang .flag { font-size: 16px; }
}

/* Utility */
.loc-summary { min-height: 20px; }
.badge { display:inline-block; padding:6px 10px; border-radius: 9999px; background: var(--accent); border: 1px solid #e5e7eb; color: var(--text); font-weight: 700; font-size: 12px; }

/* Transaction page bank styling tweaks */
.detail-bank .bank-logo { padding: 6px 10px; height: auto; min-height: 28px; border-radius: 9999px; }
.detail-bank .bank-logo span { line-height: 1; }
.detail-bank .bank-name { color: #fff; font-weight: 900; letter-spacing: 0.5px; }
#editModal .modal-content { border-radius: 16px; box-shadow: 0 16px 32px rgba(0,0,0,0.15); }
#editModal .modal-content .row { padding: 6px 0; }
#editModal .modal-content .row.row-end { border-top: 1px solid #eef2f7; padding-top: 12px; margin-top: 8px; }

/* Homepage deeper shadows */
.wrap .card { box-shadow: 0 12px 28px rgba(0,0,0,0.15); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.wrap .card:hover { box-shadow: 0 16px 32px rgba(0,0,0,0.20); transform: translateY(-1px); }
.wrap .bank-logos-grid .bank-logo-img { box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

/* Table column align tweaks */
.address-cell { text-align: right; }

/* Edit modal overrides */
#editModal .modal-content.wide {
  max-width: 1100px;
  width: min(95vw, 1100px);
  max-height: 92vh;
  min-height: 60vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
#editModal .modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
#editModal .modal-content .row { grid-template-columns: 220px 1fr; }
#editModal .modal-content .row.row-end {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px 0;
  box-shadow: 0 -6px 12px rgba(0,0,0,0.05);
  border-top: none;
}
#editModal .modal-content input,
#editModal .modal-content select,
#editModal .modal-content textarea { min-width: 0; }
#editModal .modal-content textarea { resize: vertical; max-height: 40vh; }
#editModal .modal-content button {
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  border: 1px solid #e5e7eb;
}
#modalCancel {
  background: #f3f4f6;
  color: var(--text);
}
#modalCancel:hover {
  filter: brightness(1.03);
}
#modalSave {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(139,92,246,0.25);
}
#modalSave:hover { filter: brightness(1.05); }

/* Edit modal readability & fit improvements */
#editModal .modal-content.wide {
  max-height: 95vh;
  overflow-x: hidden;
}
#editModal .modal-content .row { grid-template-columns: minmax(140px, 200px) 1fr; }
#editModal .modal-content label { color: #111827; }
#editModal .modal-content input,
#editModal .modal-content select,
#editModal .modal-content textarea {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #111827;
}
#editModal .modal-content ::placeholder { color: #94a3b8; }
#editModal .modal-content select { padding-right: 32px; }
@media (max-width: 700px) {
  #editModal .modal-content .row { grid-template-columns: 1fr; }
  #editModal .modal-content label { text-align: left; }
}
#editModal .modal-content input,
#editModal .modal-content select,
#editModal .modal-content textarea { min-width: 0; }
#editModal .modal-content textarea { resize: vertical; max-height: 40vh; }
#editModal .modal-content button {
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  border: 1px solid #e5e7eb;
}
#modalCancel {
  background: #f3f4f6;
  color: var(--text);
}
#modalCancel:hover {
  filter: brightness(1.03);
}
#modalSave {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(139,92,246,0.25);
}
#modalSave:hover { filter: brightness(1.05); }

