/* CSS Variables for common values */
:root {
  /* Colors */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #64748b;
  --color-text-quaternary: #9ca3af;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: rgba(255, 255, 255, 0.9);
  --color-bg-overlay: rgba(255, 255, 255, 0.95);
  --color-border: rgba(148, 163, 184, 0.25);
  --color-border-hover: rgba(148, 163, 184, 0.4);
  --color-accent-orange: #f97316;
  --color-accent-orange-hover: #ea580c;
  --color-accent-blue: #38bdf8;
  --color-accent-purple: #a855f7;
  --color-success: #22c55e;
  --color-error: #ef4444;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 7px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.15);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.15);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.2);
  --shadow-xl: 0 16px 40px rgba(15, 23, 42, 0.9);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  /* Backdrop blur */
  --blur-sm: blur(10px) saturate(180%);
  --blur-md: blur(20px) saturate(180%);
  
  /* Z-index */
  --z-base: 1;
  --z-content: 100;
  --z-header: 1001;
  --z-modal: 2000;
  --z-notification: 3000;
}

/* Bruno Ace Font - Using Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bruno+Ace&display=swap');

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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  min-height: 100vh;
}

main {
  padding-top: 0;
  position: relative;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--spacing-lg);
  backdrop-filter: var(--blur-md);
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--color-border);
}

.logo-title {
  position: fixed;
  top: 0.75rem;
  left: var(--spacing-lg);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-vrhuman-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Style for VRHUMANSignature link */
.logo-title a,
.vrhuman-logo a {
  display: inline-block;
  text-decoration: none;
  border: none;
  outline: none;
  transition: opacity 0.2s ease;
}

.logo-title a:hover,
.vrhuman-logo a:hover {
  opacity: 0.8;
}

.logo-title a:focus,
.vrhuman-logo a:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.logo-mark {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.8rem;
  color: #0f172a;
  box-shadow: none;
  line-height: 1;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f9fafb;
}

.site-subtitle {
  font-size: 0.8rem;
  color: #d1d5db;
}

.site-nav {
  position: fixed;
  top: 0.75rem;
  right: var(--spacing-lg);
  z-index: var(--z-header);
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.9rem;
}

.site-nav a {
  color: #0f172a;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
}

.site-nav a:hover {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.05);
}

.site-nav a.donation-btn {
  background: #700000;
  color: #ffffff;
  font-family: 'Bruno Ace', 'Orbitron', sans-serif;
  font-weight: 600;
  border: 1px solid #700000;
  padding: 0.5rem 1.25rem;
  border-radius: 0;
}

.site-nav a.donation-btn:hover {
  background: #8b0000;
  border-color: #8b0000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(112, 0, 0, 0.4);
}

.site-nav a[href="/news"] {
  display: none;
}

.island-module-map {
  position: fixed;
  top: calc(0.75rem + 2.5rem); /* Below the nav (0.75rem top + ~2.5rem button height) */
  right: var(--spacing-lg); /* Align with button's right edge (same as site-nav right) */
  z-index: var(--z-header);
  max-width: calc(100% - var(--spacing-lg)); /* Extend to right edge of screen */
  height: auto;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: top right;
  display: none; /* Hidden by default, shown when coin >= 1 */
}

.island-module-map-index {
  position: fixed;
  top: calc(0.75rem + 2.5rem); /* Below the nav (0.75rem top + ~2.5rem button height) */
  right: var(--spacing-lg); /* Align with button's right edge (same as site-nav right) */
  z-index: var(--z-header);
  max-width: calc(100% - var(--spacing-lg)); /* Extend to right edge of screen */
  height: auto;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: top right;
  padding: 0;
  margin: 0;
}

.map-layout {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  padding: 0;
  margin: 0;
}

.left-side-line-container {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  padding-left: 2rem;
  padding-bottom: 3rem;
  z-index: 100;
}

.left-side-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

.contribute-button {
  display: inline-block;
  background-color: #ffffff;
  color: #0f172a;
  padding: 0.75rem 2rem;
  text-decoration: none;
  font-family: 'Bruno Ace', 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-out;
  text-align: center;
}

