/* ==========================================================================
   LAN WORLD OF WARCRAFT - MÉNESSAIRE (MORVAN) 2026
   Design System & Styling
   ========================================================================== */

:root {
  /* Default: Pour la Horde ! (Rouge Sang & Or de Guerre) */
  --color-primary: #ff4742;
  --color-primary-glow: rgba(255, 71, 66, 0.5);
  --color-accent: #ff9f1c;
  --color-accent-glow: rgba(255, 159, 28, 0.5);
  --color-gold: #e2b450;
  --color-gold-dark: #8c6a21;
  --color-gold-light: #fff2b2;
  
  --bg-deep: #07090e;
  --card-bg: rgba(13, 17, 27, 0.76);
  --card-border: rgba(255, 71, 66, 0.35);
  --card-border-hover: rgba(255, 159, 28, 0.75);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --font-serif: 'Cinzel', Georgia, serif;
  --font-decorative: 'Cinzel Decorative', cursive;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-hud: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 71, 66, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 30px rgba(255, 71, 66, 0.6);
}

/* Faction Theme: Horde */
body.theme-horde {
  --color-primary: #ff4742;
  --color-primary-glow: rgba(255, 71, 66, 0.5);
  --color-accent: #ff9f1c;
  --color-accent-glow: rgba(255, 159, 28, 0.5);
  --card-border: rgba(255, 71, 66, 0.35);
  --card-border-hover: rgba(255, 159, 28, 0.75);
  --shadow-hud: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 71, 66, 0.25);
  --shadow-glow: 0 0 30px rgba(255, 71, 66, 0.6);
}

/* Faction Theme: Alliance */
body.theme-alliance {
  --color-primary: #38bdf8;
  --color-primary-glow: rgba(56, 189, 248, 0.5);
  --color-accent: #facc15;
  --color-accent-glow: rgba(250, 204, 21, 0.55);
  --card-border: rgba(56, 189, 248, 0.35);
  --card-border-hover: rgba(250, 204, 21, 0.7);
  --shadow-hud: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.25);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.6);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-deep);
  transition: background-color 0.4s ease;
}

/* Background Atmosphere */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: -10px;
  background-image: url('assets/bg.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.65) contrast(1.1);
  transform: scale(1.02);
  transition: filter 0.6s ease;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(7, 9, 14, 0.4) 0%, rgba(7, 9, 14, 0.92) 85%, #07090e 100%);
}

.bg-runic-mist {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom, var(--color-primary-glow) 0%, transparent 60%);
  opacity: 0.25;
  transition: background 0.6s ease;
}

/* Canvas Particles */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Layout Container */
.page-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid rgba(226, 180, 80, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-gold-light);
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); opacity: 0.9; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Theme Selector Buttons */
.theme-selector {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.25s ease;
}

.theme-btn:hover {
  color: #fff;
}

.theme-btn.active {
  background: linear-gradient(135deg, rgba(226, 180, 80, 0.25), rgba(56, 217, 220, 0.25));
  color: #fff;
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

/* Audio Toggle */
.audio-btn {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.audio-btn:hover {
  background: rgba(226, 180, 80, 0.15);
  border-color: var(--color-gold);
}

.audio-btn.playing {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary-glow);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.2rem;
}

/* Crest Emblem */
.crest-container {
  position: relative;
  display: inline-block;
  margin-top: 0.5rem;
}

.crest-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  filter: blur(15px);
  z-index: 0;
  animation: crest-pulse 4s ease-in-out infinite alternate;
}

@keyframes crest-pulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 1; }
}

.crest-img {
  position: relative;
  z-index: 1;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 25px var(--color-primary-glow);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crest-img:hover {
  transform: scale(1.05) rotate(2deg);
}

.crest-runes {
  position: relative;
  z-index: 2;
  margin-top: -12px;
  background: linear-gradient(180deg, #182030, #0c101a);
  border: 1px solid var(--color-gold);
  border-radius: 20px;
  padding: 3px 14px;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--color-gold-light);
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Title Hierarchy */
.title-group {
  max-width: 850px;
}

.kicker {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
  text-shadow: 0 0 10px rgba(226, 180, 80, 0.35);
}

.main-title {
  font-family: var(--font-decorative);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  background: linear-gradient(180deg, #ffffff 10%, #fff0c7 45%, var(--color-gold) 85%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #cbd5e1;
  font-weight: 300;
}

.highlight-date {
  display: inline-block;
  font-weight: 600;
  color: var(--color-primary);
  text-shadow: 0 0 12px var(--color-primary-glow);
  padding: 0 4px;
}

/* ==========================================================================
   TIMER HUD (FANTASY COUNTDOWN DISPLAY)
   ========================================================================== */

.timer-hud {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

.timer-frame {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2.2rem 2rem 1.8rem 2rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-hud);
  overflow: hidden;
  transition: all 0.4s ease;
}

.timer-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Corner Filigree Ornaments */
.corner-ornament {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.corner-ornament.top-left {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--color-gold);
  border-left: 2px solid var(--color-gold);
}

.corner-ornament.top-right {
  top: 10px;
  right: 10px;
  border-top: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
}

.corner-ornament.bottom-left {
  bottom: 10px;
  left: 10px;
  border-bottom: 2px solid var(--color-gold);
  border-left: 2px solid var(--color-gold);
}

.corner-ornament.bottom-right {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
}

/* Timer Grid */
.timer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.timer-card {
  position: relative;
  flex: 1;
  min-width: 130px;
  max-width: 190px;
  background: linear-gradient(180deg, rgba(25, 33, 50, 0.85) 0%, rgba(12, 16, 26, 0.95) 100%);
  border: 1px solid rgba(226, 180, 80, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timer-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 25px var(--color-primary-glow);
}

.timer-card.highlight {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, rgba(28, 40, 62, 0.9) 0%, rgba(14, 20, 32, 0.98) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px var(--color-primary-glow);
}

.card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.timer-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.timer-value {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(0, 0, 0, 0.8);
}

.timer-card.highlight .timer-value {
  color: var(--color-primary);
  text-shadow: 0 0 25px var(--color-primary-glow), 0 4px 12px rgba(0, 0, 0, 0.9);
}

.timer-ms {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--color-accent);
  opacity: 0.85;
  margin-left: 2px;
}

.timer-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-gold);
}

.timer-separator {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-gold);
  opacity: 0.5;
  margin-top: -1.2rem;
  animation: blink-sep 2s infinite ease-in-out;
}

