/* ═══ Feedback System — dark/gold iOS-inspired (Beazit design system) ═══ */

/* ─── Shared tokens (fallbacks if a token name differs) ─── */
:root {
  --fb-gold: #C4A47C;
  --fb-accent: #C4A47C;
  --fb-accent-soft: rgba(196, 164, 124, 0.25);
  --fb-surface: rgba(28, 28, 30, 0.65);
  --fb-surface-strong: rgba(44, 44, 46, 0.85);
  --fb-line: rgba(255, 255, 255, 0.09);
  --fb-danger: #ff5f57;
  --fb-warn: #ffb340;
  --fb-ok: #34c759;
}

/* ─── Guest (feedback.html) ───────────────────────────────────────────── */

.fb-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space-5, 1.25rem) + 52px) var(--space-5, 1.25rem) var(--space-5, 1.25rem);
  color: #fff;
}

/* Top bar — γλώσσες + dark/light toggle, πάνω πάνω (fixed) */
/* Σταθερό full-viewport background layer — η εικόνα/ντεγκραντέ καλύπτει πάντα το viewport (mobile-safe) */
#fb-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--fb-bg, radial-gradient(1200px 700px at 50% -10%, rgba(196, 164, 124, 0.12), transparent 60%), #000);
}
#feedback-container {
  position: relative;
  z-index: 1;
}

.fb-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  z-index: 9999;
  pointer-events: none;
}
.fb-topbar > div {
  pointer-events: auto;
}

.fb-header {
  text-align: center;
  margin-bottom: var(--space-5, 1.25rem);
}

.fb-header__logo {
  display: block;
  width: min(70%, 240px);
  height: auto;
  margin: 0 auto var(--space-4, 1rem);
  border-radius: var(--radius-md-ios, 14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fb-header__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.fb-header__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2, 0.5rem);
  color: #fff;
}

.fb-main {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.fb-card {
  background: var(--fb-surface);
  border: 1px solid var(--fb-line);
  border-radius: var(--radius-md-ios, 14px);
  padding: var(--space-6, 1.5rem) var(--space-5, 1.25rem);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.fb-card--center {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
  align-items: center;
}

.fb-question {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-5, 1.25rem);
}

.fb-stars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: var(--space-4, 1rem);
}

.fb-star {
  font-size: clamp(1.1rem, 4.5vw, 1.9rem);
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #4a4a4d;
  transition: color 0.15s, transform 0.1s;
  padding: 0.15rem;
}

.fb-star:hover,
.fb-star:focus {
  color: var(--fb-accent);
  transform: scale(1.15);
  outline: none;
}

.fb-star--on {
  color: var(--fb-accent);
}

/* Custom 1..10 rating questions (guest) */
.fb-questions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
  margin-bottom: var(--space-4, 1rem);
  text-align: left;
}
.fb-question-row__label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.35rem;
}
.fb-qstars {
  display: flex;
  gap: 0.3rem;
}
.fb-qnum {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--fb-line);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.fb-qnum:hover,
.fb-qnum:focus {
  border-color: var(--fb-accent);
  color: var(--fb-accent);
  outline: none;
}
.fb-qnum--on {
  background: var(--fb-accent-soft, rgba(196, 164, 124, 0.2));
  border-color: var(--fb-accent);
  color: var(--fb-accent);
}

.fb-skip {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.fb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3, 0.75rem);
  justify-content: center;
  margin-bottom: var(--space-5, 1.25rem);
}

.fb-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--fb-line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}

.fb-chip--on {
  background: var(--fb-accent-soft);
  border-color: var(--fb-accent);
}

.fb-negative {
  margin-bottom: var(--space-4, 1rem);
  animation: fbReveal 0.25s ease;
}

.fb-negative__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fb-accent);
  margin-bottom: var(--space-3, 0.75rem);
  text-align: center;
}

.fb-negative__detail {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: var(--space-3, 0.75rem) 0 var(--space-2, 0.5rem);
}

@keyframes fbReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.fb-textarea,
.fb-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--fb-line);
  border-radius: 10px;
  padding: 0.75rem;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

.fb-textarea {
  min-height: 90px;
  resize: vertical;
  margin-bottom: var(--space-4, 1rem);
}

.fb-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
  margin-bottom: var(--space-4, 1rem);
}

