/* =========================================================
   FC CORE — global styles (CLEANED / NO VISUAL CHANGES)
   - refactor only: reorder, group, remove duplicates, keep output identical
========================================================= */

/* =========================
   1) DESIGN TOKENS (Dark default)
========================= */
:root{
  /* Background */
  --bg-0:#0b0b10;
  --bg-1:#0f0f18;

  /* Surfaces/lines */
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.02);
  --line: rgba(255,255,255,.10);

  /* Typography */
  --text:#e9e9ef;
  --muted:#a6a6b3;
  --fc-text-muted: rgba(255,255,255,.9);
  --font-sans: "Exo 2", system-ui, -apple-system, sans-serif;
  --font-display: "Rajdhani", sans-serif;

  /* Brand */
  --accent:#d4af37;
  --accent2:#b88918;

  /* Links / Admin actions */
  --link: #4c8dff;

  /* Layout */
  --radius:18px;
  --shadow: 0 12px 20px rgba(0,0,0,.20);
  --max: 1180px;

  /* UI tokens */
  --card-bg: rgba(18,18,18,.90);
  --card-border: rgba(255,255,255,.08);

  --field-bg: rgba(255,255,255,.06);
  --field-border: rgba(255,255,255,.10);

  --btn-ghost-bg: rgba(255,255,255,.06);
  --btn-border: rgba(255,255,255,.12);
  --btn-radius: 12px;
  --btn-clip: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);

  --notice-bg: rgba(255,255,255,.06);
  --notice-border: rgba(255,255,255,.10);

  --divider: rgba(255,255,255,.08);

  /* Dropdowns should be SOLID */
  --dropdown-bg: #121212;

  /* Fixed header offset */
  --header-offset: 82px;
}

/* =========================
   2) LIGHT THEME OVERRIDES
========================= */
:root[data-theme="light"]{
  --bg-0:#eef1f6;
  --bg-1:#e6ebf3;

  --panel: rgba(0,0,0,.035);
  --panel2: rgba(0,0,0,.02);
  --line: rgba(0,0,0,.09);

  --link: #2563eb;

  --text:#14161a;
  --muted:#4f5766;
  --fc-text-muted: rgba(40,40,40,.85);

  --card-bg: rgba(255,255,255,.97);
  --card-border: rgba(0,0,0,.10);

  --field-bg: rgba(255,255,255,.72);
  --field-border: rgba(0,0,0,.12);

  --btn-ghost-bg: rgba(0,0,0,.04);
  --btn-border: rgba(0,0,0,.12);

  --notice-bg: rgba(0,0,0,.04);
  --notice-border: rgba(0,0,0,.12);

  --divider: rgba(0,0,0,.10);

  --dropdown-bg: #ffffff;

  --shadow: 0 14px 40px rgba(0,0,0,.12);
}

/* =========================
   3) BASE / RESET
========================= */
*{ box-sizing: border-box; }

html {
	font-size: 90%;
}

