/* ==========================================================================
   OFFERS & PRICE NEGOTIATION ("Make an Offer") STYLES
   ========================================================================== */

/* --- Hero Offer Button (Next to price on ad details) --- */
.btn-hero-offer {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    border: 1.5px solid #c7d2fe;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1;
    margin-left: 0.65rem;
    vertical-align: middle;
}
.btn-hero-offer:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.btn-hero-offer.has-offer {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}
.btn-hero-offer.has-offer:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}

/* --- Contact Card Offer Button --- */
.cc-btn-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1.5px solid #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: #4f46e5;
    margin-top: 0.5rem;
    box-sizing: border-box;
    font-family: inherit;
}
.cc-btn-offer:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}
.cc-btn-offer.is-pending {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}
.cc-btn-offer.is-pending:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}
.cc-btn-offer.is-accepted {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

/* --- Mobile Bottom Bar Offer Button --- */
.msa-btn-offer {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: all 0.15s ease;
}
.msa-btn-offer:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.msa-btn-offer:active {
    transform: translateY(0);
    filter: brightness(0.95);
}
/* Keep offer button ONLY next to the price tag in hero section */
.cc-btn-offer,
.msa-btn-offer {
    display: none !important;
}

/* --- Offer Modal Dialog --- */
.offer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 14, 31, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.offer-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.offer-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 490px;
    max-height: 88vh;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
    padding: 2rem 2rem calc(2rem + env(safe-area-inset-bottom, 0px)) 2rem;
    box-sizing: border-box;
    transform: scale(0.93) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa) 1;
    border-image-slice: 1;
}
.offer-modal-overlay.open .offer-modal-card {
    transform: scale(1) translateY(0);
}

/* Mobile: bottom-sheet style */
@media (max-width: 540px) {
    .offer-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .offer-modal-card {
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        max-height: calc(100dvh - 30px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        padding: 1.25rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom, 20px)) 1.25rem;
        transform: translateY(40px);
        border-top: 3px solid #6366f1;
        border-image: none;
    }
    .offer-modal-overlay.open .offer-modal-card {
        transform: translateY(0);
    }
    /* Drag handle indicator */
    .offer-modal-card::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 9999px;
        background: #cbd5e1;
        margin: 0 auto 1.25rem;
    }
}
.offer-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.15s ease;
}
.offer-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.offer-modal-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.offer-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.offer-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}
.offer-modal-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.2rem 0 0;
}

/* Modal Listing Summary Box */
.offer-listing-summary {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.35rem;
}
.offer-listing-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
}
.offer-listing-details {
    flex: 1;
    min-width: 0;
}
.offer-listing-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offer-listing-orig-price {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.2rem;
}
.offer-listing-orig-price strong {
    color: #0f172a;
    font-size: 0.98rem;
}

/* Quick Discount Chips */
.offer-chips-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: block;
}
.offer-chips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.offer-chip-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 0.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.offer-chip-btn small {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
}
.offer-chip-btn:hover {
    border-color: #6366f1;
    color: #4f46e5;
    background: #f5f3ff;
}
.offer-chip-btn.active {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #4338ca;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Offer Input Field & Savings badge */
.offer-input-group {
    position: relative;
    margin-bottom: 0.5rem;
}
.offer-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.offer-amount-input {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    padding: 0.75rem 4rem 0.75rem 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.offer-amount-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.offer-input-currency {
    position: absolute;
    right: 1.25rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #64748b;
    pointer-events: none;
}

/* Savings Dynamic Badge */
.offer-savings-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.2rem;
    transition: all 0.2s ease;
}
.offer-savings-badge.warning {
    color: #b45309;
    background: #fef3c7;
    border-color: #fde68a;
}
.offer-savings-badge.error {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}

/* Offer Message Textarea */
.offer-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    min-height: 70px;
    margin-bottom: 1rem;
    transition: border-color 0.15s ease;
}
.offer-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

