.pricing-slider-module {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pricing-slider-module * {
    box-sizing: border-box;
}

/* Billing Cycle Tabs */
.billing-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.billing-tab {
    padding: 12px 32px;
    border: 2px solid var(--dsh-border);
    background: var(--dsh-bg);
    color: var(--dsh-text-light);
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.billing-tab:hover {
    border-color: var(--dsh-primary);
    color: var(--dsh-primary);
}

.billing-tab.active {
    background: var(--dsh-primary);
    border-color: var(--dsh-primary);
    color: white;
}

.billing-tab .save-badge {
    display: inline-block;
    background: #16a34a;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 700;
}

.billing-tab.active .save-badge {
    background: white;
    color: var(--dsh-primary);
}

/* Slider Container */
.slider-container {
    display: none;
}

.slider-container.active {
    display: block;
}

/* Zone Indicator */
.zone-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.zone-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.zone-label.sportpatenschaft {
    color: var(--dsh-primary);
}

.zone-label.sportpatenschaft.active {
    opacity: 1;
}

.zone-label.charityclub {
    color: var(--dsh-gold-dark);
}

.zone-label.charityclub.active {
    opacity: 1;
    color: var(--dsh-gold);
}

/* Slider Track */
.price-slider-wrapper {
    position: relative;
    padding: 24px 0;
    margin: 0 10px;
}

.slider-track {
    position: relative;
    height: 8px;
    background: var(--dsh-border);
    border-radius: 4px;
    overflow: visible;
}

.slider-track-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.15s ease;
}

.slider-track-sportpatenschaft {
    background: var(--dsh-primary);
    border-radius: 4px 0 0 4px;
}

.slider-track-charityclub {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: var(--dsh-gold);
    border-radius: 0 4px 4px 0;
}

.price-slider {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 40px;
    background: transparent;
    outline: none;
    cursor: pointer;
    z-index: 10;
    margin: 0;
    padding: 0;
}

/* Input reset for WordPress themes */
.pricing-slider-module input[type="range"],
.pricing-slider-module input[type="range"]:read-only,
.pricing-slider-module input[type="range"]:read-write {
    width: 100%;
    padding: 0 !important;
    height: 16px;
    margin: 0;
    border: none !important;
    background: transparent !important;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dsh-primary);
    border: 4px solid white;
    cursor: grab;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(193, 40, 49, 0.4);
}

.price-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.price-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dsh-primary);
    border: 4px solid white;
    cursor: grab;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.price-slider.charity-zone::-webkit-slider-thumb {
    background: var(--dsh-gold);
    box-shadow: 0 2px 10px rgba(212, 168, 83, 0.4);
}

.price-slider.charity-zone::-webkit-slider-thumb:hover {
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.5);
}

.price-slider.charity-zone::-moz-range-thumb {
    background: var(--dsh-gold);
    box-shadow: 0 2px 10px rgba(212, 168, 83, 0.4);
}

/* Package Labels under slider */
.package-labels {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    margin: 0 10px 32px 10px;
}

.package-label {
    font-size: 13px;
    color: var(--dsh-text-light);
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 2px;
}

.package-label:hover {
    color: var(--dsh-primary);
}

.package-label::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: var(--dsh-border);
}

.package-label.active {
    color: var(--dsh-primary);
    font-weight: 700;
}

.package-label.charity {
    color: var(--dsh-gold-dark);
}

.package-label.charity:hover {
    color: var(--dsh-gold);
}

.package-label.charity.active {
    color: var(--dsh-gold);
    font-weight: 700;
}

/* Product Card */
.product-card {
    background: var(--dsh-bg);
    border: 2px solid var(--dsh-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--dsh-primary);
    transition: all 0.4s ease;
}

.product-card.charity-zone {
    border-color: var(--dsh-gold);
    box-shadow: 0 8px 40px rgba(212, 168, 83, 0.2);
}

