/* Illuminati Bank — design tokens & base styles
   Palette + type sourced from /Desing Preference/typographys & color */

:root {
  --ink: #0e0f10;
  --ink-soft: #16181a;
  --paper: #ffffff;
  --surface: #f5f5f8;
  --line: #e4e4e8;
  --muted: #78787f;
  --accent: #cff008;
  --accent-ink: #0e0f10;
  --success: #16a34a;
  --success-soft: #eafbef;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --warning: #d97706;
  --warning-soft: #fef6e7;
  --info: #2563eb;
  --info-soft: #eaf1fe;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(14,15,16,.04), 0 8px 24px rgba(14,15,16,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Urbanist", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: "Urbanist", sans-serif; letter-spacing: -0.02em; }

.mb-hero {
  isolation: isolate;
  background: var(--ink) url('../images/hero-background.jpg') center 34% / cover no-repeat;
  color: var(--paper);
}
.mb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(14,15,16,.94) 0%, rgba(14,15,16,.78) 48%, rgba(14,15,16,.54) 100%), linear-gradient(180deg, rgba(14,15,16,.22), rgba(14,15,16,.62));
}
.mb-hero > div { position: relative; z-index: 1; }
.mb-hero .text-ink { color: var(--paper) !important; }
.mb-hero .mb-btn-outline { color: var(--paper); border-color: rgba(255,255,255,.35); }
.mb-hero .mb-btn-outline:hover { border-color: var(--paper); }
@media (max-width: 640px) {
  .mb-hero { background-position: 54% center; }
  .mb-hero::before { background: linear-gradient(180deg, rgba(14,15,16,.74), rgba(14,15,16,.92)); }
}

/* Reusable components (kept outside Tailwind so plain HTML files can share one system) */

.mb-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.mb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .75rem 1.5rem;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.mb-btn:active { transform: scale(.97); }

.mb-btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.mb-btn-primary:hover { box-shadow: 0 6px 20px rgba(207,240,8,.35); }

.mb-btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.mb-btn-dark:hover { background: var(--ink-soft); }

.mb-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.mb-btn-outline:hover { border-color: var(--ink); }

.mb-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .95rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.mb-input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}

.mb-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: .375rem;
}

.mb-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .25rem .6rem;
  border-radius: 999px;
}
.mb-badge-success { background: var(--success-soft); color: var(--success); }
.mb-badge-warning { background: var(--warning-soft); color: var(--warning); }
.mb-badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.mb-badge-info    { background: var(--info-soft);    color: var(--info); }
.mb-badge-muted   { background: var(--surface); color: var(--muted); }

.mb-skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, #ececf1 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: mb-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes mb-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.mb-fade-up {
  animation: mb-fade-up .5s ease both;
}
@keyframes mb-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Homepage activity ticker */
.mb-activity-section {
  padding: 1.5rem 0 5rem;
  overflow: hidden;
}
.mb-activity-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(14,15,16,.16);
  transform: rotate(-1.2deg);
}
.mb-activity-heading {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 34rem);
  margin: 0 auto 1.5rem;
  text-align: center;
}
.mb-activity-heading h2 { margin: .75rem 0 .4rem; }
.mb-activity-heading p { color: rgba(255,255,255,.62); font-size: .85rem; }
.mb-activity-window {
  overflow: hidden;
  padding: .35rem 0 1rem;
  outline: none;
}
.mb-activity-window:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.mb-activity-track {
  display: flex;
  width: max-content;
  gap: .75rem;
  animation: mb-activity-scroll 34s linear infinite;
}
.mb-activity-window:hover .mb-activity-track,
.mb-activity-window:focus .mb-activity-track { animation-play-state: paused; }
.mb-activity-card {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 18.5rem;
  padding: .85rem 1rem;
  background: #24272a;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.mb-activity-flag { font-size: 1.35rem; }
.mb-activity-card span:not(.mb-activity-flag) { display: grid; gap: .15rem; }
.mb-activity-card strong { font-size: .82rem; }
.mb-activity-card small { color: rgba(255,255,255,.52); font-size: .68rem; }
.mb-activity-card b { margin-left: auto; color: var(--accent); font-size: .82rem; }
.mb-activity-card code { color: rgba(255,255,255,.5); font-size: .68rem; }
@keyframes mb-activity-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - .375rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .mb-activity-track { animation: none; }
}
@media (max-width: 640px) {
  .mb-activity-section { padding-bottom: 4rem; }
  .mb-activity-panel { border-radius: var(--radius-md); transform: rotate(-.7deg); }
  .mb-activity-heading { width: min(100% - 2rem, 34rem); }
  .mb-activity-heading h2 { font-size: 1.35rem; }
  .mb-activity-card { min-width: 16.5rem; }
}

/* Toast */
.mb-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
}
.mb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile bottom nav (customer dashboard) */
.mb-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  padding: .4rem .25rem calc(.4rem + env(safe-area-inset-bottom));
  z-index: 40;
}
.mb-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  font-size: .65rem;
  font-weight: 600;
  color: var(--muted);
  padding: .3rem .5rem;
  border-radius: var(--radius-sm);
}
.mb-bottom-nav a.active { color: var(--ink); background: var(--surface); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
