/**
 * 7oohub Loyalty - Frontend Styles
 *
 * @package Oohub_Loyalty
 * @since 1.0.0
 */

/* My Account Points Page */
.oohub-loyalty-myaccount {
    max-width: 800px;
}

/* Balance Card */
.oohub-loyalty-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.oohub-balance-main {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.oohub-balance-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.oohub-balance-value {
    display: block;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

.oohub-balance-worth {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.oohub-balance-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.oohub-balance-stats .oohub-stat {
    text-align: center;
    min-width: 100px;
}

.oohub-balance-stats .oohub-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
}

.oohub-balance-stats .oohub-stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Info Section - Dark Theme Compatible */
.oohub-loyalty-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #ff8800;
}

.oohub-loyalty-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #fff;
}

.oohub-loyalty-info p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.oohub-loyalty-info p:last-child {
    margin-bottom: 0;
}

.oohub-loyalty-info strong {
    color: #ff8800;
}

/* History Section - Dark Theme Compatible */
.oohub-loyalty-history h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.oohub-no-history {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
}

/* History Table - Dark Theme Compatible */
.oohub-history-table {
    width: 100%;
}

.oohub-history-table th {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
}

.oohub-history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.oohub-history-table tr:last-child td {
    border-bottom: none;
}

.oohub-history-table .oohub-positive {
    color: #28a745;
    font-weight: 600;
}

.oohub-history-table .oohub-negative {
    color: #dc3545;
    font-weight: 600;
}

/* Shortcode Output */
.oohub-loyalty-points-balance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.oohub-loyalty-points-balance .oohub-loyalty-label {
    font-weight: 500;
}

.oohub-loyalty-points-balance .oohub-loyalty-value {
    font-weight: 700;
    color: #667eea;
}

/* Product Page Points Display - Dark Theme Compatible */
.oohub-loyalty-product-points {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    padding: 12px 16px;
    background: rgba(255, 136, 0, 0.15);
    border-radius: 8px;
    border-left: 4px solid #ff8800;
}

.oohub-loyalty-product-points .oohub-points-icon {
    color: #ffc107;
    font-size: 18px;
}

.oohub-loyalty-product-points .oohub-points-text {
    font-size: 14px;
    color: #ff8800;
    font-weight: 600;
}

/* Shop Loop Points - Dark Theme Compatible */
.oohub-loyalty-loop-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255, 136, 0, 0.15);
    border-radius: 4px;
    font-size: 12px;
}

.oohub-loyalty-loop-points .oohub-points-icon {
    color: #ffc107;
}

.oohub-loyalty-loop-points .oohub-points-text {
    color: #ff8800;
    font-weight: 600;
}

/* Multiplier Badge */
.oohub-multiplier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: multiplier-pulse 2s infinite;
}

@keyframes multiplier-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(124, 58, 237, 0);
    }
}

/* Has multiplier highlight */
.oohub-loyalty-product-points.has-multiplier {
    background: rgba(124, 58, 237, 0.15);
    border-left-color: #7c3aed;
}

.oohub-loyalty-product-points.has-multiplier .oohub-points-text {
    color: #9333ea;
}

.oohub-loyalty-loop-points.has-multiplier {
    background: rgba(124, 58, 237, 0.15);
}

.oohub-loyalty-loop-points.has-multiplier .oohub-points-text {
    color: #9333ea;
}

/* Redemption Form - Dark Theme Compatible */
.oohub-loyalty-redemption-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 136, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    padding-top: 20px;
    margin-top: 25px;
    margin-bottom: 20px;
}

/* Fix XStore theme cart-checkout-nav spacing issue */
.cart-checkout-nav {
    margin-top: 0 !important;
}

.oohub-loyalty-redemption-form h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #ff8800;
    font-weight: 600;
}

.oohub-points-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    flex-wrap: wrap;
}

.oohub-points-balance .balance-label {
    color: inherit;
}