@keyframes blink-sep {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.95); }
}

/* Timer Footer: Quick Stats */
.timer-footer {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.total-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stat-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-pill strong {
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-weight: 600;
}

/* Victory State Banner (Hidden until 2026-11-12 22h00) */
.lan-started-banner {
  margin-top: 1.5rem;
  padding: 2rem;
  background: radial-gradient(circle, rgba(226, 180, 80, 0.3) 0%, rgba(13, 17, 27, 0.95) 100%);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  animation: pulse-border 1.5s infinite alternate;
}

.lan-started-banner.hidden {
  display: none;
}

.banner-sparkle {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.lan-started-banner h2 {
  font-family: var(--font-decorative);
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px var(--color-gold);
}

@keyframes pulse-border {
  from { box-shadow: 0 0 15px rgba(226, 180, 80, 0.4); }
  to { box-shadow: 0 0 35px rgba(226, 180, 80, 0.9); }
}

/* ==========================================================================
   ACTION BUTTONS HUB
   ========================================================================== */

.action-hub {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.war-cry-btn {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  border: 1px solid #fdba74;
}

.war-cry-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.5), 0 0 20px rgba(253, 186, 116, 0.5);
}

.cal-btn {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #f8fafc;
  border: 1px solid var(--color-gold);
}

.cal-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2d3e58, #162033);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--color-accent-glow);
}

.share-btn {
  background: linear-gradient(135deg, rgba(56, 217, 220, 0.2), rgba(15, 23, 42, 0.8));
  color: #fff;
  border: 1px solid var(--color-primary);
}

.share-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(56, 217, 220, 0.35), rgba(15, 23, 42, 0.9));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--color-primary-glow);
}

.action-btn:active {
  transform: translateY(1px);
}

/* ==========================================================================
   CONTENT PANELS (QUEST LOG & DOSSIER DE ZONE)
   ========================================================================== */

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.8rem;
  width: 100%;
  margin-top: 1rem;
}

.card-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-hud);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  position: relative;
}

.panel-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.panel-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quest-progress-badge {
  margin-left: auto;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(226, 180, 80, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  white-space: nowrap;
}

.quest-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.quest-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 0 10px var(--color-primary-glow);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quest List */
.quest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.quest-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(226, 180, 80, 0.35);
  transform: translateX(3px);
}

.quest-item.completed {
  opacity: 0.65;
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
}

.quest-item.completed .quest-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.quest-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #10b981;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.quest-item.completed .custom-checkbox {
  background: #10b981;
  border-color: #10b981;
  color: #07090e;
}

.quest-text {
  font-size: 0.92rem;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.quest-xp {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--color-gold-light);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(226, 180, 80, 0.2);
  white-space: nowrap;
}

.delete-quest-btn {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.delete-quest-btn:hover {
  color: #ef4444;
}

.add-quest-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.add-quest-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

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

.add-btn {
  background: rgba(226, 180, 80, 0.2);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.add-btn:hover {
  background: var(--color-gold);
  color: #0c101a;
}

/* Zone Dossier Styling */
.zone-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.zone-info-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.info-val {
  color: #fff;
  font-weight: 600;
  text-align: right;
  line-height: 1.4;
}

.info-val.highlight {
  color: var(--color-gold-light);
  font-family: var(--font-serif);
}

/* WoW Loot Rarity Tags */
.survival-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-gold);
  margin-bottom: 0.6rem;
}

.loot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.loot-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid currentColor;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.loot-tag.uncommon {
  color: #1eff00;
  border-color: rgba(30, 255, 0, 0.4);
}

.loot-tag.rare {
  color: #0070dd;
  border-color: rgba(0, 112, 221, 0.5);
}

.loot-tag.epic {
  color: #a335ee;
  border-color: rgba(163, 53, 238, 0.5);
}

.loot-tag.legendary {
  color: #ff8000;
  border-color: rgba(255, 128, 0, 0.55);
}

.ambient-lore {
  font-size: 0.84rem;
  color: var(--text-muted);
  border-left: 2px solid var(--color-gold);
  padding-left: 0.85rem;
  line-height: 1.5;
}

