/* ═══════════════════════════════════════════════
   PetriNet – Design System & Styles
   Premium Dark Fishing Theme
   ═══════════════════════════════════════════════ */

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

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Primary Palette */
  --primary: #0ea5a0;
  --primary-light: #14d4cd;
  --primary-dark: #087f7b;
  --primary-glow: rgba(14, 165, 160, 0.3);
  
  /* Accent */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.25);
  
  /* Backgrounds */
  --bg-base: #071324;
  --bg-card: #0d1e38;
  --bg-card-hover: #142a4a;
  --bg-elevated: #1a3459;
  --bg-surface: #0a1930;
  --bg-glass: rgba(13, 30, 56, 0.85);
  --bg-modal: rgba(0, 0, 0, 0.7);
  
  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0f1a;
  
  /* Borders */
  --border: rgba(59, 130, 246, 0.15);
  --border-active: rgba(14, 165, 160, 0.5);
  
  /* Status */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--primary-glow);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  
  /* Z-index */
  --z-nav: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
  
  /* Layout */
  --nav-height: 72px;
  --header-height: 60px;
  --max-width: 480px;
  --safe-bottom: max(env(safe-area-inset-bottom, 16px), 16px);
  --safe-top: max(env(safe-area-inset-top, 36px), 36px);
}

body.light-theme {
  --bg-base: #ffffff;
  --bg-card: #f9fafb;
  --bg-card-hover: #f3f4f6;
  --bg-elevated: #f3f4f6;
  --bg-surface: #f9fafb;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-modal: rgba(0, 0, 0, 0.5);
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  
  --border: rgba(0, 0, 0, 0.1);
  --border-active: rgba(14, 165, 160, 0.5);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Hide scrollbar for Firefox & Edge */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 1.2em;
  height: 1.2em;
  line-height: 1;
}

/* ── App Shell ── */
#app {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-base);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ── Header ── */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  z-index: var(--z-nav);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--primary-glow);
  background: var(--bg-surface);
  box-shadow: 0 0 15px var(--primary-glow);
}

.header-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  gap: var(--space-sm);
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-size: 1.1rem;
  position: relative;
}

.header-btn:hover {
  background: var(--primary);
  color: white;
}

.header-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: var(--safe-bottom);
  z-index: var(--z-nav);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.nav-item .nav-icon {
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.nav-item:hover {
  color: var(--primary-light);
}

/* FAB - Neuer Fang Button */
.nav-fab {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -28px;
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transition: all 0.3s ease;
  border: 3px solid var(--bg-base);
}

.nav-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 0 30px var(--primary-glow), var(--shadow-lg);
}

.nav-fab:active {
  transform: scale(0.95);
}

/* ── Screens Container ── */
.screens-container {
  padding-top: calc(var(--header-height) + var(--safe-top));
  padding-bottom: var(--nav-height);
  min-height: 100vh;
  min-height: 100dvh;
}

.screen {
  display: none;
  animation: fadeIn 0.3s ease;
}