.oohub-points-balance .balance-value {
    font-weight: 700;
    font-size: 18px;
    color: #ff8800;
}

.oohub-points-balance .balance-worth {
    color: inherit;
    opacity: 0.8;
    font-size: 13px;
}

.oohub-applied-points {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 6px;
    color: #28a745;
}

.oohub-applied-points .dashicons {
    color: #28a745;
}

.oohub-applied-points .oohub-remove-points {
    margin-left: auto;
    background: transparent;
    border: 1px solid #28a745;
    color: #28a745;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.oohub-applied-points .oohub-remove-points:hover {
    background: #28a745;
    color: #fff;
}

.oohub-redeem-input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.oohub-redeem-input label {
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
}

.oohub-redeem-input input[type="number"] {
    flex: 1;
    min-width: 80px;
    max-width: 120px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 136, 0, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    color: inherit;
    font-size: 14px;
}

.oohub-redeem-input input[type="number"]:focus {
    border-color: #ff8800;
    outline: none;
}

.oohub-redeem-input .button,
.oohub-redeem-input .oohub-apply-points {
    padding: 8px 16px;
    background: #ff8800;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.oohub-redeem-input .button:hover,
.oohub-redeem-input .oohub-apply-points:hover {
    background: #e67a00;
}

.oohub-redeem-help {
    margin-top: 12px;
    font-size: 13px;
    color: inherit;
    opacity: 0.7;
}

.oohub-loyalty-checkout-info {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.oohub-loyalty-checkout-info p {
    margin: 0;
    color: #ffc107;
}

#oohub-redemption-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

#oohub-redemption-message.success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

#oohub-redemption-message.error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Checkout Order Review */
.oohub-loyalty-discount th,
.oohub-loyalty-discount td {
    color: #28a745 !important;
    font-weight: 600;
}

/* Points to Earn Row - Checkout */
.oohub-loyalty-earn th,
.oohub-loyalty-earn td {
    color: #ff8800 !important;
    font-weight: 600;
}

.oohub-loyalty-earn .oohub-earn-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.oohub-loyalty-earn .oohub-earn-value::before {
    content: "★";
    color: #ffc107;
}

/* Points to Earn - Fine Print */
.oohub-loyalty-earn-note td {
    padding-top: 0 !important;
    border-top: none !important;
}

.oohub-earn-fine-print {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-align: right;
}

/* Mini-Cart / Cart Drawer Points Display */
.oohub-loyalty-mini-cart-points {
    background: rgba(255, 136, 0, 0.1);
    border: 1px solid rgba(255, 136, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.oohub-mini-cart-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 136, 0, 0.2);
}

.oohub-mini-cart-balance .oohub-mini-label {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.oohub-mini-cart-balance .oohub-mini-value {
    font-size: 16px;
    font-weight: 700;
    color: #f97316;
}

.oohub-mini-cart-earn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.oohub-mini-cart-earn .oohub-mini-icon {
    color: #ffc107;
    font-size: 14px;
}

.oohub-mini-cart-earn .oohub-mini-text {
    font-size: 14px;
    color: #f97316;
}

.oohub-mini-cart-earn .oohub-mini-text strong {
    color: #f97316;
    font-weight: 700;
}

/* ==========================================
   Tier System - Gamification UI
   ========================================== */

.oohub-tier-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Tier Badge Container */
.oohub-tier-badge-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.oohub-tier-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tier-color) 0%, color-mix(in srgb, var(--tier-color) 70%, black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px color-mix(in srgb, var(--tier-color) 40%, transparent),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    animation: tier-glow 3s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes tier-glow {
    0%, 100% {
        box-shadow: 
            0 0 20px color-mix(in srgb, var(--tier-color) 30%, transparent),
            inset 0 2px 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 40px color-mix(in srgb, var(--tier-color) 50%, transparent),
            inset 0 2px 10px rgba(255, 255, 255, 0.3);
    }
}

.oohub-tier-badge .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.oohub-tier-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oohub-tier-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
}

.oohub-tier-name {
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 20px currentColor;
}

.oohub-tier-multiplier {
    font-size: 14px;
    color: #7c3aed;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.oohub-tier-multiplier::before {
    content: "⚡";
}

/* Progress Bar */
.oohub-tier-progress-container {
    margin-bottom: 20px;
}

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

.oohub-progress-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.oohub-progress-amount {
    font-size: 14px;
    color: #7c3aed;
    font-weight: 600;
}

.oohub-tier-progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.oohub-tier-progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.oohub-tier-progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: progress-shine 2s ease-in-out infinite;
}

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

.oohub-tier-progress-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Max Tier Reached */
.oohub-tier-max-reached {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    color: #a78bfa;
    font-weight: 600;
}

.oohub-tier-max-reached .dashicons {
    color: #fbbf24;
    animation: star-spin 3s ease-in-out infinite;
}

@keyframes star-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

/* Maintenance Warning */
.oohub-tier-maintenance-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #fbbf24;
}

