/* feedback.css — EFF Hub Feedback experience (modal, prompt, sidebar entry, admin) */

/* ============== Sidebar entry (above profile) ============== */
.sidebar-feedback-btn {
    display: flex; align-items: center; gap: 10px;
    width: calc(100% - 24px); margin: 0 12px 10px;
    padding: 9px 12px; border: none; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #1E6332, #2F8542); color: #fff;
    font-size: 0.84rem; font-weight: 600; font-family: inherit;
    box-shadow: 0 4px 12px rgba(30,99,50,0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.sidebar-feedback-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,99,50,0.36); filter: brightness(1.05); }
.sidebar-feedback-btn .sidebar-feedback-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,0.2); flex-shrink: 0;
}
.sidebar-feedback-btn .sidebar-feedback-icon i { font-size: 0.8rem; animation: fbHeart 2.4s ease-in-out infinite; }
@keyframes fbHeart { 0%,100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } }
/* collapsed sidebar — compact, centered icon-only button (clean green rounded
   square with just the heart; no redundant inner icon box). NOTE: the sidebar
   element is .app-sidebar — the old `.sidebar.collapsed` selector never matched. */
.app-sidebar.collapsed .sidebar-feedback-btn {
    width: 40px; height: 40px; padding: 0;
    margin: 0 auto 10px;
    justify-content: center; border-radius: 11px;
}
.app-sidebar.collapsed .sidebar-feedback-btn .sidebar-text { display: none; }
.app-sidebar.collapsed .sidebar-feedback-btn .sidebar-feedback-icon {
    width: auto; height: auto; background: transparent; gap: 0;
}
.app-sidebar.collapsed .sidebar-feedback-btn .sidebar-feedback-icon i { font-size: 1rem; }

