/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  background: #444444;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: #5bc8f0; }
button { cursor: pointer; }

/* ===== APP SHELL ===== */
#app {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  background: #444444;
}

/* ===== SCREEN TRANSITIONS ===== */
.screen {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #444;
  /* Off-screen to right by default */
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  will-change: transform, opacity;
}

/* Home screen starts at neutral (no transform) */
#screen-home {
  transform: translateX(0);
}

.screen.is-active {
  opacity: 1;
  transform: translateX(0) !important;
  pointer-events: auto;
}

/* Slide out to left when leaving */
.screen.is-leaving {
  opacity: 0;
  transform: translateX(-100%) !important;
  pointer-events: none;
}

/* Background image */
.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.border-radius-20 {
  border-radius: 20px;
}

/* ===== LOGO ===== */
.logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 15px;
}
.logo-img { width: 120px; height: auto; }

/* ===== SCREEN INNER (forms, content) ===== */
.screen-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 20px;
  scrollbar-width: none;
}
.screen-inner::-webkit-scrollbar { display: none; }

.screen-tagline {
  margin: -30px 0 20px;
  text-align: center;
  z-index: 2;
}
.screen-tagline img { width: 88%; max-width: 380px; margin: 0 auto; }

/* ===== HOME SCREEN ===== */
#screen-home {
  transform: translateX(0);
  opacity: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
#screen-home::-webkit-scrollbar { display: none; }

.scroll-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Hero section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}
/* ===== BURGER MENU ===== */
.burger-toggle {
  position: absolute;
  top: 28px;
  left: 18px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFF;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid #757575;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.burger-toggle:hover { background: rgba(255,255,255,0.7); }
.burger-toggle span {
  display: block;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: #757575;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              width 0.25s ease;
  transform-origin: center;
}
/* Open state */
.burger-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.burger-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav panel */
.burger-nav {
  position: absolute;
  top: 100px;
  left: 0;
  width: 220px;
  z-index: 15;
  background: rgba(0, 85, 234, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid #014ACA;
  border-bottom-right-radius: 20px;
  border-top-right-radius: 20px;
  padding: 25px 0 25px;
  transform: translateX(-110%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.38s ease;
  box-shadow: none;
  pointer-events: none;
}
.burger-nav.is-open {
  transform: translateX(0);
  box-shadow: 4px 0 32px rgba(0,0,0,0.4);
  pointer-events: auto;
}

.burger-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.burger-menu-item {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0,229,255,0.2);
  color: #fff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s, color 0.15s, padding-left 0.2s;
}
.burger-menu-item:hover {
  background: rgba(91,200,240,0.12);
  color: #5bc8f0;
  padding-left: 32px;
}
.burger-menu-list li:last-child .burger-menu-item { border-bottom: none; }

/* Backdrop */
.burger-backdrop {
  position: absolute;
  inset: 0;
  z-index: 14;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.38s ease;
}
.burger-backdrop.is-active {
  background: rgba(0,0,0,0.45);
  pointer-events: auto;
}

/* ===== HERO DESCRIPTION TEXT ===== */
.hero-desc {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: 0 0 0 30px;
  /* padding: 14px 18px; */
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  max-width: 250px;
  width: calc(88% - 20px);
  text-align: left;
}
.hero-desc strong {
  color: #fff;
  font-weight: 900;
}

.hero-tagline {
  text-align: center;
  padding: 0 20px;
}
.hero-tagline img { width: 95%; max-width: 380px; margin: 0 auto; }

.coconut-tree {
  position: absolute;
  top: -10px;
  left: -60px;
  width: 52%;
  max-width: 300px;
  z-index: 1;
  pointer-events: none;
}

.hero-btn-wrap {
  margin-top: auto;
  margin-bottom: 80px;
  position: relative;
  z-index: 3;
}
.hero-btn-wrap .img-btn img { width: 220px; }

.scroll-down-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 1.8s ease-in-out infinite;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.scroll-down-hint img { width: 32px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Rewards + Scoreboard combined section */
.rewards-scoreboard-section {
  position: relative;
  width: 100%;
  text-align: center;
}
.rewards-scoreboard-section > .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.rewards-scoreboard-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 48px;
  gap: 0;
}

.rewards-block { text-align: center; }
.scoreboard-block { text-align: center; min-height:100dvh; height:auto; }

.section-tagline { width: 90%; max-width: 380px; margin: 0 auto 20px; }
.rewards-img {position: relative; width: 120%; max-width: 480px; left: -10%; margin: 0 auto; }
.rewards-block .section-tagline { max-width: 300px; margin: 0 auto; }

.claim-img1 { position: absolute; width: 55%; max-width: 280px; height: auto; bottom: 20px; right: 10px; z-index: 2; pointer-events: none; }
.claim-img2 { position: relative; width: 90%; max-width: 380px; height: auto; left: 20px; margin-top: 20px; margin-bottom: 20px; z-index: 2; pointer-events: none; }

.scoreboard-list { display: flex; flex-direction: column; gap: 10px; width: 80%; margin: 0 auto; }

.score-row {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-height: 54px;
}
.score-box-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
}
.score-rank {
  position: relative;
  z-index: 1;
  width: 36px;
  font-size: 18px;
  font-weight: 800;
  color: #014ACA;
  text-align: center;
}
.rank-1 .score-rank { color: #FDE43A; font-size: 22px; text-shadow: 0 0 3px rgba(0,0,0,0.4); }
.rank-2 .score-rank { color: #A4D3FE; font-size: 22px; text-shadow: 0 0 3px rgba(0,0,0,0.4); }
.rank-3 .score-rank { color: #FE9950; font-size: 22px; text-shadow: 0 0 3px rgba(0,0,0,0.4); }

.score-rank, .score-info { margin-top: -8px; }
.score-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  padding-left: 10px;
}
.score-name {
  font-size: 15px;
  font-weight: 700;
  color: #014ACA;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-pts {
  font-size: 12px;
  font-weight: 600;
  color: #EB1223;
}
.score-empty {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
  padding: 20px;
  text-align: center;
}

/* Footer */
.footer-legal {
  background: #000e2a;
  padding: 16px 20px 30px;
  text-align: center;
}
.footer-legal p {
  margin: 2px 0;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}
.age-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}
.footer-legal--overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 0;
}

/* ===== FORM CARD ===== */
.form-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 90%;
  margin: 20px auto;
}
#screen-wait .form-container {
  align-items: flex-start;
}
.form-card {
  width: 88%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 30px;
  border: 1px solid #014ACA;
  background: rgba(255, 255, 255, 0.5);
  color: #014ACA;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-input::placeholder { color: #014ACA }
.form-input:focus {
  border-color: #5bc8f0;
  background: rgba(255, 255, 255, 0.7);
}

/* Gender */
.gender-group {
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.gender-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  user-select: none;
}
.gender-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 26px;
  height: 26px;
  border: 2px solid #014ACA;
  border-radius: 5px;
  background: rgba(255,255,255,1);
  color: #014ACA;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.gender-label input:checked + .checkbox-custom {
  background: #0060ff;
  border-color: #5bc8f0;
}
.gender-label input:checked + .checkbox-custom::after {
  content: '✓';
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

/* Chain name warning */
.chain-name-warning {
  font-size: 12px;
  font-weight: 700;
  color: #ffd700;
  background: rgba(0,0,0,0.35);
  border-radius: 18px;
  padding: 10px;
  line-height: 1.3;
  animation: fadeIn 0.3s ease;
  text-align: center;
}

/* Photo area */
.photo-area { flex-direction: column; gap: 10px; }
.photo-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #014ACA;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  padding: 20px 20px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
}
.photo-drop-zone:hover {
  border-color: #5bc8f0;
  background: rgba(255, 255, 255, 0.7);
}
.photo-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.photo-drop-zone-bg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #014ACA;
  background: rgba(1, 74, 202, 0.8);
  border-radius: 20px;
  width: 100%;
  height: 100%;
  padding: 20px 10px;
  transition: border-color 0.3s, background 0.3s;
}
.photo-drop-zone-bg:hover {
  background: rgba(1, 74, 202, 0.9);
}
.photo-icon { width: 50px; margin-bottom: 10px; }
.photo-drop-zone span { font-size: 18px; font-weight: 600; color: #FFF; text-align: center; margin-bottom: 10px; }
.photo-hint { font-size: 13px !important; color: #FFF !important; font-weight: 400 !important; }

.photo-preview {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}
.photo-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: background 0.2s;
}
.photo-remove:hover { background: rgba(255,0,0,0.7); }

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #014ACA;
  font-size: 14px;
  font-weight: 600;
  margin: 2px 0;
}
.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  width: 30px;
  background: #014ACA;
}