.contribute-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.acquisition-goals {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.acquisition-goal-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.acquisition-goal-headline {
  font-family: 'Bruno Ace', 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.acquisition-goal-progress {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.acquisition-goal-progress-bar {
  height: 100%;
  background-color: #ffffff;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.acquisition-goal-line {
  width: 100%;
  height: 1px;
  background-color: #ffffff;
}

.map-item-slots {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.map-item-slots .item-slot-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-item-slots .pixelated-square {
  width: 150px;
  height: 150px;
  background-image: url('resources/ItemSlot.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.map-item-slots .hat-slot {
  background-image: url('resources/ItemSlotClear.png');
  background-color: transparent;
  overflow: visible;
}

.map-item-slots .frosted-glass-bg {
  position: absolute;
  top: calc(10% - 5px);
  left: calc(10% - 5px);
  width: calc(80% + 10px);
  height: calc(80% + 10px);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  opacity: 1;
}

.map-item-slots .item-slot-image {
  width: 80%;
  height: 80%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.map-sidebar {
  position: absolute;
  top: 80px;
  left: 1.5rem;
  width: 380px;
  max-width: calc(100% - 3rem);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.6);
  padding: 1.5rem 1.75rem 1.4rem;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.map-sidebar h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.map-sidebar p {
  font-size: 0.9rem;
  color: #475569;
}

.filters h2 {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #475569;
}

.filter-group input[type='checkbox'] {
  accent-color: #38bdf8;
  width: 16px;
  height: 16px;
}

.legend {
  margin-top: 0.4rem;
}

.legend h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.legend ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.35rem;
}

.legend-dot.stay {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.35);
}

.legend-dot.culture {
  background: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.35);
}

.legend-dot.agri {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}

.legend-dot.sports {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.sidebar-note {
  font-size: 0.78rem;
  color: #9ca3af;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  padding-top: 0.5rem;
}

.map-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: #0a1a2e;
  backdrop-filter: none;
}

#map {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  transition: filter 0.3s ease;
}

.visual-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* NES 8-bit Style Effects */
#map.nes-style {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: contrast(1.3) saturate(0.7) brightness(0.9);
}

#map.nes-style canvas {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Pixelated raster tiles for NES style */
#map.nes-style .maplibregl-canvas-container canvas {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* NES layer styling - ensure it renders on top */
#map.nes-style [data-layer-id="nes-tiles"] {
  mix-blend-mode: multiply;
}

/* Additional NES-style effects */
#map.nes-style::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.03) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 3px
    );
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: overlay;
}

/* Topographical Contour Lines Overlay */
.contour-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.contour-svg {
  width: 100%;
  height: 100%;
}

/* Holographic Mode Effects */
#map.holographic-mode {
  position: relative;
}

.holographic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 15;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.1) 0%,
    rgba(168, 85, 247, 0.1) 25%,
    rgba(236, 72, 153, 0.1) 50%,
    rgba(251, 146, 60, 0.1) 75%,
    rgba(56, 189, 248, 0.1) 100%
  );
  background-size: 400% 400%;
  background-position: 0% 50%;
  mix-blend-mode: screen;
  opacity: 0.3;
  animation: holographicShimmer 8s ease-in-out infinite;
}

@keyframes holographicShimmer {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.3;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.5;
  }
}

/* Holographic glow effect on map container */
#map.holographic-mode::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    #38bdf8,
    #a855f7,
    #ec4899,
    #fb923c,
    #38bdf8
  );
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 7px;
  opacity: 0.6;
  filter: blur(8px);
  animation: holographicBorder 6s ease infinite;
  pointer-events: none;
}

@keyframes holographicBorder {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Holographic scanline effect */
#map.holographic-mode::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(56, 189, 248, 0.8),
    transparent
  );
  z-index: 20;
  animation: holographicScanline 3s linear infinite;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

@keyframes holographicScanline {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Holographic map canvas overlay effect */
#map.holographic-mode canvas {
  filter: brightness(1.1) contrast(1.05) saturate(1.2);
  position: relative;
}

/* Additional holographic prismatic effects */
.holographic-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(
      circle at 30% 30%,
      rgba(56, 189, 248, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 50%
    );
  mix-blend-mode: color-dodge;
  animation: holographicPulse 4s ease-in-out infinite;
}

@keyframes holographicPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Holographic grid overlay */
.holographic-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(
      rgba(56, 189, 248, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(56, 189, 248, 0.1) 1px,
      transparent 1px
    );
  background-size: 50px 50px;
  mix-blend-mode: overlay;
  opacity: 0.3;
  animation: holographicGrid 10s linear infinite;
}

@keyframes holographicGrid {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Terrain controls panel */
.terrain-controls {
  position: fixed;
  top: 80px;
  right: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.6);
  padding: 1rem;
  color: #0f172a;
  font-size: 0.85rem;
  z-index: 1002;
  min-width: 200px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  display: none !important; /* Hidden */
}

.terrain-control-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 0.5rem;
}

