/* --- OFFERS GRID STYLES (Added for Modal) --- */
.offers-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
    max-height: 300px;
    /* Scrollable if too many */
    overflow-y: auto;
}

.offer-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.offer-card:active {
    transform: scale(0.98);
    background-color: #f9fafb;
}

.offer-card.completed {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.offer-icon-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.offer-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-details {
    flex: 1;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    /* For text truncation */
}

.offer-details h3 {
    margin: 0 0 2px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-details p {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-btn-state {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.offer-card:hover .offer-btn-state {
    background: #2563eb;
    color: #fff;
}

.offer-card.completed .offer-btn-state {
    background: #10b981;
    color: #fff;
}

.tick-icon {
    font-size: 1.2rem;
}

/* Loading Overlay for Icon */
.icon-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.mini-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton Loader */
.offer-card-skeleton {
    background: #f3f4f6;
    border-radius: 12px;
    height: 72px;
    position: relative;
    overflow: hidden;
}

.offer-card-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}