:root {
  --bg: #081A24;
  --card: rgba(16, 40, 56, 0.78);
  --primary: #00B4D8;
  --secondary: #2DD4BF;
  --reward: #F4C95D;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --text: #FFFFFF;
  --muted: #B8C4CC;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 24px 80px rgba(0,0,0,0.38);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,180,216,.22), transparent 34rem),
    radial-gradient(circle at 90% 20%, rgba(45,212,191,.16), transparent 28rem),
    linear-gradient(145deg, #071620, var(--bg));
  color: var(--text);
  font-family: Inter, sans-serif;
  letter-spacing: 0;
}

h1, h2, h3 { font-family: Poppins, Inter, sans-serif; font-weight: 700; letter-spacing: 0; }
h1 { font-size: 2.25rem; line-height: 1.04; }
h2 { font-size: 1.55rem; margin: 0; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .8rem; }

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: opacity .45s ease, visibility .45s ease;
}
.splash-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo { width: min(72vw, 360px); height: auto; position: relative; z-index: 2; animation: splashRise .8s ease both; }
.splash-glow {
  position: absolute;
  width: min(72vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,.18), rgba(45,212,191,.08), transparent 68%);
  filter: blur(10px);
}
@keyframes splashRise {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; padding: max(1rem, env(safe-area-inset-top)) 1rem 6.5rem; }
.auth-view { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 1rem; position: relative; overflow: hidden; }
.brand-orbit { position: absolute; inset: 8% -30% auto auto; width: 18rem; height: 18rem; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: inset 0 0 70px rgba(0,180,216,.2); }
.brand-mark { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); padding: .55rem; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.eyebrow { margin: 0; color: var(--secondary); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.glass-panel, .hero-band, .metric-tile, .list-card, .qr-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.glass-panel { padding: 1rem; display: grid; gap: .7rem; }
label { color: var(--muted); font-size: .82rem; font-weight: 700; }
.form-control { min-height: 52px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text); }
.form-control:focus { color: var(--text); background: rgba(255,255,255,.1); border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(0,180,216,.15); }
.btn-surf { min-height: 54px; border-radius: 16px; border: 0; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #031820; font-weight: 800; }
.btn-link-light { color: var(--muted); text-decoration: none; }
.mobile-header, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .75rem 0 1.2rem; }
.header-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 16px; background: rgba(255,255,255,.94); padding: .35rem; border: 1px solid var(--border); }
.icon-button { width: 48px; height: 48px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.08); color: var(--text); display: grid; place-items: center; font-size: 1.2rem; }
.hero-band { min-height: 180px; padding: 1.25rem; display: flex; align-items: flex-end; justify-content: space-between; background: linear-gradient(140deg, rgba(0,180,216,.26), rgba(16,40,56,.88)), var(--card); }
.hero-band h1 { margin: .2rem 0; font-size: 2rem; }
.hero-band p:last-child { margin: 0; color: var(--muted); }
.points-pill { width: 88px; height: 88px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(244,201,93,.14); border: 1px solid rgba(244,201,93,.28); color: var(--reward); }
.points-pill strong { font-size: 1.5rem; line-height: 1; }
.points-pill span { font-size: .75rem; margin-top: -1rem; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: .75rem; }
.metric-tile { min-height: 112px; padding: .8rem; display: grid; align-content: space-between; text-align: left; color: var(--text); }
.metric-tile i { color: var(--primary); font-size: 1.25rem; }
.metric-tile span { color: var(--muted); font-size: .75rem; }
.metric-tile strong { font-size: 1.4rem; }
.action-tile { border: 1px solid rgba(45,212,191,.3); background: linear-gradient(140deg, rgba(0,180,216,.18), rgba(45,212,191,.1)), var(--card); }
.action-tile strong { color: var(--secondary); font-size: 1rem; }
.stack { display: grid; gap: .75rem; }
.list-card { padding: 1rem; }
.list-card h4 { font-size: 1rem; margin: 0 0 .3rem; font-weight: 800; }
.list-card p { color: var(--muted); margin: 0 0 .75rem; font-size: .9rem; }
.exhibitor-card-head, .detail-hero { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.exhibitor-logo { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: rgba(255,255,255,.94); color: #04151d; font-weight: 900; border: 1px solid var(--border); }
.exhibitor-logo.large { width: 78px; height: 78px; border-radius: 20px; }
.exhibitor-logo img { width: 100%; height: 100%; object-fit: contain; padding: .35rem; }
.exhibitor-detail h4 { margin: 1rem 0 .4rem; font-size: .95rem; font-weight: 800; }
.product-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; border: 1px solid var(--border); margin: .4rem 0 .8rem; background: rgba(255,255,255,.04); }
.card-meta { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: .35rem .6rem; color: var(--muted); font-size: .75rem; background: rgba(255,255,255,.04); }
.search-input { margin-bottom: 1rem; }
.tab-page { display: none; }
.tab-page.active { display: block; }
#expoMap { height: 68vh; min-height: 460px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #0f2634; }
.leaflet-container { background: #0f2634; font-family: Inter, sans-serif; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #102838; color: var(--text); }
.qr-card { padding: 1.25rem; display: grid; place-items: center; margin-bottom: .85rem; }
#visitorQr { padding: 1rem; background: white; border-radius: 18px; }
#visitorCode { margin: .9rem 0 0; color: var(--muted); font-weight: 800; }
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(.9rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 1.5rem), 500px);
  height: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .2rem;
  padding: .4rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(7, 22, 32, .86);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(20px);
  z-index: 1000;
}
.bottom-nav button { border: 0; border-radius: 18px; color: var(--muted); background: transparent; display: grid; place-items: center; gap: .1rem; font-size: .7rem; }
.bottom-nav i { font-size: 1.15rem; }
.bottom-nav button.active { color: #04151d; background: linear-gradient(135deg, var(--primary), var(--secondary)); font-weight: 800; }
.surf-modal { background: #102838; color: var(--text); border: 1px solid var(--border); border-radius: 20px; }
.action-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: .6rem; margin-top: .8rem; }
.action-row .btn { min-height: 46px; border-radius: 14px; }
.stand-logo-marker { width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.96); border: 2px solid #2DD4BF; box-shadow: 0 10px 26px rgba(0,0,0,.35); display: grid; place-items: center; overflow: hidden; }
.stand-logo-marker img { width: 100%; height: 100%; object-fit: contain; padding: .25rem; }
.map-popup-logo { width: 54px; height: 54px; object-fit: contain; display: block; margin-bottom: .4rem; border-radius: 12px; background: white; padding: .25rem; }
.scanner-form { gap: .8rem; }
.scanner-camera {
  display: grid;
  gap: .65rem;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.scanner-camera video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #06121a;
  border: 1px solid var(--border);
}
.scanner-camera p { margin: 0; color: var(--muted); font-size: .82rem; }
.scan-result-points { margin: .4rem 0 0; color: var(--reward); font-weight: 800; }

@media (min-width: 900px) {
  .app-shell { width: min(100%, 920px); }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #expoMap { height: 620px; }
}
