/* Framia theme – loaded after Bootstrap 3 and legacy styles */

:root {
  --fr-bg: #f6f6f4;
  --fr-surface: #ffffff;
  --fr-surface-2: #f0efec;
  --fr-ink: #17181c;
  --fr-ink-2: #3a3c43;
  --fr-muted: #6c6f78;
  --fr-border: #e4e3df;
  --fr-accent: #e2553a;
  --fr-accent-hover: #c8432a;
  --fr-accent-soft: #fdece8;
  --fr-success: #1f8a5b;
  --fr-radius-sm: 8px;
  --fr-radius: 12px;
  --fr-radius-lg: 20px;
  --fr-shadow-sm: 0 1px 2px rgba(23, 24, 28, .06);
  --fr-shadow: 0 6px 24px -8px rgba(23, 24, 28, .18);
  --fr-shadow-lg: 0 24px 60px -20px rgba(23, 24, 28, .35);
  --fr-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fr-header-h: 64px;
  --fr-tabbar-h: 62px;
  --fr-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--fr-header-h) + 12px); scrollbar-gutter: stable; }
/* The gutter is reserved, so locking scroll for the image modal must not add extra margin */
body.fr-body.no-scroll { margin-right: 0; overflow: visible; }
html:has(body.no-scroll) { overflow: hidden; }
body.fr-body {
  background: var(--fr-bg);
  color: var(--fr-ink);
  font-family: var(--fr-font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.fr-body h1, .fr-body h2, .fr-body h3, .fr-body h4, .fr-body h5, .fr-body h6,
.fr-body .h1, .fr-body .h2, .fr-body .h3 {
  font-family: var(--fr-font);
  color: var(--fr-ink);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.fr-body h1, .fr-body .h1 { font-size: clamp(26px, 3.6vw, 38px); }
.fr-body h2, .fr-body .h2 { font-size: clamp(21px, 2.6vw, 28px); }
.fr-body h3, .fr-body .h3 { font-size: 19px; }
.fr-body a { color: var(--fr-accent); transition: color .15s var(--fr-ease); }
.fr-body a:hover, .fr-body a:focus { color: var(--fr-accent-hover); }
.fr-body img { max-width: 100%; }
.fr-body hr { border-color: var(--fr-border); }
.fr-body ::selection { background: var(--fr-accent); color: #fff; }

.fr-body :focus-visible {
  outline: 3px solid rgba(226, 85, 58, .45);
  outline-offset: 2px;
}

.fr-skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--fr-ink); color: #fff !important; padding: 10px 16px;
  border-radius: var(--fr-radius-sm); font-weight: 600; transition: top .2s;
}
.fr-skip-link:focus { top: 12px; }
#main:focus { outline: none; }

.page-header { border-bottom-color: var(--fr-border); }
.omb_login .omb_spanOr { background: var(--fr-bg) !important; font-size: 14px; }
.alertContainer:empty { display: none; }
.alertContainer .alert { margin-top: 16px; }

/* ---------- Header / navbar ---------- */
.fr-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--fr-border);
}
.fr-header .navbar {
  background: transparent; border: 0; margin: 0; min-height: var(--fr-header-h);
  border-radius: 0;
}
.fr-header .container-fluid { max-width: 1600px; padding-left: 16px; padding-right: 16px; }
.fr-header .container-fluid > .navbar-header,
.fr-header .container-fluid > .navbar-collapse { margin-left: 0; margin-right: 0; }
.fr-header .navbar-header { display: flex; align-items: center; min-height: var(--fr-header-h); }
.fr-header .navbar-header::before, .fr-header .navbar-header::after { display: none; }
.fr-brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; margin-right: 18px; text-decoration: none !important; }
.fr-brand img { width: 50px; height: auto; display: block; }
.fr-brand span { font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--fr-ink); }

.fr-header .navbar-toggle {
  margin: 0 0 0 auto; order: 3; border: 1px solid var(--fr-border) !important;
  border-radius: 10px; padding: 10px; background: var(--fr-surface);
}
.fr-header .navbar-toggle .icon-bar { background: var(--fr-ink); width: 20px; border-radius: 2px; }
.fr-header .navbar-toggle:hover, .fr-header .navbar-toggle:focus { background: var(--fr-surface-2) !important; }