.product-card.charity-zone::before {
    background: var(--dsh-charity-gradient);
    height: 8px;
}

/* Charity Club Badge */
.charity-badge {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--dsh-charity-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    z-index: 10;
}

.product-card.charity-zone .charity-badge {
    display: block;
    animation: badgePop 0.4s ease;
}

/* Charity Tooltip */
.charity-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border: 1px solid var(--dsh-border);
    border-radius: 12px;
    padding: 16px;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    z-index: 100;
}

.charity-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 14px;
    height: 14px;
    background: white;
    border-left: 1px solid var(--dsh-border);
    border-top: 1px solid var(--dsh-border);
    transform: rotate(45deg);
}

.charity-badge:hover .charity-tooltip {
    display: block;
}

.tooltip-tier {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dsh-bg-light);
}

.tooltip-tier:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tooltip-tier:first-child {
    padding-top: 0;
}

.tooltip-tier strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--dsh-dark);
    margin-bottom: 4px;
}

.tooltip-tier span {
    font-size: 12px;
    color: var(--dsh-text);
    line-height: 1.4;
}

@keyframes badgePop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 36px;
}

.product-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--dsh-dark);
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.product-card.charity-zone .product-name {
    background: var(--dsh-charity-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-tagline {
    font-size: 15px;
    color: var(--dsh-text-light);
    margin: 0;
    min-height: 22px;
}

/* Pricing Display */
.pricing-display {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--dsh-border);
    border-bottom: 1px solid var(--dsh-border);
    margin-bottom: 32px;
}

.price-amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--dsh-dark);
    line-height: 1;
    transition: color 0.3s ease;
}

.product-card.charity-zone .price-amount {
    color: var(--dsh-gold-dark);
}

.price-currency {
    font-size: 28px;
    font-weight: 600;
    vertical-align: super;
}

.price-period {
    font-size: 18px;
    color: var(--dsh-text-light);
    font-weight: 400;
}

.children-count {
    display: inline-block;
    background: var(--dsh-bg-light);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--dsh-primary);
    margin-top: 16px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.product-card.charity-zone .children-count {
    background: linear-gradient(135deg, rgba(193, 40, 49, 0.1), rgba(212, 168, 83, 0.1));
    color: var(--dsh-gold-dark);
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    min-height: 60px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--dsh-text);
    border-bottom: 1px solid var(--dsh-bg-light);
}

.features-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.product-card.charity-zone .feature-icon {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(193, 40, 49, 0.2));
    color: var(--dsh-gold-dark);
}

/* CTA Button */
.cta-button {
    display: block;
    width: 100%;
    padding: 18px 32px;
    background: var(--dsh-primary);
    border: none;
    color: white;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--dsh-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(193, 40, 49, 0.3);
}

.product-card.charity-zone .cta-button {
    background: var(--dsh-charity-gradient);
}

.product-card.charity-zone .cta-button:hover {
    box-shadow: 0 8px 20px rgba(212, 168, 83, 0.4);
}

.cta-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cta-button.loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 3px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--dsh-text-light);
    font-size: 16px;
}

/* Loading Overlay */
.pricing-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.pricing-overlay.active {
    display: flex;
}

.overlay-spinner {
    width: 56px;
    height: 56px;
    border: 5px solid var(--dsh-border);
    border-top-color: var(--dsh-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.overlay-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--dsh-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .package-labels {
        gap: 2px;
    }

    .package-label {
        font-size: 11px;
        padding: 4px 1px;
    }
}

@media (max-width: 600px) {
    .pricing-slider-module {
        padding: 24px 16px;
    }

    .billing-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .billing-tab {
        width: 100%;
        text-align: center;
    }

    .product-card {
        padding: 28px 20px;
    }

    .product-name {
        font-size: 24px;
    }

    .price-amount {
        font-size: 44px;
    }

    .package-labels {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .package-label {
        font-size: 12px;
    }

    .package-label::before {
        display: none;
    }
}