/* Footer */
.main-footer {
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.88rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-crest {
  font-size: 1.4rem;
  opacity: 0.7;
}

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

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(13, 17, 27, 0.95);
  border: 1px solid var(--color-gold);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--color-accent-glow);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}



/* ==========================================================================

   SUB NAVIGATION JUMP PILLS

   ========================================================================== */



.sub-nav-bar {

  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 0.65rem;

  margin: 0.5rem 0 1.25rem 0;

  width: 100%;

}



.nav-pill {

  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

  font-family: var(--font-serif);

  font-size: 0.85rem;

  font-weight: 600;

  letter-spacing: 0.03em;

  color: var(--text-muted);

  text-decoration: none;

  background: rgba(13, 17, 27, 0.75);

  border: 1px solid rgba(226, 180, 80, 0.25);

  padding: 0.45rem 1rem;

  border-radius: 999px;

  backdrop-filter: blur(10px);

  transition: all 0.25s ease;

}



.nav-pill:hover,

.nav-pill.active {

  color: var(--color-gold-light);

  border-color: var(--color-primary);

  background: rgba(56, 217, 220, 0.12);

  transform: translateY(-1px);

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);

}



.pill-icon {

  font-size: 1rem;

}



/* ==========================================================================

   CARTOGRAPHY & DUNGEON MAPS SECTION

   ========================================================================== */



.maps-section {

  width: 100%;

  margin-top: 1.5rem;

}



.map-tabs {

  display: flex;

  align-items: center;

  gap: 0.5rem;

  margin-left: auto;

  flex-wrap: wrap;

}



.map-tab-btn {

  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

  font-family: var(--font-serif);

  font-size: 0.85rem;

  font-weight: 700;

  padding: 0.5rem 1.1rem;

  border-radius: var(--radius-md);

  border: 1px solid rgba(226, 180, 80, 0.3);

  background: rgba(0, 0, 0, 0.4);

  color: var(--text-muted);

  cursor: pointer;

  transition: all 0.25s ease;

}



.map-tab-btn:hover {

  color: #fff;

  border-color: var(--color-gold);

}



.map-tab-btn.active {

  background: linear-gradient(135deg, rgba(226, 180, 80, 0.25), rgba(56, 217, 220, 0.2));

  color: var(--color-gold-light);

  border-color: var(--color-gold);

  box-shadow: 0 0 15px rgba(226, 180, 80, 0.3);

}



.map-tab-content {

  display: none;

  width: 100%;

}



.map-tab-content.active {

  display: block;

  animation: fadeInMap 0.35s ease;

}



@keyframes fadeInMap {

  from { opacity: 0; transform: translateY(6px); }

  to { opacity: 1; transform: translateY(0); }

}



.map-interactive-container {

  display: flex;

  flex-direction: column;

  gap: 1.25rem;

  width: 100%;

}



.map-frame-ornament {

  position: relative;

  width: 100%;

  border: 2px solid var(--color-gold);

  border-radius: var(--radius-lg);

  overflow: hidden;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(226, 180, 80, 0.2);

  background: #110e0a;

}



.map-display-img {

  display: block;

  width: 100%;

  height: auto;

  border-radius: calc(var(--radius-lg) - 2px);

  user-select: none;

  transition: transform 0.4s ease;

}



/* Hearthstone Pin Marker */

.hearthstone-pin-marker {

  position: absolute;

  transform: translate(-50%, -50%);

  cursor: pointer;

  z-index: 10;

  display: flex;

  align-items: center;

  justify-content: center;

}



