/**
 * Hospital Offers & Coupons — shared dashboard + public profile cards.
 */
.hosp-offers-dash .section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
}

.hosp-offers-dash__header-panel {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e8edf2;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    border-left: 4px solid #0d9488;
}

.hosp-offers-dash__header-main {
    flex: 1;
    min-width: 0;
}

.hosp-offers-dash .section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.hosp-offers-dash__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hosp-offers-dash__icon--teal {
    background: #ecfdf5;
    color: #0d9488;
    border: 1px solid #99f6e4;
}

.hosp-offers-dash .section-header h2 > i {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: inherit;
}

.hosp-offers-dash__lead {
    margin: 6px 0 0 54px;
    font-size: 13px;
    color: #64748b;
    max-width: 36rem;
    line-height: 1.45;
}

.hosp-offers-dash__lead strong {
    color: #0f766e;
    font-weight: 600;
}

.hosp-offers-dash__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.hosp-offers-dash__preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
    background: #fff;
    border: 1px solid #99f6e4;
    text-decoration: none;
    min-height: 40px;
    box-sizing: border-box;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.hosp-offers-dash__preview:hover {
    background: #ecfdf5;
    color: #065f46;
    border-color: #5eead4;
}

.hosp-offers-dash__actions .btn-primary {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    white-space: nowrap;
    flex: 1 1 auto;
}

.hosp-offers-dash__card {
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #e8edf2;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .hosp-offers-dash__lead {
        margin-left: 0;
    }
}

.hosp-offers-dash__notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
    line-height: 1.45;
}

.hosp-offers-dash__notice a {
    color: #0f766e;
    font-weight: 700;
}

.hosp-offers-dash__notice--ok {
    background: #ecfdf5;
    border-color: #99f6e4;
    color: #065f46;
}

.hosp-offers-dash__notice--report {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.hosp-offers-dash__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.hosp-offers-dash__filter.is-active .hosp-offers-dash__filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
}

.hosp-offers-dash__filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.hosp-offers-dash__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 12px;
}

.hosp-offers-dash__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hosp-offers-dash__filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    min-height: 34px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hosp-offers-dash__filter.is-active {
    background: #ecfdf5;
    border-color: #0d9488;
    color: #0f766e;
}

.hosp-offers-dash__filter[data-filter="active"].is-active {
    background: #d1fae5;
    color: #065f46;
}

.hosp-offers-dash__filter[data-filter="draft"].is-active {
    background: #f1f5f9;
    color: #334155;
}

.hosp-offers-dash__filter[data-filter="trash"].is-active {
    background: #fef3c7;
    color: #92400e;
}

.hosp-offers-dash__meta {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hosp-offers-dash__empty {
    text-align: center;
    padding: 48px 24px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.hosp-offers-dash__empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.hosp-offers-dash__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 340px));
    gap: 24px;
    justify-content: start;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

#offers .hp-hospital-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Dashboard cards — larger than public carousel cards */
.hosp-offers-dash__grid .hosp-offer-dash-card__media {
    height: 200px;
    cursor: pointer;
    background: #f1f5f9;
}

.hosp-offers-dash__grid .hosp-offer-dash-card__media--click:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: -2px;
}

.hosp-offers-dash__grid .hosp-offer-dash-card__body {
    padding: 18px 20px 14px;
}

.hosp-offers-dash__grid .hosp-offer-dash-card__title {
    font-size: 1.12rem;
    margin-bottom: 6px;
    -webkit-line-clamp: 3;
}

.hosp-offers-dash__grid .hosp-offer-dash-card__desc {
    font-size: 13px;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
}

.hosp-offers-dash__grid .hosp-offer-dash-card__deal {
    padding: 10px 12px;
}

.hosp-offers-dash__grid .hosp-offer-dash-card__deal-off {
    font-size: 1rem;
}

.hosp-offers-dash__grid .hosp-offer-dash-card__foot--actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px 12px 12px;
    gap: 6px;
}

.hosp-offers-dash__grid .hosp-offer-dash-card__foot--actions.hosp-offer-dash-card__foot--trash {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hosp-offers-dash__grid .hosp-offer-dash-card__btn {
    min-height: 38px;
    font-size: 11px;
    border-radius: 10px;
    white-space: nowrap;
    padding: 8px 6px;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.hosp-offer-dash-card__btn--view,
.hosp-offer-dash-card__btn--edit {
    min-width: 0;
}

.hosp-offer-dash-card__btn--view {
    color: #0f766e;
    border-color: #99f6e4;
    background: #ecfdf5;
}

.hosp-offer-dash-card__btn--view:hover {
    background: #d1fae5;
}

.hosp-offer-dash-card.is-filter-hidden {
    display: none !important;
}

/* Shared offer card shell */
.hosp-offer-dash-card,
#offers .hp-hospital-offer-card.hp-offer-card--pro {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hosp-offer-dash-card:hover,
#offers .hp-offer-card--pro:hover {
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.35);
}

