/* /mylists/ account hub: account card, tabs, saved-vendor cards and empty states.
   Loaded after dashboard-saved.css and matches the sign-in dialog (site-account.css). */
.nbf-saved-page {
    --hub-navy: #222f52;
    --hub-navy-2: #1a2442;
    --hub-gold: #a88757;
    --hub-gold-2: #c9a46a;
    --hub-gold-tint: #f6eedf;
    --hub-ink: #1f2430;
    --hub-muted: #5f6675;
    --hub-line: #e6e3dd;
    --hub-soft: #f7f5f1;
    --hub-rose: #e0517a;
    --hub-wa: #1f9d55;
    --hub-shadow: 0 10px 30px rgba(20, 24, 40, .07), 0 2px 6px rgba(20, 24, 40, .04);
    color: var(--hub-ink);
    padding-top: 8px;
}
.nbf-saved-page svg { fill: currentColor; }

/* ---------- Account card ---------- */
.nbfh {
    position: relative; overflow: hidden; border-radius: 22px; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, rgba(201, 164, 106, .28) 0%, rgba(201, 164, 106, 0) 45%), linear-gradient(135deg, var(--hub-navy) 0%, var(--hub-navy-2) 100%);
    padding: 34px 34px 30px; margin: 0 0 22px; box-shadow: 0 18px 40px rgba(26, 36, 66, .22);
}
.nbfh::after {
    content: ""; position: absolute; right: -40px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%;
    border: 2px solid rgba(201, 164, 106, .25); pointer-events: none;
}
.nbfh-eyebrow { margin: 0 0 6px !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hub-gold-2); }
.nbfh-title { margin: 0 !important; color: #fff !important; font-size: clamp(26px, 3.2vw, 34px) !important; line-height: 1.15 !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; }
.nbfh-text { margin: 10px 0 0 !important; color: #d5d9ea; font-size: 15px; line-height: 1.55; max-width: 520px; }
.nbfh-email { margin: 4px 0 0 !important; color: #b9bfd6; font-size: 14px; word-break: break-all; }
.nbfh-signout { color: var(--hub-gold-2) !important; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.nbfh-signout:hover { text-decoration: underline !important; }
.nbfh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.nbfh-btn {
    display: inline-flex !important; align-items: center; justify-content: center; height: 46px; padding: 0 22px !important;
    border-radius: 999px !important; font-size: 15px !important; font-weight: 700 !important; text-decoration: none !important;
    transition: background .15s, transform .15s, border-color .15s; line-height: 1 !important; cursor: pointer;
}
.nbfh-btn--gold { background: var(--hub-gold) !important; color: #fff !important; }
.nbfh-btn--gold:hover { background: var(--hub-gold-2) !important; transform: translateY(-1px); }
.nbfh-btn--ghost { color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent !important; }
.nbfh-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08) !important; }
.nbfh-btn--navy { background: var(--hub-navy) !important; color: #fff !important; margin-top: 16px; }
.nbfh-btn--navy:hover { background: var(--hub-navy-2) !important; }

/* Guest: text on the left, perks on the right */
.nbfh--guest { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.nbfh-perks { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 10px; position: relative; z-index: 1; }
.nbfh-perks li {
    display: flex; gap: 12px; align-items: flex-start; margin: 0 !important; padding: 14px 16px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
    font-size: 13px; line-height: 1.45; color: #c9cee2;
}
.nbfh-perks svg { width: 20px; height: 20px; flex: none; color: var(--hub-gold-2); margin-top: 1px; }
.nbfh-perks strong { display: block; color: #fff; font-size: 14px; margin-bottom: 1px; }

/* Signed in: identity on the left, tiles on the right */
.nbfh--user { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 28px; align-items: center; }
.nbfh-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nbfh-avatar {
    width: 64px; height: 64px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--hub-gold); color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .02em;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}
.nbfh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.nbfh-tile {
    display: flex !important; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
    padding: 14px 14px 13px !important; min-height: 104px; border-radius: 16px !important; cursor: pointer;
    background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .12) !important; color: #fff !important;
    font: inherit; text-decoration: none !important; box-shadow: none !important; transition: background .15s, transform .15s;
}
.nbfh-tile:hover, .nbfh-tile:focus-visible { background: rgba(255, 255, 255, .14) !important; transform: translateY(-2px); }
.nbfh-tile svg { width: 20px; height: 20px; color: var(--hub-gold-2); margin-bottom: 6px; }
.nbfh-tile strong { font-size: 26px; line-height: 1.05; font-weight: 700; color: #fff; }
.nbfh-tile .nbfh-tile-word { font-size: 22px; }
.nbfh-tile span { font-size: 12.5px; color: #c9cee2; line-height: 1.3; }
.nbfh-tile--cta { border-color: rgba(201, 164, 106, .55) !important; }

/* ---------- Tabs ---------- */
.nbf-saved-page .nbf-saved-tabs {
    display: inline-flex !important; gap: 4px; padding: 5px; margin: 0 0 18px !important; max-width: 100%;
    background: #fff; border: 1px solid var(--hub-line) !important; border-radius: 999px; box-shadow: var(--hub-shadow);
    overflow-x: auto; scrollbar-width: none;
}
.nbf-saved-page .nbf-saved-tab {
    display: inline-flex !important; align-items: center; gap: 8px; white-space: nowrap; flex: none;
    border: 0 !important; border-radius: 999px !important; background: transparent !important; color: var(--hub-muted) !important;
    padding: 10px 18px !important; font-size: 14px !important; font-weight: 600 !important; box-shadow: none !important; margin: 0 !important;
    transition: background .15s, color .15s;
}
.nbf-saved-page .nbf-saved-tab::after, .nbf-saved-page .nbf-saved-tab::before { display: none !important; }
.nbf-saved-page .nbf-saved-tab:hover { color: var(--hub-navy) !important; background: var(--hub-soft) !important; }
.nbf-saved-page .nbf-saved-tab.is-active { background: var(--hub-navy) !important; color: #fff !important; }
.nbf-saved-page .nbf-tab-badge { display: none; }
.nbf-saved-page .nbf-tab-badge.has-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--hub-gold-tint) !important; color: var(--hub-gold) !important; font-size: 11.5px; font-weight: 700;
}
.nbf-saved-page .nbf-saved-tab.is-active .nbf-tab-badge.has-count { background: var(--hub-gold) !important; color: #fff !important; }

/* ---------- Toolbar ---------- */
.nbf-saved-page .nbf-saved-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.nbf-saved-page .nbf-saved-count { font-size: 14px; font-weight: 600; color: var(--hub-muted); }
.nbf-saved-page .nbf-saved-controls { display: flex; gap: 8px; }
.nbf-saved-page .nbf-saved-select {
    height: 40px !important; padding: 0 34px 0 14px !important; border-radius: 999px !important; border: 1px solid var(--hub-line) !important;
    background-color: #fff !important; font-size: 13.5px !important; color: var(--hub-ink) !important; box-shadow: none !important;
}

/* ---------- Saved vendor cards ---------- */
.nbf-saved-page .nbf-saved-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.nbf-saved-page .nbfc {
    position: relative; display: flex; flex-direction: column; padding: 0 !important; margin: 0 !important; overflow: hidden;
    background: #fff; border: 1px solid var(--hub-line) !important; border-radius: 18px !important; box-shadow: var(--hub-shadow) !important;
    transition: transform .2s, box-shadow .2s;
}
.nbf-saved-page .nbfc:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20, 24, 40, .12) !important; }
.nbfc-media { position: relative; display: block !important; aspect-ratio: 16 / 10; background: var(--hub-soft); overflow: hidden; }
.nbfc-media img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .35s; }
.nbfc:hover .nbfc-media img { transform: scale(1.04); }
.nbfc-media--empty { display: flex !important; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--hub-gold-tint), #efe7da); }
.nbfc-media--empty span { font-size: 44px; font-weight: 700; color: var(--hub-gold); text-transform: uppercase; }
.nbfc-flag {
    position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
    background: var(--hub-gold); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.nbf-saved-page .nbfc-heart {
    position: absolute !important; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; padding: 0 !important; margin: 0 !important;
    display: inline-flex !important; align-items: center; justify-content: center; border-radius: 50% !important; border: 0 !important;
    background: #fff !important; color: var(--hub-rose) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .15) !important; cursor: pointer;
    transition: transform .15s;
}
.nbf-saved-page .nbfc-heart:hover { transform: scale(1.08); }
.nbf-saved-page .nbfc-heart svg { width: 19px; height: 19px; fill: var(--hub-rose); }
.nbfc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.nbfc-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hub-gold); }
.nbf-saved-page .nbfc-name { display: flex; align-items: center; gap: 6px; margin: 0 !important; font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important; text-transform: none !important; }
.nbf-saved-page .nbfc-name a { color: var(--hub-ink) !important; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbf-saved-page .nbfc-name a:hover { color: var(--hub-navy) !important; text-decoration: underline !important; }
.nbfc-tick { width: 17px; height: 17px; flex: none; fill: #2e6fae !important; }
.nbfc-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 2px 0 0 !important; font-size: 13.5px; color: var(--hub-ink); }
.nbfc-star { width: 14px; height: 14px; fill: var(--hub-gold) !important; }
.nbfc-muted, .nbfc-dot { color: var(--hub-muted); }
.nbfc-new { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--hub-soft); color: var(--hub-muted); font-size: 12px; font-weight: 600; }
.nbfc-price { margin: 2px 0 0 !important; font-size: 14px; font-weight: 700; color: var(--hub-navy); }
.nbfc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.nbfc-btn {
    flex: 1; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 12px !important;
    border-radius: 999px !important; font-size: 13.5px !important; font-weight: 700 !important; text-decoration: none !important; white-space: nowrap;
    transition: background .15s, color .15s;
}
.nbfc-btn svg { width: 15px; height: 15px; }
.nbfc-btn--wa { background: #e3f4ea !important; color: var(--hub-wa) !important; }
.nbfc-btn--wa:hover { background: var(--hub-wa) !important; color: #fff !important; }
.nbfc-btn--view { background: var(--hub-navy) !important; color: #fff !important; }
.nbfc-btn--view:hover { background: var(--hub-navy-2) !important; }

/* ---------- Saved services and My listings: same card language ---------- */
.nbf-saved-page .nbf-item-card,
.nbf-saved-page .listing-card {
    background: #fff; border: 1px solid var(--hub-line) !important; border-radius: 18px !important; box-shadow: var(--hub-shadow) !important;
}
.nbf-saved-page .nbf-my-listings-title { color: var(--hub-ink) !important; }
.nbf-saved-page .add-new-listing-btn { border-radius: 999px !important; background: var(--hub-navy) !important; color: #fff !important; }
.nbf-saved-page .nbf-status-filter { border-radius: 999px !important; }
.nbf-saved-page .nbf-status-filter.is-active { background: var(--hub-navy) !important; border-color: var(--hub-navy) !important; color: #fff !important; }

/* ---------- Loading and empty states ---------- */
.nbf-saved-page .nbf-saved-loading { color: var(--hub-muted); font-size: 14px; padding: 28px 0; }
.nbf-saved-page .nbf-saved-empty {
    text-align: center; padding: 40px 24px 36px !important; background: #fff; border: 1px dashed #d9d3c8 !important; border-radius: 20px !important; box-shadow: none !important;
}
.nbf-saved-page .nbf-empty-heart {
    width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--hub-gold-tint); color: var(--hub-gold); font-size: 30px; line-height: 1;
}
.nbf-saved-page .nbf-empty-text { margin: 0 auto !important; max-width: 420px; color: var(--hub-muted); font-size: 15px; line-height: 1.55; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
    .nbfh--guest, .nbfh--user { grid-template-columns: 1fr; gap: 22px; }
    .nbfh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .nbfh { padding: 26px 20px 22px; border-radius: 20px; margin-bottom: 18px; }
    .nbfh-actions .nbfh-btn { flex: 1 1 100%; }
    .nbfh-avatar { width: 54px; height: 54px; font-size: 19px; }
    .nbfh-tile { min-height: 92px; }
    .nbf-saved-page .nbf-saved-tabs { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .nbf-saved-page .nbf-saved-tab { justify-content: center; gap: 6px; padding: 9px 6px !important; font-size: 13.5px !important; }
    .nbfh-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .nbfh-perks li { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px; font-size: 0; }
    .nbfh-perks strong { font-size: 12px; line-height: 1.3; margin: 0; font-weight: 600; }
    .nbf-saved-page .nbf-saved-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .nbfh-tile, .nbf-saved-page .nbfc, .nbfc-media img { transition: none; }
}
