/* ═══════════════════════════════════════════════════════
   FAE TEMPLATE – SunLight CMS 8
   Exkluzivní temný Fae fantasy motiv
   Autor: Ententeak (https://ententeak.cz/)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@700;900&family=IM+Fell+English:ital@0;1&family=Montserrat:wght@400;600;700&display=swap');

:root {
  --fae-gold:          #d4af37;
  --fae-gold-light:    #f5eaad;
  --fae-gold-dark:     #8f731c;
  --fae-blue:          #2b6cb0;
  --fae-blue-glow:     #4299e1;
  --fae-blue-light:    #90cdf4;
  --fae-bg-dark:       #04060b;
  --fae-bg-panel:      rgba(6, 11, 20, 0.95);
  --fae-panel-border:  rgba(66, 153, 225, 0.4);
  --fae-gold-border:   rgba(212, 175, 55, 0.45);
  --fae-text-bright:   #f0f4fd;
  --fae-text-muted:    #a0aec0;
  --fae-text-gold:     #f5eaad;
  --fae-shadow:        0 10px 40px rgba(0, 0, 0, 0.95);
  --fae-radius:        8px;
  --fae-container-width: 90%;
  --fae-container-max-width: 1800px;
}

/* ── BASE & RESET (CRITICAL OVERRIDES) ───────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, 
body, 
body.fae-theme,
html body {
  background-color: #04060b !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(20, 50, 90, 0.45) 0%, transparent 70%),
    url('images/pozadi_stranky.png') !important;
  background-repeat: repeat-y !important;
  background-position: center 40% !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  color: #f0f4fd !important;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
}

a {
  color: var(--fae-blue-light) !important;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--fae-gold-light) !important;
  text-shadow: 0 0 10px rgba(245, 234, 173, 0.6) !important;
}

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/logo_bg.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-bottom: 2px solid var(--fae-gold-border) !important;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.9) !important;
  overflow: hidden;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(4, 6, 11, 0.1) 0%, rgba(4, 6, 11, 0.7) 100%),
              linear-gradient(180deg, rgba(4,6,11,0.15) 0%, rgba(4,6,11,0.85) 100%) !important;
  pointer-events: none;
  z-index: 1;
}

.site-title-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.5rem 1rem;
  width: var(--fae-container-width, 90%);
  max-width: var(--fae-container-max-width, 1800px);
  margin: 0 auto;
  animation: faeFadeIn 1.2s ease-out;
}

.fae-crest {
  font-size: 1.8rem;
  color: var(--fae-gold-light) !important;
  letter-spacing: 0.6em;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 0 30px rgba(66, 153, 225, 0.6) !important;
  margin-bottom: 0.5rem;
  animation: faeGlowPulse 4s ease-in-out infinite;
}

.site-title {
  font-family: 'Cinzel Decorative', 'Cinzel', serif !important;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem) !important;
  font-weight: 900 !important;
  line-height: 1.15;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.site-title a {
  color: var(--fae-gold-light) !important;
  text-shadow: 
    0 0 20px rgba(66, 153, 225, 0.8),
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(212, 175, 55, 0.5) !important;
}

.site-title a:hover {
  color: #ffffff !important;
  text-shadow: 
    0 0 30px rgba(144, 205, 244, 1),
    0 0 50px rgba(212, 175, 55, 0.8) !important;
}

/* Site Logo */
.site-title-logo {
  margin-bottom: 0.2rem;
}

.site-title-logo a {
  display: inline-block;
  width: 100%;
  text-shadow: none !important;
}

.site-logo {
  width: 100%;
  max-width: 1100px;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 15px rgba(66, 153, 225, 0.5)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.site-title-logo a:hover .site-logo {
  filter: drop-shadow(0 0 25px rgba(144, 205, 244, 0.8)) drop-shadow(0 0 45px rgba(212, 175, 55, 0.7));
  transform: scale(1.015);
}

.site-subtitle {
  font-family: 'Cinzel', serif !important;
  font-size: clamp(0.85rem, 1.8vw, 1.15rem) !important;
  color: var(--fae-blue-light) !important;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  position: relative;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10;
  background: rgba(7, 12, 22, 0.9) !important;
  border: 1px solid var(--fae-gold) !important;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--fae-gold-light) !important;
  margin: 5px 0;
}

