/* ==========================================================================
   Moderni vzhled celeho webu (verejna cast i ucty) - pouze vzhled.
   - HTML struktura stranek se nemeni; mobilni menu a tlacitka v hlavicce doplnuje js/site-modern.js
     (bez JavaScriptu zustava menu i prihlaseni viditelne jako dosud).
   - Nacita se jako uplne posledni styl (func/func_header.php, funkce style()).
   - Vraceni zpet: odebrat odkazy na css/site-modern.css a js/site-modern.js ve style().
   ========================================================================== */

:root {
  --sm-brand: #e5007d;
  --sm-brand-600: #c8006d;
  --sm-brand-700: #a3005a;
  --sm-brand-50: #fff1f8;
  --sm-brand-100: #ffe0ef;
  --sm-plum: #2a0b20;
  --sm-plum-2: #4a1238;
  --sm-ink: #23161f;
  --sm-text: #3b2f37;
  --sm-muted: #7a6873;
  --sm-line: #f1dbe7;
  --sm-card: #ffffff;
  --sm-page: #fbf3f7;
  --sm-radius: 18px;
  --sm-radius-sm: 12px;
  --sm-shadow: 0 1px 2px rgba(42, 11, 32, .06), 0 10px 28px -14px rgba(120, 0, 70, .28);
  --sm-shadow-hover: 0 2px 4px rgba(42, 11, 32, .08), 0 18px 36px -14px rgba(229, 0, 125, .42);
  --sm-grad: linear-gradient(135deg, #ff3d9a 0%, #e5007d 45%, #a3005a 100%);
  --sm-grad-hero: linear-gradient(135deg, rgba(42, 11, 32, .92) 0%, rgba(122, 0, 72, .88) 55%, rgba(229, 0, 125, .82) 100%);
  --sm-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Calibri, Arial, sans-serif;
}
html[data-theme="dark"] {
  --sm-ink: #f4eef2;
  --sm-text: #d8ccd3;
  --sm-muted: #a8959f;
  --sm-line: #3a2632;
  --sm-card: #1f171c;
  --sm-page: #140f12;
  --sm-brand-50: #2a1220;
  --sm-brand-100: #3a1529;
  --sm-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
  --sm-shadow-hover: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 36px -14px rgba(229, 0, 125, .45);
}

@media screen {

  /* ---- zaklad: pismo, pozadi ------------------------------------------------ */
  body {
    font-family: var(--sm-font);
    color: var(--sm-text);
    background-color: var(--sm-page);
    background-image:
      radial-gradient(1200px 600px at 100% -10%, rgba(229, 0, 125, .14), transparent 60%),
      radial-gradient(900px 500px at -10% 10%, rgba(163, 0, 90, .10), transparent 60%),
      linear-gradient(rgba(251, 243, 247, .88), rgba(251, 243, 247, .94)),
      url("../img/pozadi.jpg");
    background-size: auto, auto, auto, cover;
    background-attachment: fixed;
    background-position: center top;
    -webkit-font-smoothing: antialiased;
  }
  html[data-theme="dark"] body {
    background-image:
      radial-gradient(1200px 600px at 100% -10%, rgba(229, 0, 125, .16), transparent 60%),
      linear-gradient(rgba(20, 15, 18, .93), rgba(20, 15, 18, .96)),
      url("../img/pozadi.jpg");
    background-size: auto, auto, cover;
  }
  a { transition: color .15s ease; }
  ::selection { background: var(--sm-brand); color: #fff; }

  /* ---- tlacitka (odeslani formulare, akce) ---------------------------------- */
  #header input[type="submit"],
  #central input[type="submit"],
  #central button:not(.ui-button):not([class*="ui-"]):not(.im-btn),
  a.sm-btn {
    border: 0;
    border-radius: 999px;
    background: var(--sm-grad);
    color: #fff;
    font-family: var(--sm-font);
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 6px 16px -6px rgba(229, 0, 125, .6);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
  }
  #header input[type="submit"]:hover,
  #central input[type="submit"]:hover,
  #central button:not(.ui-button):not([class*="ui-"]):not(.im-btn):hover,
  a.sm-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(229, 0, 125, .7); filter: saturate(1.1); }
  #central input[type="submit"]:focus-visible,
  #central button:focus-visible,
  a.sm-btn:focus-visible { outline: 3px solid rgba(229, 0, 125, .35); outline-offset: 2px; }

  a.sm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; font-size: 15px; text-decoration: none !important; color: #fff !important; }
  a.sm-btn.sm-btn-ghost { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
  a.sm-btn.sm-btn-ghost:hover { background: rgba(255, 255, 255, .24); box-shadow: inset 0 0 0 1.5px #fff; }

  /* ---- pole formularu ------------------------------------------------------- */
  #central input[type="text"], #central input[type="password"], #central input[type="email"],
  #central input[type="tel"], #central input[type="number"], #central input[type="date"],
  #central input[type="search"], #central input[type="url"], #central select, #central textarea,
  #login_box .login_input {
    border: 1px solid #e6cfdc;
    border-radius: 10px;
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  #central input:focus, #central select:focus, #central textarea:focus, #login_box .login_input:focus {
    border-color: var(--sm-brand);
    box-shadow: 0 0 0 3px rgba(229, 0, 125, .16);
    outline: none;
  }
  html[data-theme="dark"] #central input[type="text"], html[data-theme="dark"] #central input[type="password"],
  html[data-theme="dark"] #central input[type="email"], html[data-theme="dark"] #central input[type="tel"],
  html[data-theme="dark"] #central input[type="number"], html[data-theme="dark"] #central input[type="date"],
  html[data-theme="dark"] #central input[type="search"], html[data-theme="dark"] #central select,
  html[data-theme="dark"] #central textarea, html[data-theme="dark"] #login_box .login_input {
    background-color: #191216; border-color: #46303d; color: #eee;
  }

  /* ---- prihlasovaci box ----------------------------------------------------- */
  #login_box {
    border: 0;
    border-radius: var(--sm-radius-sm);
    background: var(--sm-card);
    box-shadow: var(--sm-shadow);
    font-family: var(--sm-font);
  }
  #login_box .heading { font-weight: 800; color: var(--sm-ink); }
  #login_box .heading a { font-weight: 700; color: var(--sm-brand); }
  #login_box input[type="submit"] { padding: 7px 20px; font-size: 13px; }
  #login_box a { color: var(--sm-brand); }
  html[data-theme="dark"] #login_box { background: var(--sm-card); border: 0; }

  /* ---- prepinac jazyka a vzhledu ------------------------------------------- */
  #lang_switch select {
    border-radius: 999px !important;
    border-color: #ecc4da !important;
    box-shadow: 0 2px 8px -4px rgba(120, 0, 70, .3);
  }
  #theme_switch { border-radius: 999px; border-color: #ecc4da; box-shadow: 0 2px 8px -4px rgba(120, 0, 70, .3); }

  /* ---- hlavni obsah --------------------------------------------------------- */
  #central h1 { color: var(--sm-ink); letter-spacing: -.015em; }
  #left h2, #right h2 {
    border: 0 !important;
    border-radius: 999px;
    background: var(--sm-brand-50);
    color: var(--sm-brand) !important;
    font-weight: 800;
    letter-spacing: .01em;
  }
  #left h2 a, #right h2 a { color: inherit !important; text-decoration: none; }

  /* ---- paticka -------------------------------------------------------------- */
  #footer {
    background: linear-gradient(135deg, var(--sm-plum) 0%, var(--sm-plum-2) 100%) !important;
    color: #e9d6e1;
  }
  #footer a { color: #ff9ccc; }
  #footer a:hover { color: #fff; }
}

