/* RealFree — mobilní menu (vysouvací panel). Vlastní CSS, Tailwind arbitrary values se nekompilují. */
.rf-mm { position: fixed; inset: 0; z-index: 9990; visibility: hidden; pointer-events: none; }
.rf-mm.is-open { visibility: visible; pointer-events: auto; }
.rf-mm[hidden] { display: none; }

.rf-mm__backdrop {
    position: absolute; inset: 0; background: rgba(8, 15, 30, .55);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .25s ease;
}
.rf-mm.is-open .rf-mm__backdrop { opacity: 1; }

.rf-mm__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px;
    display: flex; flex-direction: column; background: #f1f5f9;
    transform: translateX(100%); transition: transform .32s cubic-bezier(.16, 1, .3, 1);
    box-shadow: -18px 0 50px rgba(8, 15, 30, .28); outline: none;
}
.rf-mm.is-open .rf-mm__panel { transform: none; }

/* Hlavička s uživatelem */
.rf-mm__head {
    flex: 0 0 auto; color: #fff; padding: 14px 16px 18px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
    border-radius: 0 0 22px 22px;
}
.rf-mm__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rf-mm__brand { font-weight: 800; font-size: 17px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.rf-mm__close {
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 17px;
    background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.rf-mm__close:active { background: rgba(255, 255, 255, .3); }
.rf-mm__user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rf-mm__avatar {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .45); font-weight: 800; font-size: 18px; text-transform: uppercase;
}
.rf-mm__uname { font-weight: 700; font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-mm__umail { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-mm__pill {
    display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; vertical-align: 2px;
    font-size: 10px; font-weight: 800; letter-spacing: .04em; background: #fbbf24; color: #78350f;
}
.rf-mm__guest { font-size: 14px; opacity: .92; margin: 0 0 12px; line-height: 1.4; }
.rf-mm__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rf-mm__auth a {
    display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: 12px;
    font-weight: 700; font-size: 14.5px; text-decoration: none; padding: 0 10px; text-align: center;
}
.rf-mm__auth a.is-solid { background: #fff; color: #0f766e; }
.rf-mm__auth a.is-ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }

/* Tělo */
.rf-mm__body {
    flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 14px 14px calc(22px + env(safe-area-inset-bottom, 0px));
}
.rf-mm__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.rf-mm__cta.is-single { grid-template-columns: 1fr; }
.rf-mm__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 6px 10px; border-radius: 14px;
    font-weight: 700; font-size: 14.5px; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .12s;
}
.rf-mm__btn:active { transform: scale(.97); }
.rf-mm__btn.is-primary { background: #0f766e; color: #fff; box-shadow: 0 6px 16px rgba(15, 118, 110, .28); }
.rf-mm__btn.is-secondary { background: #fff; color: #0f766e; border: 1.5px solid #99f6e4; }

.rf-mm__label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; margin: 4px 6px 8px; }
.rf-mm__card { background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.rf-mm__row {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px; background: none; border: 0; cursor: pointer;
    font: inherit; font-size: 15.5px; font-weight: 600; color: #0f172a; text-align: left; text-decoration: none; transition: background .12s;
    border-top: 1px solid #f1f5f9;
}
.rf-mm__card > .rf-mm__row:first-child, .rf-mm__card > .rf-mm__group:first-child > .rf-mm__row { border-top: 0; }
.rf-mm__row:active { background: #f1f5f9; }
.rf-mm__ico {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    background: #f0fdfa; color: #0f766e; font-size: 15px;
}
.rf-mm__txt { flex: 1 1 auto; min-width: 0; }
.rf-mm__chev { flex: 0 0 auto; color: #94a3b8; font-size: 12px; transition: transform .2s; }
.rf-mm__row.is-active { color: #0f766e; }
.rf-mm__row.is-active .rf-mm__ico { background: #0f766e; color: #fff; }
.rf-mm__row.is-admin { color: #7c3aed; }
.rf-mm__row.is-admin .rf-mm__ico { background: #f5f3ff; color: #7c3aed; }
.rf-mm__badge {
    flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #ef4444; color: #fff;
    font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* Podmenu (rozbalovací) */
.rf-mm__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; background: #f8fafc; }
.rf-mm__sub > div { overflow: hidden; }
.rf-mm__group.is-open .rf-mm__sub { grid-template-rows: 1fr; }
.rf-mm__group.is-open > .rf-mm__row .rf-mm__chev { transform: rotate(90deg); color: #0f766e; }
.rf-mm__subrow {
    display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px 6px 64px; font-size: 14.5px; font-weight: 500;
    color: #334155; text-decoration: none; border-top: 1px solid #eef2f6;
}
.rf-mm__subrow:active { background: #eef2f6; }

/* Premium */
.rf-mm__premium {
    display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 14px; border-radius: 16px; text-decoration: none; color: #78350f;
    background: linear-gradient(135deg, #fef3c7, #fde68a); border: 1px solid #fcd34d;
}
.rf-mm__premium .rf-mm__ico { background: #f59e0b; color: #fff; }
.rf-mm__premium strong { display: block; font-size: 15px; }
.rf-mm__premium .rf-mm__txt span { display: block; font-size: 12.5px; opacity: .85; line-height: 1.3; }

/* Patička */
.rf-mm__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 2px 0; }
.rf-mm__lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #e2e8f0; }
.rf-mm__lang a {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
    color: #475569; text-decoration: none;
}
.rf-mm__lang a.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.rf-mm__logout {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
    color: #dc2626; background: #fef2f2; text-decoration: none;
}

html.rf-mm-lock, html.rf-mm-lock body { overflow: hidden; }
/* plovoucí nápověda nesmí překrývat otevřené menu */
html.rf-mm-lock #rfHelp { display: none !important; }
@media (min-width: 1280px) { .rf-mm { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .rf-mm__panel, .rf-mm__backdrop, .rf-mm__sub, .rf-mm__chev { transition: none; }
}
