@import "/core.css";
/* ==============================================
   GLOBAL BASE STYLES
   ============================================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #F0F4F8;
  color: #333;
  min-width: 300px;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==============================================
   HEADER + NAVIGATION + AUTH + PROFILE
   ============================================== */
header {
  width: 100%;
  background: #b9ffffff;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 500;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  position: relative;
}
.logo img {
  width: 229px;
  height: 78px;
}

/* ---------- Navigation ---------- */
nav {
  background: #333;
}
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.5rem;
  gap: 3rem;
}
nav ul li a {
  text-decoration: none;
  font-weight: bold;
  color: #eee;
}
.live-icon {
	position: relative;
	font-size: 0.8rem;
	top: -2px;
}

/* Mobile dropdown nav */
@media (max-width: 768px) {
  #navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #333;
    display: none;
    flex-direction: column;
    text-align: center;
    padding: 0.75rem 0;
    z-index: 400;
  }
  #navbar.open { display: flex; }
  #navbar ul {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
  }
  #navbar ul li a {
    color: #eee;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    display: block;
  }
  #navbar ul li a:hover { background: #2a7d7d; }
}

/* ---------- Auth Buttons ---------- */
.auth-buttons {
  display: flex;
  gap: 0.5rem;
}
.auth-buttons button {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #0073e6;
  color: #fff;
  font-size: 0.9rem;
}

/* Mobile dropdown auth list */
@media (max-width: 768px) {
  .auth-buttons {
    position: absolute;
    right: 1rem;
    top: 55px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 9999;
    padding: 0;
    min-width: 200px;
  }

  .auth-buttons.active {
    display: flex;
  }

  .auth-buttons button {
    width: 100%;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: #333;
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
  }

  .auth-buttons button:hover {
    background: #f0f0f0;
    color: #000;
  }

  .auth-buttons a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
  }
}