.hearthstone-icon-symbol {

  width: 44px;

  height: 44px;

  border-radius: 50%;

  background: radial-gradient(circle, #38d9dc 20%, #1e40af 80%, #0f172a 100%);

  border: 2px solid #facc15;

  box-shadow: 0 0 15px #38d9dc, inset 0 0 10px #67e8f9;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.5rem;

  animation: float-hearthstone 3s ease-in-out infinite alternate;

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.hearthstone-pin-marker:hover .hearthstone-icon-symbol {

  transform: scale(1.18);

  box-shadow: 0 0 25px #67e8f9, 0 0 35px #facc15;

}



.hearthstone-rune-pulse {

  position: absolute;

  width: 70px;

  height: 70px;

  border-radius: 50%;

  border: 2px dashed rgba(56, 217, 220, 0.8);

  animation: rotate-pulse 6s linear infinite;

  pointer-events: none;

}



@keyframes float-hearthstone {

  0% { transform: translateY(0); }

  100% { transform: translateY(-5px); }

}



@keyframes rotate-pulse {

  0% { transform: rotate(0deg) scale(0.9); opacity: 0.6; }

  50% { transform: rotate(180deg) scale(1.15); opacity: 0.95; }

  100% { transform: rotate(360deg) scale(0.9); opacity: 0.6; }

}



/* Tooltip on Hearthstone Pin */

.hearthstone-pin-tooltip {

  position: absolute;

  bottom: calc(100% + 12px);

  left: 50%;

  transform: translateX(-50%);

  background: rgba(13, 17, 27, 0.94);

  border: 1px solid var(--color-gold);

  border-radius: var(--radius-md);

  padding: 0.85rem 1.1rem;

  white-space: nowrap;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75), 0 0 15px rgba(56, 217, 220, 0.4);

  pointer-events: none;

  opacity: 0;

  visibility: hidden;

  transition: all 0.25s ease;

  z-index: 20;

}



.hearthstone-pin-marker:hover .hearthstone-pin-tooltip,

.hearthstone-pin-marker:focus .hearthstone-pin-tooltip {

  opacity: 1;

  visibility: visible;

  transform: translateX(-50%) translateY(-4px);

}



.tooltip-title {

  font-family: var(--font-serif);

  font-size: 0.95rem;

  font-weight: 700;

  color: var(--color-gold-light);

}



.tooltip-badge {

  font-size: 0.8rem;

  font-weight: 600;

  color: var(--color-primary);

  margin-top: 0.15rem;

}



.tooltip-meta {

  font-size: 0.75rem;

  color: var(--text-muted);

  margin-top: 0.2rem;

}



.tooltip-buff {

  font-size: 0.75rem;

  color: #4ade80;

  font-style: italic;

  margin-top: 0.35rem;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding-top: 0.3rem;

}



/* Extra POI Markers */

.zone-poi-marker {

  position: absolute;

  transform: translate(-50%, -50%);

  display: inline-flex;

  align-items: center;

  gap: 0.35rem;

  background: rgba(15, 23, 42, 0.82);

  border: 1px solid rgba(226, 180, 80, 0.4);

  padding: 0.25rem 0.6rem;

  border-radius: 999px;

  font-size: 0.75rem;

  font-family: var(--font-serif);

  color: #fff;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);

  pointer-events: none;

  backdrop-filter: blur(4px);

}



/* Map Toolbar */

.map-toolbar {

  display: flex;

  align-items: center;

  justify-content: space-between;

  flex-wrap: wrap;

  gap: 1rem;

  padding: 0.85rem 1.1rem;

  background: rgba(0, 0, 0, 0.35);

  border: 1px solid rgba(255, 255, 255, 0.07);

  border-radius: var(--radius-md);

}



.map-legend-pills {

  display: flex;

  flex-wrap: wrap;

  gap: 0.75rem;

}



.legend-pill {

  font-size: 0.85rem;

  color: var(--text-muted);

  display: inline-flex;

  align-items: center;

  gap: 0.35rem;

}



.legend-pill strong {

  color: var(--color-gold-light);

}



.hearthstone-mini-icon {

  font-size: 1.1rem;

  filter: drop-shadow(0 0 5px #38d9dc);

}



.map-action-buttons {

  display: flex;

  gap: 0.65rem;

  flex-wrap: wrap;

}



.map-tool-btn {

  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

  font-family: var(--font-serif);

  font-size: 0.82rem;

  font-weight: 700;

  text-decoration: none;

  background: rgba(226, 180, 80, 0.12);

  border: 1px solid var(--color-gold);

  color: var(--color-gold-light);

  padding: 0.45rem 0.95rem;

  border-radius: var(--radius-md);

  cursor: pointer;

  transition: all 0.2s ease;

}



.map-tool-btn:hover {

  background: rgba(226, 180, 80, 0.25);

  box-shadow: 0 0 15px rgba(226, 180, 80, 0.4);

  transform: translateY(-1px);

}



/* Dungeon Boss Markers on Map */

.dungeon-boss-marker {

  position: absolute;

  transform: translate(-50%, -50%);

  background: transparent;

  border: none;

  cursor: pointer;

  z-index: 10;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;

}



.boss-skull-badge {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  background: radial-gradient(circle, #ea580c 20%, #7c2d12 85%, #000 100%);

  border: 2px solid #fdba74;

  color: #fff;

  font-family: var(--font-serif);

  font-weight: 700;

  font-size: 0.82rem;

  padding: 0.25rem 0.6rem;

  border-radius: 999px;

  box-shadow: 0 0 12px rgba(234, 88, 12, 0.8), 0 4px 10px rgba(0, 0, 0, 0.8);

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.dungeon-boss-marker:hover .boss-skull-badge {

  transform: scale(1.18);

  box-shadow: 0 0 20px #ea580c, 0 0 30px #fdba74;

}



.boss-skull-badge.boss-final {

  background: radial-gradient(circle, #a855f7 20%, #581c87 85%, #000 100%);

  border-color: #f0abfc;

  box-shadow: 0 0 18px rgba(168, 85, 247, 0.9), 0 4px 10px rgba(0, 0, 0, 0.8);

}



.dungeon-boss-marker:hover .boss-skull-badge.boss-final {

  box-shadow: 0 0 25px #c084fc, 0 0 35px #f0abfc;

}



.marker-pulse {

  position: absolute;

  width: 46px;

  height: 46px;

  border-radius: 50%;

  border: 2px solid rgba(234, 88, 12, 0.6);

  animation: pulse-ring 2s infinite ease-out;

  pointer-events: none;

}



.marker-pulse.final {

  border-color: rgba(168, 85, 247, 0.7);

}



@keyframes pulse-ring {

  0% { transform: scale(0.6); opacity: 1; }

  100% { transform: scale(1.6); opacity: 0; }

}



/* Dungeon Journal / Codex des Rencontres */

.dungeon-journal-panel {

  margin-top: 1rem;

  display: flex;

  flex-direction: column;

  gap: 1.25rem;

}



.journal-header {

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  padding-bottom: 0.85rem;

}



.journal-badge {

  display: inline-block;

  font-family: var(--font-serif);

  font-size: 0.75rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: var(--color-gold);

  margin-bottom: 0.25rem;

}



.journal-title {

  font-family: var(--font-serif);

  font-size: 1.35rem;

  color: #fff;

}



.journal-subtitle {

  font-size: 0.85rem;

  color: var(--text-muted);

}



.boss-cards-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));

  gap: 1.25rem;

}



.boss-card {

  background: rgba(10, 14, 23, 0.8);

  border: 1px solid rgba(226, 180, 80, 0.25);

  border-radius: var(--radius-lg);

  padding: 1.25rem;

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

  transition: all 0.25s ease;

  position: relative;

}



.boss-card:hover,

.boss-card.highlighted {

  border-color: var(--color-gold);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(226, 180, 80, 0.35);

  transform: translateY(-2px);

}



.boss-card-highlight {

  border-color: rgba(168, 85, 247, 0.5);

  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.15) 0%, rgba(10, 14, 23, 0.85) 70%);

}



