/**
 * ============================================
 * CURRENCY OVERLAY — Nest Egg Bank Display
 * ============================================
 * File: css/currency_overlay.css
 * Used by: index.html (SQUAWK!™ main app)
 * Companion: js/currency_overlay.js
 *
 * Includes: Balances view, Transfer panel, Convert panel,
 *           Community Funds row, Toast notifications,
 *           Food Cellar store panel (fix_code:00354)
 *
 * fix_code:00348+currency_overlay_designer_emojis_css (2026-02-08)
 * fix_code:00354+scroll_restructure (2026-02-11)
 * fix_code:00354+food_cellar_styles (2026-02-11)
 * ============================================
 */

/* ---- Clickable currency zone in upper right ---- */
.currency-zone {
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;
}

.currency-zone:active {
    opacity: 0.7;
}

/* ---- Full-screen overlay ---- */
#nestEggBankOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#nestEggBankOverlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---- Card ---- */
/* fix_code:00354 — flex column layout: pinned header/footer, scrollable middle */
.neb-card {
    width: 92%;
    max-width: 380px;
    max-height: 90vh;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    border: 2px solid #FFD700;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: nebSlideIn 0.3s ease-out;
}

/* ---- Scrollable middle region ---- */
/* fix_code:00354 — only this section scrolls */
.neb-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.3) transparent;
}

.neb-scroll::-webkit-scrollbar {
    width: 4px;
}

.neb-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.neb-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

