﻿/* ============================================================
   LIVOBANK 2030 DESIGN SYSTEM
   Institutional banking UI - Tier-1 international standard
   Restricted palette: Obsidian, navy, white, cool grays, emerald
   ============================================================ */

:root {
  /* 2030 institutional palette */
  --lb-obsidian: #0B0F19;
  --lb-midnight: #111827;
  --lb-navy: #1E293B;
  --lb-slate: #334155;
  --lb-border: #E2E8F0;
  --lb-surface: #F8FAFC;
  --lb-white: #FFFFFF;
  --lb-ink: #0F172A;
  --lb-muted: #64748B;
  --lb-faint: #94A3B8;
  --lb-emerald: #059669;
  --lb-emerald-dark: #047857;
  --lb-cobalt: #1D4ED8;
  --lb-red: #DC2626;
  --lb-amber: #D97706;
  --lb-radius: 6px;
  --lb-radius-md: 8px;
  --lb-shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
  --lb-shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --lb-ease: 200ms ease-in-out;
}

/* ---------- Font smoothing & base ---------- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* ---------- Micro / Utility bar ---------- */
.lb-utility {
  background: var(--lb-obsidian);
  color: var(--lb-faint);
  font-size: 12px;
  padding: 6px 0;
}
.lb-utility .container { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.lb-utility a { color: var(--lb-faint); display: inline-flex; align-items: center; gap: 6px; transition: color 200ms ease-in-out; }
.lb-utility a:hover { color: var(--lb-white); }
.lb-utility a i { font-size: 10px; }
.lb-utility .lb-util-divider { width: 1px; height: 12px; background: var(--lb-slate); }

/* ---------- Institutional header ---------- */
.lb-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--lb-white);
  border-bottom: 1px solid var(--lb-border);
  transition: box-shadow 200ms ease-in-out;
}
.lb-header.scrolled { box-shadow: var(--lb-shadow-md); }
.lb-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.lb-brand { display: flex; align-items: center; gap: 12px; }
.lb-brand-name { font-weight: 800; font-size: 1.05rem; color: var(--lb-ink); letter-spacing: -0.02em; }
.lb-brand-sub { font-size: 0.7rem; color: var(--lb-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* Navigation */
.lb-nav { display: flex; align-items: center; gap: 4px; }
.lb-nav .lb-nav-item { position: relative; }
.lb-nav .lb-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; font-weight: 600; font-size: 0.92rem;
  color: var(--lb-slate); border-radius: var(--lb-radius);
  transition: color 200ms ease-in-out, background 200ms ease-in-out;
}
.lb-nav .lb-nav-link:hover { color: var(--lb-ink); background: var(--lb-surface); }
.lb-nav .lb-nav-link i { font-size: 0.6rem; color: var(--lb-faint); transition: transform 200ms ease-in-out; }
.lb-nav-item:hover .lb-nav-link i { transform: rotate(180deg); }

/* Dropdown - crisp white, subtle border */
.lb-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--lb-white);
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius-md);
  box-shadow: var(--lb-shadow-md);
  min-width: 240px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out, visibility 200ms;
  z-index: 1100;
}
.lb-nav-item:hover .lb-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lb-dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--lb-radius);
  font-size: 0.88rem; font-weight: 500; color: var(--lb-slate);
  transition: background 200ms ease-in-out, color 200ms ease-in-out;
}
.lb-dropdown a:hover { background: var(--lb-surface); color: var(--lb-cobalt); }
.lb-dropdown a .lb-dd-icon { color: var(--lb-faint); font-size: 0.75rem; }

/* Secure login button */
.lb-login-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lb-obsidian);
  color: var(--lb-white);
  border: none;
  padding: 11px 20px;
  border-radius: var(--lb-radius);
  font-weight: 700; font-size: 0.9rem;
  cursor: pointer;
  transition: background 200ms ease-in-out, transform 200ms ease-in-out;
  text-decoration: none;
}
.lb-login-btn:hover { background: var(--lb-midnight); transform: translateY(-1px); }
.lb-login-btn svg { width: 14px; height: 14px; }

/* ---------- Skeleton loaders ---------- */
.lb-skeleton {
  background: linear-gradient(90deg, var(--lb-border) 25%, var(--lb-surface) 50%, var(--lb-border) 75%);
  background-size: 200% 100%;
  animation: lb-shimmer 1.5s infinite;
  border-radius: var(--lb-radius);
}
@keyframes lb-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.lb-skeleton-text { height: 14px; width: 80%; }
.lb-skeleton-title { height: 24px; width: 60%; }
.lb-skeleton-card { height: 180px; }

/* ---------- Bento grid (dashboard) ---------- */
.lb-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lb-bento-card {
  background: var(--lb-white);
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius-md);
  padding: 20px;
  transition: box-shadow 200ms ease-in-out, border-color 200ms ease-in-out;
}
.lb-bento-card:hover { box-shadow: var(--lb-shadow-sm); border-color: var(--lb-faint); }
.lb-bento-card .lb-bento-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lb-muted); }
.lb-bento-card .lb-bento-value { font-size: 1.6rem; font-weight: 800; color: var(--lb-ink); margin-top: 6px; letter-spacing: -0.02em; }
.lb-bento-card .lb-bento-delta { font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.lb-delta-up { color: var(--lb-emerald); }
.lb-delta-down { color: var(--lb-red); }

/* ---------- Glassmorphism card ---------- */
.lb-glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--lb-radius-md);
}