/* ============== Modal ============== */
.fb-backdrop {
    position: fixed; inset: 0; z-index: 10600; background: rgba(20,30,24,0.55);
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.fb-backdrop.show { opacity: 1; visibility: visible; }
.fb-modal {
    position: fixed; z-index: 10601; left: 50%; top: 50%;
    transform: translate(-50%, -48%) scale(0.96); opacity: 0; visibility: hidden;
    width: min(1080px, 80vw); max-height: 90vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 22px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.32);
    transition: transform 0.26s cubic-bezier(0.34,1.3,0.5,1), opacity 0.22s ease, visibility 0.22s ease;
}
.fb-modal.show { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
.fb-close {
    position: absolute; top: 14px; right: 14px; z-index: 4; width: 34px; height: 34px;
    border: none; border-radius: 50%; background: rgba(0,0,0,0.05); color: #6b7280; cursor: pointer;
    font-size: 1rem; transition: background 0.15s, color 0.15s;
}
.fb-close:hover { background: rgba(0,0,0,0.1); color: #1f2937; }

.fb-progress { padding: 22px 60px 4px 34px; display: flex; align-items: center; justify-content: space-between; }
.fb-dots { display: flex; gap: 7px; }
.fb-dot { width: 30px; height: 5px; border-radius: 4px; background: #e7e3dc; transition: background 0.25s, width 0.25s; }
.fb-dot.active { background: linear-gradient(90deg,#1E6332,#2F8542); width: 40px; }
.fb-dot.done { background: #2F8542; }
.fb-stepnum { font-size: 0.72rem; font-weight: 600; color: #9aa0a6; letter-spacing: 0.3px; text-transform: uppercase; }

/* giveaway incentive ribbon (persists across form steps) */
.fb-giveaway {
    margin: 12px 34px 0; padding: 9px 14px; border-radius: 12px;
    display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; color: #7c4a03;
    background: linear-gradient(100deg, #fff6e6, #fdeccf); border: 1px solid #f6dca6;
}
.fb-giveaway strong { color: #9a5b00; }
.fb-give-spark { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 10px rgba(217,119,6,0.32); animation: fbGift 2.6s ease-in-out infinite; }
@keyframes fbGift { 0%,100% { transform: rotate(0); } 8% { transform: rotate(-9deg); } 16% { transform: rotate(9deg); } 24% { transform: rotate(0); } }

.fb-body { padding: 14px 40px 10px; overflow-y: auto; flex: 1; }
/* keep narrow steps (mood / thank-you) comfortably centered in the wide modal */
.fb-hero, .fb-thanks { max-width: 640px; margin-left: auto; margin-right: auto; }
/* two-column layout used on the comments step */
.fb-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fb-cols2 .fb-tag-group, .fb-cols2 .fb-field { margin-bottom: 0; }
.fb-body.fb-slide { animation: fbSlide 0.32s cubic-bezier(0.22,1,0.36,1); }
@keyframes fbSlide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

.fb-h2 { font-size: 1.4rem; font-weight: 800; color: #1f2937; margin: 0 0 6px; line-height: 1.25; }
.fb-sub { font-size: 0.9rem; color: #6b7280; margin: 0; line-height: 1.45; }
.fb-step-head { margin: 2px auto 18px; text-align: center; max-width: 600px; }

/* hero (step 1) */
.fb-hero { text-align: center; padding: 8px 4px 4px; }
.fb-hero-badge {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px;
    background: linear-gradient(135deg,#1E6332,#2F8542); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    box-shadow: 0 10px 24px rgba(30,99,50,0.32); animation: fbFloat 3s ease-in-out infinite;
}
@keyframes fbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.fb-hero .fb-h2 { margin-top: 4px; }

/* moods */
.fb-moods { display: flex; gap: 10px; justify-content: center; margin: 24px auto 10px; max-width: 580px; flex-wrap: wrap; }
.fb-mood {
    flex: 1 1 0; min-width: 92px; max-width: 130px; background: #f8f7f5; border: 2px solid transparent; border-radius: 16px;
    padding: 14px 6px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: transform 0.16s ease, border-color 0.16s, background 0.16s, box-shadow 0.16s; font-family: inherit;
}
.fb-mood:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.fb-mood-emoji { font-size: 2rem; line-height: 1; filter: grayscale(0.25); transition: filter 0.16s, transform 0.16s; }
.fb-mood:hover .fb-mood-emoji { filter: none; transform: scale(1.12); }
.fb-mood-label { font-size: 0.72rem; font-weight: 600; color: #6b7280; }
.fb-mood.sel { border-color: #2F8542; background: #eaf5ee; box-shadow: 0 8px 20px rgba(30,99,50,0.18); }
.fb-mood.sel .fb-mood-emoji { filter: none; transform: scale(1.15); }
.fb-mood.sel .fb-mood-label { color: #1E6332; }

/* step 1 — overall block (compare + recommend) */
.fb-overall { max-width: 640px; margin: 20px auto 4px; }
.fb-overall-block { margin-top: 18px; }
.fb-overall-q { font-size: 0.86rem; font-weight: 700; color: #374151; margin-bottom: 9px; text-align: center; }
.fb-segs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fb-seg { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 12px; border: 1.5px solid #ece7df; background: #fff; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: #4b5563; transition: all 0.14s ease; font-family: inherit; }
.fb-seg i { color: #9aa0a6; }
.fb-seg:hover { transform: translateY(-1px); }
/* sentiment tints — green for the positive options, amber neutral, red for the negative one */
.fb-seg-pos { border-color: #cdead8; color: #1E6332; background: #f4fbf6; }
.fb-seg-pos i { color: #2F8542; }
.fb-seg-neu { border-color: #f1e2c4; color: #a9772b; background: #fdf9f1; }
.fb-seg-neu i { color: #d9a441; }
.fb-seg-neg { border-color: #efd2cf; color: #b9544b; background: #fdf6f5; }
.fb-seg-neg i { color: #dc6a60; }
.fb-seg-pos.sel { border-color: #2F8542; background: #e3f4ea; color: #1E6332; box-shadow: 0 4px 12px rgba(47,133,66,0.18); }
.fb-seg-pos.sel i { color: #1E6332; }
.fb-seg-neu.sel { border-color: #d9a441; background: #fbf1de; color: #a9772b; }
.fb-seg-neu.sel i { color: #c98f2e; }
.fb-seg-neg.sel { border-color: #dc6a60; background: #fbe7e4; color: #b9544b; }
.fb-seg-neg.sel i { color: #c0584f; }
.fb-nps-row { display: flex; gap: 5px; justify-content: center; flex-wrap: nowrap; }
/* smooth red→amber→green ramp — each button's exact color comes from --nc (set per number in JS) */
.fb-nps { flex: 1 1 0; min-width: 0; max-width: 44px; aspect-ratio: 1; border: 1.5px solid; border-color: color-mix(in srgb, var(--nc, #ece7df) 45%, #fff); background: color-mix(in srgb, var(--nc, #fff) 9%, #fff); border-radius: 9px; cursor: pointer; font-size: 0.82rem; font-weight: 800; color: var(--nc, #6b7280); transition: all 0.13s ease; font-family: inherit; }
.fb-nps:hover { transform: translateY(-2px); border-color: var(--nc); box-shadow: 0 4px 12px color-mix(in srgb, var(--nc) 30%, transparent); }
.fb-nps.sel { background: var(--nc); border-color: var(--nc); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--nc) 42%, transparent); }
.fb-nps-ends { display: flex; justify-content: space-between; font-size: 0.68rem; margin-top: 5px; }
.fb-nps-ends span:first-child { color: #c0584f; }
.fb-nps-ends span:last-child { color: #2F8542; font-weight: 700; }

/* feature rating cards — 2-up grid in the wide modal */
.fb-feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fb-feat-card {
    display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px;
    background: #f8f7f5; border: 1px solid #efeae2; transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.fb-feat-card:hover { background: #fff; border-color: var(--fc); transform: translateX(2px); }
.fb-feat-ic { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--fc); box-shadow: 0 4px 10px color-mix(in srgb, var(--fc) 35%, transparent); }
/* image-based icons (Mo avatar) — no colored box behind the picture */
.fb-feat-ic.is-img, .fb-why-ic.is-img, .fb-tip-ic.is-img, .fb-mini-ic.is-img { background: transparent !important; box-shadow: none; padding: 0; }
.fb-ic-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.fb-bar-img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.fb-feat-meta { flex: 1; min-width: 0; }
.fb-feat-name { font-size: 0.9rem; font-weight: 700; color: #1f2937; display: inline-flex; align-items: center; gap: 6px; }
.fb-feat-sub { font-size: 0.74rem; color: #9aa0a6; margin-top: 1px; }
.fb-help { border: none; background: none; padding: 0; margin: 0; cursor: help; color: #c3bcae; font-size: 0.82rem; line-height: 1; display: inline-flex; transition: color 0.14s, transform 0.14s; }
.fb-help:hover { color: var(--fc, #1E6332); transform: scale(1.18); }

/* hover-help tooltip (fixed, escapes the modal) */
.fb-tip {
    position: fixed; z-index: 10700; width: 320px; max-width: 86vw;
    background: #fff; border: 1px solid #ece7df; border-radius: 13px; padding: 13px 15px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.2); pointer-events: none;
    opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.fb-tip.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fb-tip-title { font-size: 0.86rem; font-weight: 800; color: #1f2937; margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.fb-tip-ic { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.74rem; flex-shrink: 0; }
.fb-tip-text { font-size: 0.8rem; color: #4b5563; line-height: 1.52; }
.fb-tip-text b { color: #1E6332; font-weight: 700; }
.fb-stars { display: flex; gap: 2px; flex-shrink: 0; }
.fb-stars.fb-pop { animation: fbStarPop 0.3s ease; }
@keyframes fbStarPop { 0%,100% { transform: scale(1); } 40% { transform: scale(1.12); } }
.fb-star { background: none; border: none; cursor: pointer; padding: 2px; font-size: 1.05rem; color: #d9d4cc; transition: transform 0.12s, color 0.12s; }
.fb-star:hover { transform: scale(1.25); }
.fb-star.on { color: #f5b301; }

/* favorites */
.fb-favs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.fb-favs.fb-shake { animation: fbShake 0.4s ease; }
@keyframes fbShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.fb-fav {
    position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
    border-radius: 13px; border: 2px solid #ece7df; background: #fff; cursor: pointer; font-family: inherit;
    font-size: 0.84rem; font-weight: 600; color: #4b5563; transition: all 0.16s ease;
}
.fb-fav i { color: var(--fc); }
.fb-fav-ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
.fb-fav-ic.is-img { width: 22px; height: 22px; }
.fb-fav-ic .fb-ic-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fb-fav:hover { border-color: var(--fc); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.07); }
.fb-fav.sel { border-color: var(--fc); background: color-mix(in srgb, var(--fc) 10%, #fff); color: #1f2937; box-shadow: 0 6px 16px color-mix(in srgb, var(--fc) 22%, transparent); }
.fb-fav-rank {
    position: absolute; top: -8px; left: -8px; min-width: 22px; height: 22px; padding: 0 5px;
    border-radius: 11px; background: linear-gradient(135deg,#1E6332,#2F8542); color: #fff;
    font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 8px rgba(30,99,50,0.4);
}
.fb-fav-hint { margin-top: 16px; font-size: 0.82rem; color: #9aa0a6; text-align: center; }
.fb-fav-done { color: #1E6332; font-weight: 700; }

/* why-favorites step */
.fb-why-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.fb-why-card { background: #f8f7f5; border: 1px solid #efeae2; border-left: 4px solid var(--fc); border-radius: 14px; padding: 13px 15px; }
.fb-why-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.fb-why-ic { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--fc); box-shadow: 0 4px 10px color-mix(in srgb, var(--fc) 32%, transparent); }
.fb-why-meta { min-width: 0; }
.fb-why-name { font-size: 0.9rem; font-weight: 800; color: #1f2937; }
.fb-why-q { font-size: 0.72rem; color: #9aa0a6; }
.fb-why-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fb-why-chip { padding: 7px 12px; border-radius: 18px; border: 1.5px solid #ece7df; background: #fff; cursor: pointer; font-size: 0.78rem; font-weight: 600; color: #6b7280; transition: all 0.14s ease; font-family: inherit; }
.fb-why-chip:hover { transform: translateY(-1px); border-color: var(--fc); }
.fb-why-chip.sel { background: color-mix(in srgb, var(--fc) 12%, #fff); border-color: var(--fc); color: #1f2937; }
.fb-why-empty { text-align: center; color: #9aa0a6; font-size: 0.9rem; padding: 40px 12px; }
.fb-why-empty i { margin-right: 6px; }

/* tags + fields (step 5) */
.fb-c5-tags { margin-bottom: 18px; align-items: stretch; }
.fb-c5-card { padding: 14px 15px; border-radius: 14px; }
.fb-c5-card.love { background: #f3faf5; border: 1px solid #d9efe0; }
.fb-c5-card.imp { background: #fdf6ec; border: 1px solid #f3e2c5; }
.fb-c5-card .fb-tag-label { color: #1f2937; }
.fb-c5-card.love .fb-tag-label i { color: #2F8542; }
.fb-c5-card.imp .fb-tag-label i { color: #d97706; }
.fb-tag-group { margin-bottom: 16px; }
.fb-tag-label { font-size: 0.78rem; font-weight: 700; color: #4b5563; margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.fb-tag-label i { color: #9aa0a6; }
.fb-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.fb-tag { padding: 7px 13px; border-radius: 20px; border: 1.5px solid #ece7df; background: #fff; cursor: pointer; font-size: 0.8rem; font-weight: 600; color: #6b7280; transition: all 0.14s ease; font-family: inherit; }
.fb-tag:hover { transform: translateY(-1px); }
.fb-tag.love.sel { background: #eaf5ee; border-color: #2F8542; color: #1E6332; }
.fb-tag.imp.sel { background: #fef3e7; border-color: #d97706; color: #b45309; }
.fb-field { margin-top: 14px; }
.fb-field label { display: block; font-size: 0.82rem; font-weight: 700; color: #374151; margin-bottom: 6px; }
.fb-textarea {
    width: 100%; border: 1.5px solid #e5e1da; border-radius: 12px; padding: 11px 13px; font-size: 0.88rem;
    font-family: inherit; color: #1f2937; resize: vertical; outline: none; transition: border-color 0.15s, box-shadow 0.15s; box-sizing: border-box;
}
.fb-textarea:focus { border-color: #2F8542; box-shadow: 0 0 0 3px rgba(47,133,66,0.12); }

/* footer */
.fb-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px 20px; gap: 10px; border-top: 1px solid #f3f0ec; }
.fb-foot-right { display: flex; align-items: center; gap: 8px; }
.fb-btn { display: inline-flex; align-items: center; gap: 7px; border: none; border-radius: 11px; padding: 11px 18px; font-size: 0.86rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: transform 0.14s, box-shadow 0.14s, filter 0.14s, background 0.14s; }
.fb-btn-primary { background: linear-gradient(135deg,#1E6332,#2F8542); color: #fff; box-shadow: 0 6px 16px rgba(30,99,50,0.3); }
.fb-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.fb-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.fb-btn-ghost { background: #f3f0ec; color: #4b5563; }
.fb-btn-ghost:hover { background: #e9e4dc; }
.fb-btn-link { background: none; color: #9aa0a6; padding: 11px 8px; }
.fb-btn-link:hover { color: #4b5563; }

/* thank you */
.fb-thanks { text-align: center; padding: 18px 8px 26px; }
.fb-thanks-burst { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg,#1E6332,#2F8542); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; box-shadow: 0 14px 32px rgba(30,99,50,0.4); animation: fbBurst 0.6s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes fbBurst { 0% { transform: scale(0); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.fb-thanks-give { display: flex; align-items: center; gap: 12px; text-align: left; max-width: 440px; margin: 18px auto 0; padding: 14px 16px; border-radius: 14px; background: linear-gradient(100deg, #fff6e6, #fdeccf); border: 1px solid #f6dca6; }
.fb-thanks-give-t { font-size: 0.92rem; font-weight: 800; color: #9a5b00; }
.fb-thanks-give-s { font-size: 0.78rem; color: #a4773a; margin-top: 2px; }
.fb-thanks-chip { display: inline-block; margin: 14px 0 4px; padding: 8px 16px; border-radius: 20px; background: #eaf5ee; color: #1E6332; font-size: 0.88rem; }
.fb-thanks-note { font-size: 0.8rem; color: #9aa0a6; max-width: 380px; margin: 14px auto 0; line-height: 1.45; }
.fb-thanks-btn { margin-top: 18px; padding: 12px 30px; }

/* confetti */
.fb-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.fb-confetti-bit { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0.9; animation: fbFall linear forwards; }
@keyframes fbFall { to { transform: translateY(105vh) rotate(540deg); opacity: 0.2; } }

/* ============== Smart prompt (bottom-right) ============== */
.fb-prompt {
    position: fixed; z-index: 10550; right: 22px; bottom: 22px; width: 340px; max-width: calc(100vw - 32px);
    background: #fff; border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.22);
    border: 1px solid #efeae2; transform: translateY(140%); opacity: 0; visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.3s, visibility 0.3s;
}
.fb-prompt.show { transform: translateY(0); opacity: 1; visibility: visible; }
.fb-prompt-x { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border: none; background: rgba(0,0,0,0.05); border-radius: 50%; color: #9aa0a6; cursor: pointer; font-size: 0.8rem; }
.fb-prompt-x:hover { background: rgba(0,0,0,0.1); color: #4b5563; }
.fb-prompt-emoji { font-size: 1.7rem; margin-bottom: 8px; }
.fb-prompt-title { font-size: 1.02rem; font-weight: 800; color: #1f2937; margin-bottom: 6px; }
.fb-prompt-text { font-size: 0.82rem; color: #6b7280; line-height: 1.45; margin-bottom: 14px; }
.fb-prompt-actions { display: flex; flex-direction: column; gap: 8px; }
.fb-prompt-actions .fb-btn { justify-content: center; padding: 10px; }

/* ============== Admin (HUB Settings → Feedback) ============== */
.fb-admin { padding: 4px 2px 8px; }
.fb-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.fb-kpi { position: relative; background: #fff; border: 1px solid #ece7df; border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.fb-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--kc); }
.fb-kpi-ic { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--kc) 14%, #fff); color: var(--kc); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.fb-kpi-val { font-size: 1.5rem; font-weight: 800; color: #1f2937; line-height: 1.1; }
.fb-kpi-label { font-size: 0.74rem; color: #6b7280; font-weight: 600; }
.fb-kpi .fb-gauge { width: 42px; height: 42px; margin-left: auto; }
.fb-gauge-bg { fill: none; stroke: #eee7dd; stroke-width: 3.4; }
.fb-gauge-fg { fill: none; stroke: #1E6332; stroke-width: 3.4; stroke-linecap: round; transition: stroke-dasharray 0.6s ease; }

.fb-admin-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fb-admin-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fb-card { background: #fff; border: 1px solid #ece7df; border-radius: 14px; padding: 16px; }
.fb-card-wide { margin-bottom: 14px; }
.fb-card-h { font-size: 0.9rem; font-weight: 800; color: #1f2937; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fb-card-sub { font-size: 0.72rem; font-weight: 600; color: #9aa0a6; margin-left: auto; text-transform: capitalize; }

.fb-sent-bar { display: flex; height: 16px; border-radius: 9px; overflow: hidden; margin-bottom: 14px; background: #f1ede6; }
.fb-sent.pos { background: #2F8542; } .fb-sent.neu { background: #d8d2c8; } .fb-sent.neg { background: #dc2626; }
.fb-sent-legend { display: flex; gap: 8px; }
.fb-sent-leg { flex: 1; border: 1.5px solid #ece7df; background: #fff; border-radius: 10px; padding: 8px 6px; cursor: pointer; font-size: 0.74rem; color: #6b7280; font-family: inherit; font-weight: 600; transition: all 0.14s; }
.fb-sent-leg b { display: block; font-size: 1.05rem; color: #1f2937; }
.fb-sent-leg.pos.on { border-color: #2F8542; background: #eaf5ee; }
.fb-sent-leg.neg.on { border-color: #dc2626; background: #fef2f2; }
.fb-sent-leg.neu.on { border-color: #b8b0a3; background: #f6f3ee; }

.fb-mini { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f4f0ea; }
.fb-mini:last-child { border-bottom: none; }
.fb-mini-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; flex-shrink: 0; }
.fb-mini-name { flex: 1; font-size: 0.82rem; font-weight: 600; color: #374151; }
.fb-mini-score { font-size: 0.86rem; font-weight: 800; } .fb-mini-score i { font-size: 0.72rem; }

.fb-bars { display: flex; flex-direction: column; gap: 9px; }
.fb-bar-row { display: flex; align-items: center; gap: 12px; }
.fb-bar-name { width: 180px; font-size: 0.82rem; font-weight: 600; color: #374151; display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.fb-bar-track { flex: 1; height: 9px; background: #f1ede6; border-radius: 6px; overflow: hidden; }
.fb-bar-fill { height: 100%; border-radius: 6px; transition: width 0.6s cubic-bezier(0.22,1,0.36,1); }
.fb-bar-val { width: 96px; text-align: right; font-size: 0.84rem; font-weight: 800; color: #1f2937; flex-shrink: 0; }
.fb-bar-meta { font-size: 0.68rem; font-weight: 600; color: #b0a89c; }

.fb-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-cloud-tag { padding: 6px 12px; border-radius: 18px; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: all 0.13s; }
.fb-cloud-tag.love { background: #eaf5ee; color: #1E6332; }
.fb-cloud-tag.imp { background: #fef3e7; color: #b45309; }
.fb-cloud-tag b { opacity: 0.6; }
.fb-cloud-tag:hover { transform: translateY(-1px); }
.fb-cloud-tag.love.on { border-color: #2F8542; box-shadow: 0 2px 8px rgba(47,133,66,0.25); }
.fb-cloud-tag.imp.on { border-color: #d97706; box-shadow: 0 2px 8px rgba(217,119,6,0.25); }

.fb-comments { display: flex; flex-direction: column; gap: 12px; max-height: 420px; overflow-y: auto; }
.fb-comment { display: flex; gap: 12px; }
.fb-comment-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#1E6332,#2F8542); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.74rem; font-weight: 800; flex-shrink: 0; }
.fb-comment-body { flex: 1; min-width: 0; }
.fb-comment-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.fb-comment-name { font-size: 0.82rem; font-weight: 700; color: #1f2937; }
.fb-comment-mood { font-size: 0.9rem; }
.fb-comment-when { font-size: 0.7rem; color: #b0a89c; margin-left: auto; }
.fb-comment-text { font-size: 0.84rem; color: #4b5563; line-height: 1.45; }
.fb-empty { font-size: 0.84rem; color: #9aa0a6; padding: 12px 0; }
.fb-admin-note { margin-top: 14px; font-size: 0.78rem; color: #9aa0a6; display: flex; align-items: center; gap: 7px; }

/* admin toolbar (period filters + custom range) */
.fb-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fb-pbtns { display: inline-flex; background: #f1ede6; border-radius: 10px; padding: 3px; gap: 2px; }
.fb-pbtn { border: none; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; color: #6b7280; cursor: pointer; font-family: inherit; transition: all 0.14s; }
.fb-pbtn:hover { color: #1f2937; }
.fb-pbtn.on { background: #fff; color: #1E6332; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.fb-custom { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1.5px solid #ece7df; border-radius: 10px; font-size: 0.78rem; color: #6b7280; }
.fb-custom.on { border-color: #2F8542; background: #eaf5ee; }
.fb-custom i { color: #9aa0a6; }
.fb-custom input { border: none; background: transparent; font-family: inherit; font-size: 0.78rem; color: #1f2937; outline: none; width: 116px; }
.fb-toolbar-count { margin-left: auto; font-size: 0.8rem; color: #6b7280; }
.fb-toolbar-count b { color: #1f2937; }
.fb-kpis-5 { grid-template-columns: repeat(5, 1fr); }

/* adoption */
.fb-adopt-big { font-size: 1.7rem; font-weight: 800; color: #1f2937; margin-bottom: 8px; }
.fb-adopt-big span { font-size: 0.86rem; font-weight: 600; color: #9aa0a6; }
.fb-adopt-bar { height: 10px; background: #f1ede6; border-radius: 6px; overflow: hidden; margin-bottom: 9px; }
.fb-adopt-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2F8542, #18A74B); transition: width 0.6s cubic-bezier(0.22,1,0.36,1); }
.fb-adopt-meta { font-size: 0.78rem; color: #6b7280; } .fb-adopt-meta b { color: #1E6332; }

/* submissions trend (green bars + axis labels) */
.fb-trend { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 8px; }
.fb-trend-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.fb-trend-barwrap { height: 64px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.fb-trend-bar { width: 76%; min-height: 4px; background: linear-gradient(180deg, #2F8542, #1E6332); border-radius: 5px 5px 2px 2px; transition: height 0.5s ease; }
.fb-trend-col:hover .fb-trend-bar { filter: brightness(1.08); }
.fb-trend-x { font-size: 0.66rem; color: #9aa0a6; margin-top: 6px; white-space: nowrap; font-weight: 600; }
.fb-trend-cap { font-size: 0.74rem; color: #9aa0a6; text-transform: capitalize; }

/* monthly giveaway enrollees */
.fb-give-card { border: 1.5px solid #f3e2c5; background: linear-gradient(180deg, #fffdf8, #fff); }
.fb-give-h { display: inline-flex; align-items: center; gap: 8px; color: #1f2937; }
.fb-give-h i { color: #d97706; }
.fb-draw-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: none; background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; padding: 7px 14px; border-radius: 10px; font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit; box-shadow: 0 4px 12px rgba(217,119,6,0.28); transition: transform 0.14s; }
.fb-draw-btn:hover { transform: translateY(-1px); }
.fb-give-note { font-size: 0.78rem; color: #9aa0a6; margin: -2px 0 12px; }
.fb-give-winner { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: linear-gradient(135deg, #fef3c7, #fde9b8); border: 1.5px solid #f1cd7a; color: #92400e; font-size: 0.86rem; margin-bottom: 14px; }
.fb-give-winner i { color: #d97706; font-size: 1rem; }
.fb-give-winner span { color: #b97818; }
.fb-give-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 9px; }
.fb-enrollee { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1.5px solid #f1ede6; border-radius: 12px; background: #fff; transition: all 0.16s; }
.fb-enrollee.win { border-color: #f1cd7a; background: linear-gradient(135deg, #fffbf0, #fff); box-shadow: 0 6px 16px rgba(217,119,6,0.16); }
.fb-enrollee-av { position: relative; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; color: #fff; flex-shrink: 0; background: linear-gradient(135deg, #1E6332, #2F8542); }
.fb-enrollee.win .fb-enrollee-av { background: linear-gradient(135deg, #d97706, #f59e0b); }
.fb-enrollee-av i { position: absolute; top: -7px; right: -6px; font-size: 0.62rem; color: #d97706; background: #fff; border-radius: 50%; padding: 2px; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.fb-enrollee-meta { flex: 1; min-width: 0; }
.fb-enrollee-name { font-size: 0.82rem; font-weight: 700; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-enrollee-email { font-size: 0.72rem; color: #9aa0a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-enrollee-tix { font-size: 0.74rem; font-weight: 700; color: #d97706; flex-shrink: 0; }

/* compare vs old process */
.fb-cmp-big { font-size: 1.5rem; font-weight: 800; color: #1E6332; margin-bottom: 10px; }
.fb-cmp-big span { font-size: 0.8rem; font-weight: 600; color: #9aa0a6; margin-left: 6px; }
.fb-cmp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fb-cmp-label { width: 96px; font-size: 0.76rem; color: #4b5563; flex-shrink: 0; }
.fb-cmp-track { flex: 1; height: 8px; background: #f1ede6; border-radius: 5px; overflow: hidden; }
.fb-cmp-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.fb-cmp-val { width: 36px; text-align: right; font-size: 0.78rem; font-weight: 700; color: #1f2937; }

/* happy / unhappy user rows */
.fb-user { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid #f4f0ea; }
.fb-user:last-child { border-bottom: none; }
.fb-user-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.fb-user.pos .fb-user-av { background: linear-gradient(135deg, #1E6332, #2F8542); }
.fb-user.neg .fb-user-av { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.fb-user-body { flex: 1; min-width: 0; }
.fb-user-top { display: flex; align-items: center; gap: 8px; }
.fb-user-name { font-size: 0.84rem; font-weight: 700; color: #1f2937; }
.fb-user-mood { margin-left: auto; font-size: 0.8rem; font-weight: 700; color: #4b5563; flex-shrink: 0; }
.fb-user-sub { font-size: 0.74rem; color: #9aa0a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-user-sub b { color: #6b7280; }

/* comment sentiment filter */
.fb-comment-filter { margin-left: auto; display: inline-flex; gap: 6px; }
.fb-cf { border: 1.5px solid #ece7df; background: #fff; border-radius: 18px; padding: 4px 11px; font-size: 0.72rem; font-weight: 600; color: #6b7280; cursor: pointer; font-family: inherit; transition: all 0.14s; }
.fb-cf.on { background: #f3f0ec; color: #1f2937; border-color: #d8d2c8; }
.fb-cf.pos.on { background: #eaf5ee; border-color: #2F8542; color: #1E6332; }
.fb-cf.neg.on { background: #fef2f2; border-color: #dc2626; color: #b91c1c; }

/* ============== Dark theme ============== */
body.dark-theme .fb-modal, body.dark-theme .fb-prompt, body.dark-theme .fb-card, body.dark-theme .fb-kpi { background: var(--theme-surface, #1c2230); border-color: var(--theme-border, #2c3444); }
body.dark-theme .fb-h2, body.dark-theme .fb-feat-name, body.dark-theme .fb-kpi-val, body.dark-theme .fb-card-h, body.dark-theme .fb-bar-val, body.dark-theme .fb-comment-name, body.dark-theme .fb-prompt-title, body.dark-theme .fb-sent-leg b { color: var(--theme-text, #e8edf4); }
body.dark-theme .fb-feat-card, body.dark-theme .fb-mood, body.dark-theme .fb-tag, body.dark-theme .fb-fav, body.dark-theme .fb-textarea, body.dark-theme .fb-sent-leg { background: var(--theme-surface-alt, #232b3a); border-color: var(--theme-border, #2c3444); color: var(--theme-text, #e8edf4); }
body.dark-theme .fb-foot, body.dark-theme .fb-mini { border-color: var(--theme-border, #2c3444); }
body.dark-theme .fb-bar-track, body.dark-theme .fb-sent-bar { background: #2c3444; }
body.dark-theme .fb-btn-ghost { background: #2c3444; color: #cbd2dc; }

/* ============== Step 4 — favorites + low-rating sections ============== */
.fb-why-sec { margin-bottom: 18px; }
.fb-why-sec-h { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; margin: 4px 2px 10px; display: flex; align-items: center; gap: 7px; }
.fb-why-sec-h.love { color: #1E6332; }
.fb-why-sec-h.imp { color: #b45309; }
.fb-why-card-imp { border-color: #f3e2c5 !important; background: #fdfaf4; }
.fb-why-chip.imp.sel { background: #fbe7d2; border-color: #d97706; color: #92400e; }
.fb-why-rated { font-size: 0.74rem; font-weight: 700; color: #dc2626; background: #fee2e2; border-radius: 10px; padding: 1px 7px; margin-left: 4px; }

/* ============== Admin — loading / error state ============== */
.fb-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 70px 20px; color: #6b7280; font-size: 0.9rem; }
.fb-loading-spin { width: 40px; height: 40px; border: 4px solid #ece7df; border-top-color: #1E6332; border-radius: 50%; animation: fbSpin 0.8s linear infinite; }
.fb-loading .fb-pbtn { margin-top: 4px; }
@keyframes fbSpin { to { transform: rotate(360deg); } }
body.dark-theme .fb-loading-spin { border-color: #2c3444; border-top-color: #2F8542; }
body.dark-theme .fb-loading { color: var(--theme-text-muted, #9aa0a6); }

/* ============== Profile → My Feedback tab ============== */
.myfb-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 16px; color: #6b7280; font-size: 0.86rem; }
.myfb-empty { padding: 28px 20px; text-align: center; color: #6b7280; font-size: 0.9rem; border: 1.5px dashed #e3ddd2; border-radius: 14px; background: #faf8f4; }
.myfb-empty i { color: #c4bdb0; margin-right: 6px; }
.myfb-link { border: none; background: none; color: #1E6332; font-weight: 700; cursor: pointer; text-decoration: underline; font-family: inherit; }
.myfb-list { display: flex; flex-direction: column; gap: 12px; }
.myfb-card { display: flex; gap: 13px; padding: 14px 16px; border: 1.5px solid #ece7df; border-radius: 14px; background: #fff; }
.myfb-card.is-editable { border-color: #d9efe0; background: #f7fcf9; }
.myfb-emoji { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.myfb-body { flex: 1; min-width: 0; }
.myfb-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.myfb-date { font-size: 0.84rem; font-weight: 700; color: #1f2937; }
.myfb-tag { font-size: 0.7rem; font-weight: 700; padding: 2px 9px; border-radius: 10px; display: inline-flex; align-items: center; gap: 5px; }
.myfb-tag.editable { color: #1E6332; background: #d6efdf; }
.myfb-tag.locked { color: #6b7280; background: #f1ede6; }
.myfb-edited { font-size: 0.68rem; color: #9aa0a6; display: inline-flex; align-items: center; gap: 4px; }
.myfb-summary { font-size: 0.82rem; color: #4b5563; }
.myfb-mood-label { font-weight: 700; color: #1f2937; }
.myfb-comment { font-size: 0.84rem; color: #374151; font-style: italic; margin-top: 7px; background: #f7f5f1; border-radius: 10px; padding: 8px 11px; }
.myfb-acts { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.myfb-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #ece7df; background: #fff; color: #4b5563; padding: 6px 12px; border-radius: 9px; font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.14s; }
.myfb-btn:hover { transform: translateY(-1px); }
.myfb-btn.edit:hover { border-color: #2F8542; color: #1E6332; }
.myfb-btn.del { color: #b91c1c; }
.myfb-btn.del:hover { border-color: #dc2626; background: #fef2f2; }
.myfb-confirm { font-size: 0.8rem; font-weight: 700; color: #b91c1c; margin-right: 2px; }
body.dark-theme .myfb-card { background: var(--theme-surface-alt, #232b3a); border-color: var(--theme-border, #2c3444); }
body.dark-theme .myfb-card.is-editable { background: #1d2b22; border-color: #2f5a3f; }
body.dark-theme .myfb-date, body.dark-theme .myfb-mood-label { color: var(--theme-text, #e8edf4); }
body.dark-theme .myfb-comment, body.dark-theme .myfb-empty { background: #1c2230; color: var(--theme-text-muted, #9aa0a6); }
body.dark-theme .myfb-btn { background: var(--theme-surface, #1c2230); border-color: var(--theme-border, #2c3444); color: var(--theme-text, #e8edf4); }

/* ============== Admin — KPI deltas ============== */
.fb-kpi-delta { font-size: 0.72rem; font-weight: 700; margin-left: 7px; padding: 1px 6px; border-radius: 8px; vertical-align: middle; white-space: nowrap; }
.fb-kpi-delta.up { color: #1E6332; background: #eaf5ee; }
.fb-kpi-delta.down { color: #b91c1c; background: #fef2f2; }
.fb-kpi-delta.flat { color: #6b7280; background: #f1f0ec; }
.fb-kpi-deltanote { font-size: 0.74rem; color: #9aa0a6; margin: -4px 0 14px; display: flex; align-items: center; gap: 6px; }
.fb-kpi-deltanote i { color: #2F8542; }
.fb-export-all { margin-left: 10px; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #d8d2c8; background: #fff; color: #4b5563; padding: 6px 12px; border-radius: 9px; font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.14s; }
.fb-export-all:hover { border-color: #2F8542; color: #1E6332; }

/* ============== Admin — trend modes ============== */
.fb-trend-tabs { margin-left: auto; display: inline-flex; gap: 3px; background: #f1ede6; border-radius: 9px; padding: 3px; }
.fb-trend-tab { border: none; background: transparent; padding: 4px 10px; border-radius: 7px; font-size: 0.72rem; font-weight: 700; color: #6b7280; cursor: pointer; font-family: inherit; }
.fb-trend-tab.on { background: #fff; color: #1E6332; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.fb-trend-tall .fb-trend-barwrap { height: 78px; }
.fb-trend-val { font-size: 0.66rem; font-weight: 700; color: #6b7280; margin-bottom: 3px; min-height: 12px; }
.fb-trend-bar.empty { background: #e5e1da !important; }

/* ============== Admin — adoption by segment ============== */
.fb-seg-bars { display: flex; flex-direction: column; gap: 9px; }
.fb-seg-row { display: flex; align-items: center; gap: 9px; }
.fb-seg-name { width: 116px; flex-shrink: 0; font-size: 0.78rem; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-seg-track { flex: 1; height: 9px; background: #f1ede6; border-radius: 5px; overflow: hidden; }
.fb-seg-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.fb-seg-val { width: 96px; text-align: right; font-size: 0.78rem; font-weight: 700; color: #1f2937; flex-shrink: 0; }
.fb-seg-meta { font-weight: 500; color: #9aa0a6; font-size: 0.72rem; }

/* ============== Admin — giveaway (month browsing) ============== */
.fb-give-nav { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.fb-give-navb { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid #ece7df; background: #fff; color: #6b7280; cursor: pointer; font-size: 0.72rem; }
.fb-give-navb:hover:not(:disabled) { border-color: #d97706; color: #b45309; }
.fb-give-navb:disabled { opacity: 0.4; cursor: default; }
.fb-give-month { font-size: 0.84rem; font-weight: 700; color: #1f2937; min-width: 128px; text-align: center; }
.fb-give-cur { font-size: 0.62rem; font-weight: 700; color: #1E6332; background: #d1f0db; border-radius: 8px; padding: 1px 6px; vertical-align: middle; }
.fb-winner-act { margin-left: 10px; border: 1.5px solid #f1cd7a; background: rgba(255,255,255,0.7); color: #92400e; padding: 4px 10px; border-radius: 8px; font-size: 0.74rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.fb-enrollee-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.fb-enrollee-btn { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid #ece7df; background: #fff; color: #9aa0a6; cursor: pointer; font-size: 0.72rem; }
.fb-enrollee-btn:hover { border-color: #2F8542; color: #1E6332; }

/* ============== Admin — clickable rows ============== */
.fb-bar-click { cursor: pointer; padding: 5px 8px; margin: 0 -8px; border-radius: 9px; transition: background 0.13s; }
.fb-bar-click:hover { background: #f7f5f1; }
.fb-bar-arrow { color: #c4bdb0; font-size: 0.7rem; margin-left: 4px; }
.fb-user-click, .fb-comment-click { cursor: pointer; }
.fb-user-click:hover, .fb-comment-click:hover { background: #f7f5f1; border-radius: 9px; }

/* ============== Admin — comment tools ============== */
.fb-comment-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fb-comment-search { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #ece7df; border-radius: 9px; padding: 4px 10px; }
.fb-comment-search i { color: #b8b0a3; font-size: 0.78rem; }
.fb-comment-search input { border: none; outline: none; background: transparent; font-family: inherit; font-size: 0.78rem; width: 150px; color: #1f2937; }
.fb-active-tag { font-size: 0.78rem; color: #6b7280; margin: 4px 2px 10px; display: flex; align-items: center; gap: 8px; }
.fb-active-tag b { color: #1f2937; }
.fb-active-tag button { border: none; background: #f1ede6; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; color: #6b7280; }

/* ============== Admin — drill-down modal ============== */
.fb-am-bd { position: fixed; inset: 0; background: rgba(20,28,24,0.5); z-index: 100200; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.fb-am-bd.show { opacity: 1; pointer-events: auto; }
.fb-am { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%); width: min(820px, 92vw); max-height: 86vh; background: #fff; border-radius: 18px; z-index: 100201; box-shadow: 0 30px 80px rgba(0,0,0,0.3); opacity: 0; pointer-events: none; overflow: hidden; display: flex; flex-direction: column; transition: opacity 0.2s, transform 0.2s; }
.fb-am.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.fb-am-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,0.85); color: #6b7280; cursor: pointer; z-index: 2; }
.fb-am-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; background: linear-gradient(135deg, #1E6332, #214A3E); color: #fff; flex-shrink: 0; }
.fb-am-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.fb-am-ic.is-img { background: transparent !important; }
.fb-am-ic .fb-ic-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fb-am-uav { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 800; flex-shrink: 0; }
.fb-am-title { font-size: 1.15rem; font-weight: 800; }
.fb-am-sub { font-size: 0.8rem; opacity: 0.85; margin-top: 2px; }
.fb-am-body { padding: 18px 24px 24px; overflow-y: auto; }
.fb-am-sec { margin-bottom: 18px; }
.fb-am-sec-h { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: #6b7280; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.fb-am-sec-h.love { color: #1E6332; } .fb-am-sec-h.imp { color: #b45309; }
.fb-am-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fb-am-cols .fb-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-dist-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fb-dist-star { width: 30px; font-size: 0.78rem; font-weight: 700; color: #4b5563; flex-shrink: 0; }
.fb-dist-track { flex: 1; height: 12px; background: #f1ede6; border-radius: 6px; overflow: hidden; }
.fb-dist-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease; }
.fb-dist-fill.s5, .fb-dist-fill.s4 { background: #2F8542; }
.fb-dist-fill.s3 { background: #d97706; }
.fb-dist-fill.s2, .fb-dist-fill.s1 { background: #dc2626; }
.fb-dist-val { width: 78px; text-align: right; font-size: 0.78rem; font-weight: 700; color: #1f2937; flex-shrink: 0; }
.fb-dist-val span { font-weight: 500; color: #9aa0a6; }
.fb-raters { display: flex; flex-direction: column; gap: 7px; max-height: 260px; overflow-y: auto; }
.fb-rater { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f4f0ea; }
.fb-rater-name { font-size: 0.82rem; font-weight: 700; color: #1f2937; width: 130px; flex-shrink: 0; }
.fb-rater-score { font-size: 0.82rem; font-weight: 700; width: 32px; flex-shrink: 0; }
.fb-rater-c { font-size: 0.78rem; color: #6b7280; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-rater-c.muted { color: #c4bdb0; }
.fb-us-list { display: flex; flex-direction: column; gap: 10px; }
.fb-us-row { border: 1px solid #f0ece5; border-radius: 12px; padding: 11px 13px; }
.fb-us-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.fb-us-mood { font-size: 1.05rem; }
.fb-us-when { font-size: 0.78rem; color: #9aa0a6; }
.fb-us-nps, .fb-us-cmp { font-size: 0.7rem; font-weight: 700; color: #4b5563; background: #f1ede6; border-radius: 8px; padding: 1px 8px; }
.fb-us-c { font-size: 0.84rem; color: #374151; font-style: italic; margin: 8px 0 6px; }
.fb-us-ratings { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.fb-us-pill { font-size: 0.7rem; color: #4b5563; background: #f7f5f1; border: 1px solid #ece7df; border-radius: 8px; padding: 2px 8px; }

/* ============== Toast ============== */
.fb-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(10px); background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 0.82rem; font-weight: 600; z-index: 100300; opacity: 0; pointer-events: none; transition: all 0.22s; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.fb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* dark theme — drill modal + admin extras */
body.dark-theme .fb-am { background: var(--theme-surface, #1c2230); }
body.dark-theme .fb-am-title, body.dark-theme .fb-dist-val, body.dark-theme .fb-rater-name, body.dark-theme .fb-seg-val { color: var(--theme-text, #e8edf4); }
body.dark-theme .fb-us-row, body.dark-theme .fb-rater { border-color: var(--theme-border, #2c3444); }
body.dark-theme .fb-trend-tabs, body.dark-theme .fb-seg-track, body.dark-theme .fb-dist-track, body.dark-theme .fb-us-pill { background: #2c3444; }
body.dark-theme .fb-comment-search, body.dark-theme .fb-enrollee-btn, body.dark-theme .fb-give-navb { background: var(--theme-surface-alt, #232b3a); border-color: var(--theme-border, #2c3444); color: var(--theme-text, #e8edf4); }

/* ============== Mobile ============== */
/* narrower viewports — collapse the modal's 2-up grids */
@media (max-width: 760px) {
    .fb-feat-list, .fb-why-list { grid-template-columns: 1fr; }
    .fb-cols2 { grid-template-columns: 1fr; gap: 14px; }
    .fb-body { padding: 14px 22px 10px; }
    .fb-giveaway { margin-left: 22px; margin-right: 22px; }
}
@media (max-width: 600px) {
    .fb-modal { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
    .fb-progress { padding: 18px 52px 4px 22px; }
    .fb-kpis, .fb-kpis-5 { grid-template-columns: 1fr 1fr; }
    .fb-admin-grid, .fb-admin-grid2 { grid-template-columns: 1fr; }
    .fb-bar-name { width: 120px; }
    .fb-prompt { right: 10px; left: 10px; bottom: 10px; width: auto; }
    .fb-moods { gap: 5px; }
    .fb-mood { min-width: 60px; padding: 10px 3px 8px; }
    .fb-mood-emoji { font-size: 1.6rem; }
    .fb-nps { border-radius: 7px; font-size: 0.74rem; }
    .fb-toolbar-count { margin-left: 0; width: 100%; }
    .fb-comment-filter { margin-left: 0; flex-wrap: wrap; }
    .fb-give-list { grid-template-columns: 1fr; }
    .fb-draw-btn { margin-left: 0; }
    .fb-trend-x { font-size: 0.58rem; }
    .fb-am { width: 100vw; max-height: 92dvh; border-radius: 16px 16px 0 0; top: auto; bottom: 0; transform: translate(-50%, 0); }
    .fb-am.show { transform: translate(-50%, 0); }
    .fb-am-cols { grid-template-columns: 1fr; }
    .fb-comment-tools { margin-left: 0; width: 100%; }
    .fb-comment-search input { width: 110px; }
    .fb-trend-tabs { margin-left: 0; }
    .fb-give-nav { margin-left: 0; }
    .fb-give-month { min-width: 0; }
    .fb-seg-name { width: 92px; }
    .fb-rater-name { width: 90px; }
}
/* dark theme — new admin + step-1 elements */
body.dark-theme .fb-pbtns, body.dark-theme .fb-adopt-bar, body.dark-theme .fb-cmp-track, body.dark-theme .fb-trend { background: #2c3444; }
body.dark-theme .fb-pbtn.on, body.dark-theme .fb-custom input { color: #e8edf4; }
body.dark-theme .fb-seg, body.dark-theme .fb-nps, body.dark-theme .fb-cf, body.dark-theme .fb-custom { background: var(--theme-surface-alt, #232b3a); border-color: var(--theme-border, #2c3444); color: var(--theme-text, #e8edf4); }
/* keep the sentiment ramp visible in dark mode (tinted text + border) */
body.dark-theme .fb-nps.det, body.dark-theme .fb-seg-neg { color: #f0a59c; border-color: #5a3a36; }
body.dark-theme .fb-nps.pas, body.dark-theme .fb-seg-neu { color: #e8c074; border-color: #5a4a2a; }
body.dark-theme .fb-nps.pro, body.dark-theme .fb-seg-pos { color: #7fd49a; border-color: #2f5a3f; }
body.dark-theme .fb-nps-ends span:first-child { color: #f0a59c; }
body.dark-theme .fb-nps-ends span:last-child { color: #7fd49a; }
body.dark-theme .fb-user { border-color: var(--theme-border, #2c3444); }
body.dark-theme .fb-user-name, body.dark-theme .fb-adopt-big, body.dark-theme .fb-cmp-val, body.dark-theme .fb-toolbar-count b { color: var(--theme-text, #e8edf4); }
body.dark-theme .fb-overall-q { color: var(--theme-text, #e8edf4); }
body.dark-theme .fb-give-card { background: var(--theme-surface, #1c2230); border-color: #5a4a2a; }
body.dark-theme .fb-give-h, body.dark-theme .fb-enrollee-name { color: var(--theme-text, #e8edf4); }
body.dark-theme .fb-enrollee { background: var(--theme-surface-alt, #232b3a); border-color: var(--theme-border, #2c3444); }