.camera-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid #1a5bbf;
  border-radius: 16px;
  background: rgba(255,255,255,0.5);
  color: #014ACA;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 1px;
  width: 100%;
}
.camera-btn:hover {
  background: rgba(255,255,255,0.8);
  border-color: #5bc8f0;
}
.camera-btn img { width: 28px; opacity: 0.9; }

/* Terms */
.terms-group { align-items: flex-start; }
.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #014ACA;
  line-height: 1.2;
  user-select: none;
}
.terms-label input[type="checkbox"] { display: none; }
.terms-label .checkbox-custom { flex-shrink: 0; margin-top: 2px; }
.terms-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.terms-label input:checked + .checkbox-custom {
  background: #1450c8;
  border-color: #5bc8f0;
}
.terms-label input:checked + .checkbox-custom::after {
  content: '✓';
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}
.terms-link {
  color: #014ACA;
  text-decoration: underline;
  font-weight: 700;
}

.chain-finished-notice {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #ffd700;
  padding: 16px;
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.form-actions .img-btn img { width: 220px; }

/* Back button */
.back-btn-wrap {
  position: absolute;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
}
.back-btn {
  margin-bottom: -20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}
.back-btn:hover { opacity: 0.7; }
.back-btn img { height: 36px; width: auto; }
#screen-wait .back-btn-wrap { display: block; }

/* .text-back-btn {
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50px;
  color: #1a3a8a;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 36px;
  cursor: pointer;
  transition: background 0.2s;
}
.text-back-btn:hover { background: #fff; opacity: 1; } */

/* ===== WAITING SCREEN ===== */
.waiting-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 24px;
  padding: 80px 20px;
  border: 1px solid #014ACA;
  background: rgba(1, 74, 202, 0.8);
  border-radius: 20px;
  width: 80%;
  position: relative;
  z-index: 2;
}