html, body{
  height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


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

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

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.small{
  font-size: .92rem;
  color: var(--muted);
}

/* Body base (merged; keeps original cascade) */
body{
  margin: 0;
  min-height: 100%;
  position: relative;

  color: var(--text);
  background: var(--bg-0);
  font-family: var(--font-sans);

  /* fixed header spacing */
  padding-top: var(--header-offset);

  /* FC Background (anti-banding) requires transparent body */
  z-index: 0;
  isolation: isolate;
  background: transparent;
}

h1, h2, h3, h4, h5, h6,
.fc-auth-title,
.fc404-title,
.fc-soon-title{
  font-family: var(--font-display);
  letter-spacing: .02em;
}

/* =========================
   4) BACKGROUND (anti-banding)
========================= */
html{ background:#07080b; }

body::after{
  content:"";
  position: fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.06;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    /* hlavný gold light zdroj (ľavý vrch) */
    radial-gradient(700px 420px at 12% 18%, rgba(212,175,55,.18), transparent 60%),

    /* sekundárny jemný odraz */
    radial-gradient(500px 300px at 80% 85%, rgba(184,137,24,.08), transparent 65%),

    /* vignette (tmavé okraje) */
    radial-gradient(1200px 800px at 50% 50%, transparent 40%, rgba(0,0,0,.55) 100%),

    /* base */
    linear-gradient(180deg, #090805 0%, #050403 100%);
}

/* Light theme variant */
:root[data-theme="light"] html{ background:#f5f6f8; }

:root[data-theme="light"] body::before{
  background:
    radial-gradient(900px 520px at 14% 14%, rgba(212, 175, 55, .10), transparent 60%),
    radial-gradient(900px 620px at 86% 78%, rgba(20, 45, 90, .08), transparent 62%),
    radial-gradient(1200px 900px at 55% 40%, rgba(0, 0, 0, .03), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 55%, #f2f4f8 100%);
}

/* Skip link (accessibility) */
.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus{
  left: 22px;
  top: 22px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 9999;
}

/* =========================
   5) HEADER (FIXED)
========================= */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11,11,16,.75);

  border-bottom: 1px solid var(--line);
}

/* Optional light tweak (moved here; same selector + value) */
:root[data-theme="light"] .site-header{
  background: rgba(255,255,255,.65);
}

/* WP admin bar offset (safe even if admin bar disabled) */
body.admin-bar .site-header{ top: 32px; }
@media (max-width: 782px){
  body.admin-bar .site-header{ top: 46px; }
}

.header-inner{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
}

.brand{
  display: flex;
  align-items: center;
  min-width: 0;
}

.custom-logo{
  width: 64px;
  height: 64px;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
}

.brand .title{
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand .tag{
  display: block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f1cd7a;
  text-transform:uppercase;
}

/* Mobile toggle button */
.nav-toggle{
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 800;
}
.nav-toggle svg{ width: 18px; height: 18px; }

/* Primary nav (desktop) */
.primary-nav{
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.primary-nav li{ list-style: none; margin: 0; padding: 0; }

.primary-nav a{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.7px;
  color: #ddd;
  opacity: .9;
  text-transform: uppercase;
  padding: 0 5px;
}

.primary-nav a:hover{
  color: var(--text);
  opacity: 1;
}

.primary-nav .is-cta > a{
  color: #0b0b0b;
  padding: 11px 16px;
  border-radius: var(--btn-radius);
  background: linear-gradient(135deg, #f0cf67 0%, var(--accent) 46%, var(--accent2) 100%);
  box-shadow: 0 16px 36px rgba(212,175,55,.24);
  border: 1px solid rgba(255,224,132,.22);
  -webkit-clip-path: var(--btn-clip);
  clip-path: var(--btn-clip);
}

/* Header actions (bell + user) */
.header-actions{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

/* =========================
   6) HEADER WIDGETS — Bell
========================= */
.fc-bell-menu{ position: relative; flex: 0 0 auto; }

.fc-bell-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.92);
  cursor: pointer;
  border-radius: 10px;
}
:root[data-theme="light"] .fc-bell-btn{ color: rgba(0,0,0,.85); }

.fc-bell-btn:hover{ background: rgba(255,255,255,.06); }
:root[data-theme="light"] .fc-bell-btn:hover{ background: rgba(0,0,0,.06); }

.fc-bell-btn:focus-visible{
  outline: 2px solid rgba(212,175,55,.42);
  outline-offset: 2px;
}

.fc-bell-btn svg{ width: 20px; height: 20px; }

.fc-bell-dropdown{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(360px, calc(100vw - 22px));
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
  z-index: 80;
}
.fc-bell-menu.is-open .fc-bell-dropdown{ display: block; }

.fc-bell-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid var(--divider);
}
.fc-bell-title{ font-weight: 900; letter-spacing: .2px; }

.fc-bell-close{
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 10px;
}
.fc-bell-close:hover{ background: rgba(255,255,255,.06); }
:root[data-theme="light"] .fc-bell-close:hover{ background: rgba(0,0,0,.06); }

.fc-bell-list{
  max-height: 340px;
  overflow: auto;
}
.fc-bell-empty{ padding: 12px; opacity: .8; }

.fc-bell-item{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  color: inherit;
  border-bottom: 1px solid var(--divider);
}
.fc-bell-item:hover{ background: rgba(255,255,255,.04); }
:root[data-theme="light"] .fc-bell-item:hover{ background: rgba(0,0,0,.04); }

.fc-bell-ava img{
  border-radius: 999px;
  border: 1px solid var(--card-border);
}

.fc-bell-text{ min-width: 0; }
.fc-bell-line1{ font-weight: 800; }
.fc-bell-line2{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.fc-bell-unread{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,59,59,.95);
  box-shadow: 0 0 10px rgba(255,59,59,.25);
  margin-left: auto;
  margin-top: 6px;
}

.fc-bell-foot{ padding: 10px 12px; }

.fc-bell-all{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--btn-border);
  background: var(--btn-ghost-bg);
  color: inherit;
  font-weight: 800;
}

/* =========================
   6.x) HEADER WIDGETS — Messages Icon
========================= */
.fc-msgicon{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  border-radius: 10px;
}
:root[data-theme="light"] .fc-msgicon{ color: rgba(0,0,0,.85); }

.fc-msgicon:hover{ background: rgba(255,255,255,.06); }
:root[data-theme="light"] .fc-msgicon:hover{ background: rgba(0,0,0,.06); }

.fc-msgicon:focus-visible{
  outline: 2px solid rgba(212,175,55,.42);
  outline-offset: 2px;
}

.fc-msgicon svg{ width: 20px; height: 20px; }

.fc-msg-badge{
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,59,59,.95);
  color: #0b0b0b;
}

/* =========================
   7) MODALS
========================= */
.fc-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
.fc-modal[aria-hidden="false"]{ display: flex; }

.fc-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 0;
  cursor: pointer;
}

.fc-modal-card{
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 26px));
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(20,20,20,.96);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
}