.screen.active {
  display: block;
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ── HOME SCREEN ── */
.hero-section {
  position: relative;
  height: 220px;
  overflow: hidden;
  margin: var(--space-md);
  border-radius: var(--radius-lg);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
    rgba(10, 15, 26, 0.95) 0%, 
    rgba(10, 15, 26, 0.4) 50%,
    rgba(10, 15, 26, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
}

.hero-greeting {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Weather Widget */
.weather-widget {
  margin: 0 var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, #1a365d, #0d2137);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather-left {
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.weather-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.weather-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 4px;
}

.weather-right {
  text-align: right;
}

.weather-icon {
  font-size: 3rem;
  margin-bottom: var(--space-xs);
}

.weather-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.weather-detail {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.bite-forecast {
  margin: var(--space-sm) var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, rgba(14, 165, 160, 0.15), rgba(14, 165, 160, 0.05));
  border: 1px solid rgba(14, 165, 160, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.bite-score {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.bite-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.bite-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Section Titles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-md);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.section-more {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

/* ── CATCH CARDS (Feed) ── */
.catch-feed {
  padding: 0 var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.catch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideUp 0.4s ease both;
  position: relative;
}

.catch-card-header {
  display: none; /* Moved to overlay on image */
}

.catch-image-container {
  position: relative;
  width: 100%;
  min-height: 200px;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.catch-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  transition: transform 0.8s ease;
}

.catch-user-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: row-reverse; /* Put pill on the right */
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.catch-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 15, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 12px 4px 4px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  cursor: pointer;
}

.catch-overlay-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  flex-shrink: 0;
}

.catch-overlay-name {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.catch-admin-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.catch-overlay-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 15, 26, 0.6);
  backdrop-filter: blur(12px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  transition: all 0.2s;
  cursor: pointer;
}

.catch-overlay-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.catch-overlay-btn.danger:hover {
  background: var(--danger);
}

.catch-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.catch-details {
  padding: var(--space-md);
}

.catch-actions {
  display: flex;
  justify-content: space-around;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border);
}

.catch-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  background: transparent;
  cursor: pointer;
  border: none;
}

.catch-action:hover {
  color: var(--primary);
  background: rgba(14, 165, 160, 0.1);
}

.catch-action.liked {
  color: var(--danger);
}

/* ── GEWÄSSER SCREEN ── */
.map-container {
  margin: var(--space-md);
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1a2332, #0d1925);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.map-placeholder .map-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

.map-placeholder p {
  font-size: 0.8rem;
}

.water-list {
  padding: 0 var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.water-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: slideUp 0.4s ease both;
}

.water-card:hover {
  border-color: var(--border-active);
  transform: translateX(4px);
}

.water-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.water-thumb-placeholder {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1a365d, #0d2137);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.water-info {
  flex: 1;
  min-width: 0;
}

.water-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.water-type {
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.water-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.water-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.water-stats {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.water-stat {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Water Delete Button */
.water-delete-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  align-self: center;
  opacity: 0.6;
}

.water-delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  opacity: 1;
  transform: scale(1.1);
}

.water-delete-btn:active {
  transform: scale(0.95);
}

/* ── CHAT SCREEN ── */
.chat-list {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
}

.chat-item:hover {
  background: var(--bg-card);
}

.chat-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
  position: relative;
}

.chat-avatar.group {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.chat-avatar.personal {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.chat-avatar .online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--success);
  border: 2px solid var(--bg-base);
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.chat-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-right {
  text-align: right;
  flex-shrink: 0;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.chat-unread {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Chat Room */
.chat-room {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--bg-base);
  z-index: var(--z-modal);
  padding-top: var(--safe-top);
}

.chat-room.active {
  display: flex;
}

.chat-room-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.chat-back-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  font-size: 1.1rem;
}

.chat-room-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
}

.chat-room-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-room-info p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.message {
  max-width: 80%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  animation: scaleIn 0.2s ease;
}

.message.received {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border-bottom-right-radius: 4px;
}

.message .msg-sender {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.message .msg-time {
  font-size: 0.6rem;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px var(--space-md);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

/* ── PROFILE SCREEN ── */
.profile-header {
  text-align: center;
  padding: var(--safe-top) var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0 auto var(--space-md);
  position: relative;
  box-shadow: 0 0 30px var(--primary-glow);
}

.admin-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  border: 2px solid var(--bg-base);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.profile-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.profile-stats-bar {
  display: flex;
  justify-content: space-around;
  padding: var(--space-md) var(--space-xs);
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.profile-stat {
  text-align: center;
  padding: var(--space-xs);
}

.profile-stat:nth-child(4), .profile-stat:nth-child(5) {
  grid-column: span 1.5;
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}

.profile-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Menu Items */
.menu-section {
  padding: var(--space-lg) var(--space-md);
}

.menu-section-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
  padding-left: var(--space-sm);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid transparent;
  margin-bottom: var(--space-xs);
}

.menu-item:hover {
  background: var(--bg-card);
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.menu-icon.teal { background: rgba(14, 165, 160, 0.15); color: var(--primary); }
.menu-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--accent); }
.menu-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.menu-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.menu-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--success); }

.menu-text {
  flex: 1;
}

.menu-text h4 {
  font-size: 0.9rem;
  font-weight: 500;
}

.menu-text p {
  font-size: 0.73rem;
  color: var(--text-muted);
}

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

/* ── MODAL / NEW CATCH FORM ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-modal);
  z-index: var(--z-modal);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: var(--max-width);
  max-height: 92vh;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  margin: var(--space-sm) auto var(--space-md);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-lg) var(--space-md);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid var(--border);
}

.modal-close:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 0 var(--space-lg) var(--space-2xl);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px var(--space-md);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px var(--space-md);
  color: var(--text-primary);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.2s;
}

.form-select:focus {
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.photo-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.photo-upload:hover {
  border-color: var(--primary);
  background: rgba(14, 165, 160, 0.05);
}

.photo-upload-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

.photo-upload p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.photo-preview {
  position: relative;
  width: 100%;
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.photo-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-preview-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-modal);
  backdrop-filter: blur(5px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 10;
}

.photo-preview-remove::before {
  content: '✕';
  font-size: 14px;
}

/* Submit Button */
.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--primary-glow), var(--shadow-md);
}

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