.fb-submit {
  width: 100%;
  background: var(--fb-accent);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 0.85rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.fb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fb-error {
  display: none;
  color: var(--fb-danger);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: var(--space-3, 0.75rem);
}

.fb-empty {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.fb-thanks {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fb-accent);
}

.fb-thanks-sub {
  color: rgba(255, 255, 255, 0.7);
}

.fb-review-link {
  display: inline-block;
  margin-top: var(--space-3, 0.75rem);
  background: var(--fb-accent);
  color: #000;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

/* Lang switcher αριστερά, theme δεξιά — αποφυγή overlap στο bottom */
#lang-switcher { left: 12px !important; right: auto !important; }

/* Theme switcher: παραμένει στην top bar (πάνω δεξιά) — override του main.css mobile rule
   (το main.css @media (max-width:400px) το στέλνει fixed bottom-right με !important) */
@media (max-width: 400px) {
  .fb-page #theme-switcher {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    z-index: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ─── Admin (feedback-admin.html) ─────────────────────────────────────── */

.fb-admin {
  display: flex;
  min-height: 100vh;
  color: #fff;
  background: #000;
}

.fb-admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(20, 20, 22, 0.95);
  border-right: 1px solid var(--fb-line);
  display: flex;
  flex-direction: column;
  padding: var(--space-4, 1rem);
}

.fb-admin-sidebar__logo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md-ios, 14px);
  margin-bottom: var(--space-4, 1rem);
}

.fb-admin-sidebar__pin {
  margin-bottom: var(--space-4, 1rem);
}

.fb-admin-sidebar__pin input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--fb-line);
  border-radius: 10px;
  padding: 0.7rem;
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

.fb-admin-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
  flex: 1;
}

.fb-admin-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s;
}

.fb-admin-nav-btn:hover { background: rgba(255, 255, 255, 0.1); }

.fb-admin-nav-btn--active {
  background: rgba(196, 164, 124, 0.22);
  border-color: var(--fb-gold);
}

.fb-admin-sidebar__footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
}

.fb-admin-main {
  flex: 1;
  padding: var(--space-5, 1.25rem);
  overflow-y: auto;
}

.fb-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5, 1.25rem);
}

.fb-admin-header__title {
  font-size: 1.3rem;
  font-weight: 700;
}

.fb-admin-tab-content { display: none; }
.fb-admin-tab-content--active { display: block; }

/* Feed */
.fb-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
}

.fb-feed-empty {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: var(--space-6, 1.5rem);
}

.fb-feed-item {
  background: var(--fb-surface);
  border: 1px solid var(--fb-line);
  border-left: 4px solid var(--fb-line);
  border-radius: var(--radius-md-ios, 14px);
  padding: var(--space-4, 1rem);
}

.fb-feed-item--neg { border-left-color: var(--fb-danger); }
.fb-feed-item--mid { border-left-color: var(--fb-warn); }
.fb-feed-item--done { opacity: 0.6; }

.fb-feed-item__head {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  margin-bottom: var(--space-3, 0.75rem);
}

.fb-score-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.fb-score-badge--neg { background: var(--fb-danger); }
.fb-score-badge--mid { background: var(--fb-warn); }
.fb-score-badge--pos { background: var(--fb-ok); }

.fb-feed-item__meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.fb-feed-item__comment {
  margin: var(--space-3, 0.75rem) 0;
  color: rgba(255, 255, 255, 0.9);
}

.fb-feed-item__answers {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: var(--space-3, 0.75rem) 0;
}
.fb-answer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
}
.fb-answer-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.fb-answer-score {
  color: var(--fb-accent);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.fb-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: var(--space-3, 0.75rem) 0;
}

.fb-tag {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.fb-feed-item__actions {
  display: flex;
  gap: var(--space-3, 0.75rem);
  align-items: center;
  margin-top: var(--space-3, 0.75rem);
}

.fb-feed-item__actions input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--fb-line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  color: #fff;
}

/* Generic admin controls */
.fb-admin-card {
  background: var(--fb-surface);
  border: 1px solid var(--fb-line);
  border-radius: var(--radius-md-ios, 14px);
  padding: var(--space-5, 1.25rem);
  margin-bottom: var(--space-5, 1.25rem);
}

.fb-admin-card h3 {
  margin: 0 0 var(--space-4, 1rem);
  font-size: 1.05rem;
}

.fb-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3, 0.75rem);
  align-items: flex-end;
  margin-bottom: var(--space-3, 0.75rem);
}

.fb-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fb-field label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.fb-field input,
.fb-field select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--fb-line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: #fff;
  font-size: 0.95rem;
  min-width: 120px;
}