.hosp-offer-dash-card__media,
#offers .hp-offer-card__media {
    position: relative;
    height: 148px;
    background: linear-gradient(165deg, #ecfdf5, #f1f5f9);
    overflow: hidden;
    flex-shrink: 0;
}

#offers .hp-offer-card__media {
    cursor: zoom-in;
    border-bottom: 1px solid #eef2f6;
}

.hosp-offer-dash-card__media img,
#offers .hp-offer-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hosp-offer-dash-card__media-ph {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 32px;
}

.hosp-offer-dash-card__media-ph.is-visible {
    display: flex;
}

#offers .hp-offer-card__media-ph {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 32px;
    background: linear-gradient(165deg, #ecfdf5, #f1f5f9);
}

#offers .hp-offer-card__media-ph.is-visible {
    display: flex;
}

.hosp-offer-dash-card__ribbon,
#offers .hp-offer-card__badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: auto;
    z-index: 2;
    max-width: calc(100% - 20px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    background: rgba(236, 253, 245, 0.96);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.35);
}

#offers .hp-offer-card__badge {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.98));
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.4);
}

.hosp-offer-dash-card__status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.hosp-offer-dash-card__status--active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.hosp-offer-dash-card__status--draft {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.hosp-offer-dash-card__status--paused {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.hosp-offer-dash-card__status--trash {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.hosp-offer-dash-card__status--reported {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.hosp-offer-dash-card__status--expired {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.hosp-offer-dash-card__meta--expired {
    color: #b45309;
    font-weight: 700;
}

.hosp-offers-dash__filter-count--warn {
    background: #fde68a;
    color: #92400e;
}

.hosp-offers-dash__filter[data-filter="reported"].is-active {
    border-color: #f87171;
    color: #b91c1c;
    background: #fef2f2;
}

.hosp-offer-dash-card__media-tags,
#offers .hp-offer-card__media-tags {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 88px);
}

.hosp-offer-dash-card__body,
#offers .hp-offer-card__body {
    padding: 14px 16px 10px;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hosp-offer-dash-card__pills,
#offers .hp-offer-card__pills {
    display: none;
}

.hosp-offer-dash-card__pill,
#offers .hp-offer-card__pill {
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f766e;
    border: 1px solid rgba(153, 246, 228, 0.9);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.hosp-offer-dash-card__pill--loc,
#offers .hp-offer-card__pill--loc {
    background: rgba(255, 255, 255, 0.92);
    color: #1d4ed8;
    border-color: rgba(191, 219, 254, 0.95);
}

.hosp-offer-dash-card__title,
#offers .hp-offer-card__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hosp-offer-dash-card__desc,
#offers .hp-offer-card__desc {
    margin: 0 0 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hosp-offer-dash-card__deal,
#offers .hp-offer-card__deal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8edf2;
    margin-top: auto;
}

.hosp-offer-dash-card__deal-main,
#offers .hp-offer-card__deal-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hosp-offer-dash-card__deal-off,
#offers .hp-offer-card__deal-off {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0d9488;
    line-height: 1.2;
}

.hosp-offer-dash-card__deal-price,
#offers .hp-offer-card__deal-price {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
}

.hosp-offer-dash-card__deal-price .was,
#offers .hp-offer-card__deal-price .was {
    text-decoration: line-through;
    margin-right: 4px;
    color: #94a3b8;
}

.hosp-offer-dash-card__deal-price strong,
#offers .hp-offer-card__deal-price strong {
    color: #0f172a;
    font-weight: 800;
}

.hosp-offer-dash-card__deal-code,
#offers .hp-offer-card__deal-code {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    font-family: ui-monospace, monospace;
    color: #1d4ed8;
    letter-spacing: 0.03em;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hosp-offer-dash-card__deal-code-lbl {
    font-family: inherit;
    font-weight: 800;
    color: #0f766e;
    letter-spacing: 0.02em;
    margin-right: 2px;
}

.hosp-offer-dash-card__deal-code--hidden-public {
    opacity: 0.72;
    border-style: dashed;
    background: #f8fafc;
}