.oohub-tier-maintenance-warning .dashicons {
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Tier Benefits */
.oohub-tier-benefits {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.oohub-benefits-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.oohub-benefits-text {
    color: #a78bfa;
}

/* Tiers Overview */
.oohub-tiers-overview {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.oohub-tiers-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.oohub-tiers-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.oohub-tiers-toggle .dashicons {
    transition: transform 0.3s ease;
}

.oohub-tiers-overview.expanded .oohub-tiers-toggle .dashicons {
    transform: rotate(180deg);
}

.oohub-tiers-list {
    display: none;
    margin-top: 15px;
    gap: 10px;
}

.oohub-tiers-overview.expanded .oohub-tiers-list {
    display: flex;
    flex-direction: column;
}

.oohub-tier-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.oohub-tier-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.oohub-tier-item.current {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.oohub-tier-item-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oohub-tier-item-badge .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #fff;
}

.oohub-tier-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oohub-tier-item-name {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.oohub-tier-item-threshold {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.oohub-tier-item-multiplier {
    font-size: 16px;
    font-weight: 700;
    color: #7c3aed;
    padding: 5px 12px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 20px;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .oohub-loyalty-balance-card {
        padding: 20px;
    }

    .oohub-balance-value {
        font-size: 42px;
    }

    .oohub-balance-stats {
        flex-direction: column;
        gap: 20px;
    }

    .oohub-balance-stats .oohub-stat {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .oohub-balance-stats .oohub-stat:last-child {
        border-bottom: none;
    }

    .oohub-history-table thead {
        display: none;
    }

    .oohub-history-table tr {
        display: block;
        padding: 15px;
        background: #f8f9fa;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .oohub-history-table td {
        display: block;
        border-bottom: none;
        padding: 5px 0;
        text-align: left;
    }

    .oohub-history-table td:before {
        content: attr(data-title);
        font-weight: 600;
        margin-right: 10px;
        color: #333;
    }

    .oohub-redeem-input {
        flex-direction: column;
        align-items: stretch;
    }

    .oohub-redeem-input input[type="number"] {
        width: 100%;
    }

    /* Tier Responsive */
    .oohub-tier-section {
        padding: 20px;
    }

    .oohub-tier-badge-container {
        flex-direction: column;
        text-align: center;
    }

    .oohub-tier-info {
        align-items: center;
    }

    .oohub-tier-badge {
        width: 70px;
        height: 70px;
    }

    .oohub-tier-badge .dashicons {
        font-size: 30px;
        width: 30px;
        height: 30px;
    }

    .oohub-tier-name {
        font-size: 24px;
    }

    .oohub-tier-progress-header {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .oohub-tier-maintenance-warning {
        flex-direction: column;
        text-align: center;
    }

    .oohub-tier-benefits {
        flex-direction: column;
        text-align: center;
    }

    .oohub-tier-item {
        flex-wrap: wrap;
    }

    .oohub-tier-item-multiplier {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* ==========================================
   Light Mode Overrides
   For light-themed websites
   ========================================== */

.oohub-loyalty-light .oohub-loyalty-info {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: #ff8800;
}

.oohub-loyalty-light .oohub-loyalty-info h3 {
    color: #1a1a1a;
}

.oohub-loyalty-light .oohub-loyalty-info p {
    color: #333;
}

.oohub-loyalty-light .oohub-loyalty-history h3 {
    color: #1a1a1a;
}

.oohub-loyalty-light .oohub-no-history {
    background: rgba(0, 0, 0, 0.03);
    color: #666;
}

.oohub-loyalty-light .oohub-history-table th {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
}

.oohub-loyalty-light .oohub-history-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #333;
}

/* Redemption Form - Light Mode */
.oohub-loyalty-light .oohub-loyalty-redemption-form {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 136, 0, 0.25);
}

.oohub-loyalty-light .oohub-points-balance .balance-label {
    color: #333;
}

.oohub-loyalty-light .oohub-points-balance .balance-worth {
    color: #666;
}

.oohub-loyalty-light .oohub-redeem-input label {
    color: #333;
}

.oohub-loyalty-light .oohub-redeem-input input[type="number"] {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
}

.oohub-loyalty-light .oohub-redeem-input input[type="number"]:focus {
    border-color: #ff8800;
}

.oohub-loyalty-light .oohub-redeem-help {
    color: #666;
}

/* Earn Fine Print - Light Mode */
.oohub-loyalty-light .oohub-earn-fine-print {
    color: #888;
}

/* Mini-Cart Points - Light Mode */
.oohub-loyalty-light .oohub-loyalty-mini-cart-points {
    background: rgba(255, 136, 0, 0.08);
    border: 1px solid rgba(255, 136, 0, 0.35);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.oohub-loyalty-light .oohub-mini-cart-balance {
    border-bottom-color: rgba(255, 136, 0, 0.25);
}

.oohub-loyalty-light .oohub-mini-cart-balance .oohub-mini-label {
    color: #1a1a1a;
    font-weight: 600;
}

.oohub-loyalty-light .oohub-mini-cart-balance .oohub-mini-value {
    color: #ea580c;
}

.oohub-loyalty-light .oohub-mini-cart-earn .oohub-mini-text {
    color: #c2410c;
}

.oohub-loyalty-light .oohub-mini-cart-earn .oohub-mini-text strong {
    color: #c2410c;
}

.oohub-loyalty-light .oohub-mini-cart-earn .oohub-mini-icon {
    color: #f59e0b;
}

/* Tier Section - Light Mode */
.oohub-loyalty-light .oohub-tier-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.oohub-loyalty-light .oohub-tier-badge-container {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.oohub-loyalty-light .oohub-tier-label {
    color: #666;
}

.oohub-loyalty-light .oohub-tier-name {
    color: #1a1a1a;
    text-shadow: none;
}

.oohub-loyalty-light .oohub-progress-label {
    color: #444;
}

.oohub-loyalty-light .oohub-tier-progress-bar {
    background: rgba(0, 0, 0, 0.08);
}

.oohub-loyalty-light .oohub-tier-progress-footer {
    color: #888;
}

.oohub-loyalty-light .oohub-tier-max-reached {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    color: #7c3aed;
}

.oohub-loyalty-light .oohub-tier-maintenance-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #92400e;
}

.oohub-loyalty-light .oohub-tier-maintenance-warning .dashicons {
    color: #d97706;
}

.oohub-loyalty-light .oohub-tier-benefits {
    background: rgba(124, 58, 237, 0.05);
}

.oohub-loyalty-light .oohub-benefits-label {
    color: #555;
}

.oohub-loyalty-light .oohub-benefits-text {
    color: #7c3aed;
}

.oohub-loyalty-light .oohub-tiers-overview {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.oohub-loyalty-light .oohub-tiers-toggle {
    border-color: rgba(0, 0, 0, 0.15);
    color: #555;
}

.oohub-loyalty-light .oohub-tiers-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.25);
    color: #1a1a1a;
}

.oohub-loyalty-light .oohub-tier-item {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
}

.oohub-loyalty-light .oohub-tier-item:hover {
    background: rgba(255, 255, 255, 0.9);
}

.oohub-loyalty-light .oohub-tier-item.current {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
}

.oohub-loyalty-light .oohub-tier-item-name {
    color: #1a1a1a;
}

.oohub-loyalty-light .oohub-tier-item-threshold {
    color: #777;
}

.oohub-loyalty-light .oohub-tier-item-multiplier {
    background: rgba(124, 58, 237, 0.1);
}

/* ==========================================
   Wheel Nav / Menu Item
   ========================================== */

.oohub-wheel-menu-item a {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

.oohub-wheel-menu-item a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #7c3aed;
    border-radius: 50%;
    margin-left: 4px;
    animation: oohub-nav-dot-pulse 2s ease-in-out infinite;
}

@keyframes oohub-nav-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ==========================================
   Ticket Info (My Account Points Page)
   ========================================== */

.oohub-ticket-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.oohub-ticket-info-icon {
    font-size: 28px;
    line-height: 1;
}

.oohub-ticket-info-details {
    flex: 1;
}

.oohub-ticket-info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.oohub-ticket-info-balance {
    font-size: 24px;
    font-weight: 700;
    color: #a78bfa;
}

.oohub-ticket-info-action {
    padding: 8px 18px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.oohub-ticket-info-action:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    color: #fff;
}

/* Ticket Activity Table */
.oohub-ticket-activity {
    margin-top: 15px;
}

.oohub-ticket-activity h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.oohub-ticket-activity-table {
    width: 100%;
    border-collapse: collapse;
}

.oohub-ticket-activity-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.oohub-ticket-activity-table td {
    padding: 10px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.oohub-ticket-activity-table tr:last-child td {
    border-bottom: none;
}

.oohub-ticket-earned {
    color: #34d399;
    font-weight: 600;
}

.oohub-ticket-spent {
    color: #f87171;
    font-weight: 600;
}

/* Light mode overrides */
.oohub-loyalty-light .oohub-ticket-info {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(147, 51, 234, 0.03) 100%);
    border-color: rgba(124, 58, 237, 0.15);
}

.oohub-loyalty-light .oohub-ticket-info-label {
    color: #666;
}

.oohub-loyalty-light .oohub-ticket-info-balance {
    color: #7c3aed;
}

.oohub-loyalty-light .oohub-ticket-activity h4 {
    color: #1a1a1a;
}

.oohub-loyalty-light .oohub-ticket-activity-table th {
    color: #555;
    border-bottom-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

.oohub-loyalty-light .oohub-ticket-activity-table td {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* ==========================================
   Wheel Trigger & Menu Item
   NOTE: the floating trigger button is styled ONLY in wheel.css. It renders
   on EVERY page (wp_footer) while frontend.css loads on Woo pages only — a
   stale duplicate rule here (with display:none) used to win the cascade on
   shop/product pages and hide the trigger everywhere except cart/checkout.
   Don't re-add `.oohub-wheel-trigger` styles to this file.
   ========================================== */

.oohub-wheel-menu-item a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.oohub-ticket-balance-card {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oohub-ticket-balance-card .ticket-name {
    font-size: 14px;
    opacity: 0.9;
}

.oohub-ticket-balance-card .ticket-count {
    font-size: 28px;
    font-weight: 700;
}

@media screen and (max-width: 600px) {
    .oohub-ticket-balance-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 16px;
    }

    .oohub-ticket-balance-card .ticket-count {
        font-size: 24px;
    }
}