/* ── NAVIGATION ─────────────────────────────────────── */
.main-nav {
  position: relative;
  z-index: 5;
  background-image: url('images/horizontal_menu_bg.png') !important;
  background-size: cover !important;
  background-position: center !important;
  border-top: 1px solid var(--fae-gold-border) !important;
  border-bottom: 2px solid var(--fae-gold) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
}

.nav-container {
  width: var(--fae-container-width, 90%);
  max-width: var(--fae-container-max-width, 1800px);
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.main-nav li a,
.main-nav li span {
  display: inline-block;
  font-family: 'Cinzel', serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fae-gold-light) !important;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(180deg, rgba(14, 25, 45, 0.95) 0%, rgba(6, 12, 24, 0.95) 100%) !important;
  border: 1px solid var(--fae-gold-border) !important;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(212, 175, 55, 0.2) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  transition: all 0.25s ease;
}

.main-nav li a:hover {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(30, 60, 105, 0.98) 0%, rgba(12, 28, 54, 0.98) 100%) !important;
  border-color: var(--fae-gold) !important;
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.5), 0 0 12px rgba(212, 175, 55, 0.4) !important;
  text-shadow: 0 0 10px rgba(144, 205, 244, 0.9), 0 0 20px rgba(212, 175, 55, 0.6) !important;
  transform: translateY(-2px);
}

.main-nav li.active > a,
.main-nav li.current > a {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(40, 85, 145, 0.98) 0%, rgba(18, 42, 78, 0.98) 100%) !important;
  border-color: var(--fae-gold-light) !important;
  box-shadow: 0 0 15px rgba(66, 153, 225, 0.8), inset 0 0 8px rgba(212, 175, 55, 0.5) !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 25px rgba(66, 153, 225, 0.9) !important;
}

/* ── TOP BOXES ──────────────────────────────────────── */
.top-boxes-wrapper {
  width: var(--fae-container-width, 90%);
  max-width: var(--fae-container-max-width, 1800px);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.top-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* ── MAIN LAYOUT WRAPPER ────────────────────────────── */
.site-wrapper {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 1.8rem;
  width: var(--fae-container-width, 90%);
  max-width: var(--fae-container-max-width, 1800px);
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
  align-items: start;
}

.site-wrapper.no-sidebar {
  grid-template-columns: 1fr;
}

/* ── SIDEBAR & BOXES ────────────────────────────────── */
.sidebar, 
#site-sidebar, 
#sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar > div, 
#site-sidebar > div, 
#sidebar-left > div, 
.box {
  background-color: var(--fae-bg-panel) !important;
  background-image: 
    url('images/sidebar-top.png'),
    url('images/sidebar-bot.png'),
    url('images/sidebar-mid.png') !important;
  background-position: 
    top center,
    bottom center,
    center top !important;
  background-repeat: 
    no-repeat,
    no-repeat,
    repeat-y !important;
  background-size: 
    100% auto,
    100% auto,
    100% auto !important;
  border: 1px solid var(--fae-panel-border) !important;
  border-radius: var(--fae-radius);
  padding: 1.4rem 1.4rem;
  box-shadow: var(--fae-shadow) !important;
  position: relative;
}

/* FORCE HIGH-CONTRAST READABLE TEXT IN SIDEBAR & RPG WIDGETS */
.sidebar, .sidebar *, 
#site-sidebar, #site-sidebar *, 
#sidebar-left, #sidebar-left *, 
.box, .box *, 
.box-content, .box-content *,
[class*="rpg-"], [class*="rpg-"] * {
  color: #e6ecf8 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.sidebar h3, 
#site-sidebar h3, 
#sidebar-left h3, 
.box-title, 
.box h2, 
.box h3 {
  font-family: 'Cinzel', serif !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--fae-gold-light) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--fae-gold-border) !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

.sidebar ul, #site-sidebar ul, #sidebar-left ul {
  list-style: none;
}

