/*
 * Hosts and partner stays: "List your property", the host area (identity
 * check, properties, rooms, bookings, earnings) and the public property page.
 *
 * Built on the site tokens (--fl-primary, --fl-heading, --fl-border …) so it
 * reads as the same site, and mobile first: every grid collapses to one
 * column, the step bar scrolls sideways, tables become cards.
 */

/* ------------------------------------------------------------------ *
 * Shell: page head, side navigation, cards
 * ------------------------------------------------------------------ */

.fh-head {
  background:
    radial-gradient(900px 300px at 10% -20%, rgba(99, 171, 69, 0.16), transparent 60%),
    radial-gradient(700px 300px at 95% 0%, rgba(247, 146, 30, 0.12), transparent 60%),
    var(--fl-gray);
  border-bottom: 1px solid var(--fl-border);
  padding: 36px 0 28px;
}
.fh-head h1 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 6px; }
.fh-head p { margin: 0; font-size: 15px; }
.fh-head .fh-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fl-primary);
  margin-bottom: 8px;
}

/*
 * minmax(0, …) rather than 1fr: a plain 1fr track grows to its widest child,
 * and the step bar and the nav strip refuse to wrap by design — on a phone
 * that pushed every form past the right edge of the screen.
 */
.fh-shell {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  padding: 32px 0 72px;
}
.fh-shell > * { min-width: 0; }
@media (min-width: 992px) {
  .fh-shell { grid-template-columns: 230px minmax(0, 1fr); }
}