.btn-secondary {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--primary);
}

/* ── KÖDER / BAIT SECTION ── */
.bait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  padding: 0 var(--space-md) var(--space-lg);
}

.bait-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  animation: scaleIn 0.3s ease both;
}

.bait-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.bait-emoji {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.bait-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.bait-category {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.bait-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: var(--space-sm);
  font-size: 0.7rem;
  color: var(--success);
}

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed;
  top: calc(var(--header-height) + var(--safe-top) + var(--space-md));
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  max-width: calc(var(--max-width) - var(--space-xl));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast.success { border-color: rgba(34, 197, 94, 0.3); }
.toast.error { border-color: rgba(239, 68, 68, 0.3); }

/* ── Filter Tabs ── */
.filter-tabs {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  white-space: nowrap;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.filter-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Search Bar ── */
.search-bar {
  margin: var(--space-md);
  position: relative;
}

.search-bar input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 12px 16px 12px 44px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}

.search-bar input:focus {
  border-color: var(--primary);
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ── Responsive / Tablet ── */
@media (min-width: 768px) {
  :root {
    --max-width: 768px;
  }
  
  .quick-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .bait-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .catch-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .catch-image-container {
    aspect-ratio: auto;
    min-height: 200px;
  }
}

@media (min-width: 1024px) {
  :root {
    --max-width: 430px;
  }
  
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #050810, #0a1628, #0d1f35);
  }
  
  #app {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    height: 90vh;
    overflow-y: auto;
    position: relative;
  }
  
  .app-header, .bottom-nav {
    border-radius: 0;
  }
  
  .app-header {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}

/* ── Utility ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

/* Pulse animation for live indicators */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Admin Panel Styles */
.admin-member-list {
  padding: 0;
  width: 100%;
}

.admin-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.profile-view {
  animation: fadeIn 0.3s ease;
  width: 100%;
  padding-bottom: var(--space-xl);
}

.admin-member:last-child {
  border-bottom: none;
}

.admin-member-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.admin-member-info {
  flex: 1;
}

.admin-member-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-member-info p {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.admin-member-actions {
  display: flex;
  gap: var(--space-sm);
}

.admin-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.admin-btn:hover {
  background: var(--primary);
  color: white;
}

.admin-btn.danger:hover {
  background: var(--danger);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════ */

.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0f1a 0%, #0d2137 40%, #1a0a2e 100%);
  z-index: 500;
  overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(14, 165, 160, 0.12), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.08), transparent 50%);
  animation: loginBgPulse 8s ease-in-out infinite alternate;
}

@keyframes loginBgPulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  padding: 20px;
}