.boss-card-highlight:hover,

.boss-card-highlight.highlighted {

  border-color: #c084fc;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 25px rgba(168, 85, 247, 0.45);

}



.boss-card-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 0.5rem;

}



.boss-number-tag {

  font-family: var(--font-serif);

  font-size: 0.75rem;

  font-weight: 700;

  background: rgba(234, 88, 12, 0.2);

  border: 1px solid #ea580c;

  color: #fdba74;

  padding: 0.2rem 0.6rem;

  border-radius: 999px;

}



.boss-number-tag.boss-final-tag {

  background: rgba(168, 85, 247, 0.25);

  border-color: #c084fc;

  color: #f0abfc;

}



.boss-room-tag {

  font-size: 0.75rem;

  color: var(--text-muted);

}



.boss-name {

  font-family: var(--font-serif);

  font-size: 1.15rem;

  color: var(--color-gold-light);

  font-weight: 700;

}



.boss-role-type {

  font-size: 0.8rem;

  font-weight: 600;

  color: var(--color-primary);

}



.boss-lore {

  font-size: 0.82rem;

  color: var(--text-muted);

  line-height: 1.45;

  font-style: italic;

}



.boss-abilities {

  display: flex;

  flex-direction: column;

  gap: 0.5rem;

  background: rgba(0, 0, 0, 0.35);

  padding: 0.75rem;

  border-radius: var(--radius-sm);

  border: 1px solid rgba(255, 255, 255, 0.05);

}



.ability-item {

  display: flex;

  align-items: flex-start;

  gap: 0.5rem;

  font-size: 0.8rem;

}



.ability-icon {

  font-size: 1.1rem;

  line-height: 1.2;

}



.ability-text strong {

  color: #fff;

}



.boss-loot {

  display: flex;

  flex-direction: column;

  gap: 0.35rem;

  margin-top: auto;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding-top: 0.65rem;

}



.loot-label {

  font-family: var(--font-serif);

  font-size: 0.75rem;

  font-weight: 700;

  color: var(--text-subtle);

  text-transform: uppercase;

}



.loot-drop {

  display: inline-block;

  font-size: 0.8rem;

  font-weight: 600;

  padding: 0.2rem 0.5rem;

  border-radius: 4px;

}



.loot-drop.legendary {

  color: #ff8000;

  background: rgba(255, 128, 0, 0.12);

  border: 1px solid rgba(255, 128, 0, 0.4);

}



.loot-drop.epic {

  color: #a335ee;

  background: rgba(163, 53, 238, 0.12);

  border: 1px solid rgba(163, 53, 238, 0.4);

}



.loot-drop.rare {

  color: #0070dd;

  background: rgba(0, 112, 221, 0.12);

  border: 1px solid rgba(0, 112, 221, 0.4);

}



/* ==========================================================================

   RAVITAILLEMENT DE GUILDE : LISTE DE COURSES PARTAGÉE

   ========================================================================== */



.groceries-section {

  width: 100%;

  margin-top: 1.5rem;

}



.sync-status-indicator {

  margin-left: auto;

  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

  font-size: 0.78rem;

  color: var(--text-muted);

  background: rgba(0, 0, 0, 0.4);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 0.3rem 0.75rem;

  border-radius: 999px;

}



.sync-dot {

  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: #94a3b8;

}



.sync-dot.live {

  background: #22c55e;

  box-shadow: 0 0 8px #22c55e;

}



.sync-dot.syncing {

  background: #eab308;

  box-shadow: 0 0 8px #eab308;

  animation: pulse-dot 1s infinite;

}



/* Category Filter Bar */

.grocery-filter-bar {

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

  width: 100%;

}



.grocery-filter-btn {

  display: inline-flex;

  align-items: center;

  gap: 0.4rem;

  font-family: var(--font-serif);

  font-size: 0.82rem;

  font-weight: 600;

  padding: 0.45rem 0.95rem;

  border-radius: var(--radius-md);

  border: 1px solid rgba(226, 180, 80, 0.25);

  background: rgba(0, 0, 0, 0.35);

  color: var(--text-muted);

  cursor: pointer;

  transition: all 0.2s ease;

}



.grocery-filter-btn:hover {

  color: #fff;

  border-color: var(--color-gold);

}