.fh-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px 4px;
}
.fh-nav::-webkit-scrollbar { display: none; }
@media (min-width: 992px) {
  .fh-nav { flex-direction: column; margin: 0; padding: 0; position: sticky; top: 24px; align-self: start; }
}
.fh-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--fl-heading);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
}
.fh-nav a i { font-size: 19px; color: var(--fl-text); }
.fh-nav a:hover { background: var(--fl-gray); color: var(--fl-heading); }
.fh-nav a.is-active { background: var(--fh-surface, #fff); border-color: var(--fl-border); box-shadow: 0 6px 18px rgba(28, 35, 31, 0.06); }
.fh-nav a.is-active i { color: var(--fl-primary); }
.fh-nav .fh-nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(247, 146, 30, 0.14);
  color: #b45f0f;
}

.fh-card {
  background: var(--fh-surface, #fff);
  border: 1px solid var(--fl-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(28, 35, 31, 0.05);
  margin-bottom: 22px;
  overflow: hidden;
}
.fh-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--fl-border);
}
.fh-card-head h2 { font-size: 19px; margin: 0; }
.fh-card-head p { margin: 4px 0 0; font-size: 14px; }
.fh-card-body { padding: 22px 24px; }
@media (max-width: 575px) {
  .fh-card-head, .fh-card-body { padding-left: 16px; padding-right: 16px; }
}

/* ------------------------------------------------------------------ *
 * The identity-check steps
 * ------------------------------------------------------------------ */

.fh-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.fh-steps::-webkit-scrollbar { display: none; }
.fh-steps li { flex: 1 0 auto; }
.fh-steps a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--fl-border);
  background: var(--fh-surface, #fff);
  color: var(--fl-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.fh-steps .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fl-gray);
  color: var(--fl-heading);
  font-size: 13px;
  font-weight: 700;
}
.fh-steps .is-done .n { background: rgba(99, 171, 69, 0.15); color: var(--fl-primary); }
.fh-steps .is-current a { border-color: var(--fl-primary); color: var(--fl-heading); box-shadow: 0 0 0 3px rgba(99, 171, 69, 0.14); }
.fh-steps .is-current .n { background: var(--fl-primary); color: #fff; }

/* ------------------------------------------------------------------ *
 * Forms
 * ------------------------------------------------------------------ */

.fh-grid { display: grid; gap: 18px 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .fh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-grid .is-wide { grid-column: 1 / -1; }
  .fh-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fh-field label,
.fh-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fl-heading);
  margin-bottom: 7px;
}
.fh-field label small,
.fh-label small { font-weight: 500; color: var(--fl-text); }
.fh-field input[type="text"],
.fh-field input[type="email"],
.fh-field input[type="tel"],
.fh-field input[type="password"],
.fh-field input[type="number"],
.fh-field input[type="date"],
.fh-field input[type="time"],
.fh-field select,
.fh-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--fh-input-border, #d7dcd9);
  border-radius: 10px;
  background: var(--fh-surface, #fff);
  color: var(--fl-heading);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fh-field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.fh-field input:focus,
.fh-field select:focus,
.fh-field textarea:focus {
  outline: 0;
  border-color: var(--fl-primary);
  box-shadow: 0 0 0 3px rgba(99, 171, 69, 0.18);
}
.fh-field .fh-hint { font-size: 13px; margin-top: 6px; line-height: 1.5; }
.fh-field .fh-error { font-size: 13px; margin-top: 6px; color: #c0392b; font-weight: 600; }
.fh-field.has-error input,
.fh-field.has-error select,
.fh-field.has-error textarea { border-color: #d8473f; }

/* A field with a fixed prefix, like a currency. */
.fh-affix { display: flex; }
.fh-affix span {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--fh-input-border, #d7dcd9);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: var(--fl-gray);
  font-weight: 700;
  font-size: 14px;
}
.fh-affix input { border-radius: 0 10px 10px 0 !important; }

/* Big choice cards, used as radios: individual or company. */
.fh-choices { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .fh-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fh-choice { position: relative; display: block; cursor: pointer; }
.fh-choice input { position: absolute; opacity: 0; }
.fh-choice span {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--fh-input-border, #d7dcd9);
  border-radius: 12px;
  background: var(--fh-surface, #fff);
}
.fh-choice strong { display: block; color: var(--fl-heading); margin-bottom: 2px; }
.fh-choice small { font-size: 13px; }
.fh-choice input:checked + span { border-color: var(--fl-primary); box-shadow: 0 0 0 3px rgba(99, 171, 69, 0.16); }
.fh-choice input:focus-visible + span { outline: 2px solid var(--fl-primary); outline-offset: 2px; }

.fh-checks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.fh-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.fh-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--fl-primary); flex: 0 0 auto; }

.fh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-top: 1px solid var(--fl-border);
  background: var(--fh-muted, #fbfcfb);
}
@media (max-width: 575px) {
  .fh-actions { padding: 16px; }
  .fh-actions .btn-theme { width: 100%; justify-content: center; }
}
.fh-link-back { font-weight: 600; color: var(--fl-text); }

.fh-secure {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fl-text);
}
.fh-secure i { color: var(--fl-primary); font-size: 18px; }

/* ------------------------------------------------------------------ *
 * Document uploads
 * ------------------------------------------------------------------ */

.fh-docs { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .fh-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fh-doc {
  border: 1px solid var(--fl-border);
  border-radius: 14px;
  padding: 16px;
  background: var(--fh-surface, #fff);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fh-doc.is-done { border-color: rgba(99, 171, 69, 0.45); background: rgba(99, 171, 69, 0.06); }
.fh-doc-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.fh-doc-head strong { color: var(--fl-heading); font-size: 15px; }
.fh-doc-head p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; }
.fh-doc-file { display: flex; gap: 8px; align-items: center; font-size: 13px; word-break: break-all; }
.fh-doc-file i { color: var(--fl-primary); font-size: 18px; }
.fh-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 14px;
  border: 1.5px dashed #c3ccc6;
  border-radius: 10px;
  background: var(--fl-gray);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--fl-heading);
}
.fh-drop:hover, .fh-drop:focus-within { border-color: var(--fl-primary); color: var(--fl-primary); }
.fh-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ------------------------------------------------------------------ *
 * Status pills, stats, lists
 * ------------------------------------------------------------------ */

.fh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--fl-gray);
  color: var(--fl-heading);
  white-space: nowrap;
}
.fh-pill.is-good { background: rgba(99, 171, 69, 0.14); color: #3f7f24; }
.fh-pill.is-wait { background: rgba(247, 146, 30, 0.14); color: #a0560d; }
.fh-pill.is-bad { background: rgba(216, 71, 63, 0.12); color: #b2352d; }

.fh-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 22px; }
.fh-stat { background: var(--fh-surface, #fff); border: 1px solid var(--fl-border); border-radius: 14px; padding: 16px 18px; }
.fh-stat span { display: block; font-size: 13px; font-weight: 600; }
.fh-stat strong { display: block; font-size: 22px; color: var(--fl-heading); margin-top: 4px; font-variant-numeric: tabular-nums; }

.fh-list { list-style: none; margin: 0; padding: 0; }
.fh-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--fl-border);
}
.fh-list li:last-child { border-bottom: 0; }
.fh-list .sub { font-size: 13px; color: var(--fl-text); }

.fh-missing { margin: 0; padding-left: 20px; }
.fh-missing li { margin: 4px 0; }

.fh-empty { text-align: center; padding: 34px 16px; }
.fh-empty i { font-size: 42px; color: var(--fl-primary); }
.fh-empty h3 { margin: 10px 0 6px; font-size: 19px; }

/* Tables that become stacked cards on a phone. */
.fh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fh-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fl-text); padding: 10px 12px; border-bottom: 1px solid var(--fl-border); }
.fh-table td { padding: 12px; border-bottom: 1px solid var(--fl-border); vertical-align: top; }
.fh-table .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .fh-table thead { display: none; }
  .fh-table, .fh-table tbody, .fh-table tr, .fh-table td { display: block; width: 100%; }
  .fh-table tr { border: 1px solid var(--fl-border); border-radius: 12px; margin-bottom: 12px; padding: 6px 0; }
  .fh-table td { border: 0; display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; }
  .fh-table td::before { content: attr(data-label); font-weight: 600; color: var(--fl-text); }
  .fh-table .num { text-align: right; }
}

