:root {
  --retro-bg: #f3efe6;
  --retro-bg-card: #ffffff;
  --retro-bg-alt: #fbf9f4;
  --retro-border: #1a1a1a;
  --retro-black: #1a1a1a;
  --retro-yellow: #f5be38;
  --retro-yellow-hover: #e5b02d;
  --retro-orange: #eb5757;
  --retro-orange-dark: #d84545;
  --retro-green: #1e4738;
  --retro-green-hover: #16362a;
  --retro-pastel-blue: #dbe7ec;
  --retro-pastel-green: #d8ebd9;
  --retro-pastel-pink: #fbe0e0;
  --retro-shadow: 4px 4px 0px #1a1a1a;
  --retro-shadow-sm: 2.5px 2.5px 0px #1a1a1a;
  --retro-shadow-lg: 6px 6px 0px #1a1a1a;
  --retro-radius: 20px;
}

html, body {
  background-color: var(--retro-bg) !important;
  color: var(--retro-black) !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Neo-Brutalist Box and Card */
.retro-box {
  background-color: var(--retro-bg-card);
  border: 2px solid var(--retro-border);
  border-radius: var(--retro-radius);
  box-shadow: var(--retro-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.retro-box-sm {
  background-color: var(--retro-bg-card);
  border: 2px solid var(--retro-border);
  border-radius: 14px;
  box-shadow: var(--retro-shadow-sm);
}

.retro-box-hero {
  background-color: var(--retro-yellow);
  border: 2px solid var(--retro-border);
  border-radius: 26px;
  box-shadow: var(--retro-shadow);
}

.retro-box-black {
  background-color: var(--retro-black);
  color: #ffffff !important;
  border: 2px solid var(--retro-border);
  border-radius: var(--retro-radius);
  box-shadow: var(--retro-shadow);
}

.retro-box-green {
  background-color: var(--retro-green);
  color: #ffffff !important;
  border: 2px solid var(--retro-border);
  border-radius: var(--retro-radius);
  box-shadow: var(--retro-shadow);
}

.retro-box-pastel {
  background-color: var(--retro-pastel-blue);
  border: 2px solid var(--retro-border);
  border-radius: var(--retro-radius);
  box-shadow: var(--retro-shadow);
}

/* Neo-Brutalist Buttons */
.retro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: 2px solid var(--retro-border);
  box-shadow: var(--retro-shadow-sm);
  transition: all 0.12s ease;
  cursor: pointer;
  text-decoration: none !important;
}

.retro-btn:hover {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0px var(--retro-border);
}

.retro-btn:active {
  transform: translate(2.5px, 2.5px);
  box-shadow: 0px 0px 0px var(--retro-border);
}

.retro-btn-black {
  background-color: var(--retro-black);
  color: #ffffff !important;
}
.retro-btn-black:hover {
  background-color: #2b2b2b;
}

.retro-btn-yellow {
  background-color: var(--retro-yellow);
  color: var(--retro-black) !important;
}
.retro-btn-yellow:hover {
  background-color: var(--retro-yellow-hover);
}

.retro-btn-orange {
  background-color: var(--retro-orange);
  color: #ffffff !important;
}
.retro-btn-orange:hover {
  background-color: var(--retro-orange-dark);
}

.retro-btn-white {
  background-color: #ffffff;
  color: var(--retro-black) !important;
}
.retro-btn-white:hover {
  background-color: #f6f6f6;
}

.retro-btn-green {
  background-color: var(--retro-green);
  color: #ffffff !important;
}

/* Small Tag/Badge */
.retro-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1.5px solid var(--retro-border);
  background-color: #ffffff;
  color: var(--retro-black);
}

/* Speech Bubble & Verification Tags (Just like screenshot) */
.retro-speech-bubble {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--retro-border);
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 2px 2px 0px var(--retro-border);
  color: var(--retro-black);
  white-space: nowrap;
}

/* Coupon Perforated Ticket */
.retro-ticket {
  display: flex;
  background-color: #ffffff;
  border: 2px solid var(--retro-border);
  border-radius: 18px;
  box-shadow: var(--retro-shadow);
  overflow: hidden;
}

.retro-ticket-left {
  background-color: var(--retro-orange);
  color: #ffffff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-right: 2px dashed #ffffff;
}

/* Inputs */
.retro-input {
  width: 100%;
  background-color: #ffffff;
  border: 2px solid var(--retro-border);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--retro-black);
  box-shadow: 2px 2px 0px var(--retro-border);
  outline: none;
  transition: all 0.15s ease;
}

.retro-input:focus {
  box-shadow: 3px 3px 0px var(--retro-black);
  border-color: var(--retro-black);
}