.fc-modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.fc-modal-title{ font-weight: 800; }

.fc-modal-x{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9);
  cursor: pointer;
}

.fc-modal-body{
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
}

.fc-modal-panel{
  position: relative;
  z-index: 1;

  width: min(720px, calc(100% - 26px));
  margin: 0 auto;

  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 20px 70px rgba(0,0,0,.55);

  overflow: hidden;
}

/* ak máš v paneli dlhší obsah, nech sa to správa pekne */
.fc-modal-panel .fc-modal-body{
  max-height: min(70vh, 720px);
  overflow: auto;
}

/* =========================
   8) USER MENU
========================= */
.user-menu{
  position: relative;
  flex: 0 0 auto;
  padding-right: 3px;
}

.user-trigger{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(255,255,255,.92);
}
.user-trigger:hover{ background: rgba(255,255,255,.06); }
.user-trigger:focus{ outline: none; }
.user-trigger:focus-visible{
  outline: 2px solid rgba(212,175,55,.42);
  outline-offset: 2px;
}

.user-trigger img,
.user-trigger img.avatar{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  object-fit: cover;
}

.user-caret{
  font-size: 12px;
  opacity: .6;
  transition: transform .5s ease;
  color: var(--muted);
}
.user-menu.is-open .user-caret{ transform: rotate(180deg); }

/* Tags */
.fc-tags{
  display: inline-flex;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.fc-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  opacity: .92;
}

.fc-tag-ico{
  width: 16px;
  height: 16px;
  display: inline-flex;
}
.fc-tag-ico svg{ width: 16px; height: 16px; }

.fc-tag-admin{ color: rgba(255,59,59,.95); }
.fc-tag-premium{ color: rgba(255,180,20,1); }
.fc-tag-member{ color: var(--fc-text-muted); }

/* Base badge */
.fc-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  margin-left: 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.fc-badge-admin{
  color: #ff3b3b;
  background: rgba(255,59,59,.08);
  border-color: rgba(255,59,59,.35);
  box-shadow: 0 0 8px rgba(255,59,59,.25);
}
.fc-badge-premium{
  color: #f6c85f;
  background: rgba(246,200,95,.08);
  border-color: rgba(246,200,95,.35);
  box-shadow: 0 0 8px rgba(246,200,95,.25);
}
.fc-badge-member{
  color: #cfcfcf;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.15);
}