.fb-field select option { background: #1c1c1e; }

.fb-btn {
  background: var(--fb-gold);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.fb-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.fb-btn--danger {
  background: rgba(255, 95, 87, 0.18);
  color: var(--fb-danger);
}

/* Questions editor (admin Settings) */
.fb-questions-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.fb-question-edit-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.fb-question-edit-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--fb-line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: #fff;
  font-size: 0.95rem;
}
.fb-question-edit {
  border: 1px solid var(--fb-line);
  border-radius: 10px;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
}
.fb-question-translations {
  margin-top: 0.55rem;
  border-top: 1px dashed var(--fb-line);
  padding-top: 0.5rem;
}
.fb-question-translations summary {
  cursor: pointer;
  color: var(--fb-accent);
  font-size: 0.82rem;
  font-weight: 600;
  user-select: none;
}
.fb-question-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.fb-question-lang {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fb-question-lang span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.fb-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
}

.fb-list-row {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  flex-wrap: wrap;
}

.fb-list-row__main { flex: 1; min-width: 140px; }
.fb-list-row__sub { color: rgba(255, 255, 255, 0.55); font-size: 0.82rem; }

.fb-qr-preview {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
  box-sizing: border-box;
}

.fb-badge {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.fb-badge--off { background: rgba(255, 95, 87, 0.18); color: var(--fb-danger); }

/* Appearance / branding tab */
.fb-appearance-section { margin-bottom: var(--space-5, 1.25rem); }
.fb-appearance-section h4 {
  margin: 0 0 var(--space-3, 0.75rem);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.fb-color-input {
  width: 48px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--fb-line);
  border-radius: 8px;
  background: #000;
  cursor: pointer;
}
.fb-upload-row {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  flex-wrap: wrap;
}
.fb-upload-preview {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--fb-line);
  background: rgba(0,0,0,0.3);
}
.fb-appearance-preview {
  max-width: 360px;
  margin: 0 auto var(--space-5, 1.25rem);
  border-radius: var(--radius-md-ios, 14px);
  border: 1px solid var(--fb-line);
  overflow: hidden;
}
.fb-appearance-preview__stage {
  padding: 2rem 1.5rem;
  text-align: center;
}
.fb-appearance-preview__stars {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.fb-appearance-preview__btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.fb-appearance-preview__label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

/* Appearance — πλούσια live προεπισκόπηση φόρμας */
.fb-appearance-preview__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}
.fb-appearance-preview__logo {
  max-width: 72px;
  max-height: 44px;
  object-fit: contain;
  margin: 0 auto;
}
.fb-appearance-preview__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.fb-appearance-preview__subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}
.fb-appearance-preview__q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fb-accent);
}
.fb-appearance-preview__btn { color: #000; }
.fb-appearance-preview__questions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.fb-appearance-preview__qrow {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.fb-appearance-preview__qlabel {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}
.fb-appearance-preview__qnums {
  display: flex;
  gap: 0.22rem;
}
.fb-appearance-preview__qnum {
  flex: 1;
  text-align: center;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 0.12rem 0;
}
.fb-appearance-preview__row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.fb-appearance-preview__input {
  flex: 1;
  height: 30px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
.fb-appearance-preview__textarea {
  display: block;
  width: 100%;
  height: 40px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

/* Preset φόντα (swatches — ένα κλικ) */
.fb-preset-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-3, 0.75rem);
}
.fb-preset-swatch {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--fb-line);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.fb-preset-swatch:hover { transform: scale(1.08); }
.fb-preset-swatch--active {
  border-color: var(--fb-accent);
  box-shadow: 0 0 0 2px rgba(196, 164, 124, 0.35);
}

/* ═══ Statistics dashboard (Live Feed → αναλυτικά στατιστικά) ═══ */
.fb-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3, 0.75rem);
  margin-bottom: var(--space-5, 1.25rem);
}

.fb-stat-card {
  background: var(--fb-surface);
  border: 1px solid var(--fb-line);
  border-radius: var(--radius-md-ios, 14px);
  padding: var(--space-4, 1rem) var(--space-3, 0.75rem);
  text-align: center;
}

.fb-stat-card__value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.fb-stat-card__label {
  margin-top: 0.3rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.fb-stat-card--accent .fb-stat-card__value { color: var(--fb-accent); }
.fb-stat-card--pos    .fb-stat-card__value { color: var(--fb-ok); }
.fb-stat-card--neg    .fb-stat-card__value { color: var(--fb-danger); }
.fb-stat-card--warn   .fb-stat-card__value { color: var(--fb-warn); }

.fb-stat-block h3 { font-size: 1rem; }

.fb-stat-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.fb-stat-bar__label {
  flex: 0 0 86px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
  white-space: nowrap;
}

.fb-stat-bar__track {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.fb-stat-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fb-accent-soft), var(--fb-accent));
  border-radius: 999px;
}

.fb-stat-bar__value {
  flex: 0 0 28px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

.fb-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fb-stat-chip {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.fb-stat-days {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  min-height: 120px;
  padding-top: 0.5rem;
}

.fb-stat-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.fb-stat-day__count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fb-accent);
}

