/* ===== Top Nav ===== */
.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(21, 32, 48, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.topnav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 17px;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.45), 0 0 4px rgba(34, 197, 94, 0.2);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 1.15rem;
    color: var(--text);
    text-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.topnav-center { flex: 1; max-width: 420px; min-width: 0; }

/* ===== Mobile Filter Bar ===== */
body.in-category .mobile-filter-bar { display: none !important; }
body.in-category .book { margin-top: 63px; }

.mobile-filter-bar {
    display: none;
    position: fixed;
    top: 63px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 7px 14px;
    align-items: center;
    gap: 8px;
    z-index: 99;
    color: var(--text-dim);
}

.mobile-filter-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-filter-bar .state-select {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
}

.mobile-filter-label-text {
    display: inline;
}

.search-pill {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-pill:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-icon { color: var(--text-dim); flex-shrink: 0; }

.search-pill input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 0.85rem; min-width: 0;
}

.search-pill input::placeholder { color: var(--text-dim); }

.topnav-right {
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}

.state-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}

.state-select:focus { border-color: #3b82f6; }

.live-badge {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 600;
    color: var(--food);
    text-transform: uppercase; letter-spacing: 0.06em;
    white-space: nowrap;
}

.live-dot {
    width: 7px; height: 7px;
    background: var(--food);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--food-glow);
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Scan Button (inside search pill) ===== */
.scan-btn {
    display: flex; align-items: center; justify-content: center;
    background: none; border: none;
    padding: 2px;
    color: var(--text-dim);
    cursor: pointer;
    transition: color var(--transition);
    flex-shrink: 0;
}

.scan-btn:hover { color: #3b82f6; }

/* ===== Logo Home Button ===== */
.logo-home-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px 4px 0;
    border-radius: 10px;
    transition: opacity var(--transition);
}
.logo-home-btn:hover { opacity: 0.8; }

/* ===== Book / Page System ===== */
.book {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== Pages ===== */
.page {
    display: none;
    animation: pageIn 0.35s ease-out;
}

.page.active { display: block; }

/* ===== World Layout ===== */
.world-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
    align-items: start;
}

.world-main { min-width: 0; }

.world-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 4px;
}

.world-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    flex-shrink: 0;
}

.world-back-btn:hover {
    color: var(--text);
    border-color: var(--border-light);
    background: var(--surface2);
}

.world-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* Sidebar */
.world-sidebar { padding-top: 56px; }

.sidebar-sticky {
    position: sticky;
    top: 84px;
}

.sidebar-ad-lower {
    margin-top: 320px;
}

.sidebar-ad-label {
    font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 8px;
}

/* ── Ad placeholders hidden until AdSense is live ── */
.ad-slot, .modal-ad-wrap, .sidebar-ad-label, .checker-mobile-ad { display: none !important; }

.ad-slot.sidebar-ad {
    width: 300px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 0.75rem;
    line-height: 2;
}

/* ===== Cover Latest (horizontal scroll) ===== */
.cover-latest { margin-bottom: 20px; }