.fr-header .navbar-nav > li > a {
  color: var(--fr-ink-2); font-weight: 500; font-size: 15px;
  padding: 8px 12px; margin: 14px 2px; border-radius: 999px;
  transition: background-color .15s var(--fr-ease), color .15s var(--fr-ease);
}
.fr-header .navbar-nav > li > a:hover,
.fr-header .navbar-nav > li > a:focus { background: var(--fr-surface-2); color: var(--fr-ink); }
.fr-header .navbar-nav > .active > a,
.fr-header .navbar-nav > .active > a:hover,
.fr-header .navbar-nav > .active > a:focus { background: var(--fr-ink); color: #fff; }
.fr-header .navbar-nav > .open > a,
.fr-header .navbar-nav > .open > a:hover,
.fr-header .navbar-nav > .open > a:focus { background: var(--fr-surface-2); color: var(--fr-ink); }
.fr-header .label-as-badge { border-radius: 999px; font-size: 11px; padding: 2px 7px; vertical-align: 1px; }
.fr-header .label-danger { background: var(--fr-accent); }

.fr-header .navbar-toolbar > li > a { margin: 10px 2px; padding: 8px 10px !important; }
.fr-header .navbar-toolbar > li > a i.fa-2x { font-size: 1.45em; }
.fr-header .navbar-toolbar .point-badge { top: 4px !important; right: -2px !important; transform: none; }
.fr-header .navbar-toolbar .badge.point-badge { background: var(--fr-ink); }
.fr-header .dropdown-profile > a { display: flex !important; align-items: center; gap: 8px; }
.fr-header .dropdown-profile .img-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.fr-upload-btn > a {
  background: var(--fr-accent) !important; color: #fff !important; font-weight: 600 !important;
}
.fr-upload-btn > a:hover, .fr-upload-btn > a:focus { background: var(--fr-accent-hover) !important; }

.fr-header .app-search-form { margin: 12px 8px; padding: 0; border: 0; box-shadow: none; }
.fr-header .app-search-form .input-group { width: 100%; }
.fr-header .app-search-form .form-control {
  height: 40px; border-radius: 999px 0 0 999px !important; background: var(--fr-surface-2) !important;
  border: 1px solid transparent !important; box-shadow: none; min-width: 200px; padding-left: 16px;
}
.fr-header .app-search-form .form-control:focus { background: #fff !important; border-color: var(--fr-border) !important; }
.fr-header .app-search-form .btn {
  height: 40px; border-radius: 0 999px 999px 0 !important; background: var(--fr-surface-2) !important;
  border: 1px solid transparent !important; color: var(--fr-muted);
}

.fr-auth-actions { display: flex; gap: 8px; align-items: center; margin: 12px 0; }

@media (min-width: 1200px) and (max-width: 1399px) {
  .fr-header .dropdown-profile > a > span { display: none; }
  .fr-header .app-search-form .form-control { min-width: 150px; width: 170px; }
  .fr-header .navbar-nav > li > a { padding-left: 10px; padding-right: 10px; }
}

.fr-header .navbar-collapse { border: 0; box-shadow: none; }

@media (max-width: 1199px) {
  .fr-header .navbar-collapse { padding: 4px 0 16px; max-height: calc(100vh - var(--fr-header-h)); overflow-y: auto; }
  .fr-header .navbar-nav { margin: 0; }
  .fr-header .navbar-nav > li > a { margin: 2px 0; padding: 12px 14px; border-radius: var(--fr-radius-sm); }
  .fr-header .navbar-toolbar { display: flex; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--fr-border); padding-top: 8px; margin-top: 8px; }
  .fr-header .navbar-toolbar > li { position: static; }
  .fr-header .navbar-toolbar > li > a { margin: 0; }
  .fr-header .navbar-toolbar .dropdown-menu,
  .fr-header .navbar-nav .open .dropdown-menu {
    position: absolute; left: 12px; right: 12px; width: auto; z-index: 1050;
    background: var(--fr-surface); border: 1px solid var(--fr-border); border-radius: var(--fr-radius);
    box-shadow: var(--fr-shadow-lg); padding: 6px; max-height: 70vh; overflow-y: auto;
  }
  .fr-header .navbar-nav .open .dropdown-menu > li > a { padding: 10px 12px; line-height: 1.4; }
  .fr-header .app-search-form { margin: 8px 0; }
  .fr-header .app-search-form .form-group { margin: 0; }
  .fr-auth-actions { margin: 8px 0 0; }
  .fr-auth-actions .btn { flex: 1; }
}

/* Dropdowns */
.fr-body .dropdown-menu {
  border: 1px solid var(--fr-border); border-radius: var(--fr-radius); box-shadow: var(--fr-shadow);
  padding: 6px; margin-top: 6px;
}
.fr-body .dropdown-menu > li > a { border-radius: var(--fr-radius-sm); padding: 8px 12px; color: var(--fr-ink-2); }
.fr-body .dropdown-menu > li > a:hover, .fr-body .dropdown-menu > li > a:focus { background: var(--fr-surface-2); color: var(--fr-ink); }
.fr-body .dropdown-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fr-muted); padding: 8px 12px 6px; }
.fr-body .dropdown-menu .divider { background: var(--fr-border); }

/* ---------- Mobile tab bar ---------- */
.fr-tabbar { display: none; }
@media (max-width: 767px) {
  body.fr-body { padding-bottom: calc(var(--fr-tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .fr-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    height: calc(var(--fr-tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--fr-border);
  }
  .fr-tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--fr-muted) !important; font-size: 11px; font-weight: 600; text-decoration: none !important;
    position: relative;
  }
  .fr-tabbar a .fa { font-size: 21px; line-height: 1; }
  .fr-tabbar a.is-active { color: var(--fr-ink) !important; }
  .fr-tabbar a.is-active::before {
    content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px;
    border-radius: 0 0 3px 3px; background: var(--fr-accent);
  }
  .fr-tabbar .fr-tabbar__upload .fa {
    background: var(--fr-accent); color: #fff; width: 44px; height: 32px; border-radius: 12px;
    display: grid; place-items: center; font-size: 17px;
  }
  .fr-tabbar .fr-tabbar__badge {
    position: absolute; top: 6px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--fr-accent); color: #fff; font-size: 10px; line-height: 18px; text-align: center;
  }
  .scrollup { display: none !important; }
}