.fb-stat-day__bar {
  width: 100%;
  max-width: 42px;
  height: 90px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.fb-stat-day__fill {
  width: 100%;
  background: linear-gradient(180deg, var(--fb-accent), var(--fb-accent-soft));
  border-radius: 8px;
  min-height: 2px;
}

.fb-stat-day__label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
}

.fb-stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.fb-stat-table th,
.fb-stat-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--fb-line);
}

.fb-stat-table th {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fb-stat-table td { color: #fff; }
.fb-stat-table tbody tr:last-child td { border-bottom: none; }

/* Auth / login */
.fb-admin-sidebar__pin button {
  width: 100%;
  margin-top: var(--space-3, 0.75rem);
  box-sizing: border-box;
}

/* Pagination */
.fb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-4, 1rem);
}
.fb-pagination__info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}
.fb-pagination .fb-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Escalation (SLA) badge */
.fb-escalation {
  display: inline-block;
  background: rgba(255, 95, 87, 0.2);
  color: var(--fb-danger);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Feed critical / overdue */
.fb-feed-item--critical { border-left-color: #ff2d55; box-shadow: 0 0 0 1px rgba(255, 45, 85, 0.28); }
.fb-feed-item--overdue { border-left-color: var(--fb-warn); }

/* Reply modal (email) */
.fb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--space-4, 1rem);
}
.fb-modal {
  background: var(--fb-surface-strong);
  border: 1px solid var(--fb-line);
  border-radius: var(--radius-md-ios, 14px);
  padding: var(--space-5, 1.25rem);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.fb-modal h3 { margin: 0 0 var(--space-3, 0.75rem); }
.fb-modal__label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: var(--space-3, 0.75rem) 0 0.3rem;
}
.fb-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-4, 1rem);
}

/* NPS card */
.fb-nps-card__head { display: flex; justify-content: space-between; align-items: center; }
.fb-nps-card__head h3 { margin: 0; }
.fb-nps-card__body { display: flex; align-items: center; gap: var(--space-5, 1.25rem); flex-wrap: wrap; }
.fb-nps-value { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.fb-nps-value--neg { color: var(--fb-danger); }
.fb-nps-value--mid { color: var(--fb-warn); }
.fb-nps-value--pos { color: var(--fb-ok); }
.fb-nps-buckets {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Stat card mid (neutral) tone */
.fb-stat-card--mid .fb-stat-card__value { color: var(--fb-warn); }

/* Multilingual zone/asset name editor */
.fb-name-translations {
  margin-top: 0.55rem;
  border-top: 1px dashed var(--fb-line);
  padding-top: 0.5rem;
}
.fb-name-translations summary {
  cursor: pointer;
  color: var(--fb-accent);
  font-size: 0.82rem;
  font-weight: 600;
  user-select: none;
}
.fb-translate-btn { margin-top: 0.5rem; }

.fb-list-row--editing { flex-wrap: wrap; }
.fb-list-row--editing input[data-lang],
.fb-list-row--editing select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--fb-line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  color: #fff;
}

/* Print view — sticker grid */
.fb-print-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid #000;
  color: #000;
}
.fb-print-header__title { font-size: 1.2rem; font-weight: 700; }
.fb-print-header__count { font-size: 0.9rem; opacity: 0.7; }
.fb-print-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fb-print-cell {
  text-align: center;
  border: 1px dashed #bbb;
  border-radius: 10px;
  padding: 14px 10px;
  break-inside: avoid;
  page-break-inside: avoid;
  color: #000;
}
.fb-print-cell__qr { width: 120px; height: 120px; margin: 0 auto 8px; }
.fb-print-cell__label { font-size: 1.05rem; font-weight: 700; }
.fb-print-cell__meta { font-size: 0.8rem; opacity: 0.7; }
.fb-print-cell__code { font-size: 0.72rem; opacity: 0.55; letter-spacing: 0.06em; margin-top: 2px; }

@media print {
  @page { size: A4; margin: 12mm; }
  body * { visibility: hidden; }
  #fb-print-area, #fb-print-area * { visibility: visible; }
  #fb-print-area { position: absolute; inset: 0; padding: 20px; }
  .fb-print-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .fb-print-cell { text-align: center; page-break-inside: avoid; }
}

/* Mobile */
@media (max-width: 768px) {
  .fb-admin { flex-direction: column; }
  .fb-admin-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    flex-wrap: wrap;
    padding: var(--space-3, 0.75rem);
  }
  .fb-admin-sidebar__logo { width: 64px; margin-bottom: 0; }
  .fb-admin-nav { flex-direction: row; flex-wrap: wrap; }
  .fb-admin-nav-btn { padding: 0.6rem 0.9rem; }
  .fb-admin-main { padding: var(--space-4, 1rem); }
}