/* ==========================================================================
   Pocitac a tablet na sirku (>= 821 px)
   ========================================================================== */
@media screen and (min-width: 821px) {

  .sm-tools { display: none !important; }
  /* sirka: verejne stranky az 1440 px, administrator a agent (siroke tabulky) az 1880 px; vzdy na stred */
  #header, #menu, #main, #footer { width: 96% !important; max-width: 1440px; margin-left: auto !important; margin-right: auto !important; }
  html.sm-role-3 #header, html.sm-role-3 #menu, html.sm-role-3 #main, html.sm-role-3 #footer,
  html.sm-role-4 #header, html.sm-role-4 #menu, html.sm-role-4 #main, html.sm-role-4 #footer { width: 98% !important; max-width: 1880px; }

  /* hlavicka jako bila karta s logem */
  #header {
    margin-top: 16px !important;
    border-radius: var(--sm-radius) var(--sm-radius) 0 0;
    background-color: var(--sm-card) !important;
    box-shadow: var(--sm-shadow);
  }
  #header::after { display: none !important; }
  html[data-theme="dark"] #header { background-color: var(--sm-card) !important; }
  #login_box { margin-top: 12px; margin-right: 18px; box-shadow: 0 0 0 1px var(--sm-line), 0 8px 24px -14px rgba(120, 0, 70, .35); }

  /* menu: barevny pruh pod hlavickou, pri posunu zustava nahore */
  #menu {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 6px 10px !important;
    background: var(--sm-grad) !important;
    border-radius: 0 0 var(--sm-radius) var(--sm-radius);
    box-shadow: 0 10px 24px -14px rgba(163, 0, 90, .8) !important;
    gap: 2px;
  }
  #menu a { min-height: 38px !important; border-radius: 999px; padding: 0 14px !important; font-size: 14px !important; }
  #menu a + a::before { display: none; }
  #menu a:hover { background: rgba(255, 255, 255, .18) !important; }
  #menu a.active { background: rgba(255, 255, 255, .95) !important; color: var(--sm-brand-700) !important; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35) !important; }
  #menu a.emp { margin: 0 2px !important; min-height: 38px !important; background: #fff !important; color: var(--sm-brand-700) !important; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .4); }
  #menu a.emp:hover { background: var(--sm-brand-50) !important; }
  #menu a.emp.active { background: #fff !important; }

  /* telo: tri samostatne karty se mezerou */
  #main {
    margin-top: 18px !important;
    padding: 0 !important;
    gap: 18px;
    background: transparent !important;
  }
  #left, #right, #central {
    border-radius: var(--sm-radius);
    background: var(--sm-card) !important;
    box-shadow: var(--sm-shadow);
  }
  #left, #right { flex: 0 0 196px !important; padding: 14px 12px !important; box-sizing: border-box; }
  #central { padding: 26px 32px !important; }
  /* administrator a agent: siroke tabulky - uzsi boky a mensi okraje */
  html.sm-role-3 #left, html.sm-role-3 #right, html.sm-role-4 #left, html.sm-role-4 #right { flex-basis: 150px !important; padding: 10px 8px !important; }
  html.sm-role-3 #central, html.sm-role-4 #central { padding: 18px 18px !important; }
  html.sm-role-3 #main, html.sm-role-4 #main { gap: 12px; }
  html[data-theme="dark"] #central { background: var(--sm-card) !important; }

  #footer {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    padding: 18px 24px !important;
    border-radius: var(--sm-radius) !important;
    box-shadow: var(--sm-shadow);
  }
}