/* ---------- Buttons ---------- */
.fr-body .btn {
  border-radius: 10px; font-weight: 600; letter-spacing: .005em;
  transition: background-color .15s var(--fr-ease), border-color .15s var(--fr-ease), color .15s var(--fr-ease), box-shadow .15s var(--fr-ease), transform .1s;
}
.fr-body .btn:active { transform: translateY(1px); box-shadow: none; }
.fr-body .btn-lg { border-radius: 12px; padding: 12px 22px; font-size: 16px; }
.fr-body .btn-xs { border-radius: 6px; }
.fr-body .btn-default { background: var(--fr-surface); border-color: var(--fr-border); color: var(--fr-ink); }
.fr-body .btn-default:hover, .fr-body .btn-default:focus { background: var(--fr-surface-2); border-color: #d4d3ce; color: var(--fr-ink); }
.fr-body .btn-primary { background: var(--fr-accent); border-color: var(--fr-accent); color: #fff; }
.fr-body .btn-primary:hover, .fr-body .btn-primary:focus, .fr-body .btn-primary:active { background: var(--fr-accent-hover); border-color: var(--fr-accent-hover); color: #fff; }
.fr-body .btn-info { background: var(--fr-ink); border-color: var(--fr-ink); color: #fff; }
.fr-body .btn-info:hover, .fr-body .btn-info:focus { background: #000; border-color: #000; color: #fff; }
.fr-body .btn-success { background: var(--fr-success); border-color: var(--fr-success); }
.fr-body .btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.fr-body .btn-ghost:hover, .fr-body .btn-ghost:focus { background: rgba(255, 255, 255, .14); color: #fff; }
/* Anchor buttons: beat the generic ".fr-body a" link colour */
.fr-body a.btn-primary, .fr-body a.btn-success, .fr-body a.btn-danger, .fr-body a.btn-warning, .fr-body a.btn-info,
.fr-body a.btn-primary:hover, .fr-body a.btn-success:hover, .fr-body a.btn-danger:hover, .fr-body a.btn-warning:hover, .fr-body a.btn-info:hover,
.fr-body a.btn-primary:focus, .fr-body a.btn-success:focus, .fr-body a.btn-danger:focus, .fr-body a.btn-warning:focus, .fr-body a.btn-info:focus { color: #fff; }
.fr-body a.btn-default, .fr-body a.btn-default:hover, .fr-body a.btn-default:focus { color: var(--fr-ink); }
.fr-body .btn.disabled, .fr-body .btn[disabled] { opacity: .55; }
.fr-body a.btn-danger.disabled { opacity: 1; background: var(--fr-surface-2); border-color: var(--fr-border); color: var(--fr-muted); }
.fr-contest-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-contest-actions .btn { margin: 0; }

/* ---------- Forms ---------- */
.fr-body .form-control {
  height: 44px; border-radius: 10px; border-color: var(--fr-border); box-shadow: none;
  font-size: 15px; color: var(--fr-ink); background: #fff;
}
.fr-body textarea.form-control { height: auto; min-height: 44px; }
.fr-body .form-control:focus { border-color: var(--fr-accent); box-shadow: 0 0 0 4px rgba(226, 85, 58, .14); }
.fr-body .input-group-addon { background: var(--fr-surface-2); border-color: var(--fr-border); border-radius: 10px; color: var(--fr-muted); }
.fr-body .input-group .form-control:first-child,
.fr-body .input-group-addon:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.fr-body .input-group .form-control:last-child,
.fr-body .input-group-addon:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.fr-body label, .fr-body .control-label { font-weight: 600; color: var(--fr-ink-2); }
.fr-field-label { display: block; font-weight: 600; color: var(--fr-ink-2); margin: 12px 0 6px; }
.fr-check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 12px; }
.fr-body .fr-check {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; cursor: pointer;
  background: #fff; border: 1px solid var(--fr-border); border-radius: 10px; font-weight: 500; min-width: 0;
}
.fr-check input { margin: 0; flex: 0 0 auto; }
.fr-check .fa { color: var(--fr-muted); }
.fr-check span { overflow: hidden; text-overflow: ellipsis; }
.fr-check:has(input:checked) { border-color: var(--fr-accent); background: var(--fr-accent-soft); }
.fr-form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; }
.fr-upload .input-group { margin-bottom: 10px; width: 100%; }
.fr-body .radio-inline input.form-control, .fr-body .checkbox-inline input.form-control { width: auto; height: auto; display: inline-block; box-shadow: none; }
.fr-group-avatar { width: 120px; max-width: 28vw; border-radius: var(--fr-radius-sm); }
.fr-body .table-responsive { border: 0; }

/* ---------- Danger zone ---------- */
.fr-body .fr-danger-zone { border-color: #f1c7bf; }
.fr-body .fr-danger-zone > .panel-heading { background: #fdf1ee; border-color: #f1c7bf; color: #a8331f; }
.fr-danger-zone .panel-title .fa { margin-right: 4px; }
.fr-danger-zone .panel-body p { color: var(--fr-muted); }

/* ---------- Invite ---------- */
.fr-invite { max-width: 1040px; padding-top: 28px; padding-bottom: 56px; }
.fr-invite__hero { display: flex; align-items: center; gap: 28px; padding: 32px; border-radius: var(--fr-radius-lg); color: #fff; background: radial-gradient(120% 140% at 0% 0%, #f07a5f 0%, var(--fr-accent) 45%, #a8331f 100%); box-shadow: var(--fr-shadow); }
.fr-invite__badge { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; height: 132px; border-radius: 50%; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.4); }
.fr-invite__badge strong { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.fr-invite__badge span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .9; margin-top: 4px; }
.fr-invite__intro h1 { color: #fff; margin: 0 0 8px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.fr-invite__intro p { margin: 0; font-size: 16px; opacity: .92; max-width: 620px; }
.fr-invite__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fr-invite__stats span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.18); font-size: 13px; font-weight: 600; }
.fr-invite__steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 20px 0; counter-reset: none; }
.fr-invite__steps li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--fr-surface); border: 1px solid var(--fr-border); border-radius: var(--fr-radius); font-weight: 500; }
.fr-invite__steps li span { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fr-accent-soft); color: var(--fr-accent-hover); font-weight: 800; }
.fr-invite__alert[hidden] { display: none; }
.fr-invite__card { background: var(--fr-surface); border: 1px solid var(--fr-border); border-radius: var(--fr-radius-lg); box-shadow: var(--fr-shadow-sm); padding: 24px; }
.fr-invite__card h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.fr-invite__card h3 { margin: 22px 0 10px; font-size: 14px; font-weight: 700; color: var(--fr-muted); text-transform: uppercase; letter-spacing: .06em; }
.fr-invite__create { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 24px; text-align: center; }
.fr-invite__create > .fa { font-size: 30px; color: var(--fr-accent); }
.fr-invite__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.fr-invite__link { display: flex; gap: 8px; }
.fr-invite__link input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--fr-border); border-radius: 10px; background: var(--fr-bg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--fr-ink); }
.fr-invite__link .btn { height: 44px; white-space: nowrap; }
.fr-invite__expires { margin: 8px 0 0; color: var(--fr-muted); font-size: 13px; }
.fr-invite__share { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-body .fr-share { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none !important; transition: filter .15s; }
.fr-share:hover { filter: brightness(1.08); }
.fr-share[hidden] { display: none; }
.fr-share--fb { background: #1877f2; }
.fr-share--x { background: #111; }
.fr-share--wa { background: #25d366; }
.fr-share--native { background: var(--fr-ink-2, #3f424a); }
.fr-invite__muted { color: var(--fr-muted); margin: -6px 0 14px; }
.fr-invite__sent { display: flex; gap: 8px; align-items: center; padding: 14px 16px; border-radius: var(--fr-radius); background: #e8f5ee; color: var(--fr-success); font-weight: 600; margin: 0; }
.fr-invite__rules { margin-top: 20px; padding: 20px 24px; border-radius: var(--fr-radius-lg); background: var(--fr-surface); border: 1px dashed var(--fr-border); }
.fr-invite__rules h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.fr-invite__rules ul { margin: 0; padding-left: 18px; color: var(--fr-muted); }
.fr-invite__rules li { margin: 4px 0; }
@media (max-width: 767px) {
  .fr-invite__hero { flex-direction: column; text-align: center; padding: 28px 20px; gap: 18px; }
  .fr-invite__badge { width: 104px; height: 104px; }
  .fr-invite__badge strong { font-size: 28px; }
  .fr-invite__stats { justify-content: center; }
  .fr-invite__steps, .fr-invite__grid { grid-template-columns: 1fr; }
  .fr-invite__card { padding: 20px; }
}

/* ---------- Upload ---------- */
.fr-upload { max-width: 1240px; padding-top: 28px; padding-bottom: 48px; }
.fr-upload__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.fr-upload__head h1 { margin: 0 0 4px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.fr-upload__head p { margin: 0; color: var(--fr-muted); }
.fr-upload__quota { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--fr-surface); border: 1px solid var(--fr-border); font-weight: 600; font-size: 14px; }
.fr-upload__quota .fa { color: var(--fr-accent); }
.fr-upload__quota.is-empty { background: var(--fr-accent-soft); border-color: transparent; color: var(--fr-accent-hover); }
.fr-upload__notice { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px; margin-bottom: 24px; border-radius: var(--fr-radius); background: var(--fr-accent-soft); color: var(--fr-ink); }
.fr-upload__notice .fa { color: var(--fr-accent); margin-top: 3px; }
.fr-upload__drop { margin-bottom: 28px; }
.fr-upload__drop .uppy-Dashboard-inner { border: 2px dashed var(--fr-border) !important; border-radius: var(--fr-radius-lg) !important; background: var(--fr-surface) !important; }
.fr-upload__drop .uppy-Dashboard-inner:hover, .fr-upload__drop .uppy-Dashboard--isDraggingOver .uppy-Dashboard-inner { border-color: var(--fr-accent) !important; background: var(--fr-accent-soft) !important; }
.fr-upload__drop .uppy-Dashboard-AddFiles { border: 0 !important; }
.fr-upload__drop .uppy-Dashboard-AddFiles-title { font-family: var(--fr-font); font-size: 18px; color: var(--fr-ink); }
.fr-upload__drop .uppy-Dashboard-browse { color: var(--fr-accent); font-weight: 700; }
.fr-upload__drop .uppy-Dashboard-note { color: var(--fr-muted); }
.fr-upload__work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: 28px; align-items: start; }
.fr-upload__drafts-head { display: flex; align-items: center; gap: 10px; }
.fr-upload__drafts-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.fr-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--fr-ink); color: #fff; font-size: 13px; font-weight: 700; }
.fr-upload__hint { color: var(--fr-muted); margin: 4px 0 14px; font-size: 14px; }
.fr-upload__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.fr-upload__thumb { position: relative; display: block; padding: 0; border: 0; border-radius: var(--fr-radius); overflow: hidden; background: var(--fr-border); aspect-ratio: 1; cursor: pointer; transition: transform .15s var(--fr-ease), box-shadow .15s var(--fr-ease); }
.fr-upload__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-upload__thumb:hover { transform: translateY(-2px); box-shadow: var(--fr-shadow); }
.fr-upload__thumb:focus-visible { outline: 3px solid var(--fr-accent); outline-offset: 2px; }
.fr-upload__thumb.picked { opacity: 1; border: 0; box-shadow: 0 0 0 3px var(--fr-surface), 0 0 0 6px var(--fr-accent); }
.fr-upload__grid:has(.picked) .fr-upload__thumb:not(.picked) { opacity: .7; }
.fr-upload__grid .fr-upload__thumb:hover { opacity: 1; }
.fr-upload__thumb.picked::after { content: "\f040"; font-family: FontAwesome; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; background: var(--fr-accent); color: #fff; font-size: 13px; }
.fr-upload__thumb.is-new { animation: fr-pop .35s var(--fr-ease); }
@keyframes fr-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.fr-upload__empty { display: flex; gap: 10px; align-items: center; padding: 28px; border: 1px dashed var(--fr-border); border-radius: var(--fr-radius); color: var(--fr-muted); background: var(--fr-surface); }
.fr-upload__empty[hidden] { display: none; }
.fr-upload__editor { position: sticky; top: calc(var(--fr-header-h) + 16px); background: var(--fr-surface); border: 1px solid var(--fr-border); border-radius: var(--fr-radius-lg); box-shadow: var(--fr-shadow-sm); padding: 20px; }
.fr-upload__alerts .alert { margin-bottom: 14px; }
.fr-upload__alerts .alert ul { margin: 0; padding-left: 18px; }
.fr-upload__alerts [hidden] { display: none; }
.fr-upload__placeholder { text-align: center; color: var(--fr-muted); padding: 48px 16px; }
.fr-upload__placeholder .fa { font-size: 32px; margin-bottom: 12px; color: var(--fr-border); }
.fr-upload__preview { margin: -20px -20px 18px; background: #111; border-radius: var(--fr-radius-lg) var(--fr-radius-lg) 0 0; overflow: hidden; display: flex; justify-content: center; }
.fr-upload__preview img { max-width: 100%; max-height: 300px; object-fit: contain; display: block; }
.fr-upload__form .form-group { margin-bottom: 14px; }
.fr-upload__form label { margin-bottom: 6px; }
.fr-upload__form .help-block { font-size: 13px; color: var(--fr-muted); margin: 6px 0 0; }
.fr-upload__form .fr-check-list { grid-template-columns: 1fr; }
.fr-upload__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--fr-border); }
.fr-upload__actions .btn-lg { padding: 10px 24px; font-size: 16px; }
.fr-body .fr-upload__delete { color: var(--fr-muted); padding-left: 0; }
.fr-body .fr-upload__delete:hover, .fr-body .fr-upload__delete:focus { color: #c0392b; text-decoration: none; }
.fr-body .fr-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 4px 0 6px; font-weight: 500; }
.fr-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fr-switch__track { position: relative; flex: 0 0 auto; width: 40px; height: 22px; border-radius: 999px; background: var(--fr-border); transition: background .15s; }
.fr-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--fr-shadow-sm); transition: transform .15s var(--fr-ease); }
.fr-switch input:checked + .fr-switch__track { background: var(--fr-accent); }
.fr-switch input:checked + .fr-switch__track::after { transform: translateX(18px); }
.fr-switch input:focus-visible + .fr-switch__track { outline: 3px solid var(--fr-accent-soft); outline-offset: 2px; }
@media (max-width: 991px) {
  .fr-upload__work { grid-template-columns: 1fr; }
  .fr-upload__editor { position: static; }
}
@media (max-width: 480px) {
  .fr-upload__grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .fr-upload__editor { padding: 16px; margin: 0 -8px; }
  .fr-upload__preview { margin: -16px -16px 16px; }
}

/* ---------- Surfaces ---------- */
.fr-body .panel, .fr-body .well, .fr-body .list-group-item:first-child, .fr-body .list-group-item:last-child { border-radius: var(--fr-radius); }
.fr-body .panel { border-color: var(--fr-border); box-shadow: var(--fr-shadow-sm); overflow: hidden; }
.fr-body .panel-default > .panel-heading { background: var(--fr-surface); border-color: var(--fr-border); color: var(--fr-ink); font-weight: 600; }
.fr-body .well { background: var(--fr-surface); border-color: var(--fr-border); box-shadow: var(--fr-shadow-sm); }
.fr-body .thumbnail { border-color: var(--fr-border); border-radius: var(--fr-radius); box-shadow: var(--fr-shadow-sm); }
.fr-body .list-group-item { border-color: var(--fr-border); }
.fr-body .table > thead > tr > th { border-bottom-width: 1px; color: var(--fr-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.fr-body .table > tbody > tr > td, .fr-body .table > thead > tr > th { border-color: var(--fr-border); }
.fr-body .alert { border-radius: var(--fr-radius); border: 0; box-shadow: var(--fr-shadow-sm); }
.fr-body .badge { border-radius: 999px; font-weight: 600; }
.fr-body .nav-tabs { border-bottom-color: var(--fr-border); }
.fr-body .nav-tabs > li > a { border-radius: 10px 10px 0 0; color: var(--fr-ink-2); }
.fr-body .nav-pills > li > a { border-radius: 999px; color: var(--fr-ink-2); }
.fr-body .nav-pills > li.active > a, .fr-body .nav-pills > li.active > a:hover, .fr-body .nav-pills > li.active > a:focus { background: var(--fr-ink); color: #fff; }
.fr-body .modal-content { border: 0; border-radius: var(--fr-radius-lg); box-shadow: var(--fr-shadow-lg); }
.fr-body .pagination > li > a, .fr-body .pagination > li > span { color: var(--fr-ink); border-color: var(--fr-border); }
.fr-body .pagination > .active > a, .fr-body .pagination > .active > span { background: var(--fr-ink); border-color: var(--fr-ink); }
.fr-body .pagination > li:first-child > a, .fr-body .pagination > li:first-child > span { border-radius: 10px 0 0 10px; }
.fr-body .pagination > li:last-child > a, .fr-body .pagination > li:last-child > span { border-radius: 0 10px 10px 0; }

/* ---------- Page heading + chips ---------- */
.fr-page-head { max-width: 1600px; margin: 0 auto; padding: 28px 16px 12px; }
.fr-page-head h1 { margin: 0 0 4px; }
.fr-page-head p { margin: 0; color: var(--fr-muted); font-size: 16px; }
.fr-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; margin: 0; list-style: none;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.fr-chips::-webkit-scrollbar { display: none; }
.fr-chips a {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--fr-border);
  background: var(--fr-surface); color: var(--fr-ink-2) !important; font-weight: 600; font-size: 14px;
  text-decoration: none !important;
}
.fr-chips a:hover { border-color: #cfcec9; color: var(--fr-ink) !important; }
.fr-chips a.is-active { background: var(--fr-ink); border-color: var(--fr-ink); color: #fff !important; }

/* ---------- Card grid / tiles ---------- */
.fr-section-title { margin: 40px 0 16px; }
.fr-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 16px; }
.fr-card-grid--featured { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.fr-tile {
  display: flex; flex-direction: column; background: var(--fr-surface); border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius-lg); overflow: hidden; box-shadow: var(--fr-shadow-sm);
  transition: transform .2s var(--fr-ease), box-shadow .2s var(--fr-ease);
}
.fr-tile:hover { transform: translateY(-3px); box-shadow: var(--fr-shadow); }
.fr-tile__media { display: block; aspect-ratio: 16 / 9; background: var(--fr-surface-2); overflow: hidden; }
.fr-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--fr-ease); }
.fr-tile:hover .fr-tile__media img { transform: scale(1.04); }
.fr-tile__body { padding: 16px 18px 20px; }
.fr-body .fr-tile__title { font-size: 18px; margin: 0 0 4px; }
.fr-tile__title a { color: var(--fr-ink) !important; }
.fr-tile__meta { color: var(--fr-muted); font-size: 13px; margin: 0 0 8px; }
.fr-tile__text { color: var(--fr-ink-2); font-size: 14px; }
.fr-tile--live { border-color: var(--fr-accent); box-shadow: 0 0 0 3px var(--fr-accent-soft); }
@media (max-width: 767px) {
  .fr-card-grid, .fr-card-grid--featured { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Photo gallery ---------- */
.container.large { width: 100%; max-width: 1600px; padding-left: 12px; padding-right: 12px; }
.gal-same-height { gap: 8px; padding-top: 8px; }
.gal-same-height > figure {
  margin: 0; border-radius: var(--fr-radius); overflow: hidden; background: var(--fr-surface-2);
  box-shadow: var(--fr-shadow-sm);
  transition: transform .25s var(--fr-ease), box-shadow .25s var(--fr-ease);
}
.gal-same-height > figure:hover { transform: translateY(-2px); box-shadow: var(--fr-shadow); }
.gal-overlay a.image img { padding: 0; transition: transform .6s var(--fr-ease); }
.gal-same-height > figure:hover .gal-overlay a.image img { transform: scale(1.03); }
.gal-topgradient, .gal-adult, .gal-top-contest { top: 0; }
.gal-bottomgradient { bottom: 0; height: 64px; display: flex; align-items: flex-end; padding: 0 10px 10px; }
.gal-topgradient { height: 72px; }
.gal-topgradient .box_l { padding: 12px 0 0 12px; font-weight: 600; }
.gal-topgradient .box_l a { font-size: 15px; }
.gal-bottomgradient .box_l, .gal-bottomgradient .box_r { float: none; height: auto; padding: 0; display: flex; align-items: center; gap: 8px; }
.gal-bottomgradient .box_l { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600; }
.gal-bottomgradient .box_l a { overflow: hidden; text-overflow: ellipsis; }
.gal-bottomgradient .box_r { flex: 0 0 auto; width: auto; gap: 12px; font-size: 13px; }
.gal-bottomgradient .box_l img { width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .85); object-fit: cover; }
.gal-top-contest .box_r { border-top-color: var(--fr-accent); }
.fr-body .gal-topgradient a, .fr-body .gal-bottomgradient a, .fr-body .gal-top-contest a,
.fr-body .overlag .underlag a, .fr-body .overlag .overlag-top a { color: #fff; }
.gal-adult { background: #2b2c31; display: grid; place-items: center; }
.gal-adult .adultText { bottom: auto; }
@media (hover: none) {
  .gal-topgradient, .gal-bottomgradient { opacity: 1; }
  .gal-same-height > figure:hover { transform: none; }
}
@media (max-width: 767px) {
  .gal-same-height { gap: 4px; }
  .gal-same-height > figure { border-radius: 6px; flex-basis: 40% !important; }
  .gal-topgradient { display: none; }
  .gal-bottomgradient { height: 44px; padding: 0 6px 6px; }
  .gal-bottomgradient .box_l img { display: none; }
}
.view-more-button { margin: 24px 0 8px; padding: 10px 22px; border-radius: 999px !important; }

/* ---------- Image detail ---------- */
.image-show-left { background: var(--fr-surface-2); padding-top: 20px; padding-bottom: 20px; }
.image-show-left .image-show { border-radius: var(--fr-radius-sm); box-shadow: var(--fr-shadow); }
.image-show-right { background: var(--fr-surface); padding-top: 20px; padding-bottom: 20px; }
.image-title h1 { font-size: 24px; margin: 4px 0 8px; word-wrap: break-word; }
.image-show-left .badge.text-info { background: var(--fr-surface); color: var(--fr-ink-2); border: 1px solid var(--fr-border); font-weight: 500; padding: 5px 10px; margin: 2px; }
@media (max-width: 1199px) {
  .image-show-right { border-top: 1px solid var(--fr-border); }
}
@media (min-width: 1281px) {
  .fr-image-page > .container-fluid > .row { display: flex; align-items: stretch; }
  .fr-image-page > .container-fluid > .row::before, .fr-image-page > .container-fluid > .row::after { display: none; }
  .fr-image-page .image-show-left { flex: 1 1 auto; width: auto; float: none; }
  .fr-image-page .image-show-right { position: static; flex: 0 0 340px; width: 340px; height: auto; overflow: visible; float: none; }
}

/* ---------- Front page ---------- */
.fr-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  color: #fff; background: #111;
}
.fr-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fr-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 12, .25) 0%, rgba(10, 10, 12, .35) 45%, rgba(10, 10, 12, .85) 100%);
}
.fr-hero__inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 120px 20px 72px; }
.fr-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); margin-bottom: 18px;
}
.fr-body .fr-hero h1 { color: #fff; font-size: clamp(34px, 6vw, 64px); line-height: 1.05; letter-spacing: -.03em; max-width: 14em; margin: 0 0 18px; }
.fr-hero__lead { font-size: clamp(16px, 1.8vw, 20px); max-width: 38em; color: rgba(255, 255, 255, .88); margin-bottom: 28px; }
.fr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fr-hero__credit {
  position: absolute; left: 20px; bottom: 14px; font-size: 12px; color: rgba(255, 255, 255, .75);
}
.fr-hero__credit a { color: rgba(255, 255, 255, .9) !important; }

.fr-section { padding: clamp(48px, 8vw, 96px) 20px; }
.fr-section__inner { max-width: 1200px; margin: 0 auto; }
.fr-section__head { max-width: 40em; margin-bottom: 36px; }
.fr-section__head p { color: var(--fr-muted); font-size: 17px; }

.fr-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fr-feature {
  display: block; background: var(--fr-surface); border: 1px solid var(--fr-border); border-radius: var(--fr-radius-lg);
  padding: 24px; color: var(--fr-ink) !important; text-decoration: none !important;
  transition: transform .2s var(--fr-ease), box-shadow .2s var(--fr-ease), border-color .2s;
}
.fr-feature:hover { transform: translateY(-3px); box-shadow: var(--fr-shadow); border-color: transparent; }
.fr-feature__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--fr-accent-soft); color: var(--fr-accent); font-size: 20px; margin-bottom: 16px;
}
.fr-feature h3 { margin: 0 0 6px; font-size: 18px; }
.fr-feature p { margin: 0; color: var(--fr-muted); }