.grocery-filter-btn.active {

  background: linear-gradient(135deg, rgba(226, 180, 80, 0.2), rgba(56, 217, 220, 0.15));

  color: var(--color-gold-light);

  border-color: var(--color-gold);

  box-shadow: 0 0 12px rgba(226, 180, 80, 0.25);

}



.filter-count {

  font-size: 0.72rem;

  background: rgba(255, 255, 255, 0.1);

  padding: 0.1rem 0.45rem;

  border-radius: 999px;

  color: #fff;

}



/* Groceries Progress */

.grocery-progress-wrap {

  display: flex;

  flex-direction: column;

  gap: 0.4rem;

  width: 100%;

}



.grocery-progress-info {

  display: flex;

  justify-content: space-between;

  font-size: 0.85rem;

  color: var(--text-muted);

}



.grocery-pct {

  font-weight: 700;

  color: var(--color-gold-light);

  font-family: var(--font-serif);

}



/* Add Grocery Form */

.add-grocery-box {

  background: rgba(0, 0, 0, 0.4);

  border: 1px solid rgba(226, 180, 80, 0.25);

  border-radius: var(--radius-lg);

  padding: 1.1rem;

  display: flex;

  flex-direction: column;

  gap: 0.85rem;

}



.form-row-main {

  display: flex;

  gap: 0.65rem;

  width: 100%;

}



.grocery-input {

  background: rgba(15, 23, 42, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #fff;

  font-family: var(--font-sans);

  font-size: 0.9rem;

  padding: 0.65rem 0.95rem;

  border-radius: var(--radius-md);

  transition: all 0.2s ease;

}



.grocery-input:focus {

  outline: none;

  border-color: var(--color-primary);

  box-shadow: 0 0 12px var(--color-primary-glow);

}



.text-field {

  flex: 1;

}



.qty-field {

  width: 130px;

}



.form-row-secondary {

  display: flex;

  align-items: flex-end;

  gap: 0.75rem;

  flex-wrap: wrap;

}



.select-wrap,

.author-wrap {

  display: flex;

  flex-direction: column;

  gap: 0.25rem;

  flex: 1;

  min-width: 180px;

}



.form-mini-label {

  font-size: 0.72rem;

  font-family: var(--font-serif);

  font-weight: 600;

  color: var(--text-muted);

  text-transform: uppercase;

}



.grocery-select {

  background: rgba(15, 23, 42, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #fff;

  font-family: var(--font-sans);

  font-size: 0.85rem;

  padding: 0.65rem 0.85rem;

  border-radius: var(--radius-md);

  cursor: pointer;

}



.grocery-select:focus {

  outline: none;

  border-color: var(--color-primary);

}



.author-field {

  width: 100%;

}



.add-provision-btn {

  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

  font-family: var(--font-serif);

  font-size: 0.88rem;

  font-weight: 700;

  padding: 0.68rem 1.4rem;

  background: linear-gradient(135deg, var(--color-gold), #b45309);

  color: #fff;

  border: 1px solid var(--color-gold-light);

  border-radius: var(--radius-md);

  cursor: pointer;

  transition: all 0.2s ease;

  box-shadow: 0 4px 15px rgba(180, 83, 9, 0.4);

  white-space: nowrap;

}



.add-provision-btn:hover {

  transform: translateY(-2px);

  box-shadow: 0 6px 20px rgba(226, 180, 80, 0.5);

  background: linear-gradient(135deg, #f5c862, #d97706);

}



/* Groceries List */

.groceries-list-wrap {

  width: 100%;

}



.groceries-list {

  list-style: none;

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));

  gap: 0.85rem;

}



.grocery-item-card {

  background: rgba(15, 23, 42, 0.75);

  border: 1px solid rgba(226, 180, 80, 0.2);

  border-radius: var(--radius-md);

  padding: 0.95rem 1.1rem;

  display: flex;

  align-items: flex-start;

  gap: 0.85rem;

  transition: all 0.2s ease;

  position: relative;

}



.grocery-item-card:hover {

  border-color: var(--color-gold);

  background: rgba(15, 23, 42, 0.9);

  transform: translateY(-2px);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);

}



.grocery-item-card.claimed {

  opacity: 0.75;

  border-color: rgba(34, 197, 94, 0.4);

  background: rgba(20, 83, 45, 0.15);

}



.grocery-checkbox {

  width: 24px;

  height: 24px;

  border-radius: 6px;

  border: 2px solid var(--color-gold);

  background: rgba(0, 0, 0, 0.4);

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  flex-shrink: 0;

  margin-top: 0.15rem;

  transition: all 0.2s ease;

  color: #fff;

  font-weight: 700;

  font-size: 0.9rem;

}



.grocery-item-card.claimed .grocery-checkbox {

  background: #16a34a;

  border-color: #4ade80;

  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);

}



.grocery-content {

  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 0.35rem;

}



.grocery-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 0.5rem;

}



.grocery-cat-tag {

  font-size: 0.7rem;

  font-weight: 700;

  padding: 0.15rem 0.5rem;

  border-radius: 999px;

  text-transform: uppercase;

  letter-spacing: 0.04em;

}



.cat-food {

  background: rgba(249, 115, 22, 0.18);

  border: 1px solid #f97316;

  color: #fdba74;

}



.cat-drinks {

  background: rgba(6, 182, 212, 0.18);

  border: 1px solid #06b6d4;

  color: #67e8f9;

}