/* Trust / Anti-scam Reassurance */
.offer-reassurance {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* Modal Action Buttons */
.offer-modal-actions {
    display: flex;
    gap: 0.75rem;
}
.offer-submit-btn {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.offer-submit-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}
.offer-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.offer-cancel-btn {
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.offer-cancel-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Existing Active Offer Banner in Modal */
.active-offer-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
}
.active-offer-card.status-pending {
    border-color: #fde68a;
    background: #fffdf5;
}
.active-offer-card.status-accepted {
    border-color: #a7f3d0;
    background: #f0fdf4;
}
.active-offer-card.status-countered {
    border-color: #c7d2fe;
    background: #f5f3ff;
}

/* --- Profile Tab: Offers Layout --- */
.offers-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.offers-type-toggle {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    flex-shrink: 0;
}
.offers-toggle-btn {
    padding: 0.55rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #64748b;
    border: none;
    background: transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}
.offers-toggle-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Filter chips row */
.offers-filter-chips {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    overflow-x: auto !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1.25rem !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.offers-filter-chips::-webkit-scrollbar { display: none; }

.offers-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.45rem 1rem !important;
    border-radius: 9999px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    line-height: 1 !important;
    height: auto !important;
    max-width: none !important;
    border: 1.5px solid transparent !important;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.15s ease;
    flex-shrink: 0 !important;
}
.offers-chip:hover {
    background: #e2e8f0;
    color: #334155;
}
.offers-chip.active {
    background: var(--primary, #4f46e5);
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}
.offers-chip.active.pending  { background: #d97706; box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25); }
.offers-chip.active.accepted { background: #16a34a; box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25); }
.offers-chip.active.countered { background: #6366f1; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25); }
.offers-chip.active.declined { background: #dc2626; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25); }

.offers-list-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.offer-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.offer-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.offer-item-main {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.offer-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
}
.offer-item-body {
    flex: 1;
    min-width: 0;
}
.offer-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.3rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.offer-item-title a {
    color: inherit;
    text-decoration: none;
}
.offer-item-title a:hover {
    color: #4f46e5;
}
.offer-item-user {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.offer-item-user strong {
    color: #475569;
}
.offer-meta-sep {
    color: #cbd5e1;
    font-size: 0.7rem;
}

/* Status row — always on its own line */
.offer-status-row {
    margin-bottom: 0.4rem;
}

/* Price row — clean horizontal */
.offer-prices-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}
.offer-price-orig {
    font-size: 0.82rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.offer-price-arrow {
    font-size: 0.78rem;
    color: #cbd5e1;
}
.offer-price-proposed {
    font-size: 1.15rem;
    font-weight: 800;
    color: #16a34a;
    letter-spacing: -0.02em;
}
.offer-discount-badge {
    font-size: 0.72rem;
    font-weight: 800;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 7px;
    border-radius: 9999px;
}
.offer-economy-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.2rem;
}


.offer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    white-space: nowrap;
}
.offer-status-pill.pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.offer-status-pill.accepted {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.offer-status-pill.declined {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.offer-status-pill.countered {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}
.offer-status-pill.expired, .offer-status-pill.cancelled {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.offer-message-quote {
    background: #f8fafc;
    border-left: 3px solid #6366f1;
    padding: 0.6rem 0.85rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.84rem;
    color: #334155;
    font-style: italic;
    margin: 0.4rem 0;
}

.offer-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
}

/* Primary action buttons row — fills width equally */
.offer-actions-primary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.45rem;
}

/* Secondary links row — chat + view side by side */
.offer-actions-secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.offer-action-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    text-align: center;
}
.offer-action-btn.accept {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}
.offer-action-btn.accept:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.offer-action-btn.counter {
    background: #eef2ff;
    color: #4f46e5;
    border: 1.5px solid #c7d2fe;
}
.offer-action-btn.counter:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}
.offer-action-btn.decline {
    background: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fecaca;
}
.offer-action-btn.decline:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}
.offer-action-btn.chat {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.offer-action-btn.chat:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.offer-action-btn.view-link {
    background: transparent;
    color: var(--text-muted, #64748b);
    border: 1px solid #e2e8f0;
    font-weight: 600;
}
.offer-action-btn.view-link:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* ==========================================================================
   CUSTOM CONFIRMATION & PROMPT DIALOGS — Premium Edition
   ========================================================================== */
.custom-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 31, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 99999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    box-sizing: border-box;
}
.custom-confirm-overlay.open {
    opacity: 1;
    visibility: visible;
}

.custom-confirm-card {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 0;
    box-shadow: 0 32px 72px -16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0,0,0,0.05);
    text-align: center;
    transform: scale(0.88) translateY(16px);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.custom-confirm-overlay.open .custom-confirm-card {
    transform: scale(1) translateY(0);
}

/* Colored top accent strip */
.custom-confirm-card::before {
    content: '';
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa);
    position: absolute;
    top: 0; left: 0; right: 0;
}

/* Card inner padding wrapper */
.confirm-card-body {
    padding: 2.25rem 1.75rem 1.75rem;
}

/* Animated icon halo ring */
.custom-confirm-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.custom-confirm-overlay.open .custom-confirm-icon-wrap {
    transform: scale(1.06);
}
/* Pulsing halo */
.custom-confirm-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
    border: 2px solid currentColor;
}
.custom-confirm-overlay.open .custom-confirm-icon-wrap::after {
    opacity: 0.25;
}

.custom-confirm-icon-wrap.icon-accept {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
}
.custom-confirm-icon-wrap.icon-counter {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}
.custom-confirm-icon-wrap.icon-decline {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
}
.custom-confirm-icon-wrap.icon-cancel {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #64748b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.custom-confirm-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.55rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.custom-confirm-desc {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0 0 1.35rem;
    line-height: 1.6;
}

/* Amount pill — premium style */
.custom-confirm-amount-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 1.85rem;
    font-weight: 800;
    color: #16a34a;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    padding: 0.6rem 1.6rem;
    border-radius: 16px;
    margin-bottom: 1.35rem;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
    letter-spacing: -0.02em;
}
.custom-confirm-amount-pill.neutral {
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-color: #cbd5e1;
    box-shadow: none;
}
.custom-confirm-amount-pill.counter-blue {
    color: #4338ca;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-color: #a5b4fc;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}
.custom-confirm-amount-pill small {
    font-size: 1rem;
    color: currentColor;
    opacity: 0.7;
    font-weight: 700;
}

/* Form inputs inside confirm dialog */
.custom-confirm-input-wrap {
    position: relative;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}
.custom-confirm-input {
    width: 100%;
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    padding: 0.85rem 3.5rem 0.85rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    outline: none;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
    background: #f8fafc;
    letter-spacing: -0.01em;
}
.custom-confirm-input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.custom-confirm-currency {
    position: absolute;
    right: 1.25rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #94a3b8;
    pointer-events: none;
}

.custom-confirm-textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
    font-family: inherit;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
    resize: none;
    min-height: 70px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
    background: #f8fafc;
    color: #0f172a;
}
.custom-confirm-textarea:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Info hint (limits, etc.) */
.confirm-info-hint {
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.85rem;
    font-weight: 600;
    text-align: left;
}

.custom-confirm-btns {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.5rem;
}
.btn-action-primary {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    letter-spacing: 0.01em;
}
.btn-action-primary:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-action-primary:active:not(:disabled) {
    transform: translateY(0);
}
.btn-action-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-accept-theme {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}
.btn-counter-theme {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.btn-decline-theme {
    background: linear-gradient(135deg, #f43f5e, #dc2626);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

.btn-action-secondary {
    padding: 0.9rem 1.25rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-action-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Mobile responsive confirm dialog */
@media (max-width: 480px) {
    .custom-confirm-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .custom-confirm-card {
        border-radius: 24px 24px 0 0;
        max-width: 100%;
    }
    .confirm-card-body {
        padding: 1.75rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom, 0px)) 1.25rem;
    }
    .custom-confirm-btns {
        flex-direction: column-reverse;
    }
    .btn-action-secondary {
        width: 100%;
    }
}

/* Toast Notification (Floating banner on bottom right) */
.offer-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100000000 !important;
    background: #0f172a;
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.offer-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.offer-toast.success {
    background: #064e3b;
    border: 1px solid #059669;
}
.offer-toast.error {
    background: #7f1d1d;
    border: 1px solid #dc2626;
}

/* Profile offers tab mobile adjustments */
@media (max-width: 540px) {
    .offers-tab-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .offers-type-toggle {
        display: flex;
        width: 100%;
    }
    .offers-toggle-btn {
        flex: 1;
        text-align: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.82rem;
    }
}


