/* /guides/styles.css */
:root{
  --bg-x: 0px;
  --bg-y: 0px;
  --zoom: 1;

  --panel: rgba(10, 12, 16, 0.78);
  --panel2: rgba(10, 12, 16, 0.88);
  --line: rgba(255,255,255,0.12);
  --line2: rgba(255,255,255,0.18);
  --txt: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.66);
  --hover: rgba(255,255,255,0.06);

  --bg-overlay: rgba(0,0,0,0.58);

  --stickybg: rgba(8, 10, 13, 0.985);
  --stickybg-hover: rgba(12, 14, 18, 0.985);

  /* fluid sizing */
  --fs-base: clamp(14px, 0.55vw + 12px, 18px);
  --fs-sm:   clamp(12px, 0.35vw + 10px, 16px);
  --fs-lg:   clamp(16px, 0.85vw + 12px, 24px);
  --ui-add: 0px;
}

html,body{
  height:100%;
  margin:0;
  background: #05070a;
}

html{
  font-size: calc(var(--fs-base) + var(--ui-add));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  color: var(--txt);
  background: transparent;
  image-rendering: pixelated;
  position: relative;
  font-size: 1rem;
  line-height: 1.35;
}

/* Fixed background layer (same behavior as guilds) */
.bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("https://myfo2.com/zones/noob-island.png");
  background-repeat: no-repeat;

  background-size: calc(4096px / var(--zoom)) calc(3072px / var(--zoom));
  background-position: var(--bg-x) var(--bg-y);
  background-color: #05070a;
  image-rendering: pixelated;
}
.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: var(--bg-overlay);
  pointer-events:none;
}

.wrap{
  margin: 0 auto;
  padding: 14px;
  position: relative;
  z-index: 1;
}

.panel{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 54px rgba(0,0,0,0.28);
}

.muted{ color: var(--muted); }

.btn{
  font-family: inherit;
  font-size: 0.7rem;
  color: var(--txt);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: var(--line2);
  transform: translateY(-1px);
}
.btn:active{ transform: translateY(0px); }

.search{
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--txt);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 9px 10px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.search::placeholder{ color: rgba(255,255,255,0.45); }

/* Shell */
.guides-shell{
  margin-top: 10px;
}

/* Mobile top bar */
.guides-mobilebar{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.mobilebar-title{
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* Layout */
.guides-layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 10px;
  align-items:start;
}

/* Sidebar */
.guides-sidebar{
  padding: 12px;
  position: sticky;
  top: 10px;
  height: calc(100vh - 20px);
  overflow: auto;
}

.sidebar-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 10px;
}

.sidebar-title{
  font-size: 0.95rem;
  letter-spacing: .2px;
}

.sidebar-close{
  display:none; /* desktop hidden */
}

.sidebar-search{
  margin-bottom: 10px;
}

.sidebar-nav{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.cat-block{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.16);
  border-radius: 12px;
  overflow:hidden;
}

.cat-head{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  border: 0;
  background: rgba(255,255,255,0.03);
  color: var(--txt);
  padding: 10px 10px;
  cursor:pointer;
  font-family: inherit;
}
.cat-name{
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.cat-chev{
  opacity: 0.8;
  transition: transform 160ms ease;
}
.cat-block.is-collapsed .cat-chev{ transform: rotate(-90deg); }

.cat-items{
  padding: 6px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.cat-block.is-collapsed .cat-items{ display:none; }

.gside-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--txt);
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.gside-item:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.gside-item.active{
  border-color: rgba(34,197,94,0.38);
  background: linear-gradient(
    90deg,
    rgba(34,197,94,0.24) 0%,
    rgba(34,197,94,0.08) 60%,
    rgba(0,0,0,0.12) 100%
  );
}

.gside-ico{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  overflow:hidden;
  flex: 0 0 auto;
  display:grid;
  place-items:center;
}
.gside-ico img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.gside-ico-empty{
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.10);
}