.sidebar li, #site-sidebar li, #sidebar-left li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(66, 153, 225, 0.2);
}

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

.sidebar a, #site-sidebar a, #sidebar-left a, .box a, [class*="rpg-"] a {
  color: var(--fae-blue-light) !important;
}

.sidebar a:hover, #site-sidebar a:hover, #sidebar-left a:hover, .box a:hover, [class*="rpg-"] a:hover {
  color: var(--fae-gold-light) !important;
  text-shadow: 0 0 8px rgba(245, 234, 173, 0.6) !important;
}

/* ── CONTENT PANEL & TEXT READABILITY FIXES ─────────── */
.content-panel, 
#main-content, 
#content {
  background-color: var(--fae-bg-panel) !important;
  background-image: 
    url('images/content-top.png'),
    url('images/content-bot.png'),
    url('images/content-mid.png') !important;
  background-position: 
    top center,
    bottom center,
    center top !important;
  background-repeat: 
    no-repeat,
    no-repeat,
    repeat-y !important;
  background-size: 
    100% auto,
    100% auto,
    100% auto !important;
  border: 1px solid var(--fae-panel-border) !important;
  border-radius: var(--fae-radius);
  padding: 2.2rem 2.5rem;
  box-shadow: var(--fae-shadow) !important;
  position: relative;
  min-height: 500px;
  color: #f0f4fd !important;
}

.content-panel::before, #main-content::before, #content::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fae-gold), transparent);
}

/* FORCE HIGH-CONTRAST READABLE TEXT IN CONTENT AREA */
.content-panel, .content-panel p, .content-panel span, .content-panel div, .content-panel li, 
.content-panel td, .content-panel th, .content-panel label, .content-panel small, .content-panel strong, 
.content-panel b, .content-panel em, .content-panel i,
#main-content, #main-content p, #main-content span, #main-content div, #main-content li, 
#main-content td, #main-content th, #main-content label, #main-content small, #main-content strong,
#content, #content p, #content span, #content div, #content li, 
#content td, #content th, #content label, #content small, #content strong {
  color: #e6ecf8 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.content-panel h1, .content-panel h2, .content-panel h3, .content-panel h4, .content-panel h5, .content-panel h6,
#main-content h1, #main-content h2, #main-content h3, #main-content h4, #main-content h5, #main-content h6,
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6,
.heading {
  font-family: 'Cinzel', serif !important;
  color: var(--fae-gold-light) !important;
  letter-spacing: 0.04em;
  margin: 1.4rem 0 0.8rem;
  line-height: 1.3;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6), 0 2px 5px rgba(0, 0, 0, 0.95) !important;
}

.content-panel h1, #main-content h1, #content h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 700 !important;
  border-bottom: 1px solid var(--fae-gold-border) !important;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

.content-panel h2, #main-content h2, #content h2 {
  font-size: 1.5rem !important;
  color: var(--fae-gold-light) !important;
}

.content-panel h3, #main-content h3, #content h3 {
  font-size: 1.25rem !important;
  color: var(--fae-blue-light) !important;
}

.content-panel p, #main-content p, #content p {
  margin-bottom: 1.2rem;
}

.content-panel img, #main-content img, #content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--fae-gold-border);
}

.content-panel blockquote, #main-content blockquote, #content blockquote {
  background: rgba(14, 25, 45, 0.7) !important;
  border-left: 4px solid var(--fae-gold) !important;
  padding: 1rem 1.4rem;
  margin: 1.2rem 0;
  font-style: italic;
  border-radius: 0 6px 6px 0;
  color: #f5eaad !important;
}

.content-panel ul, .content-panel ol, #main-content ul, #main-content ol, #content ul, #content ol {
  margin: 1rem 0 1.2rem 1.8rem;
}