.fr-join { position: relative; isolation: isolate; overflow: hidden; background: #111; }
.fr-join__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.fr-join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 12, .85), rgba(10, 10, 12, .35)); }
.fr-join .fr-section__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: center; }
.fr-join__copy { color: #fff; }
.fr-body .fr-join__copy h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); }
.fr-join__copy p { color: rgba(255, 255, 255, .85); font-size: 18px; }
.fr-join__copy p.small { font-size: 12px; color: rgba(255, 255, 255, .65); margin-top: 24px; }
.fr-card { background: var(--fr-surface); border-radius: var(--fr-radius-lg); box-shadow: var(--fr-shadow-lg); padding: 28px; }
.fr-card .form-group { margin-bottom: 14px; }
.fr-card label { font-size: 13px; margin-bottom: 4px; }
.fr-divider { display: flex; align-items: center; gap: 12px; color: var(--fr-muted); font-size: 13px; margin: 20px 0 14px; }
.fr-divider::before, .fr-divider::after { content: ""; flex: 1; height: 1px; background: var(--fr-border); }
.fr-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fr-social a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; border: 1px solid var(--fr-border); color: var(--fr-ink) !important; font-weight: 600; text-decoration: none !important; }
.fr-social a:hover { background: var(--fr-surface-2); }
.fr-card__foot { margin: 16px 0 0; text-align: center; color: var(--fr-muted); font-size: 14px; }
@media (max-width: 991px) {
  .fr-join .fr-section__inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 767px) {
  .fr-hero { min-height: 78vh; }
  .fr-hero__inner { padding: 96px 20px 56px; }
  .fr-hero__actions .btn { flex: 1 1 100%; }
  .fr-card { padding: 20px; }
}