.gside-name{
  font-size: 0.82rem;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar-foot{
  margin-top: 10px;
  font-size: 0.72rem;
  padding: 8px 2px 2px 2px;
}

/* Content */
.guides-content{
  min-width: 0;
}

.guide-hero{
  padding: 12px;
}
.hero-row{
  display:flex;
  gap: 12px;
  align-items:center;
}
.hero-ico{
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  overflow:hidden;
  flex: 0 0 auto;
  display:grid;
  place-items:center;
}
.hero-ico img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.hero-ico-empty{
  opacity: 0.6;
}

.hero-text{
  min-width: 0;
  flex: 1 1 auto;
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.hero-meta{
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34,197,94,0.95);
}

.hero-title{
  font-size: 1.1rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.hero-desc{
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Sections */
.guide-sections{
  margin-top: 10px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.guide-sec{
  padding: 12px;
  background: var(--panel2);
}

.sec-title{
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.92);
}

/* ✅ Guide section accordions (details/summary) */
.guide-sec.acc{
  padding: 0;
  overflow: hidden;
}

.guide-sec.acc > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  padding: 12px;
  margin: 0;
  background: rgba(255,255,255,0.03);

  transition: background 120ms ease;
}

.guide-sec.acc > summary:hover{
  background: rgba(255,255,255,0.06);
}

.guide-sec.acc > summary:focus{
  outline: none;
}

.guide-sec.acc > summary:focus-visible{
  outline: 2px solid rgba(34,197,94,0.45);
  outline-offset: -2px;
}

.guide-sec.acc > summary::-webkit-details-marker{
  display: none;
}

.acc-sum-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.acc-sum-title{
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acc-chev{
  opacity: 0.85;
  transition: transform 160ms ease;
  flex: 0 0 auto;
}

.guide-sec.acc[open] .acc-chev{
  transform: rotate(180deg);
}

.acc-body{
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* markdown content */
.md{
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.90);
}
.md h1,.md h2,.md h3{
  margin: 0.7em 0 0.35em 0;
  line-height: 1.25;
}
.md h1{ font-size: 1.15rem; }
.md h2{ font-size: 1.05rem; }
.md h3{ font-size: 0.98rem; }

.md p{ margin: 0.55em 0; }
.md ul{ margin: 0.55em 0 0.55em 1.2em; padding: 0; }
.md li{ margin: 0.25em 0; }

/* ✅ [hr] token -> themed horizontal ruler */
.md .md-hr{
  border: 0;
  height: 1px;
  margin: 14px 0;
  opacity: 0.9;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.14) 18%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.14) 82%,
    rgba(255,255,255,0.00) 100%
  );
}

.md a{
  color: #8cda6d;
  text-decoration: none;
}
.md a:hover{ text-decoration: underline; }

.md strong{
  color: rgba(255,255,255,0.96);
  font-weight: 500;
}
.md em{
  color: rgba(255,255,255,0.90);
}
.md .md-color{
  text-shadow: 0 1px 10px rgba(0,0,0,0.28);
}

