/* BlazorHtmlCN/index.html, offers.html and profile.html. Keep upstream CSS intact. */
.reference-offer-card.card { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent; text-align: left; padding: 4px 0; height: 100%; min-width: 0; }
.reference-offer-card > .card-body { padding: 0; }
.reference-offer-image { display: block; margin-bottom: 16px; border-radius: 20px; overflow: hidden; background: var(--color-surface-alt, #f0f0f3); }
.reference-offer-image img, .reference-offer-image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 180px; object-fit: cover; }
.reference-offer-image-placeholder { color: var(--color-text-muted, #8888aa); font-size: 36px; }
.reference-offer-card .offer-title { gap: 8px; min-width: 0; margin-bottom: 6px; }
.reference-offer-title { flex: 1; min-width: 0; color: var(--bs-body-color); text-decoration: none; }
.reference-offer-title h3 { font-size: 17px; line-height: 1.4; color: inherit; }
.reference-offer-title:hover { color: var(--color-primary, #222266); }
.reference-offer-card .heart { flex: 0 0 28px; min-height: 32px; padding: 0; margin: 0; border: 0; background: transparent; color: var(--bs-danger, #dc3545); font-size: 20px; }
.reference-offer-card .heart::before { content: none; }
.reference-offer-card .heart:disabled { opacity: .45; }
.reference-offer-card .reference-offer-value { margin: 0 0 8px; font-size: 14px; color: var(--bs-body-color); }
.reference-offer-details { font-size: 13px; }
.reference-offer-card > .offers-icons.card-footer { border: 0; background: transparent; padding: 8px 0 0; flex-wrap: wrap; margin-top: auto; }
.reference-offer-card .offers-icons small { font-size: 13px; white-space: nowrap; color: var(--bs-body-color); }
.reference-offer-card .offers-icons small i { color: #cd923d; font-size: 18px; margin-right: 5px; }
.reference-offer-card .offers-icons .btn { font-size: 13px; padding: 7px 12px; border-radius: 7px; min-height: 36px; white-space: nowrap; }
.reference-offer-access { margin: 8px 0 0; color: var(--color-text-muted, #666); font-size: 13px; }
.reference-offer-card .member-offer-teaser { border: 0; border-radius: 0; background: transparent; padding: 0; box-shadow: none; }
.reference-offer-card .member-offer-teaser-image { border-radius: 20px; overflow: hidden; height: 180px; }
.reference-offer-card .member-offer-teaser-image img { width: 100%; height: 100%; object-fit: cover; }
.reference-offer-card .member-offer-teaser-heading { padding: 12px 0 6px; }
.reference-offer-card .member-offer-teaser-heading h3 { font-size: 17px; }
.reference-offer-card .member-offer-teaser-footer { padding: 8px 0; }
.reference-offer-card .member-offer-teaser-footer .btn { font-size: 13px; border-radius: 7px; min-height: 36px; }
.reference-home-banner { position: relative; margin: 24px 0 28px; overflow: hidden; border-radius: 20px; background: #222266; }
.reference-banner-slide > a { display: block; }
.reference-home-banner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.reference-banner-controls { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px 8px; border-radius: 24px; background: #11113355; }
.reference-banner-controls button { display: grid; place-items: center; border: 0; width: 32px; height: 28px; padding: 7px; background: transparent; }
.reference-banner-controls button::after { content: ''; display: block; height: 10px; width: 10px; border-radius: 10px; background: #ffffff99; }
.reference-banner-track { display: flex; transition: transform .5s ease; will-change: transform; }
.reference-banner-slide { flex: 0 0 100%; min-width: 0; }
.reference-home-banner { touch-action: pan-y; }
.reference-banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: #11113366; opacity: 0; transition: opacity .2s; }
.reference-banner-arrow.prev { left: 12px; }
.reference-banner-arrow.next { right: 12px; }
.reference-home-banner:hover .reference-banner-arrow, .reference-banner-arrow:focus-visible { opacity: 1; }
.reference-banner-arrow:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.reference-banner-controls button.reference-banner-toggle { width: 28px; color: #ffffffcc; font-size: 11px; }
.reference-banner-controls button.reference-banner-toggle::after { content: none; }
@media (hover: none) { .reference-banner-arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .reference-banner-track, .reference-banner-arrow { transition: none; } }
.reference-banner-controls button.active { width: 46px; }
.reference-banner-controls button.active::after { width: 30px; background: #cd923d; }
.reference-banner-controls button:focus-visible { outline: 2px solid white; outline-offset: -2px; border-radius: 12px; }
.reference-redeem-sheet.offcanvas { --bs-offcanvas-height: min(90dvh, 850px); max-height: 94dvh; border-radius: 24px 24px 0 0; background: var(--bs-body-bg); }
.reference-redeem-sheet > .offcanvas-header, .reference-redeem-sheet > .offcanvas-body { width: min(100%, 560px); margin-inline: auto; }
.reference-redeem-sheet > .offcanvas-header { padding: 22px 24px 12px; gap: 18px; }
.reference-redeem-sheet .offcanvas-title { font-size: 22px; line-height: 1.25; margin: 0; }
.reference-redeem-sheet > .offcanvas-body { padding: 8px 24px 24px; overflow-y: auto; }
.reference-redeem-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: 13px; color: var(--color-text-muted, #666); }
.reference-redeem-sheet .card.redeem.reference-redeem-coupon { width: 100%; max-width: 480px; height: auto; min-height: 0; margin: 0 auto; padding: 18px 20px 0; border: 1px solid var(--color-border, #d5d5d5) !important; border-radius: 20px !important; background: var(--bs-body-bg); }
.reference-redeem-coupon > .card-header { border: 0; background: transparent; color: var(--bs-heading-color); padding: 0 0 16px; text-align: center; font-size: 26px; line-height: 1.25; font-weight: 500; }
.reference-redeem-coupon > .card-body { padding: 0; margin: 0; height: auto; overflow: visible; }
.reference-redeem-coupon .card-body .redeem-desc { font-size: 17px; line-height: 1.4; margin-bottom: 12px; text-align: center; }
.reference-redeem-coupon .card-body p { font-size: 13px; text-align: center; }
.reference-redeem-coupon .card-body .card-img { display: block; height: 180px; object-fit: cover; border-radius: 16px; margin: 16px 0; }
.reference-redeem-coupon .reference-code-image { display: block; max-width: 100%; max-height: 180px; margin: 16px auto; }
.reference-redeem-coupon .card-body .reference-redemption-code { font-size: 24px; font-weight: 700; letter-spacing: .06em; overflow-wrap: anywhere; }
.reference-redeem-coupon .card-body .reference-redeem-terms { font-size: 12px; color: var(--color-text-muted, #666); line-height: 1.5; }
.reference-redeem-coupon > .card-footer { padding: 20px 0; margin-top: 16px; border-top: 2px dashed #cd923d; background: transparent; text-align: center; }
.reference-redeem-coupon > .card-footer::before, .reference-redeem-coupon > .card-footer::after { content: none; }
.reference-redeem-coupon .btn, .reference-redeem-modal .btn { min-height: 44px; border-radius: 8px; }
.reference-redeem-modal .modal-content { border: 1px solid var(--color-border, #e4e4ee); border-radius: 20px; background: var(--bs-body-bg); }
.reference-redeem-modal .modal-header, .reference-redeem-modal .modal-footer { padding: 20px 24px; border-color: var(--color-border, #e4e4ee); }
.reference-redeem-modal .modal-title { font-size: 21px; }
.reference-redeem-modal .modal-body { padding: 24px; }
.reference-redeem-success-icon { width: 80px; height: 80px; object-fit: contain; margin-bottom: 16px; }
.business-detail-page .profile-banner { border-radius: 20px; overflow: hidden; background: #2d2d2d; }
.business-detail-page .profile-banner .banner-img { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; opacity: .4; }
.business-detail-page .profile-details .profile-logo { width: 132px; height: 132px; object-fit: contain; padding: 4px; margin: -92px 0 -16px 20px; border-radius: 14%; border: 2px solid var(--color-border, #e4e4ee); box-shadow: 0 5px 15px #0000001a; background: var(--bs-body-bg); position: relative; z-index: 1; flex-shrink: 0; }
.business-detail-page .profile-name { font-size: 28px; font-weight: 700; }
.business-detail-page .nav-pills { border-bottom: 1px solid var(--color-border, #e4e4ee); border-radius: 0; padding-bottom: 12px; }
.business-detail-page .nav-pills .nav-link { border-radius: 24px; font-weight: 600; }
.reference-offers-header .section-title { font-size: 28px; }
.reference-offer-selection { max-width: 960px; margin-inline: auto; }
@media (max-width: 767px) {
    .reference-home-banner { margin-top: 16px; border-radius: 16px; }
    .reference-home-banner img { aspect-ratio:16/7; }
    .reference-offer-card .offers-icons { gap: 10px !important; }
    .reference-offer-card .offers-icons .view_txt { display: none; }
    .reference-redeem-sheet > .offcanvas-header, .reference-redeem-sheet > .offcanvas-body { padding-left: 16px; padding-right: 16px; }
    .business-detail-page .profile-details .profile-logo { width: 96px; height: 96px; margin-top: -72px; margin-left: 12px; }
    .business-detail-page .profile-name { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .reference-offer-card { transition: none; } }

.business-detail-page .profile-banner { height: 220px; }
.business-detail-page .business-profile-banner-fallback { height: 220px; display: grid; place-items: center; font-size: 80px; color: #ffffff66; background: linear-gradient(120deg, #222266, #555586); }
.business-detail-page .profile-details > .d-flex { align-items: flex-start !important; }
.business-detail-page .profile-details .flex-fill { min-width: 0; }
.reference-offer-selection > [class*="col-"] { flex: 0 0 100%; max-width: 560px; margin-inline: auto; }

.business-detail-page .reference-profile-connect { margin-left: auto; align-self: flex-start; }
.business-detail-page .reference-profile-connect .btn { border-radius: 50rem; padding: 10px 24px; min-height: 44px; }
@media (max-width: 575px) {
    .business-detail-page .profile-details > .d-flex { flex-basis: 100%; }
    .business-detail-page .reference-profile-connect { margin-left: 0; }
}

/* Personal account uses the reference profile's banner, overlapping avatar and card rhythm. */
.reference-account-profile .section-header h1 { font-size: 28px; font-weight: 700; }
.reference-account-profile .card { border: 1px solid var(--color-border, #e4e4ee) !important; border-radius: 20px !important; box-shadow: none !important; background: var(--bs-body-bg); overflow: hidden; }
.reference-account-profile .card > .card-body { padding: 24px; }
.reference-account-profile .reference-account-hero { border: 0 !important; overflow: visible; }
.reference-account-banner { height: 220px; overflow: hidden; border-radius: 20px; background: #2d2d2d; }
.reference-account-profile .reference-account-banner img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; opacity: .4; }
.reference-account-profile .viewer-profile-avatar { width: 132px; height: 132px; margin-top: -92px; padding: 4px; border-radius: 14%; border: 2px solid var(--color-border, #e4e4ee); box-shadow: 0 5px 15px #0000001a; background: #222266 !important; position: relative; flex-shrink: 0; }
.reference-account-heading > .flex-fill { min-width: 0; }
.reference-account-name { font-size: 28px; font-weight: 700; overflow-wrap: anywhere; margin-bottom: 8px; }
.reference-account-profile .viewer-profile-details { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 14px; }
.reference-account-profile .card h3 { font-size: 20px; font-weight: 600; }
.reference-account-profile .btn { border-radius: 8px; min-height: 44px; }
@media (max-width: 767px) {
    .reference-account-profile .card > .card-body { padding: 18px; }
    .reference-account-profile .viewer-profile-avatar { width: 96px; height: 96px; margin-top: -72px; }
    .reference-account-name { font-size: 23px; }
}
@media (max-width: 399px) {
    .reference-account-profile .viewer-profile-details { grid-template-columns: minmax(0, 1fr); }
}

/* Tenant artwork keeps its complete 16:7 composition at every viewport size. */
.reference-home-banner img { aspect-ratio:16/7; width:100%; height:auto; object-fit:contain; }