/* ---------- Auth Pages (Login & Signup) ---------- */
.auth-section {
  max-width: 400px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form label {
  margin: 0.5rem 0 0.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s;
}

.auth-form input:focus {
  border-color: #0077cc;
  outline: none;
}

.show-password {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 1rem;
}
.show-password input { margin-right: 0.5rem; }

.form-message {
  text-align: center;
  font-style: italic;
  margin: 10px 0;
}

.form-agree {
  text-align: left;
  margin: 10px 0;
}

.error { color: red; }

.form-footer { text-align: center; }

/* Auth buttons (form submit) */
button {
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
button a {
  text-decoration: none;
  color: #fff;
}
button:hover {
  background-color: #005fa3;
}

/* ---------- Buttons (Primary + Secondary) ---------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

/* Primary Button */
.btn-primary {
  background: #d9643b;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-primary:hover {
  background: #f28560;
}

/* Secondary Button */
.btn-secondary {
  background: #f2b632;
  color: #333;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-secondary:hover {
  background: #f7c163;
}



/* ---------- Profile (Logged-in) ---------- */
.profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: #e8f8f8;
  border: 1px solid #a0dede;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: background 0.2s, box-shadow 0.2s;
}
.profile:hover {
  background: #e3f0f2;
  border-color: #8ccccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #8ccccc;
  background-color: #cde4e7;
  object-fit: cover;
}

/* Profile info + XP */
.profile-info {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.profile-name { font-weight: 600; font-size: 0.95rem; }
.profile-level { font-weight: 700; font-size: 1rem; color: #2a7d7d; }
.xp-bar-container { margin-top: 0.15rem; }
.xp-bar {
  position: relative;
  background: #ddd;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a7d7d, #48bfbf);
  width: 0%;
  transition: width 1s ease-in-out;
  border-radius: 5px;
}
.xp-text {
  font-size: 0.7rem;
  color: #333;
  margin-top: 2px;
  text-align: right;
}
.xp-float {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-weight: bold;
    color: #222;
    font-size: 0.9rem;
    opacity: 1;
    transition: transform 1s ease-out, opacity 1s ease-out;
    pointer-events: none;
}
.xp-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2a7d7d;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
}
.xp-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Profile dropdown */
.profile-dropdown {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.profile-dropdown.active { display: block; }
#profileDropdown {
  position: absolute;
  top: 55px;
  right: 0;
  z-index: 9999;
}
.profile-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
}
.profile-dropdown a:hover { background: #f0f0f0; }

/* Mobile profile dropdown */
@media (max-width: 768px) {
  .profile img { width: 32px; height: 32px; }
  .profile-info { display: none; }
  #profileDropdown { top: 47px; }
  .profile-dropdown-mobile-info {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 4px;
    z-index: 100;
  }
  .profile-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    font-weight: bold;
  }
  .profile-dropdown a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .profile-dropdown a:hover { background-color: #e0f7fa; }
}
@media (min-width: 769px) {
  .profile-dropdown-mobile-info { display: none; }
}

/* ---------- Mobile Header Controls ---------- */
.menu-icon, .user-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  header {
    border-bottom: 20px solid #333;
  }
  .header-top { justify-content: center; }
  .logo img { margin: 0 auto; width: 132px; height: 45px; }
  .auth-buttons { display: none; }
  .menu-icon { display: block; position: absolute; left: 1rem; }
  .user-icon { display: block; position: absolute; right: 1rem; }
}

/* ---------- Footer ---------- */
footer {
  width: 100%;
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  line-height: 1.5rem;
  font-size: 0.8rem;
}

footer a {
	color: #fff;
}

/* ==============================================
   HERO + QUIZZES
   ============================================== */
main {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  background-color: #2a7d7d;
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
  gap: 2rem;
  align-items: center;
}
.hero-narrow { max-width: 1000px; padding: 0 1rem; }
.hero-text { flex: 1 1 330px; }
.hero-button { flex: 1 1 330px; justify-content: right; }
.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}
.hero-text h2 { color: #fff; }
.hero-text p { margin-bottom: 1.5rem; color: #eee; }
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.hero-livestream {
  flex: 1 1 330px;
  text-align: center;
}
.hero-livestream img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .hero-content { flex-direction: column; text-align: center; gap: 0; }
  .hero-buttons { justify-content: center; }
  .hero-text, .hero-livestream { flex: 1 1 auto; }
}

/* Quizzes */
.quizzes {
  padding: 0.5rem 1.5rem;
  text-align: center;
}
.quizzes h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.quiz-card {
  background: #c4d1d9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.quiz-card h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.quiz-cta { margin: 1rem 0; }

/* ==============================================
   PASSPORT + COMMUNITY + STATS
   ============================================== */

/* ==============================================
   PASSPORT SECTION
   ============================================== */
.passport {
  padding: 3rem 1.5rem;
  text-align: center;
  background: #d6f0f2;
}
.passport h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.passport p {
  max-width: 600px;
  margin: 0 auto 2rem;
}
.passport-preview img {
  max-width: 300px;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Layout containers */
.passport-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.passport-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f4f8;
  padding: 1.5rem;
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 1rem;
}
.user-info { display: flex; align-items: center; gap: 1rem; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.streak i { color: #ff6b3b; margin-right: 0.5rem; }

/* XP progress */
.progress { min-width: 200px; }
.progress-bar {
  background: #dfe7ed;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.progress-fill {
  background: #A3C586;
  height: 100%;
  border-radius: 8px;
}

/* Grid layout */
.passport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.passport-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.5rem;
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.activity-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Suggestions + stamps */
.suggestions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto;
}
.passport-card,
.suggestion-card {
  background: #f7f7f7;
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1rem auto;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  max-width: 400px;
  transition: transform 0.2s ease;
}
.passport-card p,
.suggestion-card p { color: #000; }
.passport-card.highlight { border: 2px solid #A7C957; }
.survey-suggestion { text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .passport-grid { grid-template-columns: 1fr; }
  .passport-summary { flex-direction: column; align-items: flex-start; }
}

/* ==============================================
   COMMUNITY SECTION
   ============================================== */
.community {
  padding: 3rem 1.5rem;
  text-align: center;
}
.community h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
  list-style: none;
  padding: 0;
}
.stats li {
  font-size: 1.1rem;
  font-weight: bold;
}
.recent-activity {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.activity-card {
  background: #b9e0e3;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* ==============================================
   SOCIAL PROOF / STAT CARDS
   ============================================== */
.social-proof {
  max-width: 1000px;
  margin: 2rem auto;
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}
.stat-card {
  flex: 1 1 150px;
  background: #c4d1d9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.stat-card h2 {
  font-size: 2rem;
  color: #2a7ae2;
  margin-bottom: 0.5rem;
}
.stat-card p {
  font-size: 0.95rem;
  color: #555;
}

/* ==============================================
   LIVESTREAM PAGE
   ============================================== */
.livestream-hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.livestream-hero h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.livestream-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 1rem;
}
.livestream-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Livestream Thumbnails */
.livestream-thumbnail {
  position: relative;
  cursor: pointer;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 ratio */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.thumbnail-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  pointer-events: none;
}
.livestream-note {
  margin-bottom: 2rem;
  color: #555;
  font-size: 0.95rem;
}

/* Engagement panel */
.engagement-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto 2rem;
}
.engagement-panel h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
}
.engagement-panel .btn {
  width: 100%;
  text-align: center;
}

.live-presence {
  font-size: 0.9em;
  color: #333;
  background: rgba(0,0,0,0.1);
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 8px;
}
.live-presence a {
  text-decoration: none;
}
.live-presence a:hover {
  text-decoration: underline;
}

/* Recent activity list */
.recent-activity {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recent-activity li {
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

.filter-tabs { display:flex; gap:.5rem; align-items:center; }
.filter-tabs .sep { opacity:.5; }
.filter-tabs button {
  padding:4px 10px; border-radius:6px; border:1px solid #d9643b; background:#d9643b; color:#333; cursor:pointer;
}
.filter-tabs button.active { background:#f2b632; color:#000; }
.activity-item { padding:6px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.activity-item .activity-user a { text-decoration:none; }
.activity-xp { margin-left:8px; opacity:.8; }
.species-row { padding:6px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.species-row .meta { opacity:.8; font-size:.92em; }

.show-more {
  padding: 6px 14px;
  border: 1px solid #2a7d7d;
  border-radius: 6px;
  background: transparent;
  color: #b9ffff;
  cursor: pointer;
}
.show-more:hover { background:#2a7d7d; color:#fff; } 

.activity-list .meta {
  color: #888;
  font-size: 0.9rem;
}

/* Two-column layout */
@media (min-width: 768px) {
  .livestream-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
  }
  .livestream-hero { flex: 2; text-align: left; }
  .engagement-panel { flex: 1; margin: 0; }
}

/* REACTIONS  */

/* Reaction bar inside flex layouts */
.reaction-bar {
  display: flex;          /* flex, not inline-flex is fine now */
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
  font-size: 0.9em;
  line-height: 1;
}

.reaction-bar .react {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0.6;
  font-family: inherit;
  font-size: 0.95em;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: transform 0.15s ease, opacity 0.2s ease;
}



.reaction-bar .react:hover {
  opacity: 1;
  transform: scale(1.15);
}

.reaction-bar .react.active {
  opacity: 1;
  transform: scale(1.1);
}


.reaction-bar button {
	color: #333;
}
@media (max-width: 600px) {
  .reaction-bar .react:hover {
    transform: none;
  }
}



/* ==============================================
   STAMPS
   ============================================== */
.stamp-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  color: #000;
  font-size: 1.5rem;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stamp span {
  font-size: 0.7rem;
  margin-top: 0.25rem;
}
.stamp.blue { background-color: #4DA3FF; }
.stamp.bronze { background-color: #CD7F32; }
.stamp.silver { background-color: #C0C0C0; }
.stamp.gold { background-color: #FFD700; }
.stamp.green { background-color: #4CAF50; }
.stamp.purple { background-color: #9C27B0; }
.stamp.teal { background-color: #009688; }
.stamp.emerald { background-color: #2ECC71; }
.stamp.master { background-color: #E6B800; border: 2px solid #00E5FF; }

.stamp.glow {
  box-shadow: 0 0 10px 3px rgba(255,215,0,0.8);
  animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 6px 2px rgba(255,215,0,0.6); }
  50% { box-shadow: 0 0 14px 4px rgba(255,215,0,1); }
  100% { box-shadow: 0 0 6px 2px rgba(255,215,0,0.6); }
}
.stamp:hover { transform: scale(1.1); color: #fff; }
.stamp.locked {
  background-color: #ccc;
  color: #777;
  opacity: 0.6;
  position: relative;
}
.stamp.locked .lock-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.6rem;
  color: #666;
}
.stamp.locked:hover { transform: none; box-shadow: none; }
.stamp.unlocked {
  background-image: url('/image/site/stampoutline.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ==============================================
   PAGINATION + INFO BOXES
   ============================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}
.page-btn {
  background: #2a7d7d;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}
.page-btn:hover { background: #246767; }
.page-btn.active {
  background: #ff9f1c;
  font-weight: bold;
  cursor: default;
}

/* Info boxes */
.info-box {
  background: #fff8ec;
  border-left: 4px solid #ff9f1c;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.7rem;
  text-align: left;
}
.info-box h3 {
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
}
.info-box i { color: #ff9f1c; }
.info-box p { margin: 0; color: #4a4a4a; }

.error-box {
  background: #fff3f3;
  border-left-color: #d9534f;
}
.error-box i { color: #d9534f; }

.success-box {
  background: #e7f9f1;
  border-left: 4px solid #2a7d7d;
  color: #1f3f3f;
}
.success-box h3 { color: #2a7d7d; }
.success-box i { color: #2a7d7d; }

/* ==============================================
   RESPONSIVE TWEAKS
   ============================================== */
@media (max-width: 768px) {
  .hero-content { flex-direction: column; text-align: center; gap: 0; }
  .hero-buttons { justify-content: center; }
}

/* Fix iframe stacking over dropdowns */
iframe {
  z-index: 1;
}
header,
nav,
.profile-dropdown,
.auth-buttons {
  z-index: 9999 !important;
}

/* Fix radio buttons being full-width */
input[type="radio"],
input[type="checkbox"] {
  width: auto !important;
  display: inline-block;
}

.unlock-profile-bird {
    padding: 10px 12px;
    border-bottom: 1px solid #e3eaea;
    background: #f6fdfd;
}

.upb-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #1f5c5c;
}

.upb-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #1f5c5c;
    text-decoration: underline;
}
.upb-link:hover {
    text-decoration: none;
}

.notification-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 16px 20px;
  z-index: 9999;
  width: 280px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.notification-popup.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.popup-inner {
  position: relative;
  font-size: 0.95rem;
}

.notification-popup .close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  cursor: pointer;
}


/* ============================
   NOTIFICATION MODAL BASE
============================ */
.notif-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.2s ease;
}

.notif-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.notif-modal-content {
    background: #ffffff;
    padding: 1.8rem;
    width: min(420px, 90%);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    text-align: center;
    position: relative;
    animation: notifPop 0.25s ease forwards;
}

@keyframes notifPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.notif-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #777;
}

.notif-close:hover {
    color: #000;
}

/* Worm unlock special header */
.worm-unlock-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.worm-stamp-img {
    width: 120px;
    margin: 0.4rem auto 1rem;
    display: block;
}
.site-note {
    font-size: 0.75rem;
    color: #bbb;
    text-align: center;
    margin: 0.5rem 0;
}
.xp-label {
  font-size: 0.75rem;
  color: #2a7d7d;
  text-align: right;
  padding-top: 5px;
}