/* ==========================================================================
   Uvodni stranka pro navstevniky (index.php): uvod jako vyrazny "hero" blok,
   sekce s informacemi jako karty ve dvou sloupcich
   ========================================================================== */
@media screen {
  html.sm-page-index #central .container > header {
    position: relative;
    overflow: hidden;
    margin: 0 0 22px 0;
    padding: 34px 32px 30px 32px;
    border-radius: var(--sm-radius);
    background: var(--sm-grad-hero), url("../img/pozadi.jpg") center 30% / cover;
    color: #fbe9f2;
    box-shadow: 0 18px 40px -20px rgba(122, 0, 72, .8);
  }
  html.sm-page-index #central .container > header::after {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%);
    pointer-events: none;
  }
  html.sm-page-index #central .container > header h1 {
    margin: 0 0 12px 0 !important;
    font-size: 32px !important;
    line-height: 1.15 !important;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -.02em;
  }
  html.sm-page-index #central .container > header p { color: #fbe3ef !important; font-size: 15.5px; max-width: 62ch; }
  html.sm-page-index #central .container > header strong { color: #fff !important; }
  .sm-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
  .sm-hero-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: #ffd3e8; position: relative; z-index: 1; }
  .sm-hero-badges li::before { content: "✓"; margin-right: 6px; color: #fff; font-weight: 800; }
  #central .container ul.sm-hero-badges li { padding: 0; margin: 0; }
  #central .container ul.sm-hero-badges li::before { content: "✓"; color: #fff; position: static; width: auto; height: auto; background: none; border-radius: 0; display: inline; }

  /* tri karty s obrazky */
  html.sm-page-index #central .container .image-links { gap: 16px; }
  html.sm-page-index #central .container .image-links a { border-radius: var(--sm-radius); box-shadow: var(--sm-shadow); }
  html.sm-page-index #central .container .image-links a:hover { box-shadow: var(--sm-shadow-hover); transform: translateY(-4px); }

  /* karty s novymi obrazky (img/home/*.jpg); puvodni obrazek zustava v HTML jen pro citacky (alt), je skryty */
  #central .container .image-links a.sm-card {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background: #5a1046 center / cover no-repeat;
    line-height: 1.2;
    isolation: isolate;
  }
  #central .container .image-links a.sm-card-for-dancers { background-image: url("../img/home/card-dancers-hostesses.jpg"); }
  #central .container .image-links a.sm-card-for-clubs { background-image: url("../img/home/card-clubs.jpg"); }
  #central .container .image-links a.sm-card-for-agents { background-image: url("../img/home/card-agencies.jpg"); }
  #central .container .image-links a.sm-card img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
  #central .container .image-links a.sm-card::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
    background: linear-gradient(to top, rgba(42, 11, 32, .85), rgba(42, 11, 32, 0));
    z-index: 1;
    transition: height .25s ease;
  }
  #central .container .image-links a.sm-card:hover::after { height: 60%; }
  .sm-card-label {
    position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
    color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  }
  .sm-card-arrow {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--sm-grad); font-size: 18px; text-shadow: none;
    box-shadow: 0 6px 14px -6px rgba(229, 0, 125, .8);
    transition: transform .2s ease;
  }
  #central .container .image-links a.sm-card:hover .sm-card-arrow { transform: translateX(3px); }
  @media screen and (max-width: 820px) {
    /* mobil: karty vedle sebe s posunem prstem */
    #central .container .image-links {
      display: flex !important; gap: 12px !important;
      overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
      margin-left: -16px; margin-right: -16px; padding: 4px 16px 10px 16px;
      scrollbar-width: none;
    }
    #central .container .image-links::-webkit-scrollbar { display: none; }
    #central .container .image-links a.sm-card { flex: 0 0 62%; scroll-snap-align: start; }
    .sm-card-label { font-size: 18px; }
  }

  /* informacni sekce jako karty */
  html.sm-page-index #central .container > section {
    margin: 0 0 16px 0;
    padding: 18px 20px 8px 20px;
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    background: linear-gradient(180deg, var(--sm-brand-50), var(--sm-card) 70px);
  }
  html.sm-page-index #central .container > section h2 { margin-top: 0 !important; }
  html.sm-page-index #central .container > section:last-of-type {
    text-align: center;
    background: var(--sm-grad);
    border: 0;
    color: #fff;
    box-shadow: 0 18px 40px -20px rgba(163, 0, 90, .9);
  }
  html.sm-page-index #central .container > section:last-of-type h2 { border: 0; padding: 0; color: #fff !important; text-align: center !important; font-size: 20px; }
  html.sm-page-index #central .container > section:last-of-type p { color: #ffe3f1; text-align: center !important; }
  html.sm-page-index #central .container > section:last-of-type .register-button { background: #fff !important; color: var(--sm-brand-700) !important; border: 0; font-size: 15px; padding: 13px 30px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
}
@media screen and (min-width: 1000px) {
  html.sm-page-index #central .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    align-items: start;
  }
  html.sm-page-index #central .container > header,
  html.sm-page-index #central .container > .image-links,
  html.sm-page-index #central .container > section:first-of-type,
  html.sm-page-index #central .container > section:last-of-type,
  html.sm-page-index #central .container > footer { grid-column: 1 / -1; }
}