/* ---------- Footer ---------- */
.fr-footer { clear: both; background: var(--fr-ink); color: rgba(255, 255, 255, .72); margin-top: 64px; padding: 56px 20px 28px; font-size: 14px; }
.fr-footer__inner { max-width: 1200px; margin: 0 auto; }
.fr-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.fr-footer .fr-brand span { color: #fff; }
.fr-footer p { max-width: 32em; margin-top: 12px; }
.fr-footer h2 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 14px; }
.fr-footer ul { list-style: none; padding: 0; margin: 0; }
.fr-footer li { margin-bottom: 8px; }
.fr-footer a { color: rgba(255, 255, 255, .78) !important; }
.fr-footer a:hover, .fr-footer a:focus { color: #fff !important; }
.fr-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.fr-footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 17px; }
.fr-footer__social a:hover { background: var(--fr-accent); }
.fr-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }
@media (max-width: 991px) {
  .fr-footer__grid { grid-template-columns: 1fr 1fr; }
  .fr-footer__brand { grid-column: 1 / -1; }
}

.scrollup {
  right: 24px; bottom: 96px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--fr-surface); color: var(--fr-ink) !important; box-shadow: var(--fr-shadow);
  text-align: center; line-height: 48px; z-index: 1020;
}
.scrollup .fa { font-size: 18px; line-height: 48px; }