/* ---------- Virtual card ---------- */
.lb-card-visual {
  position: relative; overflow: hidden;
  background: var(--lb-obsidian);
  color: var(--lb-white);
  border-radius: 12px;
  padding: 24px;
  min-height: 180px;
  transition: transform 200ms ease-in-out;
}
.lb-card-visual:hover { transform: translateY(-3px); }
.lb-card-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #F5D76E, #C9A227); }
.lb-card-number { font-family: 'SF Mono', 'Roboto Mono', monospace; font-size: 1.05rem; letter-spacing: 2px; margin-top: 24px; }
.lb-card-meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 20px; }
.lb-card-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); }
.lb-card-value { font-size: 0.85rem; font-weight: 600; margin-top: 2px; }

/* ---------- Status badges ---------- */
.lb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.lb-pill-active { background: rgba(5,150,105,0.12); color: var(--lb-emerald-dark); }
.lb-pill-pending { background: rgba(217,119,6,0.12); color: var(--lb-amber); }
.lb-pill-flagged { background: rgba(220,38,38,0.12); color: var(--lb-red); }
.lb-pill-neutral { background: var(--lb-surface); color: var(--lb-muted); }

/* ---------- Mega footer ---------- */
.lb-footer {
  background: var(--lb-obsidian);
  color: var(--lb-faint);
  padding: 64px 0 0;
}
.lb-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(148,163,184,0.15); }
.lb-footer h4 { color: var(--lb-white); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.lb-footer-links { display: flex; flex-direction: column; gap: 10px; }
.lb-footer-links a { font-size: 0.85rem; color: var(--lb-faint); transition: color 200ms ease-in-out; }
.lb-footer-links a:hover { color: var(--lb-white); }

/* Contact block */
.lb-footer-contact { padding: 36px 0; border-bottom: 1px solid rgba(148,163,184,0.15); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.lb-footer-contact h5 { color: var(--lb-white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.lb-footer-phone { font-size: 1.2rem; font-weight: 700; color: var(--lb-white); }
.lb-footer-addr { font-size: 0.85rem; color: var(--lb-faint); line-height: 1.5; }

/* Regulatory fine print */
.lb-footer-regulatory { padding: 28px 0 8px; }
.lb-regulatory-text { font-size: 11px; line-height: 1.6; color: var(--lb-faint); max-width: 900px; margin-bottom: 12px; }

/* Trust badges */
.lb-trust-badges { display: flex; align-items: center; gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(148,163,184,0.15); }
.lb-fdic-badge, .lb-ehl-badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lb-faint); font-size: 0.78rem; font-weight: 700;
}
.lb-fdic-badge svg { width: 40px; height: 18px; }
.lb-ehl-badge svg { width: 18px; height: 18px; }

/* Legal links pipe-separated */
.lb-legal-row { display: flex; flex-wrap: wrap; gap: 0; padding: 16px 0 28px; }
.lb-legal-row a { font-size: 0.72rem; color: var(--lb-faint); transition: color 200ms ease-in-out; }
.lb-legal-row a:hover { color: var(--lb-white); }
.lb-legal-row .lb-sep { color: rgba(148,163,184,0.4); margin: 0 12px; }

/* ---------- Privacy / eye toggle ---------- */
.lb-eye-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--lb-border);
  background: var(--lb-white); border-radius: var(--lb-radius);
  color: var(--lb-muted); cursor: pointer;
  transition: all 200ms ease-in-out;
}
.lb-eye-btn:hover { border-color: var(--lb-cobalt); color: var(--lb-cobalt); }

/* Masking animation */
.lb-masked { transition: opacity 200ms ease-in-out; }
.lb-masked.hidden { opacity: 0; }
.lb-masked-hidden { opacity: 0; }

/* ---------- Bottom thumb-zone (mobile) ---------- */
.lb-thumb-zone {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--lb-border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.lb-thumb-zone a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 0.62rem; font-weight: 600; color: var(--lb-muted);
}
.lb-thumb-zone a.active { color: var(--lb-emerald); }
.lb-thumb-zone a i { font-size: 1.1rem; }

/* ---------- AI chat capsule ---------- */
.lb-ai-chat {
  position: fixed; bottom: 24px; right: 24px; z-index: 1300;
}
.lb-ai-fab {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--lb-obsidian); color: var(--lb-white);
  border: none; cursor: pointer; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--lb-shadow-md);
  transition: transform 200ms ease-in-out;
}
.lb-ai-fab:hover { transform: scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lb-bento { grid-template-columns: repeat(2, 1fr); }
  .lb-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-nav { display: none; }
}
@media (max-width: 768px) {
  .lb-utility .container { justify-content: center; gap: 16px; }
  .lb-utility .lb-util-divider { display: none; }
  .lb-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .lb-footer-contact { flex-direction: column; align-items: flex-start; }
  .lb-thumb-zone { display: flex; }
  .lb-bento { grid-template-columns: 1fr 1fr; }
  .lb-hide-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .lb-bento { grid-template-columns: 1fr; }
  .lb-footer-grid { grid-template-columns: 1fr; }
}