/* ------------------------------------------------------------------ *
 * Property management
 * ------------------------------------------------------------------ */

.fh-props { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fh-prop { border: 1px solid var(--fl-border); border-radius: 14px; overflow: hidden; background: var(--fh-surface, #fff); display: flex; flex-direction: column; }
.fh-prop-media { aspect-ratio: 16 / 10; background: var(--fl-gray); display: flex; align-items: center; justify-content: center; }
.fh-prop-media img { width: 100%; height: 100%; object-fit: cover; }
.fh-prop-media i { font-size: 40px; color: #b7c0bb; }
.fh-prop-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fh-prop-body h3 { font-size: 17px; margin: 0; }

.fh-photos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-bottom: 16px; }
.fh-photo { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--fl-border); }
.fh-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fh-photo.is-cover { border-color: var(--fl-primary); box-shadow: 0 0 0 2px rgba(99, 171, 69, 0.3); }
.fh-photo-bar { display: flex; gap: 6px; justify-content: space-between; align-items: center; padding: 6px 8px; font-size: 12px; background: var(--fh-surface, #fff); }
.fh-photo-bar button { background: none; border: 0; padding: 2px 4px; font-size: 12px; font-weight: 600; color: var(--fl-heading); cursor: pointer; }
.fh-photo-bar button.is-danger { color: #b2352d; }

.fh-room { border: 1px solid var(--fl-border); border-radius: 14px; margin-bottom: 14px; background: var(--fh-surface, #fff); }
.fh-room > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}
.fh-room > summary::-webkit-details-marker { display: none; }
.fh-room > summary strong { color: var(--fl-heading); font-size: 16px; }
.fh-room-body { padding: 4px 18px 18px; border-top: 1px solid var(--fl-border); }
.fh-closures { margin: 14px 0 0; }

.fh-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--fl-border);
  background: var(--fh-surface, #fff);
  color: var(--fl-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.fh-btn-ghost:hover { border-color: var(--fl-primary); color: var(--fl-primary); }
.fh-btn-danger { color: #b2352d; }

/* ------------------------------------------------------------------ *
 * "List your property"
 * ------------------------------------------------------------------ */

.fh-hero { padding: 56px 0 48px; }
.fh-hero-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .fh-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.fh-hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; margin: 0 0 16px; }
.fh-hero .lead { font-size: 18px; line-height: 1.7; margin: 0 0 24px; }
.fh-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.fh-points li { display: flex; gap: 14px; align-items: flex-start; }
.fh-points i {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  background: rgba(99, 171, 69, 0.12);
  color: var(--fl-primary);
}
.fh-points strong { display: block; color: var(--fl-heading); }
.fh-how { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: how; }
.fh-how div { background: var(--fh-surface, #fff); border: 1px solid var(--fl-border); border-radius: 14px; padding: 18px; counter-increment: how; }
.fh-how div::before { content: counter(how); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--fl-primary); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.fh-how strong { display: block; color: var(--fl-heading); margin-bottom: 4px; }

/* ------------------------------------------------------------------ *
 * The public property page
 * ------------------------------------------------------------------ */

.fs-gallery { display: grid; gap: 8px; grid-template-columns: 1fr; border-radius: 16px; overflow: hidden; margin: 0 0 26px; }
@media (min-width: 768px) {
  .fs-gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; }
  .fs-gallery a:first-child { grid-row: span 2; }
}
.fs-gallery a { display: block; background: var(--fl-gray); }
.fs-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px; }
@media (max-width: 767px) { .fs-gallery a:nth-child(n+2) { display: none; } }

.fs-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.fs-layout > * { min-width: 0; }
@media (min-width: 992px) { .fs-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.fs-aside { position: sticky; top: 20px; }

.fs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(99, 171, 69, 0.14);
  color: #3f7f24;
}
.fs-amenities { display: grid; gap: 10px 18px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); list-style: none; padding: 0; margin: 0; }
.fs-amenities li { display: flex; gap: 8px; align-items: center; }
.fs-amenities i { color: var(--fl-primary); font-size: 18px; }

.fs-room { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 18px 0; border-bottom: 1px solid var(--fl-border); }
@media (min-width: 640px) { .fs-room { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.fs-room h3 { font-size: 18px; margin: 0 0 4px; }
.fs-room-price { text-align: left; }
@media (min-width: 640px) { .fs-room-price { text-align: right; } }
.fs-room-price strong { display: block; font-size: 20px; color: var(--fl-heading); }
.fs-room-price small { display: block; font-size: 13px; }

.fs-summary { list-style: none; margin: 0; padding: 0; }
.fs-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--fl-border); font-size: 15px; }
.fs-summary li:last-child { border-bottom: 0; }
.fs-summary .is-total { font-weight: 700; color: var(--fl-heading); font-size: 17px; }

/* A partner property among the hotel search results. */
.fl-hotel.is-partner { border-color: rgba(99, 171, 69, 0.55); box-shadow: 0 0 0 2px rgba(99, 171, 69, 0.12); }
.fl-hotel .fs-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--fh-surface, #fff); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.fl-hotel-media { position: relative; }

/* ------------------------------------------------------------------ *
 * The host app: the back office's shell, in Flipside green
 *
 * The host pages above were written against the public site's tokens; inside
 * the app shell those are mapped onto the shell's own, so the same components
 * follow its light and dark themes.
 * ------------------------------------------------------------------ */

.fh-app {
  --primary: #3f8a2a;
  --primary-hover: #357423;
  --primary-active: #2c611d;
  --sidebar-primary: #3f8a2a;
  --ring: #4f9235;
  --accent: #e8f4e2;
  --accent-foreground: #2c611d;

  --fl-primary: var(--primary);
  --fl-secondary: #f7921e;
  --fl-heading: var(--foreground);
  --fl-text: var(--muted-foreground);
  --fl-gray: var(--muted);
  --fl-border: var(--border);
  --fh-surface: var(--card);
  --fh-input-border: var(--input);
  --fh-muted: var(--muted);
}
:root[data-theme="dark"] .fh-app {
  --primary: #4f9235;
  --primary-hover: #5ca63f;
  --primary-active: #3f8a2a;
  --sidebar-primary: #6db552;
  --accent: rgba(99, 171, 69, 0.18);
  --accent-foreground: #a6d993;
}

.fh-app .fh-add { margin: 14px 0 4px; justify-content: center; }
.fh-app-crumb { font-weight: 600; color: var(--muted-foreground); font-size: 14px; }

/* The public site's main button, drawn as the shell's primary button. */
.fh-app .btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.fh-app .btn-theme:hover { background: var(--primary-hover); color: var(--primary-foreground); }
.fh-app .btn-theme:disabled { opacity: 0.5; cursor: not-allowed; }
.fh-app a { color: var(--primary); }
.fh-app .fh-card { box-shadow: none; border-radius: var(--radius-xl); }
.fh-app .fh-field select,
.fh-app .fh-field input,
.fh-app .fh-field textarea { color: var(--foreground); }

/* Dashboard */
.fh-kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 20px; }
.fh-kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 16px 18px; }
.fh-kpi span { display: block; font-size: 13px; color: var(--muted-foreground); font-weight: 500; }
.fh-kpi strong { display: block; font-family: var(--font-heading); font-size: 26px; line-height: 1.2; margin-top: 6px; color: var(--foreground); font-variant-numeric: tabular-nums; }
.fh-kpi small { display: block; font-size: 12px; color: var(--muted-foreground); margin-top: 4px; }
.fh-chart-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) { .fh-chart-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.fh-occupancy { display: grid; gap: 14px; }
.fh-occupancy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: 14px; }
.fh-occupancy-track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.fh-occupancy-track span { display: block; height: 100%; border-radius: 999px; background: #4f9235; }
.fh-occupancy-row strong { font-variant-numeric: tabular-nums; }
.fh-table-toggle { margin-top: 10px; font-size: 13px; }
.fh-table-toggle summary { cursor: pointer; color: var(--muted-foreground); }

/* The earnings chart: wide on a desk, its narrow twin on a phone. */
.fh-chart { display: block; width: 100%; height: auto; }
.fh-chart-narrow { display: none; }
@media (max-width: 640px) {
  .fh-chart-wide { display: none; }
  .fh-chart-narrow { display: block; }
}
.fh-app .fh-table .sub { color: var(--muted-foreground); font-size: 0.8125rem; }

/* Amenities as tiles with their icon; ticked ones light up. */
.fh-amenity-group { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.fh-amenity-group:last-child { margin-bottom: 0; }
.fh-amenity-group legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fl-text); opacity: .75; }
.fh-amenities { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 575px) { .fh-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .fh-amenity span { padding-left: 10px; padding-right: 10px; font-size: 14px; } }
.fh-amenity { position: relative; cursor: pointer; display: block; }
.fh-amenity input { position: absolute; opacity: 0; }
.fh-amenity > span { height: 100%; box-sizing: border-box; }
.fh-amenity span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--fh-input-border, #d7dcd9);
  border-radius: 10px;
  background: var(--fh-surface, #fff);
  font-size: 14px;
  color: var(--fl-heading);
  transition: border-color 0.15s, background 0.15s;
}
.fh-amenity i { font-size: 20px; color: var(--fl-text); }
.fh-amenity input:checked + span { border-color: var(--fl-primary); background: rgba(99, 171, 69, 0.1); font-weight: 600; }
.fh-amenity input:checked + span i { color: var(--fl-primary); }
.fh-amenity input:focus-visible + span { outline: 2px solid var(--fl-primary); outline-offset: 2px; }

/* ------------------------------------------------------------------ *
 * Progress and loading (flipside-host.js)
 * ------------------------------------------------------------------ */

.fh-topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 3px;
  width: 0;
  background: #4f9235;
  box-shadow: 0 0 8px rgba(79, 146, 53, 0.6);
  opacity: 0;
  transition: width 2.4s cubic-bezier(0.1, 0.7, 0.2, 1), opacity 0.3s;
  pointer-events: none;
}
.fh-topbar.is-running { opacity: 1; }
.fh-topbar.is-done { transition: width 0.25s ease, opacity 0.4s ease 0.25s; opacity: 0; }

.fh-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: fh-spin 0.7s linear infinite;
}
button.is-loading { cursor: progress !important; opacity: 0.85; }
@keyframes fh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .fh-spinner { animation-duration: 2s; }
  .fh-topbar { transition: none; }
}