/* ==========================================================================
   Mobil (<= 820 px): kompaktni hlavicka s logem, tlacitko Prihlasit a menu (hamburger).
   Plati jen kdyz bezi js/site-modern.js (trida sm-js na <html>).
   ========================================================================== */
@media screen and (max-width: 820px) {

  html.sm-js #header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px !important;
    background: rgba(255, 255, 255, .94) !important;
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    box-shadow: 0 6px 20px -12px rgba(120, 0, 70, .45);
  }
  html.sm-js[data-theme="dark"] #header { background: rgba(31, 23, 28, .94) !important; }
  html.sm-js #header::before { display: none !important; }
  html.sm-js #clickable {
    position: static !important;
    order: 1;
    flex: 0 0 auto;
    display: block;
    width: 156px !important;
    height: 52px !important;
    background: url("../img/header_bg.png?v=1z163") no-repeat 0 50% / auto 52px;
  }
  html.sm-js[data-theme="dark"] #clickable { filter: brightness(1.15); border-radius: 8px; background-color: rgba(255, 255, 255, .92); }
  html.sm-js .sm-tools { order: 2; margin-left: auto; display: flex; gap: 6px; }
  .sm-tool {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 44px; height: 44px; padding: 0 12px;
    border: 0; border-radius: 999px;
    background: var(--sm-brand-50); color: var(--sm-brand-700);
    font: 700 14px/1 var(--sm-font);
    cursor: pointer;
  }
  .sm-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .sm-tool.sm-tool-primary { background: var(--sm-grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(229, 0, 125, .7); }
  .sm-tool[aria-expanded="true"] { background: var(--sm-plum); color: #fff; }
  html[data-theme="dark"] .sm-tool:not(.sm-tool-primary) { background: #2e1d27; color: #ffb3d6; }

  /* prihlaseni a jazyk/vzhled: skryte, otevira se tlacitkem */
  html.sm-js #login_box { display: none; order: 5; flex: 1 1 100%; margin: 6px 0 2px 0 !important; padding: 14px !important; }
  html.sm-js.sm-login-open #login_box { display: block; animation: sm-drop .18s ease-out; }
  html.sm-js #lang_switch { display: none !important; order: 4; flex: 1 1 100%; margin: 6px 0 0 0 !important; }
  html.sm-js.sm-nav-open #lang_switch { display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px; }
  html.sm-js #lang_switch select { flex: 1 1 160px; min-height: 42px; }

  /* menu: svisly seznam pod hlavickou */
  html.sm-js #menu { display: none !important; }
  html.sm-js.sm-nav-open #menu {
    display: flex !important;
    flex-direction: column;
    position: relative;
    z-index: 70;
    margin: 0 10px !important;
    padding: 6px !important;
    border-radius: 0 0 var(--sm-radius) var(--sm-radius);
    background: var(--sm-grad) !important;
    box-shadow: 0 18px 30px -16px rgba(122, 0, 72, .9);
    animation: sm-drop .18s ease-out;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  html.sm-js.sm-nav-open #menu a {
    display: block;
    padding: 13px 16px !important;
    border: 0 !important;
    border-radius: 12px;
    text-align: left !important;
    font-size: 16px !important;
    color: #fff !important;
    background: transparent;
    box-shadow: none !important;
  }
  html.sm-js.sm-nav-open #menu a.active { background: rgba(255, 255, 255, .2) !important; }
  html.sm-js.sm-nav-open #menu a.emp { margin-top: 4px; background: #fff !important; color: var(--sm-brand-700) !important; text-align: center !important; font-weight: 800; }

  /* obsah */
  #main { padding: 10px !important; background: transparent !important; gap: 12px; }
  #central, #left, #right {
    border-radius: var(--sm-radius);
    background: var(--sm-card) !important;
    box-shadow: var(--sm-shadow);
  }
  #central { padding: 18px 16px !important; }
  #left, #right { padding: 12px !important; }
  #footer { margin: 0 10px 14px 10px !important; padding: 16px !important; border-radius: var(--sm-radius); }

  html.sm-page-index #central .container > header { margin: -2px -4px 18px -4px; padding: 24px 18px 22px 18px; }
  html.sm-page-index #central .container > header h1 { font-size: 26px !important; }
  html.sm-page-index #central .container > header p { font-size: 15px; }
  .sm-hero-cta a.sm-btn { flex: 1 1 100%; justify-content: center; }
}

