/*
 * Superunico Cashback System Frontend Styles
 * Brand Colors: #ff2668 (main), #ff4081 (accent)
 * Modern 2025 app-like design
 */

/* === ROOT VARIABLES === */
:root {
    --superunico-primary: #ff2668;
    --superunico-secondary: #ff4081;
    --superunico-gradient: linear-gradient(135deg, #ff2668 0%, #ff4081 100%);
    --superunico-light: #ffe8f0;
    --superunico-dark: #990033;
    --superunico-shadow: 0 4px 20px rgba(255, 38, 104, 0.15);
    --superunico-shadow-hover: 0 8px 30px rgba(255, 38, 104, 0.25);
    --superunico-border-radius: 12px;
    --superunico-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === FLOATING UNICOCASH WIDGET === */
.superunico-cashback-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.superunico-cashback-floating .cashback-toggle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
}

.superunico-cashback-floating .cashback-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.superunico-cashback-floating .cashback-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.superunico-cashback-floating .cashback-amount,
.superunico-cashback-floating .cashback-amount .woocommerce-Price-amount,
.superunico-cashback-floating .cashback-amount .amount {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 1;
    position: relative;
}

.superunico-cashback-floating .tier-mini {
    color: rgba(255, 255, 255, 0.9);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
    text-align: center;
    z-index: 1;
    position: relative;
}

/* Removed float animation per user request */



/* Mobile optimizations */
@media (max-width: 768px) {
    .superunico-cashback-floating {
        bottom: 15px;
        left: 15px;
    }
    
    .superunico-cashback-floating .cashback-toggle {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }
    
    .superunico-cashback-floating .cashback-details {
        width: calc(100vw - 40px);
        max-width: 280px;
        bottom: 80px;
    }
    
    .superunico-cashback-floating .tier-mini {
        max-width: 60px;
        font-size: 8px;
    }
    
    .superunico-cashback-floating .cashback-amount {
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stats-grid .stat-item {
        padding: 20px;
    }
    
    .stats-grid .stat-value {
        font-size: 24px;
    }
    
    .superunico-cashback-floating .cashback-rate-info {
        font-size: 11px;
        padding: 0 8px;
    }
    
    .tier-explanation {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .superunico-cashback-floating .unicocash-title {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
}

.superunico-cashback-floating .cashback-details {
    position: absolute;
    bottom: 75px;
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 38, 104, 0.1);
}

.superunico-cashback-floating.expanded .cashback-details {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.superunico-cashback-floating .cashback-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.superunico-cashback-floating .header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.superunico-cashback-floating .unicocash-title {
    margin: 0;
    color: var(--superunico-primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.superunico-cashback-floating .close-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.superunico-cashback-floating .close-button:hover {
    background: #e0e0e0;
    color: #333;
}

.superunico-cashback-floating .cashback-content {
    padding: 20px;
}

.superunico-cashback-floating .cashback-balance {
    text-align: center;
    margin-bottom: 20px;
}

.superunico-cashback-floating .cashback-balance .amount {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--superunico-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.superunico-cashback-floating .cashback-balance .label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.superunico-cashback-floating .tier-section {
    margin-bottom: 20px;
}

.superunico-cashback-floating .current-tier {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 0;
}

.superunico-cashback-floating .tier-icon {
    font-size: 16px;
}

.superunico-cashback-floating .tier-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--superunico-primary);
    letter-spacing: 0.5px;
}

.superunico-cashback-floating .cashback-rate-info {
    text-align: center;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 12px;
    padding: 0 12px;
    line-height: 1.3;
}

.superunico-cashback-floating .tier-progress {
    text-align: center;
}

.superunico-cashback-floating .progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.superunico-cashback-floating .progress-fill {
    height: 100%;
    background: var(--superunico-gradient);
    border-radius: 3px;
    transition: width 0.8s ease;
    position: relative;
}

.superunico-cashback-floating .progress-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.superunico-cashback-floating .cashback-actions {
    margin-top: 20px;
}

.superunico-cashback-floating .button {
    background: var(--superunico-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    font-size: 14px;
    transition: var(--superunico-transition);
    text-align: center;
}

.superunico-cashback-floating .button:hover {
    transform: translateY(-1px);
    box-shadow: var(--superunico-shadow);
}

/* === CART & CHECKOUT DISPLAY === */
.superunico-cashback-info th {
    color: #16a34a !important;
    font-weight: 600 !important;
}

.superunico-cashback-info td {
    color: #16a34a !important;
    font-weight: 600 !important;
}

.superunico-cashback-info .cashback-tier-info {
    color: #666 !important;
    font-weight: 400 !important;
    font-size: 0.9em;
    margin-left: 4px;
}

/* === PREMIUM DASHBOARD DESIGN === */
.superunico-dashboard {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0 16px;
}

/* === STUNNING HERO SECTION === */
.dashboard-hero {
    position: relative;
    background: linear-gradient(135deg, #ff2668 0%, #ff4081 50%, #e91e63 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(255, 38, 104, 0.3);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.floating-shape.shape-1 {
    width: 120px;
    height: 120px;
    top: -60px;
    right: -60px;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 80px;
    height: 80px;
    bottom: -40px;
    left: -40px;
    animation-delay: 2s;
}

.floating-shape.shape-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.balance-display {
    position: relative;
    z-index: 2;
}

.balance-display .balance-amount {
    display: block;
    font-size: 64px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
    to { text-shadow: 0 4px 24px rgba(255, 255, 255, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2); }
}

.balance-display .balance-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === UNIFORM CARD SYSTEM === */
.dashboard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--superunico-transition);
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 24px 24px 0;
}

.card-header h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-content {
    padding: 24px;
}

/* === CURRENT TIER INFO === */
.current-tier-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.current-tier-info .tier-icon {
    font-size: 24px;
}

.current-tier-info .tier-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--superunico-primary);
    letter-spacing: 0.5px;
}

.current-tier-info .tier-rate {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.tier-explanation {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--superunico-primary);
}

/* === TIER PROGRESS === */
.tier-progress {
    text-align: center;
}

.tier-progress .progress-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.tier-progress .progress-fill {
    height: 100%;
    background: var(--superunico-gradient);
    border-radius: 5px;
    transition: width 1s ease;
    position: relative;
}

.tier-progress .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.tier-progress .progress-info {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

/* === TIER LIST === */
.tier-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--superunico-transition);
    position: relative;
}

.tier-item.current {
    background: var(--superunico-light);
    border-color: var(--superunico-primary);
    box-shadow: 0 2px 8px rgba(255, 38, 104, 0.15);
}

.tier-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.tier-item.current:hover {
    background: var(--superunico-light);
}

.tier-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tier-info .tier-name {
    font-weight: 700;
    color: #333;
    min-width: 100px;
    font-size: 16px;
}

.tier-info .tier-threshold {
    font-weight: 600;
    color: #666;
    min-width: 80px;
    font-size: 15px;
}

.tier-info .tier-rate {
    font-weight: 700;
    color: var(--superunico-primary);
    font-size: 16px;
}

.current-badge {
    background: var(--superunico-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 38, 104, 0.3);
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stats-grid .stat-item {
    text-align: center;
    padding: 24px;
    background: #fafafa;
    border-radius: 12px;
    transition: var(--superunico-transition);
    border: 1px solid #f0f0f0;
}

.stats-grid .stat-item:hover {
    background: #f0f0f0;
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stats-grid .stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--superunico-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stats-grid .stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stats-grid .stat-description {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

/* === CASHBACK HISTORY === */
.superunico-cashback-history {
    margin-top: 30px;
    background: white;
    border-radius: var(--superunico-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.superunico-cashback-history h4 {
    margin: 0;
    padding: 20px 25px;
    background: var(--superunico-light);
    color: var(--superunico-primary);
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 38, 104, 0.1);
}

.superunico-cashback-history .cashback-table-wrapper {
    overflow-x: auto;
}

.superunico-cashback-history .cashback-history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.superunico-cashback-history .cashback-history-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid rgba(255, 38, 104, 0.1);
}

.superunico-cashback-history .cashback-history-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.superunico-cashback-history .cashback-history-table tr:hover {
    background: var(--superunico-light);
}

.superunico-cashback-history .cashback-amount {
    color: var(--superunico-primary);
    font-weight: 600;
}

.superunico-cashback-history .status-completed {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.superunico-cashback-history .status-reversed {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.superunico-cashback-history .cashback-history-actions {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
}

.superunico-cashback-history .button {
    background: var(--superunico-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--superunico-border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--superunico-transition);
}

.superunico-cashback-history .button:hover {
    transform: translateY(-1px);
    box-shadow: var(--superunico-shadow);
}

/* === ORDER CONFIRMATION NOTICE === */
.superunico-cashback-earned-notice {
    background: var(--superunico-gradient);
    color: white;
    padding: 30px;
    border-radius: var(--superunico-border-radius);
    margin: 20px 0;
    text-align: center;
    box-shadow: var(--superunico-shadow);
}

.superunico-cashback-earned-notice .cashback-earned-header h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
}

.superunico-cashback-earned-notice .cashback-earned-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
}

.superunico-cashback-earned-notice .cashback-earned-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.superunico-cashback-earned-notice .cashback-earned-amount .amount {
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.superunico-cashback-earned-notice .cashback-earned-amount .label {
    font-size: 16px;
    opacity: 0.9;
}

.superunico-cashback-earned-notice .cashback-earned-actions .button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: var(--superunico-border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--superunico-transition);
    backdrop-filter: blur(10px);
}

.superunico-cashback-earned-notice .cashback-earned-actions .button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* === SHORTCODE WIDGETS === */
.superunico-cashback-balance,
.superunico-cashback-earned,
.superunico-cashback-widget {
    background: white;
    border-radius: var(--superunico-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 15px 0;
}

.superunico-cashback-widget.minimal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--superunico-gradient);
    color: white;
    border-radius: var(--superunico-border-radius);
    font-weight: 600;
}

.superunico-cashback-widget.minimal .icon {
    font-size: 20px;
}

.superunico-cashback-widget.card {
    border: 1px solid rgba(255, 38, 104, 0.1);
}

.superunico-cashback-widget.card .widget-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 38, 104, 0.1);
}

.superunico-cashback-widget.card .widget-header h4 {
    margin: 0;
    color: var(--superunico-primary);
    font-size: 18px;
    font-weight: 600;
}

.superunico-cashback-widget.card .balance-display {
    text-align: center;
    margin-bottom: 20px;
}

.superunico-cashback-widget.card .balance-display .amount {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--superunico-primary);
    margin-bottom: 5px;
}

.superunico-cashback-widget.card .balance-display .label {
    color: #666;
    font-size: 14px;
}

.superunico-cashback-widget.card .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.superunico-cashback-widget.card .stat-item {
    text-align: center;
    padding: 15px;
    background: var(--superunico-light);
    border-radius: 8px;
}

.superunico-cashback-widget.card .stat-item .value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--superunico-primary);
    margin-bottom: 5px;
}