.fh-upload-meter { height: 6px; border-radius: 999px; background: var(--fl-gray); overflow: hidden; margin-top: 8px; }
.fh-upload-meter span { display: block; height: 100%; width: 0; background: #4f9235; transition: width 0.2s ease; }
form.is-uploading .fh-drop { border-style: solid; border-color: var(--fl-primary); cursor: progress; }
.fh-upload-error { color: #c0392b; font-size: 13px; font-weight: 600; margin-top: 6px; }

.fh-progress { margin: 0 0 18px; }
.fh-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; margin-bottom: 8px; }
.fh-progress-head strong { color: var(--fl-heading); }
.fh-progress-head [data-progress-text] { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--fl-primary); }
.fh-progress-track { height: 10px; border-radius: 999px; background: var(--fl-gray); overflow: hidden; }
.fh-progress-track span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #4f9235, #63ab45); transition: width 0.35s ease; }
.fh-progress.is-complete [data-progress-text]::after { content: ' ✓'; }
.fh-checklist { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 13px; color: var(--fl-text); }
.fh-checklist span { display: inline-flex; align-items: center; gap: 6px; }
.fh-checklist .is-ok { color: var(--fl-heading); }
.fh-checklist .is-ok i { color: #4f9235; }

/* ------------------------------------------------------------------ *
 * Earnings: balances, withdrawing, payout methods
 * ------------------------------------------------------------------ */

.fh-wallet-grid { display: grid; gap: 18px; padding: 22px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .fh-wallet-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; } }
.fh-wallet-label { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fh-wallet-amount { display: block; font-size: 36px; line-height: 1.15; margin: 6px 0 4px; color: var(--fl-heading); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fh-wallet-sub { font-size: 14px; }
.fh-wallet-side { display: grid; gap: 10px; }
.fh-wallet-side > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--fh-muted, #fbfcfb); border: 1px solid var(--fl-border); font-size: 14px; }
.fh-wallet-side strong { color: var(--fl-heading); font-variant-numeric: tabular-nums; }

.fh-withdraw { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; width: 100%; }
.fh-withdraw .fh-field { flex: 1 1 260px; min-width: 0; }
.fh-withdraw .btn-theme { min-height: 50px; }
@media (max-width: 575px) { .fh-withdraw .btn-theme { width: 100%; justify-content: center; } }

.fh-method-line { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.fh-method-line > i { font-size: 24px; color: var(--fl-primary); flex: 0 0 auto; margin-top: 2px; }
.fh-method-line > span { min-width: 0; overflow-wrap: anywhere; }
.fh-methods { margin-bottom: 16px; }

.fh-channels { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); margin-bottom: 18px; }
.fh-channels .fh-choice span { height: 100%; box-sizing: border-box; }
.fh-channels .fh-choice i { display: block; font-size: 26px; color: var(--fl-primary); margin-bottom: 6px; }
.fh-channel-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.fh-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dashboard-nav__link.is-locked { opacity: 0.6; cursor: not-allowed; }
.dashboard-nav__link.is-locked:hover { background: none; }
.fh-nav-lock { font-size: 15px; color: var(--muted-foreground); }
.fh-field .fl-phone > .fl-phone-cc { width: 9.5rem; }

/* ------------------------------------------------------------------ *
 * Profile and security: one block per second factor
 * ------------------------------------------------------------------ */
.fh-factor { padding: 18px 0; border-top: 1px solid var(--fl-border); }
.fh-factor:first-child { padding-top: 0; border-top: 0; }
.fh-factor-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.fh-factor-head > i { font-size: 28px; color: var(--fl-primary); flex: 0 0 auto; }
.fh-factor-head h3 { margin: 0 0 2px; font-size: 16px; color: var(--fl-heading); }
.fh-factor-head p { margin: 0; font-size: 14px; }
.fh-factor .fh-list { margin-bottom: 14px; }
.fh-passkey-add { margin-top: 6px; }
.fh-inline-confirm { display: inline-block; }
.fh-inline-confirm > summary { list-style: none; cursor: pointer; display: inline-flex; }
.fh-inline-confirm > summary::-webkit-details-marker { display: none; }
.fh-inline-confirm form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.fh-inline-confirm input[type="password"] {
  min-height: 42px; padding: 8px 12px; border: 1px solid var(--fh-input-border, #d7dcd9); border-radius: 10px;
  background: var(--fh-surface, #fff); color: var(--fl-heading); font: inherit; font-size: 14px; min-width: 0; flex: 1 1 180px;
}