@keyframes sm-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .sm-tools, .sm-hero-cta, .sm-hero-badges { display: none !important; }
}

/* ==========================================================================
   Stranka Kluby: zalozky Vse / Tanecnice / Hostesky (func/func_clubs.php, club_type_tabs)
   ========================================================================== */
@media screen {
  .club-type-tabs {
    display: inline-flex; flex-wrap: wrap; gap: 4px;
    margin: 0 0 14px 0; padding: 5px;
    border-radius: 999px;
    background: var(--sm-brand-50);
    box-shadow: inset 0 0 0 1px var(--sm-line);
  }
  .club-type-tabs a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700; font-size: 14px;
    color: var(--sm-brand-700) !important;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
  }
  .club-type-tabs a:hover { background: rgba(229, 0, 125, .1); }
  .club-type-tabs a.active { background: var(--sm-grad); color: #fff !important; box-shadow: 0 6px 14px -6px rgba(229, 0, 125, .7); }
  .club-type-count {
    min-width: 22px; padding: 1px 7px;
    border-radius: 999px;
    background: rgba(229, 0, 125, .12);
    font-size: 12px; font-weight: 800; text-align: center;
  }
  .club-type-tabs a.active .club-type-count { background: rgba(255, 255, 255, .25); }
  html[data-theme="dark"] .club-type-tabs a { color: #ffb3d6 !important; }
  html[data-theme="dark"] .club-type-tabs a.active { color: #fff !important; }
}
@media screen {
  .club-emp-tabs { display: flex; flex-wrap: wrap; align-items: center; width: fit-content; max-width: 100%; margin-top: -6px; padding: 4px; background: transparent; box-shadow: inset 0 0 0 1px var(--sm-line); }
  .club-emp-tabs a { padding: 6px 14px; font-size: 13px; }
  .club-tabs-label { padding: 0 6px 0 10px; font-size: 13px; font-weight: 700; color: var(--sm-muted); }
  html[data-theme="dark"] .club-emp-tabs { background: transparent; }
}
@media screen and (max-width: 820px) {
  .club-type-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 20px; }
  .club-type-tabs a { flex: 1 1 auto; justify-content: center; gap: 5px; padding: 8px 10px; font-size: 13.5px; white-space: nowrap; }
  .club-tabs-label { flex: 1 1 100%; padding: 2px 8px 0 8px !important; }
  .club-type-count { min-width: 0; padding: 1px 6px; font-size: 11px; }
  .club-emp-tabs a { padding: 7px 10px; font-size: 13px; }
  .club-tabs-label { flex: 0 0 auto; padding: 0 4px 0 8px; }
}


/* ==========================================================================
   Obrazky "pro tanecnice / kluby / agentury" v obsahu stranek (Pro tanecnice, Pro kluby, Pro agentury ...):
   misto starych obrazku s ceskym textem nove karty s prelozenym popiskem (js/site-modern.js, initInlineCards).
   Puvodni obrazky se do nahrazeni skryji, aby neproblikly (trida sm-js-on nastavuje skript v hlavicce).
   ========================================================================== */
@media screen {
  html.sm-js-on:not(.sm-cards-ready) img[src*="img/for_dancers.jpg"],
  html.sm-js-on:not(.sm-cards-ready) img[src*="img/for_clubs.jpg"],
  html.sm-js-on:not(.sm-cards-ready) img[src*="img/for_agencies.jpg"] { visibility: hidden; }

  .sm-bg-for-dancers { background-image: url("../img/home/card-dancers-hostesses.jpg") !important; }
  .sm-bg-for-clubs { background-image: url("../img/home/card-clubs.jpg") !important; }
  .sm-bg-for-agents { background-image: url("../img/home/card-agencies.jpg") !important; }

  .sm-inline-card {
    position: relative;
    float: right;
    display: block;
    width: 170px;
    aspect-ratio: 2 / 3;
    margin: 0 0 14px 20px;
    border-radius: var(--sm-radius);
    overflow: hidden;
    background: #5a1046 center / cover no-repeat;
    box-shadow: var(--sm-shadow);
    line-height: 1.2;
  }
  .sm-inline-card.sm-inline-left { float: left; margin: 0 20px 14px 0; }
  .sm-inline-card img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0; }
  .sm-inline-card::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
    background: linear-gradient(to top, rgba(42, 11, 32, .85), rgba(42, 11, 32, 0));
  }
  .sm-inline-card .sm-card-label { left: 12px; right: 12px; bottom: 12px; font-size: 16px; }
}
@media screen and (max-width: 560px) {
  .sm-inline-card { width: 120px; margin-left: 12px; }
  .sm-inline-card.sm-inline-left { margin-right: 12px; }
  .sm-inline-card .sm-card-label { left: 9px; right: 9px; bottom: 9px; font-size: 13.5px; }
}
/* nadpis s kartou: stejny ramecek jako dosud nadpis s obrazkem (css/content-modern.css), karta zustava uvnitr */
#central h2:has(> .sm-inline-card) { display: flow-root; margin: 4px 0 14px 0; padding: 16px 18px; border: 1px solid var(--hm-line, #e9d3e0); border-radius: 18px; background: linear-gradient(135deg, rgba(229, 0, 125, .09), rgba(229, 0, 125, .02)); font-size: 22px; line-height: 1.25; }
#central h1:has(> .sm-inline-card) { display: flow-root; }
#central h1 > .sm-inline-card, #central h2 > .sm-inline-card { margin: 0 0 6px 14px; }

