/* 🎨 Unified Badge System - Merged and Fixed */
/* Combines badge-system-refactor.css and badge-positioning-fixes.css */
/* Resolves conflicts and implements proper positioning per requirements */

/* ========== Card Container Base Setup ========== */
.token-price-card {
    position: relative !important;
    padding-top: 30px !important;
    overflow: visible !important;
    /* Changed from hidden to allow badges outside card */
    margin-top: 25px !important;
    z-index: 1;
    isolation: isolate !important;
    /* Create new stacking context for effects */
}

/* Ensure price section allows for discount badge positioning */
.token-price-card .price-section,
.price-section {
    position: relative !important;
    overflow: visible !important;
    margin-top: 20px !important;
    z-index: 15 !important;
    /* Use flexbox for proper alignment */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding-top: 20px !important;
    /* Space for badge */
}

/* ========== RARITY BADGE - Above Card, Centered ========== */
/* UPDATED: Exclude holofoil cards - they have their own badge system */
.token-price-card .rarity-badge,
.token-sales-container .rarity-badge:not(.holo-card .rarity-badge) {
    /* Positioning - Above card, centered */
    position: absolute !important;
    top: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 30 !important;

    /* Sizing and layout */
    min-width: 140px !important;
    max-width: 180px !important;
    padding: 10px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    overflow: visible !important;

    /* Visual styling */
    border-radius: 25px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Holofoil cards: Use their own badge styling from card-base.css */
.holo-card .rarity-badge {
    /* Intentionally empty - let holofoil card-base.css handle it */
}

.rarity-badge .badge-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.rarity-badge .badge-stars {
    display: inline-block;
    font-size: 0.8rem;
    line-height: 1;
    filter: drop-shadow(0 0 2px currentColor);
}

/* ========== DISCOUNT BADGE - Relative to Price Section ========== */
/* Updated positioning approach for better document flow and consistency */
.discount-badge,
.limited-time-badge,
.flash-sale-badge,
.hot-deal-badge,
.promo-badge,
.sale-ribbon,
.discount-ribbon,
.savings-indicator,
.price-drop-badge {
    /* Positioning - Absolute top-right for standard badge look */
    position: absolute !important;
    top: -15px !important;
    right: -10px !important;
    left: auto !important;
    bottom: auto !important;

    /* Remove relative positioning margins */
    margin: 0 !important;

    /* Ensure it floats above everything */
    z-index: 40 !important;

    /* Rotating removal and centering */
    transform: rotate(0deg) !important;
    transform-origin: center center !important;

    /* Sizing and layout - consistent across all badge types */
    width: auto !important;
    min-width: 120px !important;
    max-width: 180px !important;
    height: 36px !important;
    padding: 0 16px !important;

    /* Proper positioning for horizontal badge - Enforced for ALL */
    top: -18px !important;
    right: -10px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;

    /* Ensure proper box model */
    box-sizing: border-box !important;

    /* Flexbox for perfect text centering */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Prevent text from expanding the badge */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    /* Visual styling */
    text-align: center !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;

    /* Ensure proper stacking */
    z-index: 25 !important;

    /* No scaling transforms */
    scale: 1 !important;
}

/* ========== POPULAR BADGE - Top Right Corner ========== */
.popular-badge {
    /* Positioning - Top right corner of card */
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 20 !important;

    /* Sizing and layout */
    padding: 6px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Visual styling */
    background: linear-gradient(135deg, #ff1744, #f50057) !important;
    color: white !important;
    border-radius: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.8rem !important;
    box-shadow: 0 2px 8px rgba(255, 23, 68, 0.4) !important;
    animation: pulse-popular 2s ease-in-out infinite !important;
}

/* ========== EXCLUSIVE BADGE - Top Left Corner ========== */
.exclusive-badge {
    /* Positioning - Top left corner of card */
    /* Positioning - Bottom left corner to avoid overlap */
    position: absolute !important;
    top: auto !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 20 !important;

    /* Sizing and layout */
    padding: 6px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Visual styling */
    background: linear-gradient(135deg, #651fff, #7c4dff) !important;
    color: white !important;
    border-radius: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.8rem !important;
    box-shadow: 0 2px 8px rgba(101, 31, 255, 0.4) !important;
}

/* ========== MAX BENEFIT - Removed (replaced by rarity badge) ========== */
.max-benefit-indicator {
    display: none !important;
}

/* ========== Rarity-Specific Colors (8-Tier System) ========== */

/* Tier 1 - Common (Bronze) */
.rarity-badge.rarity-common {
    background: linear-gradient(135deg, #b8bcc2, #8a8d91) !important;
    color: #ffffff !important;
    border: 2px solid #b8bcc2 !important;
}

/* Tier 2 - Uncommon (Silver) */
.rarity-badge.rarity-uncommon {
    background: linear-gradient(135deg, #00ff88, #00cc6f) !important;
    color: #000000 !important;
    border: 2px solid #00ff88 !important;
}

/* Tier 3 - Rare (Gold) */
.rarity-badge.rarity-rare {
    background: linear-gradient(135deg, #0549dd, #0066ff) !important;
    color: #ffffff !important;
    border: 2px solid #0549dd !important;
}

/* Tier 4 - Epic (Platinum) */
.rarity-badge.rarity-epic {
    background: linear-gradient(135deg, #b700ff, #9400d3) !important;
    color: #ffffff !important;
    border: 2px solid #b700ff !important;
}

/* Tier 5 - Legendary (Diamond) */
.rarity-badge.rarity-legendary {
    background: linear-gradient(135deg, #ff9500, #ff6b00) !important;
    color: #ffffff !important;
    border: 2px solid #ff9500 !important;
    box-shadow: 0 0 20px rgba(255, 149, 0, 0.6) !important;
}

/* Tier 6 - Transcendent (Dolphin) */
.rarity-badge.rarity-transcendent {
    background: linear-gradient(45deg, #ff9500, #ffb700, #ffd700, #ffb700, #ff9500) !important;
    color: #000000 !important;
    border: 2px solid transparent !important;
    border-image: linear-gradient(45deg, #ff9500, #ffb700, #ffd700) 1 !important;
    animation: transcendent-shimmer 3s ease-in-out infinite !important;
}

/* Tier 7 - Mythic (Whale) */
.rarity-badge.rarity-mythic {
    background: linear-gradient(135deg, #e07b16, #ff8c00, #ff6347, #e07b16) !important;
    color: #ffffff !important;
    border: 2px solid #e07b16 !important;
    animation: mythic-pulse 2s ease-in-out infinite !important;
}

/* Tier 8 - Divine (Titan) */
.rarity-badge.rarity-divine {
    position: relative !important;
    background: linear-gradient(135deg, #2889ea, #00d4ff, #2889ea) padding-box,
        linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000) border-box !important;
    color: #ffffff !important;
    border: 3px solid transparent !important;
    border-radius: 25px !important;
    /* Ensure rounded corners */
    animation: divine-rainbow 3s linear infinite !important;
    box-shadow: 0 0 30px rgba(40, 137, 234, 0.8) !important;
    z-index: 30;
}

/* ========== Star Count Display ========== */
.rarity-badge .badge-stars {
    font-size: 0;
}

.rarity-badge .badge-stars::after {
    font-size: 0.8rem;
}

.rarity-common .badge-stars::after {
    content: "⭐";
}

.rarity-uncommon .badge-stars::after {
    content: "⭐⭐";
}

.rarity-rare .badge-stars::after {
    content: "⭐⭐⭐";
}

.rarity-epic .badge-stars::after {
    content: "⭐⭐⭐⭐";
}

.rarity-legendary .badge-stars::after {
    content: "⭐⭐⭐⭐⭐";
}

.rarity-transcendent .badge-stars::after {
    content: "⭐⭐⭐⭐⭐⭐";
}

.rarity-mythic .badge-stars::after {
    content: "⭐⭐⭐⭐⭐⭐⭐";
}

.rarity-divine .badge-stars::after {
    content: "⭐⭐⭐⭐⭐⭐⭐⭐";
}

/* ========== Discount Badge Colors ========== */

/* Basic discount for first 3 tiers */
.discount-badge.customer {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: #ffffff !important;
}

/* Premium discount for tier 4+ */
.discount-badge.global,
.discount-badge.service,
.discount-badge.discount-legendary,
.discount-badge.discount-mythic,
.discount-badge.discount-divine {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2) !important;
    color: #ffffff !important;
}

/* Special max discount styling */
.discount-badge.max {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000000 !important;
    font-weight: 50 !important;
}

/* Special handling for MAX BENEFIT badges to ensure consistent sizing */
.discount-badge.pulse.max,
.discount-badge.legendary.pulse.max,
.discount-badge.mythic.pulse.max,
.discount-badge.divine.pulse.max,
.discount-badge.discount-legendary.pulse.max,
.discount-badge.discount-mythic.pulse.max,
.discount-badge.discount-divine.pulse.max,
.discount-badge.discount-angelic.pulse.max {
    /* Compact the text to fit in the same space as other badges */
    font-size: 0.75rem !important;
    /* Slightly smaller font for MAX BENEFIT text */
    letter-spacing: -0.02em !important;
    /* Tighten letter spacing */
    padding: 0 12px !important;
    /* Slightly less horizontal padding */
    height: 36px !important;
    /* Match standard height */

    /* Ensure the badge doesn't expand beyond reasonable width */
    max-width: auto !important;
    min-width: 130px !important;
    /* Fix width constraint */

    /* Flex alignment */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Added discount-specific class names to avoid conflicts with rarity badges */
.discount-badge.discount-angelic,
.bundle-value-badge,
.special-edition-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000000 !important;
}

/* Additional badge type colors for various promotional badges */
/* Basic discount badges */
.limited-time-badge,
.flash-sale-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: #ffffff !important;
}

/* Sale and clearance badges */
.sale-ribbon,
.discount-ribbon,
.clearance-marker,
.sale-tag {
    background: linear-gradient(135deg, #FF4444, #CC0000) !important;
    color: #ffffff !important;
}

/* New and seasonal badges */
.new-badge,
.seasonal-tag {
    background: linear-gradient(135deg, #00BCD4, #0097A7) !important;
    color: #ffffff !important;
}

/* Bundle and multi-buy badges */
.bundle-tag,
.multi-buy-indicator,
.bundle-deal-badge {
    background: linear-gradient(135deg, #FF9800, #F57C00) !important;
    color: #ffffff !important;
}

/* Hot deal and promo badges */
.hot-deal-badge,
.promo-badge {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2) !important;
    color: #ffffff !important;
}

/* ========== Uniform Discount Badge Sizing Override ========== */
/* Ensures ALL discount badges have consistent sizing regardless of tier */
/* This includes all possible class combinations and badge types */
.discount-badge,
.discount-badge.customer,
.discount-badge.global,
.discount-badge.service,
.discount-badge.legendary,
.discount-badge.transcendent,
.discount-badge.mythic,
.discount-badge.divine,
.discount-badge.discount-legendary,
.discount-badge.discount-transcendent,
.discount-badge.discount-mythic,
.discount-badge.discount-divine,
.discount-badge.discount-angelic,
.discount-badge.max,
.discount-badge.pulse,
.discount-badge.legendary.pulse,
.discount-badge.legendary.max,
.discount-badge.legendary.pulse.max,
.discount-badge.mythic.pulse,
.discount-badge.mythic.max,
.discount-badge.mythic.pulse.max,
.discount-badge.divine.pulse,
.discount-badge.divine.max,
.discount-badge.divine.pulse.max,
.discount-badge.discount-legendary.pulse,
.discount-badge.discount-legendary.max,
.discount-badge.discount-legendary.pulse.max,
.discount-badge.discount-mythic.pulse,
.discount-badge.discount-mythic.max,
.discount-badge.discount-mythic.pulse.max,
.discount-badge.discount-divine.pulse,
.discount-badge.discount-divine.max,
.discount-badge.discount-divine.pulse.max,
.discount-badge.discount-angelic.pulse,
.discount-badge.discount-angelic.max,
.discount-badge.discount-angelic.pulse.max,
.discount-badge.pulse.max,
/* Include all within price-section and token-price-card contexts */
.price-section .discount-badge,
.token-price-card .discount-badge,
.token-price-card .price-section .discount-badge {
    /* These rules are now handled by the main discount badge section above */
    /* Kept here for specificity if needed */
}

/* Override any animations that cause scaling */
.discount-badge.pulse,
.discount-badge.legendary.pulse,
.discount-badge.mythic.pulse,
.discount-badge.divine.pulse,
.discount-badge.discount-legendary.pulse,
.discount-badge.discount-mythic.pulse,
.discount-badge.discount-divine.pulse,
.discount-badge.discount-angelic.pulse,
.discount-badge.pulse.max,
.discount-badge.legendary.pulse.max,
.discount-badge.mythic.pulse.max,
.discount-badge.divine.pulse.max,
.discount-badge.discount-legendary.pulse.max,
.discount-badge.discount-mythic.pulse.max,
.discount-badge.discount-divine.pulse.max,
.discount-badge.discount-angelic.pulse.max,
.limited-time-badge.pulse,
.flash-sale-badge.pulse,
.hot-deal-badge.pulse,
.promo-badge.pulse {
    /* Use opacity-based animation instead of transform scaling */
    animation: pulse-opacity 2s ease-in-out infinite !important;
}

/* Pulse animation using opacity only (no scaling or transform) */
@keyframes pulse-opacity {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    50% {
        opacity: 0.9;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    }
}

/* ========== Special Rarity Effects Containment ========== */
/* Mythic card rainbow effect containment */
/* Mythic card rainbow effect containment - MOVED to inner element to avoid clipping badges */
.token-price-card.rarity-card-mythic {
    /* mask-image removed to allow badge overflow */
    overflow: visible !important;
}

/* Apply mask to inner content instead */
.token-price-card.rarity-card-mythic .card-background-effect {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    mask-image: radial-gradient(ellipse at center,
            black 85%,
            transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center,
            black 85%,
            transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Divine/Angelic card aura containment */
.token-price-card.rarity-card-divine::after,
.token-price-card.rarity-card-angelic::after {
    content: '';
    position: absolute;
    inset: -5px;
    /* Reduced from -10px */
    border-radius: calc(var(--radius-lg, 20px) + 5px);
    pointer-events: none;
    z-index: -1;
}

/* ========== Angelic Card Width Fix ==========
/* Ensure Angelic card fits properly in 3x3 grid */
.token-price-card[data-package="angelic"],
.token-price-card.rarity-card-angelic {
    max-width: 100% !important;
    width: 100% !important;
}

/* Grid container adjustment for proper 3x3 layout */
.token-grid,
.pricing-grid,
.tokens-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 50px !important;
    /* Increased gap to prevent overlap */
    padding: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Individual card spacing */
.token-price-card {
    margin: 10px;
    /* Additional margin as safety */
}

/* ========== Popular Badge (if exists) ========== */
.popular-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 22 !important;
    background: linear-gradient(135deg, #FF6B6B, #FFE66D) !important;
    color: #FFFFFF !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.5) !important;
}

/* ========== Animations ========== */

@keyframes pulse-popular {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 23, 68, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 23, 68, 0.6);
    }
}

@keyframes transcendent-shimmer {

    0%,
    100% {
        filter: brightness(1) hue-rotate(0deg);
    }

    50% {
        filter: brightness(1.2) hue-rotate(30deg);
    }
}

@keyframes mythic-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes divine-rainbow {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }

    100% {
        filter: hue-rotate(360deg) brightness(1);
    }
}

/* ========== Visual Effects Containment (from visual-overflow-fixes.css) ========== */
/* Contain dashed borders for Common/Uncommon cards */
.token-price-card.rarity-card-common,
.token-price-card.rarity-card-uncommon {
    border: 2px solid transparent !important;
}

/* Use pseudo-element for dashed borders to ensure containment */
.token-price-card.rarity-card-common::before,
.token-price-card.rarity-card-uncommon::before {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border: 2px dashed;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.token-price-card.rarity-card-common::before {
    border-color: #b8bcc2;
}

.token-price-card.rarity-card-uncommon::before {
    border-color: #00ff88;
}

/* Ensure content is above the border effect */
.token-price-card>* {
    position: relative;
    z-index: 2;
}

/* ========== Z-Index Layer Management ========== */
.card-glow,
.card-particles {
    z-index: 0 !important;
    /* Behind content */
    pointer-events: none;
    /* Contain within card boundaries */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow: hidden !important;
    border-radius: inherit;
}

/* Scale down glow effects to prevent overflow */
.token-price-card .card-glow {
    top: 10% !important;
    left: 10% !important;
    width: 80% !important;
    height: 80% !important;
    opacity: 0.6;
}

/* Light effects containment */
.token-price-card .light-ball,
.token-price-card .light-rainfall {
    position: absolute !important;
    pointer-events: none;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.package-header,
.card-content {
    position: relative;
    z-index: 10 !important;
}

.price-section {
    z-index: 15 !important;
}

/* Package header spacing adjustments */
.token-price-card .package-header {
    padding-top: 80px !important;
    /* Space for badges */
}

/* Package name text fixes */
.token-price-card .package-name {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {

    /* Grid adjusts to 2 columns on tablets */
    .token-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* Badge size adjustments */
    .rarity-badge {
        min-width: 120px !important;
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }

    .rarity-badge .badge-stars::after {
        font-size: 0.7rem !important;
    }

    .discount-badge,
    .limited-time-badge,
    .flash-sale-badge,
    .hot-deal-badge,
    .promo-badge,
    .sale-ribbon,
    .discount-badge.pulse.max,
    .discount-badge.legendary.pulse.max,
    .discount-badge.mythic.pulse.max,
    .discount-badge.divine.pulse.max {
        min-width: 120px !important;
        max-width: 140px !important;
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
        margin: -15px auto 8px auto !important;
    }
}

@media (max-width: 480px) {

    /* Grid adjusts to 1 column on mobile */
    .token-grid,
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Further badge adjustments for mobile */
    .rarity-badge {
        min-width: 100px !important;
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    .discount-badge,
    .limited-time-badge,
    .flash-sale-badge,
    .hot-deal-badge,
    .promo-badge,
    .sale-ribbon,
    .discount-badge.pulse.max,
    .discount-badge.legendary.pulse.max,
    .discount-badge.mythic.pulse.max,
    .discount-badge.divine.pulse.max {
        min-width: 100px !important;
        max-width: 120px !important;
        font-size: 0.8rem !important;
        padding: 5px 10px !important;
        margin: -12px auto 6px auto !important;
    }
}

/* ========== Animation Performance Optimization ========== */
@media (prefers-reduced-motion: no-preference) {
    .token-price-card * {
        will-change: transform, opacity;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* ========== Debug Mode (Remove in Production) ========== */
.debug-mode .token-price-card,
.debug-visual-overflow .token-price-card {
    outline: 2px dashed red;
}

.debug-mode .rarity-badge,
.debug-visual-overflow .rarity-badge {
    outline: 2px dashed blue;
    background: rgba(0, 0, 255, 0.1) !important;
}

.debug-mode .discount-badge,
.debug-visual-overflow .discount-badge {
    outline: 2px dashed green;
    background: rgba(0, 255, 0, 0.1) !important;
}

.debug-mode .price-section {
    outline: 2px dashed orange;
}

/* ========== Final Override Section ========== */
/* Use these with !important to override any conflicting styles */
.visual-fix-override .token-price-card {
    overflow: visible !important;
    /* Allow badges outside */
    position: relative !important;
}

/* Fallback for misplaced badges - using relative positioning approach */
.token-price-card>.discount-badge:not(.price-section .discount-badge),
.token-price-card>.limited-time-badge:not(.price-section .limited-time-badge),
.token-price-card>.flash-sale-badge:not(.price-section .flash-sale-badge),
.token-price-card>.hot-deal-badge:not(.price-section .hot-deal-badge),
.token-price-card>.promo-badge:not(.price-section .promo-badge) {
    /* If badges are accidentally placed outside price-section, move them visually */
    position: relative !important;
    margin-top: 20px !important;
    margin-bottom: -40px !important;
}

.visual-fix-override .token-price-card::before,
.visual-fix-override .token-price-card::after {
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

/* ========== Discount Badge System Merge Complete ========== */
/* 
 * This file now contains all discount-badge rules merged from:
 * 1. Original badge-system-unified.css rules
 * 2. discount-badge-width-fix.css (relative positioning approach)
 * 3. discount-badge-max-benefit-fix.css (MAX BENEFIT text sizing)
 * 4. discount-badges-relative-positioning.css (comprehensive badge types)
 * 
 * Key changes implemented:
 * - All discount badges now use relative positioning instead of absolute
 * - Badges are positioned relative to their parent price-section container
 * - Consistent sizing across all badge types and tier combinations
 * - Special handling for MAX BENEFIT badges with smaller font size
 * - Opacity-based animations instead of transform scaling
 * - Support for multiple promotional badge types with appropriate colors
 * - Responsive adjustments for tablets and mobile devices
 * - Fallback positioning for misplaced badges
 * 
 * The other CSS files can now be safely removed or disabled as this file
 * serves as the single source of truth for all badge styling.
 */