.superunico-cashback-widget.card .stat-item .label {
    font-size: 12px;
    color: #666;
}

.superunico-cashback-widget.full .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.superunico-cashback-widget.full .stat-row:last-child {
    border-bottom: none;
}

.superunico-cashback-widget.full .stat-row .label {
    color: #666;
    font-size: 14px;
}

.superunico-cashback-widget.full .stat-row .value {
    color: var(--superunico-primary);
    font-weight: 600;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .superunico-cashback-floating {
        bottom: 15px;
        left: 15px;
    }
    
    .superunico-cashback-floating .cashback-toggle {
        width: 50px;
        height: 50px;
    }
    
    .superunico-cashback-floating .cashback-amount {
        font-size: 9px;
    }
    
    .superunico-cashback-floating .tier-mini {
        font-size: 6px;
    }
    
    .superunico-cashback-floating .cashback-details {
        width: calc(100vw - 30px);
        max-width: 320px;
        bottom: 60px;
    }
    
    .superunico-cashback-floating .cashback-content {
        padding: 16px;
    }
    
    .superunico-cashback-floating .cashback-balance .amount {
        font-size: 28px;
    }
    
    /* Dashboard Mobile Styles */
    .superunico-dashboard {
        padding: 0 8px;
    }
    
    .dashboard-hero {
        padding: 40px 24px;
        margin-bottom: 16px;
    }
    
    .balance-display .balance-amount {
        font-size: 48px;
    }
    
    .balance-display .balance-label {
        font-size: 16px;
    }
    
    .floating-shape.shape-1 {
        width: 80px;
        height: 80px;
        top: -40px;
        right: -40px;
    }
    
    .floating-shape.shape-2 {
        width: 60px;
        height: 60px;
        bottom: -30px;
        left: -30px;
    }
    
    .floating-shape.shape-3 {
        width: 40px;
        height: 40px;
    }
    
    .dashboard-card {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .card-header {
        padding: 20px 20px 0;
    }
    
    .card-header h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .current-tier-info {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .current-tier-info .tier-name,
    .current-tier-info .tier-rate {
        font-size: 16px;
    }
    
    .tier-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .tier-info .tier-name,
    .tier-info .tier-threshold,
    .tier-info .tier-rate {
        min-width: auto;
    }
    
    .tier-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px;
    }
    
    .tier-item:hover {
        transform: translateY(-2px);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stats-grid .stat-item {
        padding: 20px;
    }
    
    .stats-grid .stat-value {
        font-size: 24px;
    }
    
    /* Cashback info mobile adjustments */
    .superunico-cashback-info .cashback-tier-info {
        font-size: 0.8em;
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    
    .superunico-cashback-history .cashback-history-table th,
    .superunico-cashback-history .cashback-history-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .superunico-cashback-widget.card .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* === ACCESSIBILITY === */
.superunico-cashback-floating .cashback-toggle:focus,
.superunico-cashback-floating .cashback-close:focus,
.superunico-cashback-floating .button:focus,
.superunico-cashback-history .button:focus {
    outline: 2px solid var(--superunico-primary);
    outline-offset: 2px;
}

/* === ANIMATIONS === */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80% {
        transform: translateY(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateY(-10px);
    }
}

.superunico-cashback-earned-notice {
    animation: bounceIn 0.8s ease-out;
}

.superunico-cashback-floating {
    animation: slideInFromRight 0.5s ease-out;
}

/* Tier System Styling */
.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-right: 8px;
}

.tier-badge-small {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    margin-left: 8px;
}

.tier-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #ff2668;
}

.tier-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tier-multiplier {
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

.tier-progress {
    margin-top: 15px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 12px;
    color: #666;
}

.progress-amount {
    font-size: 12px;
    font-weight: bold;
    color: #ff2668;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff2668, #ff4582);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.tier-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.tier-status p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.tier-progress-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.tier-progress-section h4 {
    margin-top: 0;
    color: #333;
}

.tier-progress-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.tier-progress-card .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.current-tier, .next-tier {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-rate {
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
}

.progress-text span {
    font-size: 14px;
    color: #666;
}

/* Floating widget tier styling */
.superunico-cashback-floating .cashback-toggle .tier-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Checkout and cart tier styling */
.superunico-cashback-info .tier-badge-small {
    vertical-align: middle;
    margin-left: 5px;
}

/* === SIMPLIFIED FLOATING WIDGET TIER SYSTEM === */
/* Note: Complex tier styling moved to My Account page */

/* === MY ACCOUNT MONTHLY PROGRESS === */
.monthly-tier-progress-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 38, 104, 0.1);
}

.monthly-tier-progress-section h4 {
    margin: 0 0 20px 0;
    color: rgb(255, 38, 104);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.monthly-spending-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 38, 104, 0.05);
    border-radius: 12px;
}

.spending-amount {
    text-align: center;
}

.spending-amount .amount {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: rgb(255, 38, 104);
    margin-bottom: 5px;
}

.spending-amount .label {
    font-size: 14px;
    color: #666;
}

.countdown-info {
    text-align: center;
}

.countdown-info .countdown {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.countdown-info .evaluation-date {
    font-size: 12px;
    color: #666;
}

.tier-progress-visual {
    position: relative;
    margin: 30px 0;
}

.tier-milestones {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.milestone {
    flex: 1;
    text-align: center;
    position: relative;
}

.milestone-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto 12px;
    transition: all 0.4s ease;
}

.milestone.achieved .milestone-dot {
    background: var(--tier-color);
    transform: scale(1.1);
}

.milestone.current .milestone-dot {
    background: var(--tier-color);
    box-shadow: 0 0 0 6px rgba(255, 38, 104, 0.2), 0 2px 8px rgba(0,0,0,0.2);
    animation: currentTierPulse 2s infinite;
}

.milestone-info {
    margin-top: 8px;
}

.milestone-info .tier-name {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.milestone-info .tier-threshold {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}

.milestone-info .tier-rate {
    font-size: 10px;
    color: rgb(255, 38, 104);
    font-weight: bold;
}

.milestone-connector {
    position: absolute;
    top: 12px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-line-container {
    position: absolute;
    top: 12px;
    left: 5%;
    right: 5%;
    height: 4px;
    z-index: 1;
}

.progress-line-container .progress-line {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-line-container .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(255, 38, 104), rgba(255, 64, 129, 0.8));
    border-radius: 2px;
    transition: width 1s ease;
    position: relative;
}

.next-tier-message, .max-tier-message {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 38, 104, 0.05), rgba(255, 64, 129, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(255, 38, 104, 0.1);
}

.next-tier-message .message, .max-tier-message .message {
    font-size: 16px;
    font-weight: 600;
    color: rgb(255, 38, 104);
}

/* === ANIMATIONS === */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 38, 104, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(255, 38, 104, 0.1); }
}

@keyframes currentTierPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 38, 104, 0.2), 0 2px 8px rgba(0,0,0,0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 38, 104, 0.1), 0 4px 12px rgba(0,0,0,0.3);
    }
}

@keyframes shine {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive tier styling */
@media (max-width: 768px) {
    .tier-progress-card .progress-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .tier-status {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tier-current {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .superunico-cashback-floating .cashback-toggle .tier-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-left: 8px;
    }
    
    .monthly-spending-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .tier-milestones {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .milestone {
        flex: 1;
        min-width: 120px;
    }
    
    .monthly-tier-progress-section {
        padding: 20px;
    }
    
    .spending-amount .amount {
        font-size: 24px;
    }
} 