.terrain-control-group {
  margin-bottom: 0.75rem;
}

.terrain-control-group:last-child {
  margin-bottom: 0;
}

.terrain-control-group label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #475569;
  font-size: 0.8rem;
}

.terrain-control-group input[type='range'] {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.terrain-control-group input[type='checkbox'] {
  accent-color: #38bdf8;
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
}

.terrain-control-group label:has(input[type='checkbox']) {
  flex-direction: row;
  align-items: center;
}

#exag-value,
#shade-value {
  color: #38bdf8;
  font-weight: 600;
}

/* NES Style Info Badge */
.nes-style-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(56, 189, 248, 0.5);
  border-radius: 7px;
  padding: 0.75rem 1rem;
  color: #e5e7eb;
  font-size: 0.8rem;
  z-index: 1001;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.8);
  display: none;
  pointer-events: none;
}

#map.nes-style .nes-style-info {
  display: block;
}

.nes-style-info::before {
  content: '🎮 ';
  margin-right: 0.25rem;
}

@media (max-width: 640px) {
  .terrain-controls {
    top: 8px;
    right: 8px;
    padding: 0.75rem;
    min-width: 160px;
    font-size: 0.75rem;
  }

  .nes-style-info {
    bottom: 8px;
    left: 8px;
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Community Feed Styles */
.community-feed-section {
  position: relative;
  z-index: 100;
  max-width: 800px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem 2.5rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 7px;
  margin-top: 100vh;
  margin-bottom: 2rem;
}

.feed-container h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.feed-subtitle {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Post Form */
.feed-post-form {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 7px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  margin-bottom: 2rem;
}

.post-form-header h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

.post-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
}

.form-group input[type='text'],
.form-group input[type='file'],
.form-group textarea {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 7px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.form-group input[type='text']:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

.form-group input[type='file'] {
  padding: 0.5rem;
  cursor: pointer;
}

.form-group input[type='file']::file-selector-button {
  padding: 0.5rem 1rem;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 7px;
  color: #38bdf8;
  cursor: pointer;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.form-group input[type='file']::file-selector-button:hover {
  background: rgba(56, 189, 248, 0.3);
}

.image-preview {
  margin-top: 0.5rem;
}

.preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 7px;
  object-fit: contain;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.post-submit-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.post-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.post-submit-btn:active {
  transform: translateY(0);
}

/* Feed Posts */
.feed-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feed-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 7px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
}

.feed-post {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

.post-author-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.post-location {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.2rem;
}

.post-delete-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.post-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.post-image-container {
  width: 100%;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 600px;
}

.post-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.post-content {
  padding: 1rem 1.25rem;
}

.post-caption {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.post-time {
  font-size: 0.75rem;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .community-feed-section {
    padding: 0 1rem 2rem;
  }

  .feed-post-form {
    padding: 1.25rem;
  }

  .post-header {
    padding: 0.75rem 1rem;
  }

  .post-content {
    padding: 0.75rem 1rem;
  }

  .post-image-container {
    min-height: 250px;
    max-height: 400px;
  }

  .post-image {
    max-height: 400px;
  }
}

.stories-section,
.how-section {
  position: relative;
  z-index: 100;
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem 2.5rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 7px;
  margin-bottom: 2rem;
}

.language-section,
.community-section,
.cartographers-section,
.locals-section,
.robotics-section,
.donations-section {
  max-width: 1100px;
  margin: 100px auto 2rem;
  padding: 2rem 1.5rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 7px;
  transition: margin-left 0.3s ease;
}

.cartographers-feed-section {
  max-width: 1100px;
  margin: 3rem auto 2rem;
  padding: 2rem 1.5rem;
  color: #0f172a;
  transition: margin-left 0.3s ease;
}

@media (max-width: 880px) {
  .community-section,
  .cartographers-section,
  .locals-section,
  .robotics-section,
  .donations-section,
  .cartographers-feed-section {
    margin-top: 120px;
  }
  
  .community-members-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .member-card {
    max-width: 100%;
  }
  
  .member-image-container {
    height: 240px;
  }
}

.stories-section h2,
.how-section h2,
.language-section h2,
.community-section h2,
.cartographers-section h2,
.locals-section h2,
.robotics-section h2,
.donations-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.story-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 7px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.story-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.story-card p {
  font-size: 0.86rem;
  color: #475569;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  font-size: 0.88rem;
}

.how-grid h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.how-grid p {
  color: #475569;
}

/* Language Learning Section */
.language-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-align: center;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.language-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.language-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.language-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.language-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.language-card p {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.language-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.language-features li {
  font-size: 0.85rem;
  color: #64748b;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.language-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #f97316;
  font-weight: 600;
}

/* Cartographers Section */
.community-subtitle,
.cartographers-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Community Members Grid */
.community-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  justify-items: center;
}

.member-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(249, 115, 22, 0.4);
  outline: 2px solid rgba(249, 115, 22, 0.2);
  outline-offset: 2px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, outline-color 0.3s ease;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  border-color: rgba(249, 115, 22, 0.6);
  outline-color: rgba(249, 115, 22, 0.4);
}

.member-image-container {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.member-image {
  width: 50%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.akiya-image-overlay {
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.akiya-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member-card:hover .member-image,
.member-card:hover .akiya-image {
  transform: scale(1.05);
}

.member-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.member-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.member-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f97316;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-location {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.member-bio {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.member-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.member-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.member-stats .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.member-stats .stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hanko Graphic */
.hanko-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.hanko-graphic svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.member-card:hover .hanko-graphic svg {
  transform: scale(1.1);
}

/* Legacy cartographer styles for backwards compatibility */
.cartographers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  justify-items: center;
}

.cartographer-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.cartographer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.cartographer-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.cartographer-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.cartographer-card p {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cartographer-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.cartographer-features li {
  font-size: 0.85rem;
  color: #64748b;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.cartographer-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #f97316;
  font-weight: 600;
}

.community-cta,
.cartographers-cta {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  text-align: center;
}

.community-cta h3,
.cartographers-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.community-cta p,
.cartographers-cta p {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #f97316;
  color: #ffffff;
  text-decoration: none;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid #f97316;
}

.cta-button:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Cartographers Feed Section */
.cartographers-feed-section {
  max-width: 1100px;
  margin: 3rem auto 2rem;
  padding: 2rem 1.5rem;
  color: #0f172a;
}

.cartographers-feed-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
  text-align: center;
}

.cartographers-feed-section .feed-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-align: center;
}

.cartographers-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.feed-post-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.feed-post-card .post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.feed-post-card .post-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feed-post-card .post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

.feed-post-card .post-author-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.feed-post-card .post-location {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.feed-post-card .post-image-container {
  width: 100%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}

.feed-post-card .post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-post-card .post-content {
  padding: 1rem 1.25rem;
}

.feed-post-card .post-caption {
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.feed-post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.feed-post-card .post-time {
  font-size: 0.75rem;
  color: #64748b;
}

@media (max-width: 640px) {
  .cartographers-feed-grid {
    grid-template-columns: 1fr;
  }

  .feed-post-card .post-header {
    padding: 0.75rem 1rem;
  }

  .feed-post-card .post-content {
    padding: 0.75rem 1rem;
  }
}

/* Locals Section */
.locals-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-align: center;
}

.locals-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  justify-content: center;
}

.category-filter {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  color: #475569;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.category-filter:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.5);
}

.category-filter.active {
  background: #f97316;
  border-color: #f97316;
  color: #ffffff;
}

.locals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  justify-items: center;
}

.local-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 1;
  transform: scale(1);
}

.local-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.local-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
}

.local-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.local-card:hover .local-image {
  transform: scale(1.05);
}

.local-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.local-badge.shops {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.local-badge.restaurants {
  background: rgba(249, 115, 22, 0.9);
  color: #ffffff;
}

.local-badge.institutions {
  background: rgba(168, 85, 247, 0.9);
  color: #ffffff;
}

.local-badge.services {
  background: rgba(59, 130, 246, 0.9);
  color: #ffffff;
}

.local-content {
  padding: 1.25rem;
}

.local-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.local-location {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.local-description {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.local-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.25rem 0.6rem;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  color: #475569;
  font-weight: 500;
}

.local-link {
  display: inline-block;
  color: #f97316;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.local-link:hover {
  color: #ea580c;
}

.locals-cta {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  text-align: center;
}

.locals-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.locals-cta p {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .locals-grid {
    grid-template-columns: 1fr;
  }

  .locals-categories {
    gap: 0.5rem;
  }

  .category-filter {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

/* Robotics Section */
.robotics-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-align: center;
}

.robotics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  justify-items: center;
}

.robotics-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.robotics-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.robotics-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.robotics-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.robotics-card p {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.robotics-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.robotics-features li {
  font-size: 0.85rem;
  color: #64748b;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.robotics-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: 600;
}

.robotics-highlight {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  text-align: center;
}

.robotics-highlight-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

.robotics-highlight-content p {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.robotics-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  justify-items: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 7px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 640px) {
  .robotics-grid {
    grid-template-columns: 1fr;
  }

  .robotics-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

/* Donations Section */
.donations-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 3rem;
  text-align: center;
}

.donation-impact {
  margin-bottom: 3rem;
}

.donation-impact h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.impact-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.impact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.impact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.impact-card h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.impact-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.donation-options {
  margin-bottom: 3rem;
}

.donation-options h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.donation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.donation-tier {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  padding: 1.5rem;
  border: 2px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donation-tier:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.donation-tier.featured {
  border-color: #f97316;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.tier-badge {
  position: absolute;
  top: -12px;
  right: 1rem;
  background: #f97316;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tier-header {
  margin-bottom: 1rem;
}

.tier-header h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.tier-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f97316;
}

.tier-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.tier-benefits li {
  font-size: 0.9rem;
  color: #475569;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.tier-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #f97316;
  font-weight: 600;
}

.tier-description {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tier-button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #f97316;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-button:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.tier-button.custom {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.tier-button.custom:hover {
  background: #3b82f6;
  color: #ffffff;
}

.donation-form-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  margin-bottom: 3rem;
}

.donation-form-container h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.donation-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 7px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f97316;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f97316;
  cursor: pointer;
}

.checkbox-group span {
  font-size: 0.9rem;
  color: #475569;
}

.donation-submit-btn {
  padding: 1rem 2rem;
  background: #f97316;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.donation-submit-btn:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.donation-transparency {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.donation-transparency h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.transparency-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.transparency-item h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.transparency-item p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

/* Gachapon Machine Styles */
.gachapon-section {
  margin-bottom: 3rem;
  text-align: center;
}

.gachapon-section h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.gachapon-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.gachapon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.gachapon-machine {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  border: 3px solid #cbd5e1;
  position: relative;
  width: 100%;
  max-width: 320px;
}

.gachapon-top {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 2px solid #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gachapon-window {
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
  border-radius: 6px;
  border: 3px solid #0ea5e9;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
}

.capsule-display {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.capsule-display.spinning {
  animation: spin-capsules 2s ease-in-out;
}

@keyframes spin-capsules {
  0%, 100% {
    transform: rotateY(0deg);
  }
  25% {
    transform: rotateY(90deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  75% {
    transform: rotateY(270deg);
  }
}

.capsule {
  width: 60px;
  height: 80px;
  position: relative;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-style: preserve-3d;
}

.capsule.dropping {
  animation: drop-capsule 0.5s ease-out;
}

@keyframes drop-capsule {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(120px) rotate(360deg);
  }
}

.capsule-top {
  width: 60px;
  height: 30px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: 30px 30px 0 0;
  border: 2px solid #c2410c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.capsule-top::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ffffff 0%, #f97316 100%);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.capsule-body {
  width: 60px;
  height: 50px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 0 0 30px 30px;
  border: 2px solid #cbd5e1;
  border-top: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

.capsule-body::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
}

.gachapon-body {
  position: relative;
}

.gachapon-label {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.gachapon-slot {
  width: 80px;
  height: 20px;
  background: #1e293b;
  border-radius: 4px;
  margin: 0 auto 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slot-door {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-radius: 4px;
  transition: transform 0.3s ease;
  transform-origin: top;
}

.slot-door.open {
  transform: rotateX(-90deg);
  animation: door-open 0.3s ease;
}

@keyframes door-open {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(-90deg);
  }
}

.gachapon-button {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.gachapon-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.gachapon-button:hover::before {
  width: 300px;
  height: 300px;
}

.gachapon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
}

.gachapon-button:active,
.gachapon-button.pressed {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.gachapon-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-text {
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.button-icon {
  font-size: 1.5rem;
  animation: spin-icon 2s linear infinite;
}

.gachapon-button.pressed .button-icon {
  animation: spin-icon-fast 0.3s linear infinite;
}

@keyframes spin-icon {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-icon-fast {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.gachapon-result {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 2rem;
  border: 2px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.gachapon-result.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.result-content {
  text-align: center;
}

.prize-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.prize-tier {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.prize-message {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.prize-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 1.5rem;
}

.use-prize-button {
  padding: 0.875rem 2rem;
  background: #f97316;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.use-prize-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
}

.use-prize-button:active {
  transform: translateY(0);
}

/* Membership Card Styles */
.membership-section {
  margin-top: 4rem;
  margin-bottom: 3rem;
  text-align: center;
}

.membership-section h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.membership-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.membership-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.membership-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 2px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.membership-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  border-color: rgba(148, 163, 184, 0.4);
}

.membership-card.featured {
  border: 2px solid #f97316;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
  transform: scale(1.05);
}

.membership-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.3);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.card-header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-header h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.card-price {
  font-size: 2rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 0;
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  margin-left: 0.25rem;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.card-benefits li {
  font-size: 0.9rem;
  color: #475569;
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.card-benefits li:last-child {
  border-bottom: none;
}

.card-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: #f97316;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.card-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.5);
}

.membership-button {
  width: 100%;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.membership-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

.membership-button:active {
  transform: translateY(0);
}

.membership-card[data-tier="explorer"] .membership-button {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.membership-card[data-tier="explorer"] .membership-button:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.5);
}

.membership-card[data-tier="explorer"] .card-price {
  color: #0ea5e9;
}

.membership-card[data-tier="explorer"] .card-benefits li::before {
  background: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.membership-card[data-tier="builder"] .card-price {
  color: #f97316;
}

.membership-card[data-tier="partner"] .membership-button {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.membership-card[data-tier="partner"] .membership-button:hover {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.5);
}

.membership-card[data-tier="partner"] .card-price {
  color: #9333ea;
}

.membership-card[data-tier="partner"] .card-benefits li::before {
  background: #9333ea;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

.membership-info {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.membership-info p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

.membership-info strong {
  color: #0f172a;
  font-weight: 600;
}

/* Fashion Merchandise Styles */
.fashion-section {
  margin-top: 4rem;
  margin-bottom: 3rem;
  text-align: center;
}

.fashion-section h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.fashion-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.fashion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.fashion-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 2px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.fashion-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  border-color: rgba(148, 163, 184, 0.4);
}

.fashion-image {
  position: relative;
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fashion-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.fashion-item:hover .fashion-img {
  transform: scale(1.05);
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #64748b;
}

.placeholder-icon {
  font-size: 4rem;
  opacity: 0.6;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.placeholder-text {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.fashion-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.fashion-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fashion-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  text-align: left;
}

.fashion-description {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
  flex-grow: 1;
}

.fashion-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 1rem;
  text-align: left;
}

.fashion-button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  margin-top: auto;
}

.fashion-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
  background: linear-gradient(135deg, #ea580c, #c2410c);
}

.fashion-button:active {
  transform: translateY(0);
}

.fashion-info-footer {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.fashion-info-footer p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

.fashion-info-footer strong {
  color: #0f172a;
  font-weight: 600;
}

@media (max-width: 640px) {
  .donation-tiers {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .transparency-content {
    grid-template-columns: 1fr;
  }

  .gachapon-machine {
    padding: 1.5rem;
    max-width: 100%;
  }

  .gachapon-window {
    height: 180px;
  }

  .gachapon-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .prize-emoji {
    font-size: 3rem;
  }

  .prize-tier {
    font-size: 1.3rem;
  }

  .prize-amount {
    font-size: 1.75rem;
  }

  .membership-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .membership-card.featured {
    transform: scale(1);
  }

  .membership-card.featured:hover {
    transform: translateY(-8px);
  }

  .card-header {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .card-icon {
    font-size: 2.5rem;
  }

  .card-price {
    font-size: 1.75rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .card-footer {
    padding: 1.25rem;
  }

  .fashion-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .fashion-image {
    height: 200px;
  }

  .fashion-img {
    object-fit: cover;
  }

  .placeholder-icon {
    font-size: 3rem;
  }

  .fashion-info {
    padding: 1.25rem;
  }

  .fashion-info h4 {
    font-size: 1rem;
  }

  .fashion-price {
    font-size: 1.3rem;
  }
}

/* Flappy Bird Game Styles */
.flappy-bird-section {
  max-width: 1100px;
  margin: 3rem auto 2rem;
  padding: 2rem 1.5rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 7px;
}

.flappy-bird-container {
  text-align: center;
}

.flappy-bird-container h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.flappy-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.game-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  border: 2px solid rgba(148, 163, 184, 0.25);
}

#flappy-canvas {
  display: block;
  background: #87CEEB;
  max-width: 100%;
  height: auto;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.game-start-screen {
  text-align: center;
  color: #ffffff;
  padding: 2rem;
}

.game-start-screen h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f97316;
  font-weight: 700;
}

.game-start-screen p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.game-instructions {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 1rem;
}

.game-score {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 1rem;
}

.game-score span {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

@media (max-width: 640px) {
  .flappy-bird-section {
    padding: 1.5rem 1rem;
  }

  #flappy-canvas {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .game-score {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.site-footer {
  position: relative;
  z-index: 100;
  text-align: center;
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
}

.site-footer p {
  max-width: 900px;
  margin: 0 auto;
}

/* MapLibre GL JS theme tweaks */
.maplibregl-map {
  background: #0a1a2e; /* Dark blue for normal map */
}

.maplibregl-popup-content {
  border-radius: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.6);
  max-width: 320px;
  overflow: hidden;
}

.popup-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
  margin: 0;
}

.popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.maplibregl-popup-content > div:not(.popup-image-container) {
  padding: 0.6rem 0.7rem;
}

.maplibregl-popup-tip {
  border-top-color: rgba(255, 255, 255, 0.7) !important;
}

.maplibregl-popup-close-button {
  color: #64748b;
  font-size: 1.2rem;
  padding: 0.4rem;
}

.maplibregl-popup-close-button:hover {
  color: #0f172a;
}

/* MapLibre controls styling */
.maplibregl-ctrl-group {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.6) !important;
}

.maplibregl-ctrl button {
  background-color: transparent !important;
  color: #cbd5f5 !important;
}

.maplibregl-ctrl button:hover {
  background-color: rgba(56, 189, 248, 0.15) !important;
  color: #e5e7eb !important;
}

.maplibregl-ctrl-zoom-in,
.maplibregl-ctrl-zoom-out {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
}

/* Hide reset bearing north button (compass) */
.maplibregl-ctrl-compass {
  display: none !important;
}

.popup-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.popup-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}

.popup-tag.stay {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.popup-tag.culture {
  background: rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.popup-tag.agri {
  background: rgba(249, 115, 22, 0.18);
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.45);
}

.popup-tag.sports {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.45);
}

.popup-body {
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.popup-meta {
  font-size: 0.7rem;
  color: #64748b;
}

/* Custom marker styles */
.marker-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.akiya-marker.hovered {
  transform: scale(1.3);
}

.akiya-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform var(--transition-fast), filter 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.akiya-marker.hovered {
  transform: scale(1.3);
}

/* Chromatic aberration effect for markers */
.akiya-marker.chromatic-aberration {
  filter: drop-shadow(3px 0 0 rgba(255, 0, 0, 0.6)) 
          drop-shadow(-3px 0 0 rgba(0, 255, 255, 0.6)) 
          drop-shadow(0 2px 0 rgba(255, 255, 0, 0.4));
}

/* Enhanced emission glow */
.akiya-marker.emission-active {
  will-change: box-shadow, filter;
}

/* Emission/glow animation */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.9;
    filter: brightness(1.3);
  }
}

.marker-label {
  position: absolute;
  bottom: 100%;
  margin-bottom: 8px;
  padding: 0.35rem 0.65rem;
  background: var(--color-bg-overlay);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 1000;
}

.marker-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.marker-label.label-stay {
  border-left: 3px solid #22c55e;
}

.marker-label.label-culture {
  border-left: 3px solid #a855f7;
}

.marker-label.label-agri {
  border-left: 3px solid #f97316;
}

.marker-label.label-sports {
  border-left: 3px solid #3b82f6;
}

@media (max-width: 880px) {
  .map-sidebar {
    width: calc(100% - 2rem);
    left: 1rem;
    top: 70px;
    max-height: calc(100vh - 90px);
  }
}

/* Locations Database Sidebar */
.locations-sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 400px;
  max-width: calc(100vw - 2rem);
  height: calc(100vh - 80px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 2px 0 20px rgba(15, 23, 42, 0.1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.locations-sidebar.collapsed {
  transform: translateX(-100%);
}

.locations-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.locations-sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.toggle-sidebar-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.toggle-sidebar-btn:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #0f172a;
}

.locations-filter {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.5);
}

.category-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 7px;
  color: #0f172a;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.category-select:focus {
  outline: none;
  border-color: #38bdf8;
}

.locations-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.locations-list::-webkit-scrollbar {
  width: 6px;
}

.locations-list::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.5);
}

.locations-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 3px;
}

.locations-list::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

.location-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: all 0.2s ease;
}

.location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  border-color: rgba(148, 163, 184, 0.4);
}

.location-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.location-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.location-title-group {
  flex: 1;
  min-width: 0;
}

.location-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.4rem 0;
  line-height: 1.3;
  word-wrap: break-word;
}

.location-category-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.location-category-badge.agri,
.location-category-badge.stay,
.location-category-badge.culture,
.location-category-badge.sports {
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.location-category-badge.shops,
.location-category-badge.restaurants,
.location-category-badge.institutions,
.location-category-badge.services {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.location-category-badge.post,
.location-category-badge.default {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.location-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f1f5f9;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-details {
  padding: 1rem;
}

.location-description {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.location-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
}

.location-address,
.location-coords,
.location-author,
.location-timestamp {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.location-tag {
  padding: 0.2rem 0.5rem;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 999px;
  font-size: 0.7rem;
  color: #475569;
  font-weight: 500;
}

.location-delete-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.location-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #dc2626;
  transform: translateY(-1px);
}

.location-delete-btn:active {
  transform: translateY(0);
}

.loading-message,
.error-message,
.empty-message {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.error-message {
  color: #ef4444;
}

@media (max-width: 880px) {
  .locations-sidebar {
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 80px);
    transform: translateX(-100%);
  }

  .locations-sidebar:not(.collapsed) {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 1rem;
  }

  .site-nav {
    display: none;
  }

  .map-layout {
    padding-inline: 1rem;
  }

  .map-sidebar {
    padding-inline: 1.25rem;
  }

  .locations-sidebar {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .location-card-header {
    padding: 0.75rem;
  }

  .location-details {
    padding: 0.75rem;
  }

  .location-image {
    height: 120px;
  }
}

/* Edit Mode Controls */
.edit-mode-control {
  display: none !important; /* Hidden */
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1001;
}

.edit-mode-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.edit-mode-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.edit-mode-btn.active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: #f97316;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.edit-mode-btn.active:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
}

.edit-icon {
  font-size: 1.1rem;
}

.edit-mode-indicator {
  position: absolute;
  top: 70px;
  left: 16px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(34, 197, 94, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.indicator-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

/* Location Form Modal */
.location-form-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.5);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
  z-index: 2001;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.close-modal-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #64748b;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.close-modal-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.location-form {
  padding: 1.5rem;
}

.location-form .form-group {
  margin-bottom: 1.25rem;
}

.location-form .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.location-form .form-group input[type="text"],
.location-form .form-group input[type="url"],
.location-form .form-group select,
.location-form .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 7px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.location-form .form-group input:focus,
.location-form .form-group select:focus,
.location-form .form-group textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.location-form .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.coords-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coords-hint {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.coords-input-group .form-row {
  margin-bottom: 0;
}

.coords-input-group input[type="number"] {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.btn-use-view {
  padding: 0.6rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  color: #0ea5e9;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-use-view:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #0284c7;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-cancel,
.btn-submit {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel {
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
}

.btn-cancel:hover {
  background: rgba(148, 163, 184, 0.25);
  color: #0f172a;
}

.btn-submit {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.popup-custom-badge {
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.popup-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.popup-edit-btn,
.popup-delete-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid;
}

.popup-edit-btn {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #0ea5e9;
}

.popup-edit-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #0284c7;
  transform: translateY(-1px);
}

.popup-edit-btn:active {
  transform: translateY(0);
}

.popup-delete-btn {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.popup-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #dc2626;
  transform: translateY(-1px);
}

.popup-delete-btn:active {
  transform: translateY(0);
}

/* Notification */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 3000;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  max-width: 300px;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-success {
  border-left: 4px solid #22c55e;
}

.notification-error {
  border-left: 4px solid #ef4444;
}

.notification-info {
  border-left: 4px solid #38bdf8;
}

@media (max-width: 640px) {
  .edit-mode-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .edit-label {
    display: none;
  }

  .edit-mode-control {
    top: 8px;
    left: 8px;
  }

  .edit-mode-indicator {
    top: 60px;
    left: 8px;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .modal-content {
    max-width: 100%;
    max-height: 95vh;
    margin: 0.5rem;
  }

  .modal-header {
    padding: 1.25rem;
  }

  .location-form {
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }

  .notification.show {
    transform: translateY(0);
  }
}

/* Coin Counter Wrapper - positioned next to gashapon machine */
.coin-counter-wrapper {
  position: absolute;
  left: calc(100% + 8px); /* Reduced from 20px to bring closer */
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  display: flex;
  justify-content: flex-start;
  z-index: 1001;
}

.coin-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  image-rendering: auto;
}

.coin-counter-icon {
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  image-rendering: auto;
}

.coin-counter-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.coin-counter-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.coin-counter-label {
  font-size: 0.7rem;
  color: #ffffff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
  margin-top: 0.2rem;
  border-top: 1px solid #ffffff;
}

.coin-counter-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'BBH Bogle', system-ui, -apple-system, sans-serif;
  line-height: 1;
  transition: transform 0.2s ease;
}