.card-scroll {
    display: flex; gap: 14px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.card-scroll::-webkit-scrollbar { height: 4px; }
.card-scroll::-webkit-scrollbar-track { background: transparent; }
.card-scroll::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

.card-scroll .recall-card {
    min-width: 300px; max-width: 340px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ===== Category Page Header ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    margin: 20px 0 24px;
    position: relative; overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute; inset: 0;
    opacity: 0.12;
    background: radial-gradient(ellipse at 85% 50%, currentColor 0%, transparent 65%);
}

.page-header::after {
    position: absolute;
    right: 160px; top: 50%;
    transform: translateY(-50%);
    font-size: 7rem; line-height: 1;
    opacity: 0.07;
    pointer-events: none;
    filter: saturate(0);
}

.food-theme { background: linear-gradient(135deg, var(--surface) 0%, rgba(52,211,153,0.06) 100%); border: 1px solid rgba(52,211,153,0.4); color: var(--food); }
.food-theme::after { content: '🍎'; }

.drug-theme { background: linear-gradient(135deg, var(--surface) 0%, rgba(167,139,250,0.06) 100%); border: 1px solid rgba(167,139,250,0.4); color: var(--drug); }
.drug-theme::after { content: '💊'; }

.device-theme { background: linear-gradient(135deg, var(--surface) 0%, rgba(56,189,248,0.06) 100%); border: 1px solid rgba(56,189,248,0.4); color: var(--device); }
.device-theme::after { content: '🔬'; }

.consumer-theme { background: linear-gradient(135deg, var(--surface) 0%, rgba(249,115,22,0.06) 100%); border: 1px solid rgba(249,115,22,0.4); color: var(--consumer); }
.consumer-theme::after { content: '🛍️'; }

.vehicle-theme { background: linear-gradient(135deg, var(--surface) 0%, rgba(250,204,21,0.06) 100%); border: 1px solid rgba(250,204,21,0.4); color: var(--vehicle); }
.vehicle-theme::after { content: '🚗'; }

.page-chapter {
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    opacity: 0.6; display: block; margin-bottom: 6px;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem; font-weight: 700;
    color: var(--text); margin-bottom: 6px;
}

.page-desc {
    font-size: 0.85rem; color: var(--text-muted);
    max-width: 400px;
}

.page-desc-muted {
    font-size: 0.88rem; color: var(--text-dim);
    margin-top: 6px;
}

.page-header-stat { text-align: center; flex-shrink: 0; }

.page-big-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem; font-weight: 700;
    line-height: 1; display: block;
}

.food-theme .page-big-num { color: var(--food); }
.drug-theme .page-big-num { color: var(--drug); }
.device-theme .page-big-num { color: var(--device); }
.consumer-theme .page-big-num { color: var(--consumer); }
.vehicle-theme .page-big-num { color: var(--vehicle); }

.page-big-label {
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-dim); font-weight: 600;
}

.page-sort {
    display: flex; justify-content: flex-end;
    margin-bottom: 14px;
}

.sort-select {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--surface);
    font-size: 0.82rem; color: var(--text-muted);
    cursor: pointer; outline: none;
    font-family: inherit;
    transition: border-color var(--transition);
}