.user-dropdown{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;

  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--dropdown-bg);
  box-shadow: var(--shadow);
  padding: 10px;

  display: none;
  z-index: 9999;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.user-menu.is-open .user-dropdown{ display: block; }

.user-dd-head{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 10px 12px;
}

.user-dd-avatar img{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--field-border);
}

.user-dd-meta{ min-width: 0; }

.user-dd-name{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.15;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.user-dd-email{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
  margin-top: 3px;
}

.user-dd-divider{
  height: 1px;
  background: var(--divider);
  margin: 6px 6px;
}

.user-dd-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  color: var(--text);
}
.user-dd-item:hover{ background: var(--btn-ghost-bg); }

.user-dd-ico{
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}

.user-dd-ico svg{
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* Special actions */
.user-dd-item-admin{ color: var(--link); }
.user-dd-item-admin:hover{ background: rgba(80,140,255,.12); }

.user-dd-item-logout{ color: rgba(255, 59, 59, .95); }
.user-dd-item-logout:hover{
  background: rgba(255,60,60,.12);
  box-shadow: inset 0 0 0 1px rgba(255,60,60,.22);
}

/* Light theme hover (kept; same selector/value) */
:root[data-theme="light"] .user-trigger:hover{
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.14);
}

/* =========================
   9) HEADER — GUEST MENU (header)
========================= */
.fc-guest-menu{
  position: relative;
  display: inline-flex;
  align-items: center;
  order: 5;
  margin-left: auto;
  margin-right: 12px;
}

.fc-guest-trigger{
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  color: inherit;
  cursor: pointer;
  padding: 0;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}

.fc-guest-trigger svg{
  width: 22px;
  height: 22px;
}

.fc-guest-trigger:hover{
  background: rgba(0,0,0,.36);
  border-color: rgba(255,255,255,.18);
}

.fc-guest-trigger:active{
  transform: translateY(1px);
}

.fc-guest-trigger:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,175,55,.30);
}

/* Dropdown */
.fc-guest-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, 92vw);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  display: none;
  z-index: 9999;
}

.fc-guest-menu.is-open .fc-guest-dropdown{
  display: block;
}

.fc-guest-item{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(212,175,55,.10);
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
  font-weight: 600;
  letter-spacing: .2px;
}

.fc-guest-item + .fc-guest-item{ margin-top: 8px; }

.fc-guest-item:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}

.fc-guest-item:active{ transform: translateY(1px); }