/* ✅ Markdown accordions from [[accordion]] / [[tab:...]] */
.md .md-acc{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  overflow: hidden;
  margin: 10px 0;
}
.md .md-acc-item + .md-acc-item{
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ✅ MORE CLICKABLE: button-style headers (ONLY markdown accordion heads) */
.md .md-acc-head{
  width: 100%;
  position: relative;

  display:flex;
  align-items:center;
  justify-content:flex-start; /* 👈 so we can use margin-left:auto on chev */
  gap: 10px;

  padding: 12px 14px;
  min-height: 46px;

  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.09) 0%,
    rgba(0,0,0,0.12) 100%
  );
  color: var(--txt);
  cursor:pointer;
  font-family: inherit;
  text-align:left;

  box-shadow:
    0 10px 20px rgba(0,0,0,0.26),
    inset 0 1px 0 rgba(255,255,255,0.10);

  transition:
    transform .12s ease,
    background .12s ease,
    border-color .12s ease,
    box-shadow .12s ease,
    filter .12s ease;
}
.md .md-acc-head::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;

  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 6px 14px rgba(0,0,0,0.30);
}
.md .md-acc-head:hover{
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.13) 0%,
    rgba(255,255,255,0.05) 100%
  );
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.md .md-acc-head:hover::before{
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.35);
}
.md .md-acc-head:active{
  transform: translateY(0px);
  filter: brightness(0.98);
  box-shadow:
    0 9px 18px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* open state: stronger "active button" feel */
.md .md-acc-item.is-open .md-acc-head{
  border-color: rgba(34,197,94,0.42);
  background: linear-gradient(
    180deg,
    rgba(34,197,94,0.20) 0%,
    rgba(0,0,0,0.10) 100%
  );
}
.md .md-acc-item.is-open .md-acc-head::before{
  background: rgba(34,197,94,0.55);
  border-color: rgba(34,197,94,0.65);
}

.md .md-acc-head:focus{
  outline: none;
}
.md .md-acc-head:focus-visible{
  outline: 2px solid rgba(34,197,94,0.45);
  outline-offset: -2px;
}

.md .md-acc-title{
  font-size: 0.82rem;
  color: rgba(255,255,255,0.92);
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto; /* 👈 keeps title left, allows truncation */
}

.md .md-acc-chev{
  opacity: 0.9;
  transition: transform 160ms ease;
  flex: 0 0 auto;
  margin-left: auto; /* 👈 pushes chevron to the far right */
}
.md .md-acc-item.is-open .md-acc-chev{
  transform: rotate(180deg);
}

.md .md-acc-panel{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease;
}
.md .md-acc-inner{
  overflow: hidden;
}
.md .md-acc-pad{
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.md .md-acc-item.is-open .md-acc-panel{
  grid-template-rows: 1fr;
}
.md .md-acc-item:not(.is-open) .md-acc-panel{
  pointer-events: none;
}

/* ✅ Item boxes rendered from [[item:...]] tokens */
.item-card{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: var(--txt);
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  vertical-align: middle;
  margin: 4px 8px 4px 0;
  max-width: 100%;
}
.item-card:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}
.item-ico{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.item-ico img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.item-ico.item-ico-empty{
  background: rgba(255,255,255,0.03);
}
.item-name{
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 520px;
}
.item-count{
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 3px 7px;
  border-radius: 999px;
  margin-left: 6px;
  flex: 0 0 auto;
}

/* text + image layout */
.sec-two{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 12px;
  align-items:start;
}
.sec-body{ min-width: 0; }

.sec-img{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
  overflow:hidden;
}
.sec-img img{
  width: 100%;
  height: auto;
  display:block;
}
.sec-img-empty{
  min-height: 160px;
  display:grid;
  place-items:center;
}

/* Gallery */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.gimg-btn{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.16);
  border-radius: 12px;
  overflow:hidden;
  padding: 0;
  cursor:pointer;
  text-align:left;
  color: var(--txt);
  display:flex;
  flex-direction: column;
}
.gimg-btn:hover{
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.06);
}
.gimg-pic{
  width: 100%;
  aspect-ratio: 16/10;
  background: rgba(0,0,0,0.22);
}
.gimg-pic img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.gimg-cap{
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* YouTube */
.yt-wrap{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
  overflow:hidden;
  aspect-ratio: 16/9;
}
.yt-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display:block;
}
.yt-row{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
}
.lightbox[hidden]{
  display: none !important;
}
.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.72);
}
.lightbox-card{
  position: relative;
  width: min(1100px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,12,16,0.92);
  box-shadow: 0 28px 70px rgba(0,0,0,0.60);
  backdrop-filter: blur(8px);
  display:flex;
  flex-direction: column;
}
.lightbox-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.lightbox-caption{
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 0;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.lightbox-actions{
  display:flex;
  gap: 8px;
  flex: 0 0 auto;
}
.lightbox-body{
  padding: 10px;
  overflow:auto;
  display:grid;
  place-items:center;
}
.lightbox-body img{
  max-width: 100%;
  max-height: 74vh;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 980px){
  .guides-layout{ grid-template-columns: 290px 1fr; }
  .sec-two{ grid-template-columns: 1fr 320px; }
  .item-name{ max-width: 360px; }
}
@media (max-width: 820px){
  .guides-mobilebar{ display:flex; }

  .guides-layout{
    grid-template-columns: 1fr;
  }

  .guides-sidebar{
    position: fixed;
    top: 0;
    left: 0;
    width: min(92vw, 380px);
    height: 100vh;
    z-index: 9998;
    transform: translateX(-110%);
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 0 14px 14px 0;
    box-shadow: 0 28px 70px rgba(0,0,0,0.60);
  }
  .guides-sidebar.open{
    transform: translateX(0);
  }
  .sidebar-close{ display:inline-flex; }

  body.sidebar-open::before{
    content:"";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9997;
  }

  .sec-two{
    grid-template-columns: 1fr;
  }

  .item-name{ max-width: 240px; }
}

/* ✅ Items-only paragraphs become a wrapping row */
.md .md-items{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0.55em 0;
}
.md .md-items .item-card{
  margin: 0;
}


/* ---------- Feedback / Ratings ---------- */
.fb{
  padding: 12px;
  background: var(--panel2);
  margin-top: 10px;
}

.fb-head{
  display:flex;
  align-items:center;
  justify-content:flex-start; /* ✅ left instead of pushing to the right */
  flex-wrap: wrap;            /* ✅ allows stars/summary to wrap under title */
  gap: 10px;
  margin-bottom: 10px;
}

.fb-title{
  font-size: 0.95rem;
  letter-spacing: .2px;
}

.fb-summary{
  display:flex;
  align-items:center;
  gap: 8px;
  white-space: nowrap;
  justify-content:flex-start; /* ✅ keep contents left */
  flex: 1 1 100%;             /* ✅ take full row when wrapping */
}

.fb-avg{
  font-size: 0.8rem;
  color: rgba(255,255,255,0.90);
}

.fb-count{
  font-size: 0.75rem;
}

.fb-stars-avg .fb-star,
.fb-stars-static .fb-star{
  display:inline-block;
  font-size: 0.9rem;
  line-height: 1;
  margin-left: 1px;
  opacity: 0.26;
}

.fb-stars-avg .fb-star.on,
.fb-stars-static .fb-star.on{
  opacity: 0.95;
}

.fb-stars-avg .fb-star.half{
  opacity: 0.55;
}

.fb-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.fb-card{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  border-radius: 12px;
  padding: 10px 10px;
}

.fb-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.fb-who{
  display:flex;
  align-items:center;
  gap: 8px;
  min-width: 0;
}

.fb-name{
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.fb-date{
  font-size: 0.72rem;
  color: rgba(255,255,255,0.58);
}

.fb-dot{
  opacity: 0.5;
}

.fb-text{
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
  overflow-wrap: anywhere;
}

.fb-form-wrap{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.fb-form-title{
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.92);
}

.fb-row{
  display:flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.fb-lbl{
  font-size: 0.72rem;
  color: rgba(255,255,255,0.72);
}

.fb-in,
.fb-ta{
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--txt);
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 10px;
  outline: none;
  box-sizing: border-box;
}

.fb-ta{
  resize: vertical;
  min-height: 90px;
}

.fb-hint{
  font-size: 0.72rem;
  margin-top: 6px;
}

.fb-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.fb-msg{
  font-size: 0.72rem;
}

/* interactive stars (radio + label) */
.fb-rate{
  display:inline-flex;
  flex-direction: row-reverse; /* classic star rating technique */
  gap: 4px;
  align-items:center;

  justify-content:flex-start;  /* ✅ keep stars aligned to the left */
  margin-left: 0 !important;   /* ✅ stop any auto-push to the right */
  margin-right: auto;          /* ✅ if inside a flex row, pin to left */
}

.fb-rate input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fb-rate label{
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.25;
  transition: transform 120ms ease, opacity 120ms ease;
  user-select: none;
}

.fb-rate label:hover{
  transform: translateY(-1px);
  opacity: 0.6;
}

/* highlight selected stars */
.fb-rate input:checked ~ label{
  opacity: 0.95;
}

/* highlight on hover (preview) */
.fb-rate label:hover,
.fb-rate label:hover ~ label{
  opacity: 0.70;
}

/* honeypot hidden */
.fb-hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
}

/* ---------- Feedback replies ---------- */
.fb-reply{
  margin-top: 10px;
  padding: 9px 10px 9px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(34,197,94,0.20);
  position: relative;
}

.fb-reply::before{
  content:"";
  position:absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: rgba(34,197,94,0.55);
}

.fb-reply-top{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.fb-reply-who{
  color: rgba(34,197,94,0.95);
  font-weight: 500;
}

.fb-reply-date{
  color: rgba(255,255,255,0.58);
}

.fb-reply-text{
  font-size: 0.80rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
  overflow-wrap: anywhere;
}