/* Fast Rendering Optimization */
.retro-fast-render {
  content-visibility: auto;
  contain-intrinsic-size: 50px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #ede8db; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 9999px; border: 2px solid #ede8db; }
::-webkit-scrollbar-thumb:hover { background: #eb5757; }

/* ==================== A++ NEO-BRUTALIST ROBOT MASCOT & FLAGS ==================== */
.mascot-3d-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-bg-circle {
  width: 210px;
  height: 210px;
  background: #eb5757;
  border: 2.5px solid #1a1a1a;
  border-radius: 50%;
  box-shadow: 4px 4px 0px #1a1a1a;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-robot {
  position: relative;
  z-index: 2;
  width: 155px;
  height: 110px;
  background: #ffffff;
  border: 2.5px solid #1a1a1a;
  border-radius: 26px;
  box-shadow: 4px 4px 0px #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: float-mascot 3.6s ease-in-out infinite;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-robot:hover {
  transform: translateY(-8px) scale(1.05) rotate(-2deg);
  box-shadow: 6px 6px 0px #1a1a1a;
}

@keyframes float-mascot {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

.mascot-forehead-badge {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #f6c039;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.8px;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
  z-index: 6;
  white-space: nowrap;
  text-transform: uppercase;
}

.robot-arm-left {
  position: absolute;
  bottom: 12px;
  left: -16px;
  width: 26px;
  height: 15px;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  transform: rotate(20deg);
  z-index: 3;
  box-shadow: 2px 2px 0px #1a1a1a;
}

.badge-hand-ticket {
  position: absolute;
  left: -26px;
  top: -10px;
  background: #34d399;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  padding: 2px 5px;
  font-size: 8.5px;
  font-weight: 900;
  box-shadow: 2px 2px 0px #1a1a1a;
  white-space: nowrap;
  transform: rotate(-12deg);
  animation: wave-ticket 2.4s infinite ease-in-out;
}

@keyframes wave-ticket {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(-5deg) scale(1.05); }
}

.robot-arm-right {
  position: absolute;
  bottom: 20px;
  right: -18px;
  width: 28px;
  height: 15px;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  transform: rotate(-30deg);
  z-index: 5;
  box-shadow: 2px 2px 0px #1a1a1a;
}

.mascot-flag-pole {
  position: absolute;
  top: -28px;
  right: -32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 8;
  animation: wave-flag 2.2s infinite ease-in-out;
  transform-origin: bottom center;
  cursor: pointer;
}

@keyframes wave-flag {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(10deg) scale(1.06); }
}

.mascot-flag-banner {
  width: 38px;
  height: 25px;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 2px 2px 0px #1a1a1a;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-flag-banner svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.flag-stick {
  width: 3.5px;
  height: 40px;
  background: #1a1a1a;
  border-radius: 2px;
  margin-top: -2px;
}

.antenna {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.antenna-ball {
  width: 12px;
  height: 12px;
  background: #f5be38;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  animation: pulse-antenna 1.8s infinite;
}

@keyframes pulse-antenna {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 190, 56, 0.8); }
  50% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(245, 190, 56, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 190, 56, 0); }
}

.antenna-stick {
  width: 3px;
  height: 10px;
  background: #1a1a1a;
}

.robot-ears {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  top: 32px;
}

.ear {
  width: 10px;
  height: 24px;
  background: #f5be38;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  box-shadow: 1.5px 1.5px 0px #1a1a1a;
}
.ear.left { margin-left: -7px; }
.ear.right { margin-right: -7px; }

.robot-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.robot-eyes {
  display: flex;
  gap: 28px;
  animation: blink-eyes 4s infinite;
}

@keyframes blink-eyes {
  0%, 94%, 98%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

.robot-eye {
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-pupil {
  width: 12px;
  height: 12px;
  background: #1a1a1a;
  border-radius: 50%;
  position: absolute;
}

.robot-pupil::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
}

.robot-blush {
  position: absolute;
  top: 15px;
  width: 12px;
  height: 7px;
  background: #ff8577;
  border-radius: 50%;
  opacity: 0.85;
}
.blush-left { left: 20px; }
.blush-right { right: 20px; }

.robot-smile {
  width: 30px;
  height: 11px;
  border-bottom: 3px solid #1a1a1a;
  border-radius: 0 0 15px 15px;
  margin-top: 2px;
}

/* Flag Switcher Bar in Header */
.flag-switcher-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  padding: 3px 6px;
  box-shadow: 2px 2px 0px #1a1a1a;
}

.flag-nav-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: all 0.15s ease;
  color: #1a1a1a;
  text-decoration: none !important;
}

.flag-nav-btn:hover {
  background: #fdf2d0;
  border-color: #1a1a1a;
}

.flag-nav-btn.active {
  background: #f5be38;
  border-color: #1a1a1a;
  box-shadow: 1.5px 1.5px 0px #1a1a1a;
}

.flag-nav-svg-wrap {
  width: 16px;
  height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 1px 1px 0px rgba(0,0,0,0.25);
}

.flag-nav-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