.login-card {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 32px;
  animation: loginCardAppear 0.6s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes loginCardAppear {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card.shake {
  animation: shakeAnim 0.5s ease-in-out;
}

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

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid rgba(14, 165, 160, 0.3);
  box-shadow: 0 12px 40px rgba(14, 165, 160, 0.4);
}

.login-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.login-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 160, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.login-field-icon {
  padding: 0 4px 0 16px;
  font-size: 1.1rem;
  opacity: 0.6;
}

.login-field input {
  flex: 1;
  padding: 14px 16px 14px 8px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.login-field input::placeholder {
  color: var(--text-muted);
}

.login-error {
  color: #ef4444;
  font-size: 0.8rem;
  text-align: center;
  min-height: 20px;
}

.login-btn {
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(14, 165, 160, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(14, 165, 160, 0.4);
}

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

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Floating fish animation */
.login-fish {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: fishFloat linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes fishFloat {
  0% { transform: translateX(-100px) translateY(0); }
  25% { transform: translateX(25vw) translateY(-20px); }
  50% { transform: translateX(50vw) translateY(10px); }
  75% { transform: translateX(75vw) translateY(-15px); }
  100% { transform: translateX(calc(100vw + 100px)) translateY(5px); }
}

/* ── Toggle Switch ── */
.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  transition: all 0.3s ease;
}

.toggle input:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateY(-50%) translateX(22px);
  background: white;
}

/* ── Settings Item ── */
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  gap: var(--space-md);
}

.settings-item:last-child {
  border-bottom: none;
}

/* ── Member Checkboxes (Group Chat) ── */
.member-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.member-checkbox:hover {
  background: var(--bg-elevated);
}

.member-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.member-checkbox-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: white;
}

/* ── Profile Stats (5 items) ── */
.profile-stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xs);
  margin: 0 var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   NEW FEATURES – ADDITIONAL STYLES
   ═══════════════════════════════════════════════ */

/* ── Photo Upload Preview ── */
.photo-upload-wrapper {
  position: relative;
}

.photo-upload-wrapper input[type="file"] {
  display: none;
}

.photo-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-sm);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.photo-preview-remove:hover {
  background: var(--danger);
  transform: scale(1.1);
}

/* ── Chat File Attachments ── */
.chat-file-input {
  display: none;
}

.msg-image {
  max-width: 240px;
  border-radius: var(--radius-sm);
  margin: var(--space-sm) 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.msg-image:hover {
  transform: scale(1.02);
}

.msg-file-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: var(--space-sm) 0;
  font-size: 0.8rem;
}

.msg-file-icon {
  font-size: 1.5rem;
}

.msg-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Notification Panel ── */
.notif-list {
  display: flex;
  flex-direction: column;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item.unread {
  background: rgba(14, 165, 160, 0.05);
  border-left: 3px solid var(--primary);
}

.notif-item:hover {
  background: var(--bg-elevated);
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
}

.notif-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 8px;
}

.notif-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.notif-mark-all {
  font-size: 0.8rem;
  color: var(--primary);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.notif-mark-all:hover {
  background: rgba(14, 165, 160, 0.1);
}

/* ── Comments Modal ── */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 50vh;
  overflow-y: auto;
  margin-bottom: var(--space-md);
}

.comment-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
  color: white;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-user {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.comment-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.comment-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.comment-input-bar {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.comment-input-bar input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px var(--space-md);
  color: var(--text-primary);
  outline: none;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.comment-input-bar input:focus {
  border-color: var(--primary);
}

.comment-send-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.comment-send-btn:hover {
  transform: scale(1.05);
}

/* ── Fish Detail View ── */
.fish-detail-header {
  text-align: center;
  padding: var(--space-lg) 0;
}

.fish-detail-emoji {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
}

.fish-detail-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.fish-detail-family {
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 2px;
}

.fish-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.fish-detail-stat {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.fish-detail-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fish-detail-stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.fish-detail-section {
  margin-bottom: var(--space-lg);
}

.fish-detail-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.fish-detail-section p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.fish-bait-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  margin: 4px;
  transition: all 0.2s;
}

.fish-bait-tag:hover {
  border-color: var(--primary);
  background: rgba(14, 165, 160, 0.1);
}

.fish-location-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.fish-location-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.fish-situation-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
}

.fish-situation-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.fish-situation-baits {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Confirm Dialog ── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: calc(var(--z-modal) + 100);
  display: none;
  align-items: center;
  justify-content: center;
}

.confirm-overlay.active {
  display: flex;
}

.confirm-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 340px;
  width: 90%;
  text-align: center;
  animation: scaleIn 0.2s ease;
}

