* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --maroon: #76232f;
  --maroon-dark: #5b1b24;
  --maroon-soft: #f3e8ea;
  --maroon-light: #bb9599;
  --bg: #76232f;
  --card: #ffffff;
  --text: #2a2a2a;
  --muted: #6f6a6d;
  --line: #ece6e8;
  --line-soft: #f2edef;
  --shadow: 0 10px 24px rgba(69, 32, 39, 0.12);
  --shadow-strong: 0 16px 30px rgba(69, 32, 39, 0.18);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  padding-bottom: 110px;
}

a {
  text-decoration: none;
  color: var(--maroon);
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-box {
  text-align: center;
  color: white;
}

.loader-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 16px;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top: 4px solid #fff;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.topbar {
  background: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.back-btn,
.back-link {
  color: var(--maroon);
  font-size: 1.2rem;
  font-weight: bold;
}

.topbar-title {
  color: var(--maroon);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-icon-btn {
  border: none;
  background: none;
  color: var(--maroon);
  font-size: 1.1rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 12px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--maroon);
  font-weight: bold;
  border-bottom: 1px solid var(--line-soft);
}

.screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px;
}

.page-hero {
  background: var(--maroon);
  color: white;
  border-radius: 28px;
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-strong);
}

.page-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  line-height: 1.05;
}

.page-hero p {
  color: rgba(255,255,255,0.92);
  font-size: 0.96rem;
}

.main-card,
.panel,
.quick-card,
.info-card,
.list-panel {
  background: var(--card);
  box-shadow: var(--shadow);
}

.main-card {
  border-radius: 28px;
  padding: 22px 18px;
  margin-bottom: 18px;
}

.main-card h2 {
  color: var(--maroon);
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 10px;
  text-align: center;
}

.main-card p {
  color: var(--muted);
  text-align: center;
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.featured-action,
.page-button {
  display: block;
  width: 100%;
  background: var(--maroon);
  color: white;
  padding: 15px 18px;
  border-radius: 999px;
  text-align: center;
  font-weight: bold;
  margin-top: 8px;
}

.page-button.secondary {
  background: var(--maroon-soft);
  color: var(--maroon);
}

.section-title {
  display: inline-block;
  background: var(--maroon);
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 6px 0 12px;
  padding: 10px 16px;
  border-radius: 999px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.quick-card {
  border-radius: 22px;
  padding: 16px 14px;
  color: var(--text);
}

.quick-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--maroon-soft);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.quick-card h3 {
  font-size: 1rem;
  color: var(--maroon);
  margin-bottom: 6px;
}

.quick-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.list-panel {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 18px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item strong {
  display: block;
  color: var(--maroon);
  margin-bottom: 3px;
  font-size: 0.98rem;
}

.list-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.list-arrow {
  color: var(--maroon-light);
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.panel {
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 16px;
}

.panel h2 {
  color: var(--maroon);
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.panel p {
  color: var(--muted);
  font-size: 0.94rem;
}

.card-stack {
  display: grid;
  gap: 12px;
}

.info-card {
  border-radius: 22px;
  padding: 16px;
}

.info-card h3 {
  color: var(--maroon);
  margin-bottom: 6px;
  font-size: 1rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-tag {
  display: inline-block;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.checkin-frame-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.checkin-frame {
  width: 100%;
  max-width: 100%;
  min-height: 78vh;
  border: none;
  border-radius: 18px;
  background: white;
  display: block;
}

.bottom-nav-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(118,35,47,0.96), rgba(118,35,47,0));
  pointer-events: none;
}

.bottom-nav {
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(69, 32, 39, 0.18);
  border: 1px solid #eee5e7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px;
  pointer-events: auto;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #7f7376;
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 54px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.bottom-nav a svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.bottom-nav a.active {
  color: var(--maroon);
  background: var(--maroon-soft);
}

@media (max-width: 420px) {
  .main-card h2,
  .page-hero h1 {
    font-size: 1.45rem;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }
}