@media (max-width: 767px) {
    .hosp-offers-dash__grid .hosp-offer-dash-card__deal {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .hosp-offers-dash__grid .hosp-offer-dash-card__deal-code {
        max-width: 100%;
        text-align: center;
        white-space: normal;
        word-break: break-all;
    }
}

.hosp-offer-dash-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.hosp-offer-dash-card__meta,
#offers .hp-offer-card__meta {
    margin: 8px 0 0;
    font-size: 11px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hosp-offer-dash-card__meta-row .hosp-offer-dash-card__meta {
    margin: 0;
}

.hosp-offer-dash-card__meta i,
#offers .hp-offer-card__meta i {
    color: #0d9488;
    font-size: 10px;
}

.hosp-offer-dash-card__uses-chip {
    font-size: 10px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
    flex-shrink: 0;
}

.hosp-offer-dash-card__trash-eta {
    margin: 8px 0 0;
    font-size: 11px;
    color: #b45309;
    font-weight: 600;
}

.hosp-offer-dash-card__foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px 14px 12px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    margin-top: auto;
}

.hosp-offer-dash-card__foot--trash {
    grid-template-columns: repeat(3, 1fr);
}

.hosp-offer-dash-card__foot--actions.hosp-offer-dash-card__foot--trash {
    grid-template-columns: repeat(3, 1fr);
}

.hosp-offer-dash-card__btn {
    min-height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: filter 0.15s;
}

.hosp-offer-dash-card__btn--edit {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.hosp-offer-dash-card__btn--del {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.hosp-offer-dash-card__btn--restore {
    color: #0f766e;
    border-color: #6ee7b7;
    background: #ecfdf5;
}

.hosp-offer-dash-card__btn--purge {
    color: #7f1d1d;
    border-color: #fecaca;
    background: #fef2f2;
}

#offers .hp-offer-card__foot {
    padding: 0 16px 12px;
    margin-top: auto;
}

#offers .hp-offer-card__btn {
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(13, 148, 136, 0.22);
    min-height: 40px;
    transition: transform 0.15s, box-shadow 0.15s;
}

#offers .hp-offer-card__btn:hover {
    background: linear-gradient(135deg, #0f766e, #115e59);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.32);
}

#offers .hp-hospital-offers-wrap {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#offers .hp-hospital-offers-nav {
    display: none !important;
}

#offers .hp-hospital-offers-nav.is-show {
    display: inline-flex;
}

#offers .hp-hospital-offers-nav.prev {
    left: 4px;
}

#offers .hp-hospital-offers-nav.next {
    right: 4px;
}

#offers .hp-hospital-offer-report {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #dc2626;
    font-size: 11px;
}

/* Public profile — report offer modal */
.hp-offer-report-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10020;
    padding: 16px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

body.hp-offer-report-open {
    overflow: hidden;
}

.hp-offer-report-modal__panel {
    width: min(560px, 100%);
    max-height: min(90vh, 640px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hp-offer-report-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.hp-offer-report-modal__head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
}

.hp-offer-report-modal__close {
    flex-shrink: 0;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 20px;
    color: #64748b;
}

.hp-offer-report-modal__body {
    padding: 18px;
    overflow-y: auto;
}

.hp-offer-report-modal__label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 14px;
}