/* ── TABLES ──────────────────────────────────────────── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.content-panel table, #main-content table, #content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: rgba(4, 8, 16, 0.85) !important;
}

.content-panel th, .content-panel td,
#main-content th, #main-content td,
#content th, #content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--fae-panel-border) !important;
  text-align: left;
}

.content-panel th, #main-content th, #content th {
  background: linear-gradient(180deg, rgba(20, 45, 80, 0.95) 0%, rgba(10, 22, 42, 0.95) 100%) !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.9rem !important;
  color: var(--fae-gold-light) !important;
  letter-spacing: 0.05em;
}

.content-panel tr:nth-child(even) td, #main-content tr:nth-child(even) td, #content tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03) !important;
}

.content-panel tr:hover td, #main-content tr:hover td, #content tr:hover td {
  background: rgba(66, 153, 225, 0.12) !important;
}

/* ── FORMS & BUTTONS ─────────────────────────────────── */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
input[type="search"], 
textarea, 
select {
  width: 100%;
  background: rgba(5, 10, 20, 0.92) !important;
  border: 1px solid var(--fae-panel-border) !important;
  color: #f0f4fd !important;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1rem;
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--fae-gold) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5) !important;
  background: rgba(8, 16, 32, 0.98) !important;
}

button, 
input[type="submit"], 
input[type="button"], 
.btn {
  display: inline-block;
  font-family: 'Cinzel', serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff !important;
  background: linear-gradient(180deg, #1e4d8c 0%, #133461 50%, #0b203e 100%) !important;
  border: 1px solid var(--fae-gold) !important;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.2s ease;
}

button:hover, 
input[type="submit"]:hover, 
.btn:hover {
  background: linear-gradient(180deg, #2b6cb0 0%, #1e4d8c 50%, #133461 100%) !important;
  box-shadow: 0 0 12px rgba(66, 153, 225, 0.7) !important;
  transform: translateY(-1px);
}

/* ── SUNLIGHT MESSAGES ───────────────────────────────── */
.message {
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
}

.message.success {
  background: rgba(20, 80, 40, 0.5) !important;
  border: 1px solid #2e8b57 !important;
  color: #a3e6be !important;
}

.message.error {
  background: rgba(120, 20, 20, 0.5) !important;
  border: 1px solid #b22222 !important;
  color: #f87171 !important;
}

.message.warning {
  background: rgba(120, 90, 20, 0.5) !important;
  border: 1px solid #d4af37 !important;
  color: #fef08a !important;
}

.message.info {
  background: rgba(20, 60, 110, 0.5) !important;
  border: 1px solid #3182ce !important;
  color: #90cdf4 !important;
}

/* ── FAE RPG HELPER & UTILITY CLASSES ────────────────── */
/* Fae Banner Strip */
.fae-banner {
  background-image: url('images/buttonek.png') !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  padding: 1rem 2rem;
  text-align: center;
  font-family: 'Cinzel Decorative', 'Cinzel', serif !important;
  font-size: 1.2rem !important;
  color: var(--fae-gold-light) !important;
  margin: 1.5rem 0;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.7) !important;
}

/* Fae Character Frames */
.fae-frame-container {
  position: relative;
  display: inline-block;
}

.fae-frame-1, .fae-frame-2, .fae-frame-3 {
  position: relative;
  padding: 25px;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  display: inline-block;
}

.fae-frame-1 { background-image: url('images/frames/frame-1.png') !important; }
.fae-frame-2 { background-image: url('images/frames/frame-2.png') !important; }
.fae-frame-3 { background-image: url('images/frames/frame-3.png') !important; }

/* Discord Button Widget */
.fae-discord-btn {
  display: inline-block;
  width: 140px;
  height: 140px;
  background-image: url('images/discord-button-3d-fae.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.fae-discord-btn:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 15px rgba(66, 153, 225, 0.8));
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: rgba(4, 6, 11, 0.98) !important;
  border-top: 2px solid var(--fae-gold-border) !important;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-divider {
  height: 20px;
  background-image: url('images/buttonek.png') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 0.7;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 1rem;
}

.footer-links a {
  font-family: 'Cinzel', serif !important;
  font-size: 0.85rem !important;
  color: var(--fae-text-muted) !important;
}

.footer-links a:hover {
  color: var(--fae-gold-light) !important;
}

.back-to-top {
  display: inline-block;
  font-family: 'Cinzel', serif !important;
  font-size: 0.8rem !important;
  color: var(--fae-gold) !important;
  margin-top: 0.5rem;
}

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes faeFadeIn {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes faeGlowPulse {
  0%, 100% { text-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 0 30px rgba(66, 153, 225, 0.6); }
  50%       { text-shadow: 0 0 25px rgba(245, 234, 173, 1), 0 0 45px rgba(66, 153, 225, 0.9); }
}



/* ── STICKY HORIZONTÁLNÍ MENU (Trvale viditelné na PC i mobilu) ───────────────── */
.main-nav,
#fae-main-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  display: block !important;
  width: 100% !important;
  background-image: url('images/horizontal_menu_bg.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: #0b1320 !important;
  border-top: 1px solid var(--fae-gold-border) !important;
  border-bottom: 2px solid var(--fae-gold) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9) !important;
  min-height: 48px !important;
}

.main-nav .nav-container {
  width: var(--fae-container-width, 90%) !important;
  max-width: var(--fae-container-max-width, 1800px) !important;
  margin: 0 auto !important;
  padding: 0.4rem 1rem !important;
  display: block !important;
}

.main-nav ul,
.main-nav .nav-list {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav li a,
.main-nav li span {
  display: inline-block !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #f5eaad !important;
  padding: 0.5rem 1.1rem !important;
  background: linear-gradient(180deg, rgba(27, 44, 72, 0.95) 0%, rgba(13, 24, 42, 0.95) 100%) !important;
  border: 1px solid var(--fae-gold-border) !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(212, 175, 55, 0.3) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  transition: all 0.2s ease !important;
}

/* ── RESPONSIVE STYLES (Breakpoint 1024px pro všechny telefony i tablety) ─── */
@media (max-width: 1024px) {
  .site-header {
    min-height: 200px !important;
  }

  .site-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    padding: 0 1rem !important;
  }

  /* 1. HORIZONTÁLNÍ MENU — TRVALE VIDITELNÉ A STICKY */
  .main-nav,
  #fae-main-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    display: block !important;
    width: 100% !important;
    padding: 0.3rem 0.5rem !important;
  }

  .main-nav .nav-container {
    width: 100% !important;
    padding: 0 !important;
    display: block !important;
  }

  .main-nav ul,
  .main-nav .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-nav li a,
  .main-nav li span {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
    border-radius: 4px !important;
    text-align: center !important;
    width: auto !important;
  }

  /* 2. SIDEBAR WRAPPER (Garantovaně nahoře nad obsahem) */
  .sidebar-wrapper {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .sidebar-toggle-wrap {
    display: block !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
  }

  /* 3. HAMBURGER TLAČÍTKO - Statické, nahoře nad obsahem, nepřekrývá nic */
  .nav-toggle,
  #fae-nav-toggle {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0.85rem 1.2rem !important;
    font-family: 'Cinzel', serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #f5eaad !important;
    background: linear-gradient(180deg, #1e2c48 0%, #0d182a 100%) !important;
    border: 2px solid var(--fae-gold) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7) !important;
    margin: 0 !important;
  }

  .nav-toggle .hamburger-bar {
    display: inline-block !important;
    width: 18px !important;
    height: 2px !important;
    background: var(--fae-gold) !important;
    margin: 2px 0 !important;
  }

  .nav-toggle .toggle-text {
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    color: #f5eaad !important;
  }

  /* 4. VERTIKÁLNÍ SIDEBAR — NA MOBILU VÝCHOZÍ SKRYTÝ (!IMPORTANT) */
  .sidebar,
  #site-sidebar,
  #sidebar-left {
    display: none !important;
    width: 100% !important;
    margin-top: 0.8rem !important;
    margin-bottom: 1rem !important;
  }

  /* ROZBALENÝ STAV PO KLIKNUTÍ NA HAMBURGER TLAČÍTKO */
  .sidebar.sidebar-open,
  #site-sidebar.sidebar-open,
  #sidebar-left.sidebar-open {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
  }

  /* 5. HLAVNÍ OBSAH STRÁNKY */
  .content-panel,
  #main-content,
  #content {
    order: 2 !important;
    width: 100% !important;
    padding: 1.8rem 4% !important;
  }
}