.cat-gear {

  background: rgba(168, 85, 247, 0.18);

  border: 1px solid #a855f7;

  color: #d8b4fe;

}



.cat-comfort {

  background: rgba(16, 185, 129, 0.18);

  border: 1px solid #10b981;

  color: #6ee7b7;

}



.grocery-qty-badge {

  font-family: var(--font-serif);

  font-size: 0.75rem;

  font-weight: 700;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: var(--color-gold-light);

  padding: 0.15rem 0.55rem;

  border-radius: 4px;

}



.grocery-text {

  font-size: 0.95rem;

  font-weight: 500;

  color: #fff;

  line-height: 1.35;

}



.grocery-item-card.claimed .grocery-text {

  text-decoration: line-through;

  color: var(--text-muted);

}



.grocery-meta {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 0.5rem;

  font-size: 0.75rem;

  color: var(--text-muted);

  margin-top: 0.25rem;

}



.grocery-claimed-by {

  color: #4ade80;

  font-weight: 600;

}



.delete-grocery-btn {

  background: transparent;

  border: none;

  color: var(--text-subtle);

  font-size: 1rem;

  cursor: pointer;

  padding: 0.2rem 0.4rem;

  border-radius: 4px;

  transition: all 0.2s ease;

  line-height: 1;

}



.delete-grocery-btn:hover {

  color: #ef4444;

  background: rgba(239, 68, 68, 0.15);

}



.groceries-empty-state {

  text-align: center;

  padding: 2.5rem 1rem;

  color: var(--text-muted);

}



.empty-icon {

  font-size: 2.5rem;

  display: block;

  margin-bottom: 0.5rem;

}



/* ==========================================================================

   MODAL LIGHTBOX FOR ZOOMING MAPS

   ========================================================================== */



.map-modal {

  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 1.5rem;

}



.map-modal.hidden {

  display: none;

}



.map-modal-backdrop {

  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.88);

  backdrop-filter: blur(12px);

}



.map-modal-content {

  position: relative;

  max-width: 95vw;

  max-height: 92vh;

  background: #0f172a;

  border: 2px solid var(--color-gold);

  border-radius: var(--radius-lg);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(226, 180, 80, 0.4);

  display: flex;

  flex-direction: column;

  overflow: hidden;

  z-index: 10;

}



.map-modal-close {

  position: absolute;

  top: 12px;

  right: 12px;

  background: rgba(0, 0, 0, 0.7);

  border: 1px solid var(--color-gold);

  color: #fff;

  font-size: 1.25rem;

  width: 38px;

  height: 38px;

  border-radius: 50%;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 20;

  transition: all 0.2s ease;

}



.map-modal-close:hover {

  background: #ef4444;

  border-color: #fca5a5;

  transform: scale(1.1);

}



.map-modal-body {

  overflow: auto;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0.5rem;

}



.modal-large-img {

  max-width: 100%;

  max-height: 80vh;

  object-fit: contain;

  border-radius: var(--radius-md);

}



.map-modal-footer {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0.75rem 1.25rem;

  background: rgba(0, 0, 0, 0.5);

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 0.85rem;

  color: var(--text-muted);

}



.download-map-link {

  color: var(--color-gold-light);

  font-family: var(--font-serif);

  font-weight: 700;

  text-decoration: underline;

}



/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .timer-frame {
    padding: 1.75rem 1.2rem;
  }
  
  .timer-grid {
    gap: 0.5rem;
  }
  
  .timer-card {
    min-width: auto;
    padding: 1rem 0.4rem;
  }
  
  .timer-separator {
    font-size: 2rem;
    margin-top: -0.8rem;
  }
}