/* ---------- Push notification prompt (floating, never pushes content) ---------- */
.fr-push-prompt {
  position: fixed; left: 20px; bottom: 20px; z-index: 1040; width: min(380px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start;
  padding: 16px; background: var(--fr-surface); border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius); box-shadow: var(--fr-shadow-lg);
  animation: fr-slide-up .35s var(--fr-ease) both;
}
.fr-push-prompt[hidden] { display: none; }
.fr-push-prompt__icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--fr-accent-soft); color: var(--fr-accent); font-size: 17px; }
.fr-push-prompt p { margin: 0; font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--fr-ink); }
.fr-push-prompt__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fr-slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .fr-push-prompt { left: 16px; right: 16px; width: auto; bottom: calc(var(--fr-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px); }
}

/* ---------- Private messages ---------- */
.fr-chat {
  --fr-chat-h: calc(100dvh - var(--fr-header-h) - 48px);
  max-width: 1200px; margin: 24px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; height: var(--fr-chat-h); min-height: 480px;
}
body:has(.fr-chat) .fr-footer { margin-top: 32px; }
.fr-chat__list, .fr-chat__pane {
  background: var(--fr-surface); border: 1px solid var(--fr-border); border-radius: var(--fr-radius-lg);
  box-shadow: var(--fr-shadow-sm); display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.fr-chat__list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 16px 8px; }
