@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Syne:wght@700;800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  /* Common variables */
  --accent: #bb6518;
  --accent-rgb: 187, 101, 24;
  --accent-hover: #ff9130;
  --accent-glow: 0 0 18px rgba(187, 101, 24, 0.4);
  
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition-theme: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- DARK THEME VARIABLES (Default) --- */
body.dark-theme {
  --bg-darker: #080605;
  --bg-dark: #0f0d0b;
  --text-light: #f5f2eb;
  --text-muted: #857e77;
  --border-glass: rgba(187, 101, 24, 0.16);
  --border-glass-hover: rgba(187, 101, 24, 0.45);
  --bg-glass: rgba(15, 13, 11, 0.8);
  --bg-glass-card: rgba(22, 19, 16, 0.65);
  --glow: rgba(187, 101, 24, 0.35);
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  --input-bg: rgba(5, 4, 3, 0.6);
}

/* --- LIGHT THEME VARIABLES --- */
body.light-theme {
  --bg-darker: #eae6dc;
  --bg-dark: #f5f2eb;
  --text-light: #1c1917;
  --text-muted: #6b6661;
  --border-glass: rgba(187, 101, 24, 0.2);
  --border-glass-hover: rgba(187, 101, 24, 0.5);
  --bg-glass: rgba(245, 242, 235, 0.85);
  --bg-glass-card: rgba(239, 235, 227, 0.7);
  --glow: rgba(187, 101, 24, 0.15);
  --card-shadow: 0 15px 35px rgba(28, 25, 23, 0.08);
  --input-bg: rgba(255, 255, 255, 0.5);
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default;
  transition: var(--transition-theme);
}

body {
  background-color: var(--bg-darker);
  color: var(--text-light);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(187, 101, 24, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* Selection */
::selection {
  background: var(--accent);
  color: #fff;
}

/* Cursors */
a, button, input[type="checkbox"], input[type="radio"], input[type="submit"], .control-btn, .task-toggle, .radio-toggle-label, .add-project-btn, .btn-remove-project {
  cursor: pointer;
}

/* --- ENVIRONMENT LAYERS --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.forest-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 50%, rgba(15, 13, 11, 0) 30%, var(--bg-darker) 95%);
  pointer-events: none;
  z-index: 2;
}

/* Background Mountain & Forest Sketches */
.background-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.mountain-sketch {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 350px;
  opacity: 0.85;
}

body.light-theme .mountain-sketch path {
  stroke: rgba(187, 101, 24, 0.2);
}

.forest-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' fill='rgba(187, 101, 24, 0.03)'%3E%3Cpath d='M20 120 L40 60 L60 120 M50 120 L75 30 L100 120 M90 120 L110 70 L130 120 M120 120 L150 40 L180 120 M200 120 L220 80 L240 120 M230 120 L260 20 L290 120 M310 120 L330 65 L350 120 M380 120 L410 45 L440 120 M470 120 L495 75 L520 120 M510 120 L540 30 L570 120 M600 120 L620 60 L640 120 M630 120 L660 15 L690 120 M710 120 L735 70 L760 120 M750 120 L780 40 L810 120 M830 120 L850 85 L870 120 M880 120 L910 25 L940 120 M960 120 L980 60 L1000 120 M1020 120 L1050 45 L1080 120 M1100 120 L1125 75 L1150 120 M1140 120 L1170 30 L1200 120'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: contain;
  background-position: bottom;
  opacity: 0.7;
}

body.light-theme .forest-silhouette {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' fill='rgba(187, 101, 24, 0.07)'%3E%3Cpath d='M20 120 L40 60 L60 120 M50 120 L75 30 L100 120 M90 120 L110 70 L130 120 M120 120 L150 40 L180 120 M200 120 L220 80 L240 120 M230 120 L260 20 L290 120 M310 120 L330 65 L350 120 M380 120 L410 45 L440 120 M470 120 L495 75 L520 120 M510 120 L540 30 L570 120 M600 120 L620 60 L640 120 M630 120 L660 15 L690 120 M710 120 L735 70 L760 120 M750 120 L780 40 L810 120 M830 120 L850 85 L870 120 M880 120 L910 25 L940 120 M960 120 L980 60 L1000 120 M1020 120 L1050 45 L1080 120 M1100 120 L1125 75 L1150 120 M1140 120 L1170 30 L1200 120'/%3E%3C/svg%3E");
  opacity: 0.9;
}

/* Light Theme repeating pattern overlay */
body.light-theme::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('assets/1001695724-01.jpeg');
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: 0.035;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

.page-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 2rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-glass);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