.hp-offer-report-modal__textarea {
    width: 100%;
    min-height: 112px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.hp-offer-report-modal__textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.hp-offer-report-modal__msg {
    margin: 10px 0 0;
    font-size: 13px;
    color: #64748b;
}

.hp-offer-report-modal__msg--ok {
    color: #059669;
}

.hp-offer-report-modal__msg--err {
    color: #dc2626;
}

.hp-offer-report-modal__msg--pending {
    color: #64748b;
}

.hp-offer-report-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.hp-offer-report-modal__submit,
.hp-offer-report-modal__cancel {
    flex: 1;
    min-height: 44px;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.hp-offer-report-modal__submit {
    background: #dc2626;
    color: #fff;
}

.hp-offer-report-modal__cancel {
    background: #f1f5f9;
    color: #64748b;
}

/* Offer detail modal — public profile */
.hp-offer-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10024;
    padding: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hp-offer-detail-modal.active {
    display: flex !important;
}

.hp-offer-detail-modal__panel {
    background: #fff;
    border-radius: 16px;
    width: min(560px, 100%);
    max-height: min(88vh, 640px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hp-offer-detail-modal__head {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: none;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
}

.hp-offer-detail-modal__head h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hp-offer-detail-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-offer-detail-modal__close:hover {
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1024px) {
    .hosp-offers-dash__grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 320px));
        gap: 20px;
    }

    #offers .hp-hospital-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .dashboard-section.hosp-offers-dash {
        padding: 10px 12px 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hosp-offers-dash .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .hosp-offers-dash__header-panel {
        padding: 12px 14px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .hosp-offers-dash .section-header h2 {
        font-size: 1.05rem;
        gap: 8px;
    }

    .hosp-offers-dash__icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 10px;
    }

    .hosp-offers-dash__lead {
        margin: 6px 0 0;
        font-size: 12px;
        line-height: 1.4;
    }

    .hosp-offers-dash__actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .hosp-offers-dash__actions .btn-primary,
    .hosp-offers-dash__preview {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        min-height: 44px;
        font-size: 12px;
        padding: 10px 12px;
    }

    .hosp-offers-dash__card {
        padding: 12px;
        border-radius: 14px;
    }

    .hosp-offers-dash__toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
        margin-bottom: 14px;
    }

    .hosp-offers-dash__filters {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .hosp-offers-dash__filters::-webkit-scrollbar {
        display: none;
    }

    .hosp-offers-dash__filter {
        flex: 0 0 auto;
        justify-content: center;
        min-height: 38px;
        font-size: 11px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .hosp-offers-dash__meta {
        align-self: flex-start;
        font-size: 11px;
        padding: 5px 10px;
    }

    .hosp-offers-dash__grid,
    #offers .hp-hospital-offers-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hosp-offers-dash__grid .hosp-offer-dash-card__media {
        height: 160px;
    }

    .hosp-offer-dash-card__media,
    #offers .hp-offer-card__media {
        height: 160px;
    }

    .hosp-offer-dash-card__body,
    #offers .hp-offer-card__body {
        padding: 12px 14px 10px;
    }

    .hosp-offers-dash__grid .hosp-offer-dash-card__title {
        font-size: 1rem;
    }

    .hosp-offer-dash-card__foot,
    .hosp-offers-dash__grid .hosp-offer-dash-card__foot--actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 10px 10px 12px;
        gap: 6px;
    }

    .hosp-offer-dash-card__foot--trash,
    .hosp-offer-dash-card__foot--actions.hosp-offer-dash-card__foot--trash {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hosp-offers-dash__grid .hosp-offer-dash-card__btn {
        min-height: 40px;
        font-size: 11px;
        padding: 8px 4px;
        gap: 4px;
    }

    .hosp-offers-dash__grid .hosp-offer-dash-card__btn i {
        font-size: 11px;
        flex-shrink: 0;
    }

    #offers .hp-hospital-offers-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #offers .hp-hospital-offer-report {
        width: 40px;
        height: 40px;
        font-size: 13px;
        top: 8px;
        right: 8px;
    }

    .hp-offer-report-modal {
        padding: 0;
        align-items: flex-end;
    }

    .hp-offer-report-modal__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }

    .hp-offer-report-modal__actions {
        flex-direction: column-reverse;
    }

    .hp-offer-report-modal__submit,
    .hp-offer-report-modal__cancel {
        width: 100%;
    }
}

/* Dashboard — offer detail preview modal */
.hosp-offer-view-modal {
    --offer-teal: #0d9488;
    --offer-teal-bg: #ecfdf5;
    --offer-blue: #2563eb;
    --offer-blue-bg: #eff6ff;
    --offer-amber-bg: #fffbeb;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10057;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
}

.hosp-offer-view-modal.is-open {
    display: flex;
}

.hosp-offer-view-modal__shell {
    width: min(520px, calc(100vw - 32px));
    max-height: min(92vh, 780px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.hosp-offer-view-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e8edf2;
    background: #fff;
}

.hosp-offer-view-modal__head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hosp-offer-view-modal__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.hosp-offer-view-modal__icon--blue {
    background: var(--offer-blue-bg);
    color: var(--offer-blue);
    border: 1px solid #bfdbfe;
}

.hosp-offer-view-modal__close {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hosp-offer-view-modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    background: #f8fafc;
}

.hosp-offer-view-modal__cover {
    height: 220px;
    background: #f1f5f9;
    overflow: hidden;
}

.hosp-offer-view-modal__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hosp-offer-view-modal__cover--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 40px;
}

.hosp-offer-view-modal__identity {
    padding: 16px 18px 12px;
    background: #fff;
    border-bottom: 1px solid #e8edf2;
    text-align: center;
}