.sort-select:focus { border-color: #3b82f6; }

/* ===== Card List ===== */
.card-list {
    display: flex; flex-direction: column; gap: 12px;
}

/* ===== Load More ===== */
.load-more-wrap { text-align: center; padding: 28px 0; }

.load-more-btn {
    padding: 12px 36px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all var(--transition);
}

.load-more-btn:hover {
    border-color: #3b82f6; color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* ===== Anchor Ad (mobile sticky bottom) ===== */
.anchor-ad {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 8px 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.anchor-ad.visible { transform: translateY(0); }
.anchor-ad-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}
.anchor-ad-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    white-space: nowrap;
}
.anchor-ad-slot {
    flex: 1;
    height: 60px;
    margin: 0;
    min-width: 0;
    border-radius: 6px;
}
.anchor-ad-close {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.anchor-ad-close:hover { background: var(--border); color: var(--text); }

/* In-feed ad card */
.infeed-ad {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 12px 16px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.infeed-ad-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-dim);
    white-space: nowrap;
}
.infeed-ad-slot {
    flex: 1;
    min-height: 80px;
    margin: 0;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .anchor-ad { display: block; }
    body.anchor-visible { padding-bottom: 84px; }
}

/* ===== Footer ===== */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    color: var(--text-dim); font-size: 0.8rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.footer-brand {
    display: flex; align-items: center; gap: 10px;
}
.footer-logo-mark {
    width: 28px; height: 28px;
    font-size: 0.75rem;
}
.footer-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-nav {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.footer-link {
    font-size: 0.75rem; font-weight: 500;
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.footer-link:hover { color: var(--text); border-color: var(--border-light); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-legal-nav {
    display: flex; gap: 4px;
}
.footer-sources {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.75rem; color: var(--text-dim);
}
.footer-source {
    font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    padding: 2px 7px; border-radius: 50px;
}
.fda-tag  { background: var(--device-bg);   color: var(--device); }
.cpsc-tag { background: var(--consumer-bg); color: var(--consumer); }
.nhtsa-tag{ background: var(--vehicle-bg);  color: var(--vehicle); }
.footer-disclaimer {
    font-size: 0.72rem; color: var(--text-dim);
}

/* ===== Responsive ===== */

/* Checker mobile ad — hidden on desktop (sidebar handles it), shown on mobile */
.checker-mobile-ad { display: none; margin-top: 24px; text-align: center; }
.checker-mobile-ad .ad-slot.sidebar-ad { width: 100%; max-width: none; min-height: 90px; }

/* Hide sidebar below 1080px */
@media (max-width: 1080px) {
    .world-layout { grid-template-columns: 1fr; gap: 0; }
    .world-sidebar { display: none; }
    .checker-mobile-ad { display: block; }
}

@media (max-width: 768px) {
    .book { overflow-x: clip; }

    /* Modal slides up from bottom on mobile */
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        animation: slideUpModal 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    }
    @keyframes slideUpModal {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .topnav { padding: 10px 14px; gap: 8px; justify-content: flex-start; }
    .topnav-center { max-width: none; min-width: 0; }
    .topnav-right { display: none; }
    .logo-text { display: none; }
    .mobile-filter-bar { display: flex; }
    .book { margin-top: 108px; }
    .page-header::after { display: none; }

    .hub-content { padding: 0 14px 40px; width: 100%; }
    .world-layout { width: 100%; }
    .hub-title { font-size: 2rem; }
    .hub-sub { font-size: 0.9rem; }
    .hub-grid { gap: 8px; }
    .hub-card { padding: 16px 18px; gap: 14px; }
    .hub-card-icon { width: 40px; height: 40px; border-radius: 10px; }
    .hub-card-count { font-size: 1.5rem; }
    .hub-card-desc { display: none; }

    .world-layout { padding: 0 14px 32px; }
    .world-nav { padding: 12px 0 4px; }


    .signup-card { flex-direction: column; text-align: center; padding: 24px 20px; }
    .signup-form { width: 100%; }
    .signup-form input { flex: 1; width: auto; }

    .page-header { flex-direction: column; text-align: center; gap: 16px; padding: 24px 20px; }
    .page-desc { max-width: 100%; }
    .page-title { font-size: 1.3rem; }

    .card-content { padding: 14px 16px; }
    .recall-date { margin-left: 0; }

    .checker-wrap { padding-top: 10px; }
    .checker-form { padding: 20px; }
    .checker-cats { flex-wrap: wrap; }

    .detail-row { flex-direction: column; gap: 4px; }
    .detail-label { min-width: unset; }
}

@media (max-width: 480px) {
    .hub-title { font-size: 1.7rem; }
    .hub-card { gap: 10px; padding: 14px 16px; }
    .hub-card-right { margin-left: 0; }
    .hub-card-count { font-size: 1.3rem; }
    .hub-card-count-label { display: none; }
    .page-big-num { font-size: 2rem; }
    .card-scroll .recall-card { min-width: 260px; }
    .checker-title { font-size: 1.5rem; }
    .card-img-panel { display: none; }
    .card-img-mobile { display: block; }
    .modal-img-wrap { height: 160px; }

    .topnav { padding: 10px 12px; }
    .mobile-filter-bar { padding: 7px 12px; }
    .mobile-filter-label-text { display: none; }
}


/* ===== Cookie Consent Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 300;
    background: #1e293b;
    border-top: 1px solid var(--border);
    padding: 14px 24px;
}
.cookie-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-text {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}
.cookie-link { color: #3b82f6; cursor: pointer; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.cookie-accept { background: #3b82f6; color: #fff; }
.cookie-decline { background: transparent; color: #64748b; border: 1px solid #334155; }
.cookie-decline:hover { color: #94a3b8; border-color: #475569; }

/* ===== Image Attribution ===== */
.img-attrib {
    font-size: 10px;
    color: #475569;
    text-align: right;
    padding: 2px 6px 4px;
    line-height: 1.3;
}
.img-attrib a { color: inherit; text-decoration: underline; }

/* ===== What To Do Box ===== */
.what-to-do-box {
    background: #0f2d1a;
    border: 1px solid #16a34a44;
    border-left: 4px solid #16a34a;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.wtd-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4ade80;
    margin-bottom: 8px;
}
.wtd-guide {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
}
.wtd-remedy, .wtd-contact {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 6px;
}
.wtd-label {
    font-weight: 600;
    color: #cbd5e1;
}
.wtd-official-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 20px;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}
.wtd-official-btn:hover { background: #15803d; }
.wtd-disclaimer {
    margin: 10px 0 0;
    font-size: 11px;
    color: #4b6653;
    line-height: 1.4;
}

/* ===== Feedback Tab ===== */
.feedback-tab-wrap {
    position: fixed;
    right: 0;
    bottom: 160px;
    z-index: 200;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.feedback-tab-btn {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    background: rgba(59, 130, 246, 0.45);
    color: #fff;
    border: none;
    padding: 14px 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: background 0.15s;
    flex-shrink: 0;
    align-self: stretch;
}
.feedback-tab-btn:hover,
.feedback-tab-wrap.is-open .feedback-tab-btn { background: rgba(59, 130, 246, 0.85); }
.feedback-tab-btn:focus { outline: none; }
.feedback-panel {
    width: 320px;
    background: #1e293b;
    border: 1px solid #334155;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 16px 16px 0;
    box-shadow: -4px 4px 24px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    max-height: 88vh;
}
.fb-scroll {
    overflow-y: auto;
    flex: 1;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}
.feedback-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 12px;
}
.feedback-close-panel {
    background: none;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.feedback-close-panel:hover { color: #e2e8f0; }
.feedback-intro {
    color: #64748b;
    font-size: 12px;
    margin: 0 0 14px;
    line-height: 1.5;
}
.fb-question { margin-bottom: 14px; }
.fb-label {
    display: block;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 6px;
    line-height: 1.4;
}
.fb-req { color: #ef4444; }
.fb-radio-group { display: flex; flex-direction: column; gap: 5px; }
.fb-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 10px;
    border: 1px solid #334155;
    border-radius: 6px;
    transition: border-color 0.15s, background 0.15s;
}
.fb-radio:hover { border-color: #3b82f6; background: #1e293b; }
.fb-radio input[type="radio"] { accent-color: #3b82f6; }
.fb-select {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 13px;
    padding: 8px 10px;
    box-sizing: border-box;
    font-family: inherit;
}
.fb-select:focus { outline: none; border-color: #3b82f6; }
.fb-req-error {
    color: #ef4444;
    font-size: 12px;
    margin: 0 0 8px;
}
.feedback-textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 13px;
    padding: 10px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}
.feedback-textarea:focus { outline: none; border-color: #3b82f6; }
.feedback-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.feedback-send-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.feedback-send-btn:hover { background: #2563eb; }
.feedback-dismiss-btn {
    background: none;
    border: none;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}
.feedback-dismiss-btn:hover { color: #94a3b8; }
/* Satisfaction rating table */
.fb-sat-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.fb-sat-header {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}
.fb-sat-header span {
    font-size: 9px;
    color: #475569;
    text-align: center;
    line-height: 1.2;
}
.fb-sat-row {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    gap: 2px;
    padding: 5px 0;
    border-top: 1px solid #1e293b;
    align-items: center;
}
.fb-sat-label {
    font-size: 12px;
    color: #94a3b8;
}
.fb-sat-row label {
    display: flex;
    justify-content: center;
    cursor: pointer;
}
.fb-sat-row input[type="radio"] { accent-color: #3b82f6; cursor: pointer; }

@media (max-width: 768px) {
    .feedback-tab-wrap { bottom: 20px; }
    .feedback-panel {
        max-height: calc(100vh - 80px);
        width: 290px;
    }
}