body.dark-theme .logo-light { display: none; }
body.dark-theme .logo-dark { display: block; }
body.light-theme .logo-light { display: block; }
body.light-theme .logo-dark { display: none; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(187, 101, 24, 0.3);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-btn, .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(187, 101, 24, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.control-btn:hover, .social-btn:hover {
  background: rgba(187, 101, 24, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--accent-glow);
  transform: translateY(-2px);
}

.control-btn.active {
  background: rgba(187, 101, 24, 0.25);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--accent-glow);
}

body.light-theme .control-btn.active {
  color: var(--accent);
}

.social-divider {
  width: 1px;
  height: 20px;
  background: var(--border-glass);
  margin: 0 0.5rem;
}

/* =========================================================================
   BENTO GRID ARCHITECTURE (Hero)
   ========================================================================= */
.hero-bento-section {
  min-height: 100vh;
  padding: 8rem 4rem 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.bento-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

/* Bento Card Style */
.bento-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--card-shadow), 0 0 20px rgba(187, 101, 24, 0.08);
}

/* Grid configurations */
.hero-main-card {
  grid-column: span 2;
  justify-content: center;
}

.hero-pfp-card {
  grid-column: span 1;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  padding: 1.5rem;
}

.hero-stats-card {
  grid-column: span 1;
}

.hero-lore-card {
  grid-column: span 2;
  justify-content: center;
}

/* Hero elements styling */
.hero-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(187, 101, 24, 0.3);
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 1.5s infinite alternate;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.hero-title span.orange-glow {
  background: linear-gradient(135deg, var(--accent) 30%, var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 480px;
}

.btn-action {
  flex-direction: column;
  padding: 1.8rem 1.5rem;
  border-radius: 14px;
  text-align: center;
}

.btn-action svg {
  width: 28px;
  height: 28px;
  margin-bottom: 0.25rem;
}

/* Mascot PFP Card */
.pfp-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: #000;
  position: relative;
}

.pfp-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-pfp-card:hover .pfp-frame img {
  transform: scale(1.06) rotate(1deg);
}