/* Primary (Register) */
.fc-guest-item.is-primary{
  color: #0b0b0b;
  border-color: rgba(255,224,132,.22);
  background: linear-gradient(135deg, #f0cf67 0%, var(--accent) 46%, var(--accent2) 100%);
  box-shadow: 0 10px 24px rgba(212,175,55,.18);
}

.fc-guest-item.is-primary:hover{
  color: #090909;
  border-color: rgba(255,224,132,.34);
  background: linear-gradient(135deg, #f5d978 0%, #ddb848 48%, #c1901f 100%);
  box-shadow: 0 14px 28px rgba(212,175,55,.24);
}

/* Light theme */
:root[data-theme="light"] .fc-guest-trigger{
  border-color: rgba(0,0,0,.10);
  background: rgba(255,255,255,.78);
}

:root[data-theme="light"] .fc-guest-trigger:hover{
  background: rgba(240,240,240,.92);
  border-color: rgba(0,0,0,.14);
}

:root[data-theme="light"] .fc-guest-dropdown{
  border-color: rgba(0,0,0,.10);
  background: rgba(255,255,255,.90);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

:root[data-theme="light"] .fc-guest-item{
  border-color: rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
}

:root[data-theme="light"] .fc-guest-item:hover{
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.12);
}

/* =========================
   10) HEADER — MOBILE / NAV / DROPDOWNS
   (merged all 920px rules into single block)
========================= */
@media (max-width: 920px){

  .site-header,
  .site-header .container,
  .header-inner{
    overflow: visible;
  }

  .header-inner{
    flex-wrap: wrap;
  }

  .brand{
    order: 1;
    margin-left: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-toggle{
    order: 2;
    margin-left: 0;
    flex: 0 0 auto;
    display: flex;
  }

  .header-actions{
    order: 3;
    margin-left: auto;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .primary-nav{
    order: 4;
    display: none;

    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    margin: 12px 0 0;
    padding: 14px 14px 8px;

    border-top: 1px solid rgba(255,255,255,.08);
  }
  .primary-nav.is-open{ display: flex; }

  .primary-nav a{
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    text-align: center;
  }
  .primary-nav a:hover{ background: rgba(255,255,255,.06); }

  /* Guest menu tweaks on mobile (was separate block; merged here) */
  body:not(.logged-in) .fc-guest-menu{
    order: 3;              /* bolo 5 → preto padá pod menu */
    margin-left: 0;        /* zruší auto push do ďalšieho riadku */
    margin-right: 12px;    /* nech dýcha od kraja */
    flex: 0 0 auto;
  }

  body:not(.logged-in) .nav-toggle{
    margin-left: auto;     /* tlačí toggle doprava */
  }
}

@media (max-width: 440px){
  .user-dropdown{
    width: calc(100vw - 24px);
    right: 12px;
    left: auto;
  }

  .site-header .brand-title{ display: none !important; }
  .site-header .tag{ display: none !important; }

  /* Bell dropdown as fixed drawer on mobile */
  .fc-bell-dropdown{
    position: fixed;
    top: 74px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow: hidden;
    z-index: 9999;
  }

  .fc-bell-list{
    max-height: calc(100vh - 170px);
    overflow: auto;
  }
}

@media (max-width: 340px){
   .site-header .brand-title{ display:none !important; }
}

@media (max-width: 320px){
  .custom-logo{ display: none !important; }
}

/* =========================
   11) SHARED UI COMPONENTS (global)
========================= */
.fc-card{
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Optional light tweak (moved here; same selector/value) */
:root[data-theme="light"] .fc-card{
  background: rgba(255,255,255,.85);
}

/* Card header helpers */
.fc-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fc-card h2{
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.fc-muted{ color: color-mix(in srgb, var(--text) 70%, transparent); }
.fc-strong{ font-weight: 700; }

.fc-card-wide{ grid-column: 1 / -1; }
.fc-card-danger{ border-color: rgba(255, 60, 60, .22); }

/* Buttons */
.fc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--btn-border);
  background: var(--btn-ghost-bg);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}
.fc-btn:disabled{ opacity: .6; cursor: not-allowed; }

.fc-btn-primary{
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
}
.fc-btn-ghost{ background: var(--btn-ghost-bg); color: var(--text); }
.fc-btn-danger{
  background: color-mix(in srgb, #ff3c3c 18%, transparent);
  border-color: color-mix(in srgb, #ff3c3c 35%, transparent);
  color: var(--text);
}

/* Notices */
.fc-notice{
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1px solid var(--notice-border);
  background: var(--notice-bg);
  font-size: 13px;
  color: var(--text);
}
.fc-notice-ok{
  border-color: color-mix(in srgb, #3cdc8c 35%, transparent);
  background: color-mix(in srgb, #3cdc8c 12%, transparent);
}
.fc-notice-err{
  border-color: color-mix(in srgb, #ff5050 35%, transparent);
  background: color-mix(in srgb, #ff5050 12%, transparent);
}

.fc-divider{
  border: 0;
  height: 1px;
  background: var(--divider);
  margin: 14px 0;
}

/* Presence / Online dots */
.fc-online-dot{
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #2ecc71;
  border: 2px solid var(--card-bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, #2ecc71 35%, transparent);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .15s ease, transform .15s ease;
}
.is-online .fc-online-dot{
  opacity: 1;
  transform: scale(1);
}

[data-fc-presence-dot],
.fc-msg-ava{
  position: relative;
}

.fc-bell-count{
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  color: #fff;
  background: var(--accent);
}

.fc-online-label{
  font-size: 13px;
  opacity: .7;
}

.fc-usercard.is-online .fc-online-label::before{
  content: "\25CF  Online";
  color: #22c55e;
}
.fc-usercard:not(.is-online) .fc-online-label::before{
  content: "Offline";
  color: var(--muted);
}

/* Avatar */
.fc-avatar-row{
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 8px 0 12px;
}

.fc-avatar img,
.fc-user-avatar{
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--field-border);
}

/* =========================
   FC BUTTON SHAPE
========================= */
.primary-nav .is-cta > a,
.fc-guest-item,
.fc-btn.fc-btn-shaped{
  -webkit-clip-path: var(--btn-clip);
  clip-path: var(--btn-clip);
}

.fc-btn-shaped{
  border-radius: 0;
}


/* =========================
   12) FOOTER (Astro footer port)
========================= */
.portal-footer {
	margin-top: 0;
	color: #e7f7ef;
	background:
		radial-gradient(
			circle at left top,
			rgba(201, 150, 42, 0.06),
			transparent 18%
		),
		radial-gradient(
			circle at center top,
			rgba(122, 88, 23, 0.08),
			transparent 24%
		),
		radial-gradient(
			circle at right center,
			rgba(241, 205, 122, 0.05),
			transparent 18%
		),
		linear-gradient(180deg, #040302 0%, #020201 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-footer-top {
	padding: 58px 0 40px;
}

.portal-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr) minmax(240px, 0.9fr);
	gap: 32px;
	align-items: start;
}

.portal-footer-grid-no-newsletter {
	grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr) minmax(240px, 0.9fr);
}

.portal-footer-brand-col,
.portal-footer-links-col,
.portal-footer-contact-col {
	min-width: 0;
}

.portal-footer-brand-col {
	max-width: 380px;
}

.portal-footer .brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.portal-footer .custom-logo-link,
.portal-footer .brand-logo {
	flex: 0 0 auto;
}

.portal-footer .custom-logo,
.portal-footer .brand-logo,
.portal-footer-logo {
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.portal-footer .brand-texts {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.portal-footer .brand-title {
	font-size: 1.12rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: #ffffff;
	line-height: 1;
}

.portal-footer .brand-sub {
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(241, 205, 122, 0.72);
	line-height: 1;
	display: block;
}

.portal-footer-copy {
	margin: 18px 0 0;
	max-width: 34ch;
	font-size: 0.98rem;
	line-height: 1.8;
	color: rgba(231, 247, 239, 0.64);
}

.portal-footer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.portal-footer-socials a {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	text-decoration: none;
	transition:
		transform 0.18s ease,
		filter 0.18s ease,
		box-shadow 0.18s ease;
}

.portal-footer-socials a:hover {
	transform: translateY(-2px);
}

.portal-footer-icon {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-size: 0.95rem;
	box-shadow: 0 0 18px rgba(201, 150, 42, 0.16);
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		background 0.18s ease,
		color 0.18s ease;
}

.portal-footer-icon-social,
.portal-footer-icon-block {
	background: linear-gradient(
		135deg,
		rgba(201, 150, 42, 0.95),
		rgba(122, 88, 23, 0.95)
	);
	border: 1px solid rgba(241, 205, 122, 0.18);
}

.portal-footer-icon-social {
	color: #fff4d6;
}

.portal-footer-icon-block {
	color: #fff4d6;
}

.portal-footer-socials a i {
	font-size: 16px;
}

/* ========================================
   SOCIAL ICONS — per brand
======================================== */

.portal-footer-social-web .portal-footer-icon-social {
	background: linear-gradient(
		135deg,
		rgba(201, 150, 42, 0.95),
		rgba(122, 88, 23, 0.95)
	);
	border: 1px solid rgba(241, 205, 122, 0.18);
	color: #fff4d6;
	box-shadow: 0 0 18px rgba(201, 150, 42, 0.16);
}

.portal-footer-social-facebook .portal-footer-icon-social {
	background: linear-gradient(
		135deg,
		#1877f2,
		#3b82f6
	);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff;
	box-shadow: 0 0 18px rgba(24, 119, 242, 0.22);
}

.portal-footer-social-discord .portal-footer-icon-social {
	background: linear-gradient(
		135deg,
		#5865f2,
		#7289da
	);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff;
	box-shadow: 0 0 18px rgba(88, 101, 242, 0.24);
}

.portal-footer-socials a:hover .portal-footer-icon-social {
	transform: translateY(-1px);
}

.portal-footer-social-web:hover .portal-footer-icon-social {
	box-shadow: 0 0 22px rgba(201, 150, 42, 0.22);
}

.portal-footer-social-facebook:hover .portal-footer-icon-social {
	box-shadow: 0 0 22px rgba(24, 119, 242, 0.28);
}

.portal-footer-social-discord:hover .portal-footer-icon-social {
	box-shadow: 0 0 22px rgba(88, 101, 242, 0.3);
}

/* ========================================
   BLOCK ICONS — keep bg, change icon tone
======================================== */

.portal-footer-icon-links {
	color: #fff2c7;
}

.portal-footer-icon-contact {
	color: #ffd97a;
}



.portal-footer-col {
	display: grid;
	gap: 18px;
}

.portal-footer-title-row {
	display: flex;
	align-items: center;
	gap: 12px;
}



.portal-footer-title-row h4 {
	margin: 0;
	font-size: 1.12rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
}

.portal-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
}

.portal-footer-links a {
	position: relative;
	padding-left: 16px;
	color: rgba(231, 247, 239, 0.74);
	font-size: 1rem;
}

.portal-footer-links a::before {
	content: "›";
	position: absolute;
	left: 0;
	top: 0;
	color: rgba(241, 205, 122, 0.9);
	font-weight: 900;
}

.portal-footer-links a:hover {
	color: #ffffff;
}

.portal-footer-contact-list {
	display: grid;
	gap: 20px;
}

.portal-footer-contact-item {
	display: grid;
	gap: 6px;
}

.portal-footer-contact-item strong,
.portal-footer-contact-item a {
	color: rgba(231, 247, 239, 0.86);
	font-size: 1rem;
	font-weight: 700;
}

.portal-footer-contact-item a:hover {
	color: #ffffff;
}

.portal-footer-contact-label {
	color: rgba(210, 226, 219, 0.44);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.76rem;
	font-weight: 800;
}

.portal-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-footer-bottom-inner {
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.portal-footer-bottom-inner p {
	margin: 0;
	color: rgba(210, 226, 219, 0.52);
	font-size: 12px;
	letter-spacing: 0.5px;
}

.portal-footer-dots {
	display: flex;
	gap: 8px;
}

.portal-footer-dots span {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(201, 150, 42, 0.6);
}

.portal-footer-dots span:nth-child(2) {
	background: rgba(241, 205, 122, 0.5);
}

.portal-footer-dots span:nth-child(3) {
	background: rgba(122, 88, 23, 0.5);
}

@media (max-width: 900px) {
	.portal-footer-top {
		padding: 46px 0 34px;
	}

	.portal-footer-grid,
	.portal-footer-grid-no-newsletter {
		grid-template-columns: 1fr;
		gap: 28px;
		text-align: center;
	}

	.portal-footer .brand {
		justify-content: center;
	}

	.portal-footer-copy {
		margin-left: auto;
		margin-right: auto;
		max-width: 42ch;
	}

	.portal-footer-socials {
		justify-content: center;
	}

	.portal-footer-title-row {
		justify-content: center;
	}

	.portal-footer-links {
		justify-items: center;
	}

	.portal-footer-contact-list {
		justify-items: center;
	}

	.portal-footer-brand-col,
	.portal-footer-links-col,
	.portal-footer-contact-col {
		max-width: 100%;
	}

	.portal-footer-bottom-inner {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: 10px;
	}

	.portal-footer-bottom-inner p {
		text-align: center;
	}

	.portal-footer-dots {
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.portal-footer-top {
		padding: 38px 0 28px;
	}

	.portal-footer-copy {
		font-size: 0.94rem;
		line-height: 1.7;
	}

	.portal-footer-title-row h4 {
		font-size: 1rem;
	}

	.portal-footer-links a,
	.portal-footer-contact-item strong,
	.portal-footer-contact-item a {
		font-size: 0.95rem;
	}
}