/* Spinner */
.spinner-ring {
  width: 100px;
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner-ring::before,
.spinner-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.spinner-ring::before {
  inset: 0;
  border: 5px solid rgba(255,255,255,0.15);
}
.spinner-ring::after {
  inset: 0;
  border: 5px solid transparent;
  border-top-color: #FFF;
  border-right-color: rgba(255,255,255,0.7);
  animation: spin 1s linear infinite;
}
.spinner-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #00E5FF;
  border-left-color: rgba(0,229,255,0.9);
  animation: spin 0.7s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.waiting-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.waiting-subtext {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  font-style: italic;
}

/* ===== RESULT SCREEN ===== */
.result-header {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}
.result-tagline { width: 80%; max-width: 380px; margin: 0 auto; }
.result-owner-line {
  font-size: 22px;
  font-weight: 900;
  color: #2130A7;
  text-transform: uppercase;
  position: absolute;
  left: 72%;
  transform: translateX(-50%);
  bottom: 7px;
  width: 200px;
  text-align: left;
  font-style: italic;
}
#result-owner-name { color: #2130A7; -webkit-text-stroke: 0.5px #fff; display: inline-block; transform: perspective(180px) rotateX(-6deg); }

.video-player-wrap {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  /* background: #757575; */
  border-radius: 18px;
  overflow: hidden;
}
.result-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(117, 117, 117, 0);
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.video-play-overlay img { width: 80px; }
.video-play-overlay.hidden { opacity: 0; pointer-events: none; }

.result-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 88%;
  max-width: 360px;
  margin-top: 10px;
}
.result-actions .img-btn img { width: 220px; }

.result-secondary-actions {
  display: flex;
  gap: 6px;
  flex-direction: column;
  align-items: center;
}
.icon-action-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  border: none;
  background: none;
  padding: 0;
}
.icon-action-btn img { object-fit: contain; }
#btn-download-video img { width: 130px; height: auto; }
#btn-share-video img { width: 110px; height: auto; }

/* ===== JOIN SCREEN ===== */
.join-header {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}
.join-tagline { width: 80%; max-width: 380px; margin: 0 auto; }
.join-owner-line {
  font-size: 22px;
  font-weight: 900;
  color: #2130A7;
  text-transform: uppercase;
  position: absolute;
  left: 72%;
  transform: translateX(-50%);
  bottom: 7px;
  width: 200px;
  text-align: left;
  font-style: italic;
}
#join-owner-name { color: #2130A7; -webkit-text-stroke: 0.5px #fff; display: inline-block; transform: perspective(180px) rotateX(-6deg); }

/* ===== IMAGE BUTTON ===== */
.img-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.25s ease, transform 0.15s ease;
}
.img-btn:hover { filter: brightness(1.1) saturate(1.2); }
.img-btn:active { transform: scale(0.96); }

/* ===== CAMERA MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  flex-direction: column;
}
.modal.is-active {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(68, 68, 68, 0.8);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  z-index: 1;
  width: min(90vw, 380px);
  border-radius: 20px;
  overflow-x: hidden;
  background: #001435;
  /* box-shadow: 0 16px 48px rgba(0,0,0,0.6); */
}
.modal .claim-img2 { position: absolute; bottom: 20px; left: 20px; margin: 0; }

/* Camera modal */
.camera-modal-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#camera-video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 60vh;
  object-fit: cover;
}
#camera-canvas { display: none; }
.camera-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: rgba(0,0,0,0.4);
}
.camera-actions .img-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* Terms modal */
.terms-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 30px;
  gap: 16px;
  background: rgba(0,85,234,0.9);
  overflow: visible;
  /* max-height: 80vh;
  overflow-y: auto; */
}
.terms-logo img { width: 100px; }
.terms-body {
  font-size: 13px;
  line-height: 1.4;
  color: #e8f4ff;
  text-align: left;
}
.terms-body p { margin: 0 0 12px; }
.terms-body a {
  color: #00E5FF;
  text-decoration: underline;
  font-weight: 700;
}
.terms-close-btn { position: absolute; z-index: 2; bottom: 4px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(0, 10, 40, 0.92);
  color: #fff;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  max-width: 84%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border: 1px solid rgba(91,200,240,0.2);
}
.toast.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== UTILITIES ===== */
.hidden { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Pulse for waiting */
.spinner-ring {
  animation: pulsate 2.5s ease-in-out infinite;
}
@keyframes pulsate {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

/* Mobile adjustments */
@media (max-width: 380px) {
  .logo-img { width: 100px; }
  .form-input { font-size: 14px; padding: 10px 14px; }
  .join-owner-name { font-size: 22px; }
}

@media (min-height: 750px) {
  .hero-btn-wrap { margin-bottom: 100px; }
}
