/* NEW DEAL CARD DESIGN V2 - Matches Screenshot */

.deal-card-v2 {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.deal-card-v2:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Header: Merchant + Badge + Menu */
.card-header-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.card-merchant-v2 {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1a202c;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-badge-relevant-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: default;
}

.card-badge-relevant-v2 svg {
    stroke: #0369a1;
    fill: #0369a1;
}

.card-menu-wrapper-v2 {
    flex-shrink: 0;
    position: relative;
    margin-left: 0.25rem;
}

.card-menu-v2 {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.card-menu-v2:hover {
    color: #475569;
}

.card-menu-dropdown-v2 {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 160px;
    display: none;
    z-index: 100;
    margin-top: 0.25rem;
}

.card-menu-dropdown-v2.active {
    display: block;
}

.card-menu-dropdown-v2 button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.card-menu-dropdown-v2 button:hover {
    background: #f1f5f9;
}

.card-menu-dropdown-v2 button svg {
    stroke: #64748b;
    flex-shrink: 0;
}

/* Title */
.card-title-v2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Description */
.card-description-v2 {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Category Pills */
.card-categories-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-pill-v2 {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.category-apparel { background: #fce7f3; color: #be185d; }
.category-home, .category-homegarden { background: #fef3c7; color: #b45309; }
.category-technology { background: #dbeafe; color: #1e40af; }
.category-fooddining { background: #dcfce7; color: #15803d; }
.category-travel { background: #e0e7ff; color: #4338ca; }
.category-healthbeauty, .category-health, .category-healthampbeauty { background: #ffedd5; color: #c2410c; }
.category-entertainment { background: #f3e8ff; color: #7e22ce; }
.category-babykids, .category-baby, .category-babyampkids { background: #e0f2fe; color: #0369a1; }
.category-sportsfitness { background: #cffafe; color: #0e7490; }
.category-auto { background: #e5e7eb; color: #374151; }
.category-groceries { background: #fef9c3; color: #854d0e; }
.category-pet { background: #fed7aa; color: #9a3412; }
.category-newseducation { background: #ddd6fe; color: #5b21b6; }
.category-generalmerchandise { background: #fbcfe8; color: #9f1239; }
.category-subscription { background: #ddd6fe; color: #5b21b6; }
.category-other { background: #f5f5f4; color: #57534e; }

/* Promo Codes Button */
.promo-codes-btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #dbeafe;
    color: #1e40af;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.promo-codes-btn-v2:hover {
    background: #bfdbfe;
}

.promo-codes-btn-v2.expanded {
    background: #3b82f6;
    color: white;
}

/* Requirements Section with Details Header */
.requirements-wrapper-v2 {
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.requirements-header-v2 {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Discounts Section (Scrollable) */
.discounts-section-v2 {
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.discounts-section-v2:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.discount-header-v2 {
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.expand-deal-btn-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    background: transparent;
    color: #64748b;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    width: 24px;
    height: 24px;
}

.expand-deal-btn-v2:hover {
    background: #e2e8f0;
    color: #475569;
}

.expand-deal-btn-v2 svg {
    stroke: currentColor;
}

.discounts-scroll-v2 {
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Only show scrollbar when actually scrollable (multiple items) */
.discounts-scroll-v2::-webkit-scrollbar {
    width: 0px;
}

/* Show scrollbar when content overflows */
.discounts-section-v2:has(.discount-card-inline-v2:nth-child(2)) .discounts-scroll-v2 {
    overflow-y: scroll;
}

.discounts-section-v2:has(.discount-card-inline-v2:nth-child(2)) .discounts-scroll-v2::-webkit-scrollbar {
    width: 6px;
    -webkit-appearance: none;
}

.discounts-section-v2:has(.discount-card-inline-v2:nth-child(2)) .discounts-scroll-v2::-webkit-scrollbar-track {
    background: #e2e8f0;
}

.discounts-section-v2:has(.discount-card-inline-v2:nth-child(2)) .discounts-scroll-v2::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

.discounts-section-v2:has(.discount-card-inline-v2:nth-child(2)) .discounts-scroll-v2::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Mobile: Force visible scrollbar only for multiple discounts */
@media (max-width: 768px) {
    .discounts-section-v2:has(.discount-card-inline-v2:nth-child(2)) .discounts-scroll-v2 {
        overflow-y: scroll !important;
    }
    
    .discounts-section-v2:has(.discount-card-inline-v2:nth-child(2)) .discounts-scroll-v2::-webkit-scrollbar {
        width: 6px !important;
        -webkit-appearance: none !important;
    }
    
    .discounts-section-v2:has(.discount-card-inline-v2:nth-child(2)) .discounts-scroll-v2::-webkit-scrollbar-track {
        background: #e2e8f0 !important;
    }
    
    .discounts-section-v2:has(.discount-card-inline-v2:nth-child(2)) .discounts-scroll-v2::-webkit-scrollbar-thumb {
        background: #64748b !important;
        border-radius: 3px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .card-requirements-v2 {
        gap: 0.375rem;
        max-width: 100%;
    }
    
    .requirement-pill-v2 {
        flex: 0 0 auto;
        max-width: fit-content;
    }
    
    .promo-modal {
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .promo-modal-header {
        padding: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .promo-modal-title {
        font-size: 1.125rem !important;
    }
    
    .profile-section {
        padding: 1rem !important;
    }
    
    .profile-section:first-of-type {
        padding-top: 1rem !important;
    }
    
    .profile-section-title {
        font-size: 0.875rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .profile-section-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }
    
    .profile-list-item {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .profile-item-text {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.75rem !important;
    }
    
    .profile-action-btn {
        width: auto;
        padding: 0.4375rem 0.75rem;
        font-size: 0.75rem !important;
        flex-shrink: 0;
    }
    
    .ux-toggle-btn {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .ux-toggle-icon {
        width: 36px;
        height: 36px;
    }
    
    .ux-toggle-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .ux-toggle-title {
        font-size: 0.8125rem;
    }
    
    .ux-toggle-desc {
        font-size: 0.75rem;
    }
    
    .show-again-btn {
        padding: 0.4375rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
    
    .show-text-mobile {
        display: inline;
    }
    
    .show-text-desktop {
        display: none;
    }
    
    .ignored-brand-item .profile-item-text {
        max-width: 60%;
    }
    
    .profile-footer {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .profile-footer p {
        font-size: 0.75rem !important;
        line-height: 1.3;
    }
    
    .profile-logout-btn {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.8125rem;
    }
    
    .profile-logout-btn svg {
        width: 12px;
        height: 12px;
    }
}

@media (min-width: 769px) {
    .show-text-mobile {
        display: none;
    }
    
    .show-text-desktop {
        display: inline;
    }
}

.discount-card-inline-v2 {
    padding: 0.75rem;
}

.discount-card-inline-v2:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

/* Collapsed Discounts UX */
.discounts-collapsed-v2 {
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.discount-collapsed-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.discount-collapsed-header:hover {
    background: #f1f5f9;
}

.discount-icon {
    stroke: #64748b;
    flex-shrink: 0;
}

.discount-collapsed-left {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.discount-count {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
}

.click-to-view {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}

.discount-collapsed-right {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.discount-badge {
    padding: 0.25rem 0.5rem;
    background: #334155;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.chevron-icon {
    stroke: #64748b;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.discount-collapsed-content {
    border-top: 1px solid #e2e8f0;
}

.discount-item-collapsed {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    overflow: visible;
}

.discount-item-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.375rem;
}

.discount-applies-to {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.discount-code-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.discount-code-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

.discount-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.discount-copy-btn:hover {
    background: #2563eb;
}

.discount-copy-btn svg {
    stroke: currentColor;
}

/* Legacy single discount support */
.single-discount-v2 {
    margin-bottom: 1rem;
    padding: 0;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.discount-code-inline-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.discount-code-inline-v2:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.code-label-inline-v2 {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
}

.code-text-inline-v2 {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

.code-copy-icon-inline-v2 {
    stroke: #64748b;
    flex-shrink: 0;
}

.discount-info-inline-v2 {
    padding: 0.75rem;
}

.discount-text-inline-v2 {
    font-size: 0.875rem;
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.4;
}

.discount-applies-to-inline-v2 {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.375rem;
    font-style: italic;
    line-height: 1.4;
}

.discount-prereq-inline-v2 {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.25rem;
    font-style: italic;
    line-height: 1.4;
}

/* Requirements Section */
.card-requirements-v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.requirement-pill-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.requirement-pill-v2 svg {
    stroke: currentColor;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.requirement-globe {
    background: #dbeafe;
    color: #1e40af;
}

.requirement-dollar {
    background: #fef3c7;
    color: #b45309;
}

.requirement-layers-no {
    background: #fee2e2;
    color: #dc2626;
}

.requirement-layers-yes {
    background: #dcfce7;
    color: #15803d;
}

.preview-btn-v2 {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: #334155;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.preview-btn-v2:hover {
    background: #1e293b;
}

/* Discounts Section (Collapsible) */
.card-discounts-v2 {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.discount-item-v2 {
    margin-bottom: 0.75rem;
}

.discount-code-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.discount-code-v2:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.code-label-v2 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
}

.code-text-v2 {
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
}

.code-copy-icon-v2 {
    stroke: #64748b;
    margin-left: auto;
}

.discount-value-v2 {
    font-size: 0.875rem;
    color: #475569;
}

/* Footer: Expiry + Actions */
.card-footer-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.card-expiry-v2 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-expiry-v2.expiry-urgent {
    color: #ea580c;
}

.card-expiry-v2.expiry-urgent svg {
    stroke: #ea580c;
}

.card-expiry-v2.expiry-normal {
    color: #64748b;
}

.card-expiry-v2.expiry-normal svg {
    stroke: #64748b;
}

.card-expiry-v2 svg {
    flex-shrink: 0;
}

.card-actions-v2 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-action-link-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.card-action-link-v2:hover {
    color: #1e293b;
}

.card-action-link-v2 svg {
    stroke: currentColor;
}

.card-shop-link-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    margin-left: auto;
}

.card-shop-link-v2:hover {
    color: #2563eb;
}

.card-shop-link-v2 svg {
    stroke: currentColor;
}

/* Promo Code Modal */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.promo-modal {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.promo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.promo-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
}

.promo-modal-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.promo-modal-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.promo-modal-close:hover {
    color: #475569;
}

.promo-modal-codes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.promo-modal-code-item {
    padding: 0.875rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.promo-modal-code-item[style*="cursor: pointer"]:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.promo-modal-code-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.promo-modal-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
}

.promo-modal-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.25rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.promo-modal-copy-btn:hover {
    background: #2563eb;
}

.promo-modal-copy-btn svg {
    stroke: currentColor;
}

.promo-modal-code-description {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.5;
}

.promo-modal-discount-details {
    margin-top: 0;
}

.promo-modal-applies-to {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.375rem;
    font-style: italic;
}

.promo-modal-prereq {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
    font-style: italic;
}

.promo-modal-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: white;
    justify-content: space-between;
}

.promo-modal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
}

.promo-modal-email-btn {
    color: #64748b;
}

.promo-modal-email-btn:hover {
    color: #1e293b;
}

.promo-modal-shop-btn {
    color: #3b82f6;
    font-weight: 600;
    margin-left: auto;
}

.promo-modal-shop-btn:hover {
    color: #2563eb;
}

.promo-modal-action-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Settings Modal */
.settings-content {
    margin-top: 1rem;
}

.ignored-brands-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ignored-brand-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ignored-brand-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a202c;
}

.btn-unignore {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-unignore:hover {
    background: #2563eb;
}

.btn-unignore svg {
    stroke: currentColor;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

.empty-state p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Profile Modal */
.profile-modal {
    max-width: 600px;
}

.profile-content {
    padding: 0;
}

.profile-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.profile-section:first-of-type {
    padding-top: 1rem;
}

.profile-section:last-of-type {
    border-bottom: none;
}

.profile-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.375rem 0;
    text-transform: none;
}

.profile-section-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 0.875rem 0;
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    gap: 1rem;
}

.profile-item-text {
    font-size: 0.9375rem;
    color: #1a202c;
    font-weight: 500;
    flex: 1;
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-action-btn:hover {
    background: #2563eb;
}

.profile-danger-btn {
    background: #ef4444;
}

.profile-danger-btn:hover {
    background: #dc2626;
}

/* UX Preference Toggle Group */
.ux-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ux-toggle-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.ux-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ux-toggle-btn.active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ux-toggle-btn.active:hover {
    background: #dbeafe;
    border-color: #2563eb;
}

.ux-toggle-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.ux-toggle-btn:hover .ux-toggle-icon {
    border-color: #cbd5e1;
}

.ux-toggle-btn.active .ux-toggle-icon {
    background: #3b82f6;
    border-color: #3b82f6;
}

.ux-toggle-btn.active .ux-toggle-icon svg {
    stroke: white;
}

.ux-toggle-icon svg {
    stroke: #64748b;
    transition: stroke 0.2s ease;
}

.ux-toggle-text {
    flex: 1;
    min-width: 0;
}

.ux-toggle-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.125rem;
}

.ux-toggle-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.3;
}

.ux-toggle-btn.active .ux-toggle-title {
    color: #1e40af;
}

.ux-toggle-btn.active .ux-toggle-desc {
    color: #3b82f6;
}

.profile-footer {
    padding: 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.profile-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-logout-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.profile-logout-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.profile-footer p {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
}

.profile-footer a {
    color: #3b82f6;
    text-decoration: none;
}

.profile-footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .deal-card-v2 {
        padding: 1rem;
    }
    
    .card-header-v2 {
        gap: 0.5rem;
    }
    
    .card-merchant-v2 {
        font-size: 1rem;
    }
    
    .card-badge-relevant-v2 {
        padding: 0.375rem;
    }
    
    .card-title-v2 {
        font-size: 1rem;
    }
    
    .card-footer-v2 {
        gap: 0.5rem;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: space-between;
        padding-top: 0.75rem;
    }
    
    /* Hide footer border/padding on mobile if no expiry or shop link */
    .card-footer-v2:not(:has(.card-expiry-row-v2, .card-shop-link-v2)) {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    
    .card-expiry-row-v2 {
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .card-expiry-v2 {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .card-expiry-v2 svg {
        width: 12px;
        height: 12px;
    }
    
    .card-actions-row-v2 {
        flex: 0 0 auto;
        display: flex;
        gap: 0.5rem;
        align-items: center;
        white-space: nowrap;
    }
    
    .card-action-link-v2 {
        display: none !important;
    }
    
    .card-shop-link-v2 {
        margin-left: 0;
        font-size: 0.875rem;
    }
    
    .card-requirements-v2 {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .requirement-pill-v2 {
        flex: 0 0 auto;
    }
    
    .promo-modal-code-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .promo-modal-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