.fr-body .fr-chat__list-head h1 { font-size: 22px; margin: 0; }
.fr-chat__list-actions { display: flex; gap: 6px; align-items: center; }
.fr-icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  border: 1px solid var(--fr-border); background: var(--fr-surface); color: var(--fr-ink-2) !important; text-decoration: none !important;
}
.fr-icon-btn:hover { background: var(--fr-surface-2); color: var(--fr-ink) !important; }
.fr-body .fr-chat__search { margin: 4px 16px 8px; width: auto; height: 40px; border-radius: 999px; background: var(--fr-surface-2); border-color: transparent; }
.fr-conv-list { list-style: none; margin: 0; padding: 4px 8px 8px; overflow-y: auto; flex: 1; }
.fr-conv {
  display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px;
  color: var(--fr-ink) !important; text-decoration: none !important;
}
.fr-conv:hover { background: var(--fr-surface-2); }
.fr-conv.is-active { background: var(--fr-accent-soft); }
.fr-conv img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.fr-conv__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fr-conv__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.fr-conv__top strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-conv__top time { font-size: 12px; color: var(--fr-muted); flex: 0 0 auto; }
.fr-conv__snippet { font-size: 13px; color: var(--fr-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-chat__empty-list { text-align: center; color: var(--fr-muted); padding: 32px 16px; }
.fr-chat__empty-list .fa { font-size: 32px; margin-bottom: 8px; }
.fr-chat__pager { padding: 0 16px 12px; }
.fr-chat__pager .pagination { margin: 0; }

.fr-chat__pane-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--fr-border); }
.fr-chat__back { display: none; }
.fr-chat__who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--fr-ink) !important; text-decoration: none !important; flex: 1; }
.fr-chat__who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.fr-chat__who span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fr-chat__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-chat__who small { color: var(--fr-muted); }