/* ---- Pinned footer ---- */
/* fix_code:00354 — Transfer/Convert + Close always visible */
.neb-footer {
    flex-shrink: 0;
    padding: 10px 16px 16px;
    background: linear-gradient(0deg, #1a1a2e 80%, rgba(26, 26, 46, 0.9));
    border-top: 1px solid rgba(255, 215, 0, 0.15);
}

@keyframes nebSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---- Header banner ---- */
.neb-header {
    width: 100%;
    position: relative;
}

.neb-header img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Account sections ---- */
/* .neb-body removed in fix_code:00354 — replaced by .neb-scroll */

.neb-section {
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.neb-section:last-child {
    margin-bottom: 0;
}

.neb-section-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Designer-approved emoji icons in section titles (80x80 source, scaled) */
.neb-title-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* fix_code:00022+currency_zone_anchor (2026-02-18) */
/* "Buy more at The Roost" link in Nest Egg section title */
.neb-roost-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;
}

.neb-roost-link:active {
    opacity: 0.6;
}

.neb-roost-cta {
    font-size: 9px;
    font-weight: 600;
    color: #aaa;
    text-transform: none;
    letter-spacing: 0;
}

.neb-roost-img {
    height: 14px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.neb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.neb-currency-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.neb-currency-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.neb-currency-label {
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.neb-currency-value {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    min-width: 50px;
    text-align: right;
}

/* ---- Cheese section special ---- */
.neb-section.cheese {
    background: rgba(255, 165, 0, 0.08);
    border-color: rgba(255, 165, 0, 0.25);
}

.neb-section.cheese .neb-section-title {
    color: #FFA500;
}

.neb-cheese-hint {
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
    color: rgba(255, 165, 0, 0.5);
    text-align: right;
    margin-top: 2px;
}

/* ---- Divider ---- */
.neb-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    margin: 4px 0;
}

/* ============================================
   COMMUNITY FUNDS — STACKED LAYOUT
   fix_code:00353+community_funds_v2 (2026-02-17)
   ============================================ */

/* Info button row */
.neb-funds-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 2px;
}

.neb-funds-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.neb-funds-info-btn {
    background: none;
    border: 1px solid #64748b;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-style: italic;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: border-color 0.2s, color 0.2s;
}

.neb-funds-info-btn:hover,
.neb-funds-info-btn:active {
    border-color: #facc15;
    color: #facc15;
}

/* Tooltip popover */
.neb-funds-tooltip {
    display: none;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid #facc15;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #e2e8f0;
    position: relative;
    animation: nebTooltipFade 0.2s ease-out;
}

.neb-funds-tooltip.visible {
    display: block;
}

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

.neb-funds-tooltip-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.neb-funds-tooltip-close:hover {
    color: #fff;
}

/* Fund cards — stacked */
.neb-funds-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.neb-fund-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.neb-fund-card.bird {
    border: 1px solid #34d399;
}

.neb-fund-card.earth {
    border: 1px solid #60a5fa;
}

.neb-fund-card.hunger {
    border: 1px solid #fb923c;
}

.neb-fund-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.neb-fund-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.neb-fund-name {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 3px;
}

.neb-fund-name.bird { color: #34d399; }
.neb-fund-name.earth { color: #60a5fa; }
.neb-fund-name.hunger { color: #fb923c; }

.neb-fund-balance {
    display: flex;
    align-items: center;
    gap: 4px;
}

.neb-fund-balance img {
    width: 16px;
    height: 16px;
}

.neb-fund-balance span {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

/* ============================================
   ACTION BUTTONS (Transfer / Convert)
   ============================================ */
.neb-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.neb-action-btn {
    padding: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.neb-action-btn:active {
    transform: scale(0.97);
}

.neb-action-btn.transfer {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.neb-action-btn.transfer:active {
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.neb-action-btn.convert {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.neb-action-btn.convert:active {
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* ---- Close button (in .neb-footer) ---- */
.neb-close-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.neb-close-btn:active {
    transform: scale(0.97);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* ============================================
   TRANSFER / CONVERT PANELS
   Mirrors treasury.html .bank-transfer-section
   ============================================ */
.neb-panel {
    animation: nebPanelIn 0.2s ease-out;
}

@keyframes nebPanelIn {
    from { opacity: 0; transform: translateX(15px); }
    to   { opacity: 1; transform: translateX(0); }
}

.neb-panel-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
}

/* ---- Form elements ---- */
.neb-form-row {
    margin-bottom: 12px;
}

.neb-form-label {
    display: block;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.neb-form-select {
    width: 100%;
    padding: 10px 12px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.neb-form-select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* Amount grid (eggs + gems side by side) */
.neb-amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.neb-amount-field {
    display: flex;
    flex-direction: column;
}

.neb-amount-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.neb-amount-label img {
    width: 14px;
    height: 14px;
}

.neb-amount-input {
    width: 100%;
    padding: 10px 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-align: right;
}

.neb-amount-input.full-width {
    /* Used when there's a single input */
}

.neb-amount-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.neb-amount-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.neb-amount-input:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Source balance hint */
.neb-source-balance {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
    margin-top: 4px;
    margin-bottom: 8px;
}

/* Exchange rate display */
.neb-rate-display {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    text-align: center;
}

.neb-rate-label {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.neb-rate-result {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #e2e8f0;
}

.neb-rate-result strong {
    color: #FFD700;
}

.neb-rate-result em {
    color: #94a3b8;
    font-size: 12px;
}

/* Error message */
.neb-error-msg {
    display: none;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-family: 'Segoe UI', sans-serif;
    color: #fca5a5;
    font-size: 12px;
    text-align: center;
}

/* Form action buttons */
.neb-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.neb-form-btn {
    flex: 1;
    padding: 12px 14px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.neb-form-btn.cancel {
    background: #475569;
    color: #e2e8f0;
}

.neb-form-btn.cancel:active {
    background: #64748b;
}

.neb-form-btn.process {
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: #fff;
}

.neb-form-btn.process:active {
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.neb-form-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.neb-toast {
    display: none;
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #22c55e;
    border-radius: 10px;
    padding: 10px 16px;
    min-width: 200px;
    max-width: 320px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.neb-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.neb-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neb-toast-icon::after {
    content: '';
    display: block;
}

/* Success checkmark (pure CSS) */
.neb-toast-icon.neb-toast-success {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
}

.neb-toast-icon.neb-toast-success::after {
    width: 8px;
    height: 14px;
    border: solid #22c55e;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) translateY(-1px);
}

/* Error X (pure CSS) */
.neb-toast-icon.neb-toast-error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
}

.neb-toast-icon.neb-toast-error::after {
    content: '\00d7';
    font-size: 20px;
    font-weight: bold;
    color: #ef4444;
    line-height: 1;
}

.neb-toast-msg {
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #e2e8f0;
    line-height: 1.3;
}

/* ============================================
   FEY EMERALDS SECTION — Enchanted Vault
   fix_code:00353+fey_emeralds_currency (2026-02-10)
   ============================================ */
.neb-section.fey {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.neb-section.fey .neb-section-title {
    color: #34d399;
}

.neb-fey-hint {
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
    color: rgba(52, 211, 153, 0.5);
    text-align: right;
    margin-top: 2px;
}

/* ============================================
   FOOD CELLAR — Launcher + Store Panel
   fix_code:00354+food_cellar_panel (2026-02-11)
   CSS-1 through CSS-7
   ============================================ */

/* CSS-1: Launcher banner beneath Nest Egg section */
.neb-food-cellar-launcher {
    margin: 10px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.neb-food-cellar-launcher:active {
    transform: scale(0.98);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.neb-food-cellar-launcher img {
    width: 100%;
    display: block;
}

/* CSS-2: QC balance bar at top of Food Cellar panel */
/* fix_code:00022+fc_sticky_bar (2026-02-18)
   Merged balance + cart total into one pinned top bar.
   Dual footer buttons (Close + Check Out) in neb-footer. */

/* Sticky header wrapper — pins title + balance bar at top of scroll */
.neb-fc-sticky-header {
    position: sticky;
    top: -16px;           /* counteract .neb-scroll padding-top */
    z-index: 5;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    padding: 16px 0 4px;
    margin: -16px -16px 8px;  /* bleed into scroll padding so no gap shows */
    padding-left: 16px;
    padding-right: 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.neb-fc-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    margin-bottom: 10px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
}

.neb-fc-top-balance,
.neb-fc-top-cart {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #FFD700;
}

.neb-fc-top-label {
    color: #aaa;
    font-weight: 600;
    font-size: 11px;
}

.neb-fc-top-bar img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.neb-fc-top-cart-icon {
    width: 22px !important;
    height: 22px !important;
}

/* Dual footer row: Close + Check Out side by side */
.neb-fc-footer-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.neb-fc-footer-row .neb-fc-footer-close {
    flex: 1;
    padding: 14px 8px;
    font-size: 15px;
}

.neb-fc-footer-checkout {
    flex: 1;
    padding: 14px 8px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.neb-fc-footer-checkout:active {
    transform: scale(0.97);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.neb-fc-footer-checkout:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* CSS-3: Item list container */
.neb-fc-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* CSS-4: Individual food item card — horizontal layout */
.neb-fc-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    align-items: center;
    transition: background 0.15s ease;
}

.neb-fc-item:active {
    background: rgba(255, 255, 255, 0.08);
}

/* Food item image */
.neb-fc-item-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

/* Info column (name, price, calories, owned) */
.neb-fc-item-info {
    flex: 1;
    min-width: 0;
}

.neb-fc-item-name {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #f0e6d3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price row with QC icon */
.neb-fc-price-row {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 2px;
}

.neb-fc-price-row img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.neb-fc-price-row span {
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #FFD700;
}

/* Calorie display */
.neb-fc-calories {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #aaa;
}

/* Inventory owned indicator */
.neb-fc-owned {
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
    color: #88cc88;
}

/* CSS-5: +/- quantity buttons */
.neb-fc-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.neb-fc-minus,
.neb-fc-plus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #FFD700;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.12s ease, border-color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.neb-fc-minus:active,
.neb-fc-plus:active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.neb-fc-qty {
    min-width: 20px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* CSS-6: Cart footer — sticky summary */
.neb-fc-cart-footer {
    margin-top: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
}

.neb-fc-cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.neb-fc-cart-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #ccc;
}

.neb-fc-cart-label img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.neb-fc-cart-total {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
}

/* CSS-7: QC price icon inline sizing */
.neb-fc-cart-total img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Checkout button gold variant */
.neb-fc-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.neb-fc-checkout-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* ============================================
   FOOD INVENTORY — My Food Inventory panel
   fix_code:00354 Phase 6
   ============================================ */

/* Quantity badge — right-aligned count */
.neb-fi-qty-badge {
    flex-shrink: 0;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    padding: 0 8px;
}

/* Total calories summary row */
.neb-fi-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.neb-fi-total-cal {
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
}

/* ============================================
   DAILY REWARD BADGE — Nest Quest button
   fix_code:00353+daily_rewards (2026-02-10)
   ============================================ */
.quick-access-wrapper {
    position: relative;
    display: inline-block;
}

.daily-reward-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a2e;
    z-index: 101;
    animation: rewardBadgePulse 2s ease-in-out infinite;
}

@keyframes rewardBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50%      { transform: scale(1.15); box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.4); }
}

/* ============================================
   DAILY REWARD CLAIM CARD OVERLAY
   fix_code:00353+daily_rewards (2026-02-10)
   ============================================ */
#dailyRewardOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#dailyRewardOverlay.active {
    opacity: 1;
    visibility: visible;
}

.dr-card {
    width: 88%;
    max-width: 340px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    border: 2px solid #FFD700;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.2), 0 8px 32px rgba(0, 0, 0, 0.6);
    animation: nebSlideIn 0.3s ease-out;
}

.dr-header img {
    width: 100%;
    height: auto;
    display: block;
}

.dr-body {
    padding: 16px;
}

.dr-reward-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
}

.dr-reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dr-reward-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.dr-reward-label {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.dr-reward-amount {
    font-family: 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #FFD700;
}

.dr-claim-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 14px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dr-claim-btn:active {
    transform: scale(0.97);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.dr-claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Claimed celebration state */
.dr-claim-btn.claimed {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    animation: drClaimedPulse 0.4s ease-out;
}

@keyframes drClaimedPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); box-shadow: 0 0 20px rgba(34, 197, 94, 0.5); }
    100% { transform: scale(1); }
}