@media (max-width: 640px) {
  .top-nav {
    justify-content: center;
    border-radius: var(--radius-lg);
  }
  
  .timer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .timer-separator {
    display: none;
  }
  
  .timer-card {
    max-width: none;
    padding: 1.1rem 0.5rem;
  }
  
  .timer-value {
    font-size: 2.6rem;
  }
  
  .action-hub {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  
  .info-val {
    text-align: left;
  }
}


/* Animation for newly added groceries */
@keyframes pulse-horde-new {
  0% { box-shadow: 0 0 25px rgba(255, 71, 66, 0.95); border-color: #ff4742; transform: translateY(-4px); }
  70% { box-shadow: 0 0 15px rgba(255, 159, 28, 0.6); border-color: #ff9f1c; transform: translateY(-2px); }
  100% { box-shadow: none; border-color: rgba(226, 180, 80, 0.2); transform: translateY(0); }
}

.grocery-item-card.newly-added {
  animation: pulse-horde-new 2.5s ease-out;
}

/* General Hidden Utility */
.hidden {
  display: none !important;
}


/* ==========================================================================
   GROUPE DE DONJON (5 PERSONNES) : WOW PARTY FRAMES
   ========================================================================== */

.party-section {
  width: 100%;
  margin-top: 1.5rem;
}

.party-status-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(226, 180, 80, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  white-space: nowrap;
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

/* Party Member Card (WoW Unit Frame) */
.party-card {
  background: rgba(10, 14, 23, 0.88);
  border: 2px solid rgba(226, 180, 80, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.party-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  border-color: var(--color-gold);
}

.party-card.is-leader {
  border-color: var(--color-gold);
  background: radial-gradient(circle at top right, rgba(226, 180, 80, 0.12) 0%, rgba(10, 14, 23, 0.95) 70%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(226, 180, 80, 0.25);
}

.party-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.party-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.party-role-tag.tank {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #93c5fd;
}

.party-role-tag.healer {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #86efac;
}

.party-role-tag.dps {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.party-leader-badge {
  font-size: 0.72rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: #facc15;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.party-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.party-avatar-crest {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.party-char-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.party-char-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.party-char-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.party-class-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: #fff;
}

/* WoW Bars (HP & Mana) */
.party-bars {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.party-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.party-bar-hp {
  height: 100%;
  width: 100%;
  background: #22c55e;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.party-bar-mana {
  height: 100%;
  width: 100%;
  background: #3b82f6;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

/* Empty Slot Card */
.party-card.empty-slot {
  border: 2px dashed rgba(226, 180, 80, 0.35);
  background: rgba(13, 17, 27, 0.5);
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 160px;
}

.party-card.empty-slot:hover {
  border-color: var(--color-primary);
  background: rgba(56, 217, 220, 0.08);
  border-style: solid;
}

.empty-slot-icon {
  font-size: 2.2rem;
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.empty-slot-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.empty-slot-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 0.65rem;
}

.join-slot-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-gold), #b45309);
  color: #fff;
  border: 1px solid var(--color-gold-light);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}

.join-slot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(226, 180, 80, 0.5);
}

.leave-slot-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.72rem;
  font-family: var(--font-serif);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.3rem;
  align-self: flex-start;
}

.leave-slot-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

/* Modal for Joining Party */
.party-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.party-modal.hidden {
  display: none;
}

.party-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.party-modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #0f172a;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(226, 180, 80, 0.35);
  padding: 1.8rem;
  z-index: 10;
  max-height: 90vh;
  overflow-y: auto;
}

.party-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-gold);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.party-modal-close:hover {
  background: #ef4444;
  border-color: #fca5a5;
}

.party-modal-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.modal-crest {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.party-modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-gold-light);
}

.party-modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.party-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

.party-form-label {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.party-input,
.party-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.party-input:focus,
.party-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

/* Radio pills (Role & Gender) */
.role-selector-pills,
.gender-selector-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.role-pill-opt,
.gender-pill-opt {
  flex: 1;
  cursor: pointer;
}

.role-pill-opt input,
.gender-pill-opt input {
  display: none;
}

.role-pill-label,
.gender-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.role-pill-opt input:checked + .role-pill-label,
.gender-pill-opt input:checked + .gender-pill-label {
  background: linear-gradient(135deg, rgba(226, 180, 80, 0.3), rgba(255, 71, 66, 0.3));
  border-color: var(--color-gold);
  color: #fff;
  box-shadow: 0 0 12px rgba(226, 180, 80, 0.35);
}

.party-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-gold), #b45309);
  color: #fff;
  border: 1px solid var(--color-gold-light);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(180, 83, 9, 0.4);
  margin-top: 0.5rem;
}

.party-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 180, 80, 0.5);
  background: linear-gradient(135deg, #f5c862, #d97706);
}


/* Highlight 'C'est vous !' with pulsing glowing border */
@keyframes pulse-me-glow {
  0% {
    box-shadow: 0 0 15px rgba(56, 217, 220, 0.6), 0 0 35px rgba(56, 217, 220, 0.25), inset 0 0 10px rgba(56, 217, 220, 0.12);
    border-color: #38d9dc;
  }
  100% {
    box-shadow: 0 0 28px rgba(56, 217, 220, 0.95), 0 0 55px rgba(56, 217, 220, 0.45), inset 0 0 18px rgba(56, 217, 220, 0.25);
    border-color: #a5f3fc;
  }
}

.party-card.is-me {
  border: 2px solid #38d9dc !important;
  animation: pulse-me-glow 2s infinite alternate ease-in-out;
  background: radial-gradient(circle at top right, rgba(56, 217, 220, 0.14) 0%, rgba(10, 14, 23, 0.95) 75%) !important;
}

.party-is-me-badge {
  font-size: 0.72rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: #38d9dc;
  background: rgba(56, 217, 220, 0.18);
  border: 1px solid rgba(56, 217, 220, 0.6);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 0 10px rgba(56, 217, 220, 0.4);
}

/* Dual WoW Icons (Class & Specialization) */
.party-icons-dual {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.party-icon-frame {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--color-gold);
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  position: relative;
  transition: transform 0.2s ease;
}

.party-icon-frame:hover {
  transform: scale(1.08);
}

.party-icon-frame.class-frame {
  border-color: var(--color-gold);
}

.party-icon-frame.spec-frame {
  border-color: rgba(255, 255, 255, 0.4);
  width: 40px;
  height: 40px;
}

.party-wow-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.party-char-spec-line {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-gold-light);
}

.party-char-spec-line strong {
  color: #fff;
}

/* Party Card Action Buttons */
.party-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.edit-slot-btn,
.claim-slot-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-family: var(--font-serif);
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.edit-slot-btn:hover {
  background: rgba(226, 180, 80, 0.25);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

.claim-slot-btn {
  border-color: rgba(56, 217, 220, 0.4);
  color: #93c5fd;
}

.claim-slot-btn:hover {
  background: rgba(56, 217, 220, 0.25);
  border-color: #38d9dc;
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 217, 220, 0.4);
}
