/* =========================================================
   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);

  /* Brand */
  --accent:#ff2d2d;
  --accent2:#d31212;

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

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

  /* 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);

  --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: 92px;
}

/* =========================
   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, 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 22px;
}

.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: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;

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

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

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

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 14% 14%, rgba(255, 35, 35, .20), transparent 60%),
    radial-gradient(900px 620px at 86% 78%, rgba(20, 45, 90, .16), transparent 62%),
    radial-gradient(1200px 900px at 55% 40%, rgba(255, 255, 255, .05), transparent 65%),
    linear-gradient(180deg, #07080b 0%, #05060a 55%, #040509 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(255, 40, 40, .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: 14px 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: 900;
  letter-spacing: .2px;
  white-space: nowrap;
}

.brand .tag{
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-top: -2px;
  white-space: nowrap;
}

/* Mobile toggle button */
.nav-toggle{
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  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-weight: 700;
  font-size: .95rem;
  color: var(--muted);
  opacity: .9;
}
.primary-nav a:hover{
  color: var(--text);
  opacity: 1;
}

.primary-nav .is-cta > a{
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 18px 45px rgba(255,45,45,.22);
}

/* 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(255,30,30,.35);
  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(255,30,30,.35);
  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(255,30,30,.35);
  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: 14px;
  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(255,60,60,.28);
}

/* 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,.52);
  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;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  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{
  border-color: rgba(255,60,60,.32);
  background: linear-gradient(180deg, rgba(255,60,60,.18), rgba(255,60,60,.08));
}

.fc-guest-item.is-primary:hover{
  border-color: rgba(255,60,60,.45);
  background: linear-gradient(180deg, rgba(255,60,60,.24), rgba(255,60,60,.10));
}

/* 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){
  .brand .tag{ display: none; }

  .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;
  }

  body.logged-in .brand-title{ 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){
  body:not(.logged-in) .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);
}

/* =========================
   12) FOOTER (global)
========================= */
.footer{
  position: relative;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: linear-gradient(180deg, rgba(0,0,0,.25), transparent);
}

.footer-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}