.confirm-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.confirm-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.confirm-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: var(--space-sm);
}

.confirm-actions button {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.confirm-cancel {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border) !important;
}

.confirm-cancel:hover {
  border-color: var(--primary) !important;
}

.confirm-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
}

.confirm-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ── Admin Reset Button ── */
.btn-danger {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  cursor: pointer;
  margin-top: var(--space-md);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--danger);
}

/* ── Share Menu ── */
.share-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.share-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.share-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.share-option:hover {
  background: var(--bg-elevated);
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}

.share-option-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.share-option-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.share-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.share-chat-item:hover {
  border-color: var(--primary);
  background: var(--bg-elevated);
}

.share-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--primary);
  border: 1px solid var(--primary-glow);
}

.share-chat-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Chat Extensions ── */
.msg-image {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
}

.msg-text-content {
  font-size: 0.9rem;
  line-height: 1.4;
}

.message.sent .msg-text-content {
  color: white;
}


/* ── Weather Loading State ── */
.weather-loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.weather-loading .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── GPS Location Indicator ── */
.gps-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.gps-status.active {
  color: var(--success);
}

.gps-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--success);
  animation: pulse 2s infinite;
}

/* ── New Chat Modal Choice ── */
.chat-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.chat-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s;
}

.chat-choice-btn:hover {
  border-color: var(--primary);
  background: rgba(14, 165, 160, 0.05);
  transform: translateY(-2px);
}

.chat-choice-icon {
  font-size: 2rem;
}

.chat-choice-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.chat-choice-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════
   GPS ACCURACY INDICATOR
   ═══════════════════════════════════════════════ */

.gps-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted);
}

.gps-status.active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.gps-status.high-accuracy {
  background: rgba(14, 165, 160, 0.15);
  color: var(--primary);
}

.gps-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
  animation: gpsPulse 2s ease-in-out infinite;
}

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

.gps-accuracy-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.weather-loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════
   NEW WATER MODAL (Manual Entry)
   ═══════════════════════════════════════════════ */

.water-add-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.water-add-tab {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
  text-align: center;
}

.water-add-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.water-add-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.new-water-map {
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: var(--space-md);
  position: relative;
}

.new-water-map-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm);
  background: rgba(14, 165, 160, 0.05);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(14, 165, 160, 0.2);
}

.fish-species-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.fish-species-checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.fish-species-checkbox.selected {
  background: rgba(14, 165, 160, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.fish-species-checkbox:hover {
  border-color: var(--primary);
}

/* ── Danger Button ── */
.btn-danger {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: var(--space-lg);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
}

/* ── Checkbox Grid ── */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* ── Coordinates manual input ── */
.coords-display {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.coords-display .coord-value {
  color: var(--primary);
  font-weight: 600;
  font-family: monospace;
}

.large-placeholder-icon svg { width: 64px; height: 64px; opacity: 0.15; }
.profile-stats-bar::-webkit-scrollbar { display: none; }
#mainMap { height: 45vh !important; min-height: 320px; border-bottom: 1px solid var(--border); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--bg-base);
}
.chat-input-area {
  padding: var(--space-md);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

#mapWaterList {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: 0;
  border: none;
  max-height: none;
}

.water-card {
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.water-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.water-info { flex: 1; min-width: 0; } 
.water-name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; } 
.water-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } 
.water-tag { background: var(--bg-elevated); padding: 3px 8px; border-radius: var(--radius-sm); font-size: 0.7rem; color: var(--text-secondary); white-space: nowrap; }

.water-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
}

.water-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
}

.rating-num {
  color: var(--text-primary);
  font-weight: 700;
}

.water-count {
  color: var(--text-muted);
}


/* ── Screen Tabs ── */
.screen-tabs {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: auto;
}

.screen-tab {
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.screen-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Map Markers */
.catch-marker-badge, .water-marker-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid white;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.catch-marker-badge {
  background: var(--primary);
}

.water-marker-badge {
  background: var(--accent);
}

.catch-marker-badge:hover, .water-marker-badge:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
  z-index: 1000 !important;
}

.map-popup-content {
  color: var(--text-primary);
  font-family: var(--font-sans);
}