.fr-chat__messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; background: var(--fr-bg); }
.fr-chat__day { text-align: center; margin: 12px 0 6px; }
.fr-chat__day span { display: inline-block; font-size: 12px; font-weight: 600; color: var(--fr-muted); background: var(--fr-surface); border: 1px solid var(--fr-border); padding: 2px 10px; border-radius: 999px; }
.fr-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.fr-msg--mine { align-self: flex-end; flex-direction: row-reverse; }
.fr-msg__avatar { flex: 0 0 32px; }
.fr-msg__avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.fr-msg__bubble {
  background: var(--fr-surface); border: 1px solid var(--fr-border); color: var(--fr-ink);
  border-radius: 18px 18px 18px 6px; padding: 8px 12px 6px; box-shadow: var(--fr-shadow-sm); min-width: 64px;
}
.fr-msg--mine .fr-msg__bubble { background: var(--fr-accent); border-color: var(--fr-accent); color: #fff; border-radius: 18px 18px 6px 18px; }
.fr-msg__text { white-space: normal; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.fr-msg__image { display: block; margin-top: 6px; }
.fr-msg__image img { max-width: 240px; border-radius: 12px; }
.fr-msg__time { display: block; text-align: right; font-size: 11px; opacity: .7; margin-top: 2px; }

.fr-chat__composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; padding: 12px 16px 8px; border-top: 1px solid var(--fr-border); background: var(--fr-surface); }
.fr-body .fr-chat__composer textarea { resize: none; min-height: 44px; max-height: 160px; border-radius: 22px; padding: 11px 16px; line-height: 1.4; }
.fr-chat__send { width: 44px; height: 44px; border-radius: 50% !important; padding: 0; display: grid; place-items: center; }
.fr-chat__hint { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--fr-muted); display: flex; justify-content: space-between; gap: 8px; min-height: 16px; }
.fr-chat__error { color: #c0392b; font-weight: 600; }
.fr-chat__disabled {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px;
  border-top: 1px solid var(--fr-border); background: var(--fr-surface-2); color: var(--fr-ink-2); font-size: 14px;
}
.fr-chat__disabled .fa { color: var(--fr-muted); font-size: 18px; }
.fr-chat__disabled p { margin: 0; flex: 1 1 240px; }
.fr-chat__disabled-note { font-size: 14px; color: var(--fr-ink-2); }

.fr-chat__placeholder { margin: auto; text-align: center; padding: 32px; color: var(--fr-muted); max-width: 360px; }
.fr-chat__placeholder .fa { font-size: 48px; color: var(--fr-border); margin-bottom: 12px; }
.fr-body .fr-chat__placeholder h2 { font-size: 20px; margin: 0 0 6px; }

@media (max-width: 767px) {
  .fr-chat { --fr-chat-h: calc(100dvh - var(--fr-header-h) - var(--fr-tabbar-h) - env(safe-area-inset-bottom, 0px)); grid-template-columns: 1fr; margin: 0; padding: 0; gap: 0; min-height: 0; }
  .fr-chat__list, .fr-chat__pane { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .fr-chat.has-thread .fr-chat__list { display: none; }
  .fr-chat:not(.has-thread) .fr-chat__pane { display: none; }
  .fr-chat__back { display: inline-grid; }
  .fr-chat__profile-btn { display: none; }
  .fr-msg { max-width: 88%; }
  body:has(.fr-chat) .fr-footer { display: none; }
}

/* ---------- Admin ---------- */
.adm-shell { --adm-side: 240px; display: grid; grid-template-columns: var(--adm-side) minmax(0, 1fr); min-height: calc(100vh - var(--fr-header-h)); }
.adm-sidebar {
  position: sticky; top: var(--fr-header-h); align-self: start; height: calc(100vh - var(--fr-header-h)); overflow-y: auto;
  background: var(--fr-surface); border-right: 1px solid var(--fr-border); padding: 16px 12px 32px;
}
.adm-sidebar__head { padding: 4px 8px 8px; }
.adm-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--fr-ink); color: #fff; }
.adm-nav__title { margin: 16px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fr-muted); }
.adm-nav { list-style: none; margin: 0; padding: 0; }
.adm-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 2px; border-radius: 10px;
  color: var(--fr-ink-2) !important; font-weight: 500; font-size: 14px; text-decoration: none !important;
}
.adm-nav a .fa { color: var(--fr-muted); }
.adm-nav a:hover { background: var(--fr-surface-2); color: var(--fr-ink) !important; }
.adm-nav a.is-active { background: var(--fr-ink); color: #fff !important; }
.adm-nav a.is-active .fa { color: #fff; }
.adm-mobilebar { display: none; }
.adm-backdrop { position: fixed; inset: 0; z-index: 1035; background: rgba(23, 24, 28, .4); }

.adm-main { padding: 24px clamp(16px, 3vw, 40px) 48px; min-width: 0; }
.adm-main > .container, .adm-main .container { width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
.adm-main .row { margin-left: 0; margin-right: 0; }
.adm-alerts:empty { display: none; }
.adm-main .table { background: var(--fr-surface); border-radius: var(--fr-radius); }
.adm-main .table > tbody > tr > td { vertical-align: middle; }
.adm-main .table img { max-width: 64px; height: auto; border-radius: 6px; }

.adm-page__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.adm-table-wrap { padding: 0; overflow-x: auto; }
.adm-search { display: flex; align-items: center; gap: 8px; position: relative; flex: 1 1 360px; max-width: 520px; margin: 0; }
.adm-search > .fa { position: absolute; left: 14px; color: var(--fr-muted); pointer-events: none; }
.fr-body .adm-search .form-control { padding-left: 38px; height: 40px; border-radius: 999px; }
.adm-search .btn { height: 40px; border-radius: 999px; flex: 0 0 auto; }
.adm-search__result { width: 100%; margin: -8px 0 0; color: var(--fr-muted); font-size: 14px; }
.adm-reco { padding: 14px 16px; }
.adm-reco__user { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.adm-reco__strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.adm-reco__item { position: relative; flex: 0 0 104px; height: 104px; border-radius: 10px; overflow: hidden; background: var(--fr-surface-2); }
.adm-reco__item img { width: 100%; height: 100%; object-fit: cover; }
.adm-reco__item span { position: absolute; right: 4px; bottom: 4px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .6); padding: 1px 6px; border-radius: 999px; }
.adm-table-wrap .table td.word-wrap { white-space: normal; min-width: 240px; }
.adm-table-wrap .table { margin: 0; display: table; }
.adm-table-compact th, .adm-table-compact td { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.adm-table-compact img { max-width: 40px !important; }
.adm-table-compact form { margin: 0; }
.adm-page__head h1 { margin: 0; }
.adm-page__head p { margin: 4px 0 0; color: var(--fr-muted); }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.adm-stat {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px;
  padding: 18px; background: var(--fr-surface); border: 1px solid var(--fr-border); border-radius: var(--fr-radius-lg);
  color: var(--fr-ink) !important; text-decoration: none !important; box-shadow: var(--fr-shadow-sm); transition: transform .15s, box-shadow .15s;
}
.adm-stat:hover { transform: translateY(-2px); box-shadow: var(--fr-shadow); }
.adm-stat__icon { grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--fr-accent-soft); color: var(--fr-accent); font-size: 20px; }
.adm-stat__label { font-size: 13px; color: var(--fr-muted); font-weight: 600; }
.adm-stat strong { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.adm-stat small { font-size: 12px; color: var(--fr-muted); }

.adm-card { background: var(--fr-surface); border: 1px solid var(--fr-border); border-radius: var(--fr-radius-lg); padding: 18px 20px; margin-bottom: 20px; box-shadow: var(--fr-shadow-sm); min-width: 0; }
.fr-body .adm-card__title { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.adm-card__title .fa { color: var(--fr-muted); }
.adm-card__more { margin-left: auto; font-size: 13px; font-weight: 600; }
.adm-count { font-size: 12px; background: var(--fr-accent); color: #fff; border-radius: 999px; padding: 1px 8px; }
.adm-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.adm-grid-2 .adm-card { margin-bottom: 0; }
.adm-grid-2 + .adm-card { margin-top: 20px; }
.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-list__item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--fr-border); }
.adm-list__item:first-child { border-top: 0; }
.adm-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-list__main small { color: var(--fr-muted); }
.adm-list__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-list__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.adm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.adm-photo { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--fr-surface-2); }
.adm-photo img { width: 100%; height: 100%; object-fit: cover; }
.adm-photo__meta { position: absolute; inset: auto 0 0 0; padding: 24px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; display: flex; flex-direction: column; font-size: 12px; }
.adm-photo__meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.adm-photo__flag { position: absolute; top: 8px; left: 8px; background: #c0392b; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }

@media (max-width: 991px) {
  .adm-shell { grid-template-columns: minmax(0, 1fr); }
  .adm-mobilebar {
    display: block; position: sticky; top: var(--fr-header-h); z-index: 1020;
    background: var(--fr-surface); border-bottom: 1px solid var(--fr-border); padding: 8px 16px;
  }
  .adm-mobilebar__toggle { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--fr-border); background: var(--fr-surface); font-weight: 600; color: var(--fr-ink); }
  .adm-mobilebar__toggle strong { font-weight: 500; color: var(--fr-muted); }
  .adm-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: min(280px, 85vw); z-index: 1040;
    transform: translateX(-100%); visibility: hidden; transition: transform .25s var(--fr-ease), visibility .25s;
  }
  .adm-menu-open .adm-sidebar { transform: none; visibility: visible; box-shadow: var(--fr-shadow-lg); }
  .adm-main { padding: 16px 12px 40px; }
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .adm-stat { grid-template-columns: 1fr; padding: 14px; }
  .adm-stat__icon { grid-row: auto; width: 36px; height: 36px; font-size: 16px; margin-bottom: 8px; }
  .adm-stat strong { font-size: 24px; }
  .adm-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .adm-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .adm-main .table { display: block; overflow-x: auto; white-space: nowrap; }
  .adm-main [class*="col-lg-offset"], .adm-main [class*="col-md-offset"] { margin-left: 0; }
}

/* ---------- Error pages ---------- */
.fr-error { max-width: 560px; margin: 0 auto; padding: clamp(48px, 10vh, 120px) 20px; text-align: center; }
.fr-error__icon { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 24px; display: grid; place-items: center; background: var(--fr-accent-soft); color: var(--fr-accent); font-size: 40px; }
.fr-body .fr-error h1 { margin: 0 0 10px; }
.fr-error p { color: var(--fr-muted); font-size: 17px; margin: 0 auto 24px; }
.fr-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fr-error__search { display: flex; gap: 8px; max-width: 420px; margin: 0 auto 20px; }
.fr-body .fr-error__search .form-control { border-radius: 999px; }
.fr-error__search .btn { border-radius: 999px; width: 44px; padding: 0; }

/* ---------- Admin: email preview ---------- */
.adm-mails { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.adm-mails__list { padding: 8px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.adm-mails__list .adm-nav__title:first-child { margin-top: 8px; }
.adm-mails__link { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--fr-ink) !important; text-decoration: none !important; }
.adm-mails__link:hover { background: var(--fr-bg); }
.adm-mails__link.active { background: var(--fr-accent-soft); color: var(--fr-accent-hover) !important; font-weight: 600; }
.adm-mails__preview { padding: 0; overflow: hidden; }
.adm-mails__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--fr-border); }
.adm-mails__bar form { margin: 0; }
.adm-mails__subject { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; }
.adm-mails__subject small { color: var(--fr-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.adm-mails__subject strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-mails__frame { background: #eef0f3; padding: 16px; display: flex; justify-content: center; }
.adm-mails__frame iframe { width: 100%; height: 75vh; border: 0; background: #fff; border-radius: 8px; box-shadow: var(--fr-shadow-sm); transition: width .2s var(--fr-ease); }
@media (max-width: 900px) {
  .adm-mails { grid-template-columns: 1fr; }
  .adm-mails__list { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .adm-mails__list .adm-nav__title { width: 100%; margin: 8px 4px 2px; }
  .adm-mails__frame { padding: 8px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