.card-caption {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-caption h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.card-caption span {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}

/* Stats Card */
.stats-header {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

/* Lore Card */
.lore-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-lore-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.glow-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1s infinite alternate;
}

/* =========================================================================
   BUTTON STYLES
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--accent-glow);
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

body.light-theme .btn-primary:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

.btn-secondary {
  background: rgba(187, 101, 24, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--accent);
}

.btn-secondary:hover {
  background: rgba(187, 101, 24, 0.15);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  box-shadow: var(--accent-glow);
  transform: translateY(-2px);
}

/* =========================================================================
   SECTION GENERAL
   ========================================================================= */
.section-wrapper {
  padding: 8rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Gutter spacer for canvas roots to crawl cleanly outside the wrap boxes */
.root-wrap {
  margin: 10px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================================================
   WHITELIST SECTION: BENTO
   ========================================================================= */
.whitelist-bento-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.wl-tasks-card {
  grid-column: span 1;
}

.wl-side-pfp {
  grid-column: span 1;
  padding: 0;
  position: relative;
  border-radius: 20px;
  min-height: 380px;
}

.pfp-grid-decor {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.pfp-grid-decor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.side-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  border-radius: 0 0 20px 20px;
  color: #fff;
}

.side-info-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.side-info-overlay p {
  font-size: 0.85rem;
  opacity: 0.75;
}

.wl-eth-card {
  grid-column: span 2;
  padding: 2.5rem;
}

.wallet-submission-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.wallet-label-desc h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.wallet-label-desc p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.wallet-input-container {
  display: flex;
  gap: 1rem;
  min-width: 500px;
}

.wallet-input-container .form-input-wrapper {
  flex-grow: 1;
}

/* =========================================================================
   FORMS & INPUTS
   ========================================================================= */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label span.req {
  color: var(--accent);
  font-size: 0.75rem;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1.1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  background: var(--input-bg);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(187, 101, 24, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Input validation states */
.form-input.valid {
  border-color: var(--accent) !important;
  box-shadow: 0 0 10px rgba(187, 101, 24, 0.1) !important;
}

.form-input.invalid {
  border-color: #c8102e !important;
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.1) !important;
  animation: shake 0.4s ease;
}

.validation-indicator {
  position: absolute;
  right: 1.25rem;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition-smooth);
}

.validation-indicator.visible {
  opacity: 1;
  transform: scale(1);
}

.validation-indicator svg {
  width: 18px;
  height: 18px;
}

.validation-indicator.valid svg {
  color: var(--accent);
  filter: drop-shadow(0 0 5px var(--accent));
}

.validation-indicator.invalid svg {
  color: #c8102e;
  filter: drop-shadow(0 0 5px #c8102e);
}

.form-helper {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- SOCIAL CHECKS (Whitelist Tasks) --- */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem;
  background: rgba(187, 101, 24, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.task-item:hover {
  background: rgba(187, 101, 24, 0.06);
  border-color: var(--border-glass-hover);
}

.task-info {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex-grow: 1;
}

.task-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

body.light-theme .task-icon {
  background: rgba(255, 255, 255, 0.6);
}

.task-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}

.task-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
}

.task-item .task-input {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  margin-top: 0.65rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  outline: none;
  transition: var(--transition-smooth);
}

body.light-theme .task-item .task-input {
  background: rgba(255, 255, 255, 0.45);
}

.task-item .task-input:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 8px rgba(187, 101, 24, 0.15);
}

body.light-theme .task-item .task-input:focus {
  background: rgba(255, 255, 255, 0.75);
}

.task-action-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(187, 101, 24, 0.06);
  border: 1.5px solid var(--border-glass);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
}

.open-btn:hover {
  background: rgba(187, 101, 24, 0.16);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  box-shadow: var(--accent-glow);
}

.open-btn.loading {
  background: rgba(187, 101, 24, 0.03) !important;
  border-color: var(--border-glass) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.task-toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

.task-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 34px;
  transition: var(--transition-smooth);
}

body.light-theme .toggle-slider {
  background-color: rgba(0, 0, 0, 0.08);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.task-toggle input:checked + .toggle-slider {
  background-color: rgba(187, 101, 24, 0.2);
  border-color: var(--accent);
}

.task-toggle input:checked + .toggle-slider:before {
  background-color: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  transform: translateX(22px);
}

/* When checked, update task item style */
.task-item.completed {
  border-color: rgba(187, 101, 24, 0.4);
  background: rgba(187, 101, 24, 0.05);
}

/* =========================================================================
   COLLABORATION SECTION: BENTO
   ========================================================================= */
.collab-bento-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.collab-form-card {
  grid-column: span 2;
  grid-row: span 2;
}

.collab-mascot-card {
  grid-column: span 1;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  text-align: center;
}

.collab-mascot-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.collab-mascot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.collab-mascot-card:hover .collab-mascot-frame img {
  transform: scale(1.05) rotate(-1deg);
}

.collab-card-caption {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collab-card-caption h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.collab-card-caption span {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}

.collab-alerts-card {
  grid-column: span 1;
  justify-content: space-between;
}

.alerts-header {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
}

.collab-alerts-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sketches-overlay {
  margin-top: 1.5rem;
  width: 100%;
}

.mini-mountain-sketch {
  width: 100%;
  height: auto;
  display: block;
}

/* Multiple Projects list */
.project-inputs-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-input-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  animation: slideDown 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.btn-remove-project {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.2);
  border-radius: 10px;
  color: #c8102e;
  transition: var(--transition-smooth);
}

.btn-remove-project:hover {
  background: #c8102e;
  color: #fff;
  box-shadow: 0 0 10px rgba(200, 16, 46, 0.3);
}

.add-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(187, 101, 24, 0.05);
  border: 1px dashed rgba(187, 101, 24, 0.4);
  color: var(--accent);
  padding: 0.75rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  align-self: flex-start;
  transition: var(--transition-smooth);
  margin-top: 0.25rem;
}

.add-project-btn:hover {
  background: rgba(187, 101, 24, 0.12);
  border-style: solid;
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* Radio / Button Toggles */
.radio-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.radio-toggle-item {
  position: relative;
}

.radio-toggle-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem;
  background: var(--input-bg);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.radio-toggle-item input:checked + .radio-toggle-label {
  background: rgba(187, 101, 24, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--accent-glow);
}

.radio-toggle-label:hover {
  border-color: var(--border-glass-hover);
  color: var(--text-light);
}

/* Conditional Field container */
.conditional-field {
  display: none;
  animation: slideDown 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.conditional-field.visible {
  display: flex;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 2rem 2rem 2rem;
  background: var(--bg-glass);
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  border-radius: 4px;
}

.footer-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  font-family: var(--font-display);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* =========================================================================
   POPUPS / MODALS
   ========================================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 6, 5, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.light-theme .modal-overlay {
  background: rgba(234, 230, 220, 0.85);
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass-hover);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 30px rgba(187, 101, 24, 0.08);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.modal-overlay.visible .modal-card {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(187, 101, 24, 0.12);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.8rem auto;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
  animation: float 3s ease-in-out infinite;
}

.modal-icon svg {
  width: 36px;
  height: 36px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.modal-title span {
  color: var(--accent);
}

.modal-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.2rem;
  line-height: 1.5;
}

/* =========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================= */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 5px var(--accent);
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 15px var(--accent);
  }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

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

/* --- GLITCH FX ON HOVER --- */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
  clip: rect(0, 0, 0, 0); 
}

.glitch-text:hover::before {
  left: 2px;
  text-shadow: -2px 0 var(--accent);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text:hover::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent-hover);
  clip: rect(85px, 450px, 140px, 0);
  animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip: rect(10px, 9999px, 85px, 0); }
  10% { clip: rect(80px, 9999px, 5px, 0); }
  20% { clip: rect(50px, 9999px, 110px, 0); }
  30% { clip: rect(12px, 9999px, 43px, 0); }
  40% { clip: rect(95px, 9999px, 70px, 0); }
  50% { clip: rect(3px, 9999px, 130px, 0); }
  60% { clip: rect(120px, 9999px, 20px, 0); }
  70% { clip: rect(65px, 9999px, 95px, 0); }
  80% { clip: rect(15px, 9999px, 60px, 0); }
  90% { clip: rect(85px, 9999px, 115px, 0); }
  100% { clip: rect(40px, 9999px, 30px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(80px, 9999px, 110px, 0); }
  10% { clip: rect(15px, 9999px, 60px, 0); }
  20% { clip: rect(95px, 9999px, 40px, 0); }
  30% { clip: rect(5px, 9999px, 130px, 0); }
  40% { clip: rect(75px, 9999px, 12px, 0); }
  50% { clip: rect(110px, 9999px, 95px, 0); }
  60% { clip: rect(30px, 9999px, 50px, 0); }
  70% { clip: rect(125px, 9999px, 15px, 0); }
  80% { clip: rect(40px, 9999px, 80px, 0); }
  90% { clip: rect(2px, 9999px, 105px, 0); }
  100% { clip: rect(90px, 9999px, 120px, 0); }
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 1200px) {
  .bento-container {
    grid-template-columns: 1fr 1fr;
  }
  .hero-main-card {
    grid-column: span 2;
  }
  .hero-lore-card {
    grid-column: span 2;
  }
  .hero-stats-card {
    grid-column: span 1;
  }
  .hero-pfp-card {
    grid-column: span 1;
  }
  .collab-bento-container {
    grid-template-columns: 1fr 1fr;
  }
  .collab-form-card {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .whitelist-bento-container {
    grid-template-columns: 1fr;
  }
  .wl-tasks-card {
    grid-column: span 1;
    order: 1;
  }
  .wl-eth-card {
    grid-column: span 1;
    order: 2;
  }
  .wl-side-pfp {
    grid-column: span 1;
    order: 3;
  }
  .wallet-submission-flow {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .wallet-input-container {
    min-width: 0;
  }
  .hero-bento-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .section-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none; /* Mobile navigation simplified */
  }
  .bento-container {
    grid-template-columns: 1fr;
  }
  .hero-main-card, .hero-pfp-card, .hero-stats-card, .hero-lore-card {
    grid-column: span 1;
  }
  .collab-bento-container {
    grid-template-columns: 1fr;
  }
  .collab-form-card, .collab-mascot-card, .collab-alerts-card {
    grid-column: span 1;
  }
  .hero-title {
    font-size: 2.6rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .wallet-input-container {
    flex-direction: column;
    min-width: 0;
    width: 100%;
  }
  .wallet-input-container .btn-submit-wallet {
    width: 100%;
  }
  .task-item {
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
  }
  .task-action-wrapper {
    margin-left: 0;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid rgba(187, 101, 24, 0.08);
    padding-top: 0.85rem;
  }
  .hero-bento-section, .section-wrapper {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 5rem;
  }
  .bento-card {
    padding: 1.25rem;
  }
  .root-wrap {
    margin: 0;
  }
}