.hosp-offer-view-modal__identity h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.hosp-offer-view-modal__tag {
    margin: 8px 0 0;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    background: var(--offer-amber-bg);
    border: 1px solid #fde68a;
}

.hosp-offer-view-modal__bio {
    margin: 12px 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    background: #fff;
}

.hosp-offer-view-modal__bio-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f766e;
    margin-bottom: 6px;
}

.hosp-offer-view-modal__bio p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    white-space: pre-wrap;
}

.hosp-offer-view-modal__details {
    margin: 12px 16px;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.hosp-offer-view-modal__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.hosp-offer-view-modal__row:last-child {
    border-bottom: none;
}

.hosp-offer-view-modal__row span:first-child {
    color: #64748b;
    font-weight: 600;
}

.hosp-offer-view-modal__row span:last-child {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

.hosp-offer-view-modal__row--hi span:last-child {
    color: var(--offer-teal);
    font-size: 15px;
}

.hosp-offer-view-modal__mono {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.04em;
}

.hosp-offer-view-modal__status--active {
    color: #047857 !important;
}

.hosp-offer-view-modal__status--draft {
    color: #2563eb !important;
}

.hosp-offer-view-modal__status--reported {
    color: #dc2626 !important;
}

.hosp-offer-view-modal__status--trash,
.hosp-offer-view-modal__status--paused {
    color: #b45309 !important;
}

.hosp-offer-view-modal__terms {
    margin: 0 16px 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    background: #fff;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.hosp-offer-view-modal__terms p {
    margin: 6px 0 0;
}

.hosp-offer-view-modal__ok {
    color: #047857 !important;
    font-weight: 700;
}

.hosp-offer-view-modal__muted {
    color: #94a3b8 !important;
    font-weight: 600;
}

.hosp-offer-view-modal__coupon {
    margin: 0 16px 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #99f6e4;
    background: #f0fdfa;
}

.hosp-offer-view-modal__coupon-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f766e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hosp-offer-view-modal__coupon-copy {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px dashed #5eead4;
    border-radius: 10px;
    background: #fff;
    color: #0f766e;
    font-size: 14px;
    font-weight: 800;
    font-family: ui-monospace, monospace;
    cursor: pointer;
}

.hosp-offer-view-modal__coupon-copy:hover {
    background: #ecfdf5;
}

.hosp-offer-view-modal__coupon-copy.is-copied {
    border-color: #0d9488;
    background: #ecfdf5;
    color: #047857;
}

.hosp-offer-view-modal__coupon-apply-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.hosp-offer-view-modal__coupon-apply-row input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dadce0;
    border-radius: 10px;
    font-size: 14px;
    font-family: ui-monospace, monospace;
    text-transform: uppercase;
}

.hosp-offer-view-modal__coupon-apply-row button {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #0d9488;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.hosp-offer-view-modal__coupon-apply-row button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.hosp-offer-view-modal__coupon-err {
    margin: 8px 0 0;
    font-size: 12px;
    color: #dc2626;
}

.hosp-offer-view-modal__coupon-hint {
    margin: 8px 0 0;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.hosp-offer-view-modal__coupon-hidden-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.hosp-offer-view-modal__coupon-applied {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #a7f3d0;
}

.hosp-offer-view-modal__coupon-applied.is-visible {
    display: block;
}

.hosp-offer-view-modal__coupon-applied-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #047857;
}

.hosp-offer-view-modal__coupon-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.hosp-offer-view-modal__coupon-total span {
    font-size: 13px;
    color: #5f6368;
    font-weight: 600;
}

.hosp-offer-view-modal__coupon-total strong {
    font-size: 20px;
    color: #0d9488;
    font-weight: 800;
}

.hosp-offer-view-modal__coupon-total small {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

.hosp-offer-view-modal__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid #e8edf2;
    background: #fff;
}

.hosp-offer-view-modal__btn {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    box-sizing: border-box;
}

.hosp-offer-view-modal__btn--edit {
    background: var(--offer-blue-bg);
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.hosp-offer-view-modal__btn--public {
    background: var(--offer-teal-bg);
    border-color: #99f6e4;
    color: #0f766e;
}

.hosp-offer-view-modal__btn--close {
    flex: 0 1 auto;
    min-width: 88px;
}

@media (max-width: 480px) {
    .hosp-offer-view-modal__foot {
        flex-direction: column;
    }

    .hosp-offer-view-modal__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hosp-offer-dash-card,
    #offers .hp-offer-card--pro,
    #offers .hp-offer-card__btn {
        transition: none;
    }

    #offers .hp-offer-card__btn:hover {
        transform: none;
    }
}