/* Administrace klubu: zalozky viditelnosti a hromadne akce (func/func_club_admin.php) */
.club-admin-tabs { margin: 10px 0 8px; }
.club-admin-note { margin: 4px 0 10px; color: #667085; font-size: 13px; }
.club-bulk-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; padding: 10px 12px; background: rgba(255, 255, 255, .96); border: 1px solid #f3c6dd; border-radius: 14px; box-shadow: 0 -6px 18px -12px rgba(120, 0, 70, .45); }
.club-bulk-label { margin-right: 6px; font-size: 14px; }
.club-bulk-btn { padding: 7px 14px; border: 0; border-radius: 999px; background: #e6007e; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.club-bulk-btn[value="hide"], .club-bulk-btn[value="lock"] { background: #6b4058; }
.club-bulk-btn:disabled { opacity: .4; cursor: default; }
.club-bulk-form input.club-select, .club-bulk-form input.club-select-all { width: 18px; height: 18px; accent-color: #e6007e; cursor: pointer; }
html[data-theme="dark"] .club-bulk-bar { background: rgba(31, 23, 28, .96); border-color: #5a2d45; }

/* Zpravy (classes/Components/Inbox.php): nova zprava s editorem, detail zpravy */
.inbox-form { display: grid; gap: 12px; max-width: 980px; margin: 12px 0; padding: 18px; background: #fff; border: 1px solid #f3c6dd; border-radius: 16px; }
.inbox-field { display: grid; grid-template-columns: 110px 1fr; align-items: start; gap: 10px; }
.inbox-field > label { padding-top: 9px; font-weight: 700; color: #6b4058; }
.inbox-form .inbox-select, .inbox-form .inbox-input, .inbox-form .fs { width: 100% !important; max-width: 100%; box-sizing: border-box; }
.inbox-form textarea, .inbox-form .tox-tinymce { width: 100% !important; box-sizing: border-box; border-radius: 12px !important; }
.inbox-actions { padding-left: 120px; }
.inbox-content { max-width: 820px; line-height: 1.5; }
.inbox-content p { margin: 0 0 .6em; }
.inbox-reply { margin-top: 10px; }
html[data-theme="dark"] .inbox-form { background: #1f171c; border-color: #5a2d45; }
html[data-theme="dark"] .inbox-field > label { color: #f3c6dd; }
@media (max-width: 640px) {
  .inbox-form { padding: 12px; }
  .inbox-field { grid-template-columns: 1fr; gap: 4px; }
  .inbox-field > label { padding-top: 0; }
  .inbox-actions { padding-left: 0; }
}

/* Karta prihlaseneho uzivatele (func/func_header.php login_box) */
#login_box.ub { display: flex; flex-direction: column; gap: 10px; min-width: 230px; padding: 14px !important; min-height: 0; }
.ub-head { display: flex; align-items: center; gap: 10px; }
.ub-avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ff4fa3, #b0005e); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px; box-shadow: 0 4px 12px -6px rgba(176, 0, 94, .8); }
.ub-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ub-name { font-weight: 800; color: #2b1220 !important; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ub-role { align-self: flex-start; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: #fde4f1; color: #b0005e; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.ub-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#login_box .ub-msg { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #faf5f8; color: #4a2a3b; text-decoration: none; font-size: 13px; font-weight: 600; }
#login_box .ub-msg:hover { background: #fde4f1; }
.ub-msg-txt { flex: 1 1 auto; }
.ub-msg-none { color: #8a7480; font-weight: 400; font-size: 12px; }
.ub-badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #e6007e; color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
#login_box .ub-msg-new { background: #fde4f1; box-shadow: inset 3px 0 0 #e6007e; }
.ub-links { display: flex; flex-wrap: wrap; gap: 6px; }
#login_box .ub-links a.bookmark { margin: 0 !important; padding: 5px 11px !important; border-radius: 999px !important; font-size: 12px; }
#login_box .ub-links a.ub-logout { background: #fff !important; color: #b0005e !important; box-shadow: inset 0 0 0 1.5px #e6a3c6; }
#login_box .ub-links a.ub-logout:hover { background: #fde4f1 !important; }
.ub-roles { display: flex !important; align-items: center; gap: 6px; font-size: 12px; }
.ub-roles select { flex: 1 1 auto; min-width: 0; }
html[data-theme="dark"] .ub-name { color: #f6e9f0 !important; }
html[data-theme="dark"] .ub-role { background: #3a1f2e; color: #ffb3d6; }
html[data-theme="dark"] #login_box .ub-msg { background: #2a1d24; color: #f3dbe7; }
html[data-theme="dark"] #login_box .ub-msg-new, html[data-theme="dark"] #login_box .ub-msg:hover { background: #3a1f2e; }
html[data-theme="dark"] #login_box .ub-links a.ub-logout { background: transparent !important; color: #ffb3d6 !important; box-shadow: inset 0 0 0 1.5px #7a3a5c; }
.deact-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.deact-code { width: 9em; font-size: 20px !important; letter-spacing: 4px; text-align: center; }

/* Editace uctu agentury: znacka banky, vlajka meny, vlozeni udaju z textu (func/func_bank.php, js/bank-accounts.js) */
.bank-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 26px; padding: 0 8px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .3px; white-space: nowrap; box-shadow: 0 2px 6px -3px rgba(0, 0, 0, .5); }
.bank-badge-img { padding: 0; background: #fff; box-shadow: 0 0 0 1px #eadbe3; }
.bank-badge-img img { max-height: 24px; max-width: 70px; display: block; }
.bank-badge-unknown { background: #9aa3ad; }
.bank-cur { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bank-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.bank-paste { display: grid; gap: 8px; max-width: 760px; margin: 6px 0 14px; padding: 14px; background: #faf5f8; border: 1px dashed #e6a3c6; border-radius: 14px; }
.bank-paste textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.bank-paste-hint { font-weight: 400; color: #8a7480; font-size: 12px; }
.bank-paste button.sm-btn { justify-self: start; padding: 8px 18px !important; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff4fa3, #c4006a); color: #fff; font-weight: 700; font-size: 13px; line-height: 1.2; cursor: pointer; }
html[data-theme="dark"] .bank-paste { background: #2a1d24; border-color: #7a3a5c; }

/* Nastaveni: casove limity prihlaseni - pole na nejmene 4 znaky */
input.timeout-input { width: 5.5em !important; min-width: 5.5em; text-align: center; box-sizing: border-box; }

/* Karta uzivatele na pocitaci: kompaktni, cela uvnitr hlavicky a svisle na stredu */
.ub-msg-ico { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: #e6007e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media screen and (min-width: 821px) {
  #login_box.ub { width: 330px; min-width: 0; gap: 8px; margin-top: 12px !important; padding: 12px 14px !important; }
  #login_box.ub .ub-head { gap: 10px; }
  #login_box.ub .ub-avatar { flex-basis: 38px; width: 38px; height: 38px; font-size: 14px; }
  #login_box.ub .ub-msg { padding: 6px 10px; }
  #login_box.ub .ub-links { flex-wrap: nowrap; }
  #login_box.ub .ub-links a.ub-logout { margin-left: auto !important; }
}

/* Administrace -> Deaktivovane ucty */
.da-btn { padding: 6px 14px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff4fa3, #c4006a); color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; }
.da-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }

/* Dokumenty -> Platby z banky (Fio) */
.fp-note { padding: 10px 14px; border-radius: 12px; background: #fff3d6; border: 1px solid #f0c060; }
.fp-status { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.fp-acc { flex: 1 1 260px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #eadbe3; box-shadow: inset 5px 0 0 #9aa3ad; line-height: 1.5; }
.fp-acc.fp-ok { box-shadow: inset 5px 0 0 #2e8b3d; }
.fp-acc.fp-err { box-shadow: inset 5px 0 0 #c62828; }
.fp-fetch, .fp-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.fp-hint { color: #8a7480; font-size: 12px; }
.fp-table td { vertical-align: top; }
.fp-amt { white-space: nowrap; font-weight: 700; color: #2e8b3d; text-align: right; }
.fp-amt.fp-neg { color: #c62828; }
.fp-none { color: #8a7480; font-size: 12px; }
.fp-tag { display: inline-block; padding: 0 6px; border-radius: 999px; background: #eef0f3; color: #4a5560; font-size: 11px; font-weight: 700; }
.fp-tag-ok { background: #e6f5e8; color: #2e8b3d; }
html[data-theme="dark"] .fp-acc { background: #1f171c; border-color: #5a2d45; }
html[data-theme="dark"] .fp-note { background: #3a2e10; border-color: #6b5420; }
.fp-fetch button { padding: 8px 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff4fa3, #c4006a); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.fp-fetch button.fp-second { background: #fff; color: #b0005e; box-shadow: inset 0 0 0 1.5px #e6a3c6; }
.fio-on { color: #2e8b3d; font-weight: 700; white-space: nowrap; }
.fio-on::before { content: "\2713\00a0"; }
.fio-small { font-size: 11px; color: #8a7480; white-space: nowrap; }
input.fio-token { width: 9em; }
.fp-note-ok { background: #e6f5e8; border-color: #9fd3a8; }
.fp-tag-warn { background: #fff3d6; color: #9a6400; }
.fp-tag-bad { background: #fdeaea; color: #c62828; }
.fp-line { font-size: 12px; margin-top: 2px; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fp-actions form { display: inline-flex; gap: 4px; margin: 0; }
.fp-actions button { padding: 4px 10px; border: 0; border-radius: 999px; background: #e6007e; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.fp-actions button.fp-second { background: #fff; color: #6b4058; box-shadow: inset 0 0 0 1px #d8b9c9; }
.fp-assign select { max-width: 200px; font-size: 12px; }

/* Dokumenty -> Dluhy klubu */
.cd-totals { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.cd-total { display: flex; flex-direction: column; min-width: 160px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid #eadbe3; }
.cd-total span { font-size: 12px; color: #8a7480; }
.cd-total strong { font-size: 18px; color: #b0005e; }
.cd-num { text-align: center; }
.cd-debt { white-space: pre-line; font-weight: 700; text-align: right; }
.cd-age { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cd-ok { background: #e6f5e8; color: #2e8b3d; }
.cd-mild { background: #fff3d6; color: #9a6400; }
.cd-warn { background: #ffece0; color: #e65100; }
.cd-bad { background: #fdeaea; color: #c62828; }
html[data-theme="dark"] .cd-total { background: #1f171c; border-color: #5a2d45; }
.cd-name { text-align: left; white-space: nowrap; }
.cd-flag { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.cd-invoices { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
td.cd-invoices { display: table-cell; }
a.cd-inv { display: inline-block; margin: 1px 2px; padding: 1px 7px; border-radius: 999px; background: #fde4f1; color: #b0005e !important; font-size: 11px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
a.cd-inv:hover { background: #e6007e; color: #fff !important; }
a.cd-inv.cd-inv-part { background: #fff3d6; color: #9a6400 !important; }
html[data-theme="dark"] a.cd-inv { background: #3a1f2e; color: #ffb3d6 !important; }
.fp-token-form { display: flex; gap: 6px; margin: 6px 0 2px; }
.fp-token-form input { flex: 1 1 auto; min-width: 0; }
.fp-token-form button { padding: 5px 12px; border: 0; border-radius: 999px; background: #e6007e; color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; }
.fp-token-inline { display: inline; margin: 0; }
button.fp-link { padding: 0; border: 0; background: none; color: #b0005e; text-decoration: underline; font-size: 12px; cursor: pointer; }
.fp-acc button.fp-link { all: unset; color: #b0005e; text-decoration: underline; font-size: 12px; cursor: pointer; }
.fp-replace { margin-top: 4px; font-size: 12px; }
.fp-replace summary { cursor: pointer; color: #b0005e; text-decoration: underline; display: inline; }
.fp-replace .fio-small { display: block; margin-top: 4px; white-space: normal; }

/* Dokumenty -> Import vypisu z banky */
.bip-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; padding: 14px; border: 1px dashed #e6a3c6; border-radius: 14px; background: #faf5f8; }
.bip-form button { padding: 8px 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff4fa3, #c4006a); color: #fff; font-weight: 700; cursor: pointer; }
.bip-summary { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #eadbe3; line-height: 1.6; }
.fp-import-link a { font-weight: 700; }
html[data-theme="dark"] .bip-form { background: #2a1d24; border-color: #7a3a5c; }
html[data-theme="dark"] .bip-summary { background: #1f171c; border-color: #5a2d45; }

/* Jazyky psane zprava doleva (arabstina, hebrejstina; <html dir="rtl">): smer kazdeho odstavce podle jeho textu,
   aby neprelozene (anglicke) texty, cisla, e-maily a odkazy zustaly ve spravnem poradi. */
html[dir="rtl"] :is(p, h1, h2, h3, h4, h5, h6, li, td, th, label, dt, dd, blockquote, figcaption, option, a, button, .fd-text) { unicode-bidi: plaintext; }
html[dir="rtl"] :is(input[type="email"], input[type="tel"], input[type="url"], input[type="password"], .ltr) { direction: ltr; }

/* Faktury ucetnimu (pages/accountant.php) */
.acc-form { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 10px 0 18px; padding: 16px; border: 1px solid #eadbe3; border-radius: 14px; background: #faf5f8; }
.acc-form fieldset { border: 1px solid #eadbe3; border-radius: 10px; padding: 8px 12px; }
.acc-form button, .acc-inline button { align-self: flex-start; padding: 8px 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff4fa3, #c4006a); color: #fff; font-weight: 700; cursor: pointer; }
.acc-inline { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acc-inline button.acc-send { background: linear-gradient(135deg, #2e9d5b, #1b6e3d); }
.acc-preview { width: 100%; max-width: 760px; height: 640px; border: 1px solid #eadbe3; border-radius: 14px; background: #f6eef3; }
.acc-file { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; border-radius: 999px; background: #fdf2f8; border: 1px solid #f3cde2; font-size: 12px; text-decoration: none; }
.acc-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #fff3d6; font-size: 11px; }
.acc-tag.acc-err { background: #fde2e2; color: #b00020; }
html[data-theme="dark"] .acc-form { background: #2a1d24; border-color: #5a2d45; }
html[data-theme="dark"] .acc-file { background: #2a1d24; border-color: #5a2d45; }

/* Odkaz na Kluby ve vasem okoli (pages/clubs.php) */
.nc-entry { margin: 10px 0 14px; }
.nc-entry-btn { display: inline-block; padding: 9px 18px; border-radius: 999px; background: linear-gradient(135deg, #ff4fa3, #c4006a); color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(196, 0, 106, .22); }
.nc-entry-btn:hover { filter: brightness(1.06); }
