/* Applied Colors from Settings */
:root {
    --sp-primary: #50fa7b;
    --sp-card-bg: #282a36;
    --sp-inner-bg: #44475a;
    --sp-text: #f8f8f2;
    --sp-text-faded: #6272a4;
    --sp-price-color: var(--sp-text);
    --sp-currency-color: var(--sp-text-faded);
    --sp-btn-bg: #ffffff;
    --sp-btn-text: #000000;
    --sp-feature-text: var(--sp-text);
    --sp-footnote-color: var(--sp-text-faded);
    --sp-font-family: 'Roboto Mono', monospace;
}

.sp-wrapper {
    font-family: var(--sp-font-family);
    color: var(--sp-text);
    padding: 10px 0;
    background: transparent;
}



/* Toggle Switch (2-Way) */
.sp-billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    /* Gap between slider and "Save More" text */
    margin-bottom: 50px;
}

.sp-toggle-group-2 {
    background: var(--sp-slider-bg, var(--sp-inner-bg));
    /* Linked to Toggle Slider Background setting */
    padding: 4px;
    border-radius: 100px;
    display: flex;
    position: relative;
    border: 2px solid var(--sp-text-faded);
}

.sp-label-2 {
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    color: var(--sp-toggle-label, var(--sp-text-faded));
    user-select: none;
    display: flex;
    align-items: center;
}

.sp-label-2.active {
    color: var(--sp-toggle-label-active, #fff);
    /* Linked to Toggle Labels (Active) setting */
}

.sp-toggle-bg-2 {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: var(--sp-slider-knob, var(--sp-primary));
    /* Linked to Toggle Slider Knob setting */
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}




/* Save More text - No badge, just words, positioned absolutely to prevent shifts */
.sp-save-badge-floating {
    position: absolute;
    left: 105%;
    /* Position it strictly to the right of the slider */
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--sp-badge-text, #50fa7b);
    /* Linked to setting */
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    display: none;
}







/* Grid Layout */
.sp-grid {
    display: grid;
    gap: 24px;
    max-width: 1300px;
    /* Increased default to better match desktop headers */
    margin: 0 auto;
}


.sp-cols-1 {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.sp-cols-2 {
    grid-template-columns: 1fr 1fr;
}

.sp-cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Card Design */
.sp-card {
    background: var(--sp-card-bg);
    border: 1px solid var(--sp-inner-bg);
    border-radius: 20px;
    /* Updated to 20px radius */
    padding: 32px;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.sp-card:hover {
    border-color: var(--sp-primary);
    transform: translateY(-5px);
}



.sp-card-image {
    width: 100%;
    height: 180px;
    background: var(--sp-inner-bg);
    border-radius: 20px;
    /* Updated to 20px radius */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
}

.sp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.sp-card:hover .sp-card-image img {
    transform: scale(1.1);
}


.sp-card-title {
    font-family: var(--sp-title-font, inherit);
    font-size: 24px;
    font-weight: var(--sp-title-weight, 700);
    margin: 0 0 12px 0;
    color: var(--sp-text);
    min-height: 90px;
    /* Lock height for up to 2-3 lines */
    display: flex;
    align-items: center;
}


.sp-card-desc {
    font-size: 14px;
    color: var(--sp-text-faded);
    line-height: 1.6;
    margin-bottom: -5px;
    /* Shifted price 30px higher (was 25px) */
    min-height: 120px;
    /* Lock description height */
}

/* Container for Price + Button + Footnote to keep them aligned */
.sp-action-area {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Start from top to keep lines parallel */
}

.sp-button-group {
    display: grid;
    grid-template-columns: 1fr;
    height: 32px;
    /* Matched to new button height */
    margin: 0 0 12px 0;
    /* Nearer to button */
    align-items: center;
    justify-items: start;
    /* Align button to the left */
}




.sp-button-group>a,
.sp-button-group>div {
    grid-area: 1 / 1;
    margin: 0 !important;
}


.sp-pricing {
    height: 85px;
    /* Locked height */
    display: flex;
    align-items: flex-end;
    margin: 0 0 10px 0;
}




.sp-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.sp-price .currency {
    font-size: 32px;
    font-weight: var(--sp-price-weight, 700);
    color: var(--sp-currency-color);
}

.sp-price .amount {
    font-size: var(--sp-price-size, 38px);
    /* Customizable */
    font-weight: var(--sp-price-weight, 700);
    letter-spacing: -1px;
    color: var(--sp-price-color);
    line-height: 1;
}

.sp-price .period {
    font-size: 13px;
    color: var(--sp-currency-color);
}

/* Button Style Base */
.sp-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-btn-bg);
    color: var(--sp-btn-text);
    padding: 0 10px;
    height: 32px;
    /* Shrunk by another 20% (was 40px) */
    border-radius: var(--sp-btn-radius, 100px);
    font-weight: var(--sp-btn-weight, 700);
    font-size: var(--sp-btn-font-size, 13px);
    /* Customizable */
    transition: all 0.1s ease-in-out;
    width: 160px;
    /* Shrunk by another 20% (was 200px) */
    min-width: 160px;
    white-space: nowrap;
    box-sizing: border-box;
    margin: 0 !important;
    line-height: 0;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Nudge text down slightly for better visual centering */
.sp-btn span,
.sp-btn {
    padding-top: 2px;
}



/* Razer Green Glow and Scale Effect on Hover */
.sp-btn:hover {
    background: var(--sp-btn-hover-bg, #000) !important;
    color: var(--sp-btn-hover-text, #44d62c) !important;
    box-shadow: 0 0 15px 2px rgba(68, 214, 44, 0.8) !important;
    /* Razer Green Glow */
    transform: none !important;
    /* Removed scale-up as requested */
    transition: all 0.05s ease-in-out !important;
    filter: none !important;
    text-shadow: none !important;
    text-decoration: none;
}

/* Razer Green Click (Depressed) Effect */
.sp-btn:active {
    transform: scale(0.95) !important;
    /* Sinks the button */
    box-shadow: 0 0 5px 1px rgba(68, 214, 44, 0.5) !important;
    /* Dims the glow */
    filter: brightness(0.7) !important;
    /* Darkens the button and text */
    transition: all 0.02s !important;
    /* Instant response */
}










/* One-time Section Styling */
.sp-onetime-section,
.sp-onetime-placeholder {
    min-height: 105px;
    /* Ensures space is reserved even if box is missing */
    box-sizing: border-box;
}

.sp-onetime-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--sp-inner-bg);
    border-radius: 20px;
    /* Updated to 20px radius */
    padding: 20px;
    margin-bottom: 30px;
}

.sp-onetime-header {

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sp-text-faded);
    margin-bottom: 12px;
}

.sp-onetime-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sp-onetime-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.sp-onetime-price .amount {
    font-size: 28px;
    font-weight: var(--sp-price-weight, 700);
    color: var(--sp-price-color);
}

.sp-btn-onetime {
    background: transparent;
    border: 1px solid var(--sp-primary);
    color: var(--sp-primary);
    padding: 6px 16px;
    border-radius: 20px;
    /* Updated to 20px radius */
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 1px;
    /* Slight nudge for this smaller button */
}

.sp-btn-onetime:hover {
    background: var(--sp-primary);
    color: var(--sp-btn-hover-text, #000);
}


.sp-footer-note {
    font-size: 11px;
    color: var(--sp-footnote-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align to the left */
    gap: 6px;
    margin: 0;
    opacity: 0.8;
}




/* Features Inner Box */
.sp-features-box {
    background: var(--sp-inner-bg);
    border-radius: 20px;
    /* Updated to 20px radius */
    padding: 25px;
    flex-grow: 1;
    margin-top: 30px;
    /* Consistent gap after the footnote */
}


.sp-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--sp-feature-text);
    line-height: 1.5;
    /* Better spacing for multi-line features */
}

.sp-feature-icon {
    color: var(--sp-primary);
    width: 16px;
    flex-shrink: 0;
    /* NEW: Prevents icon from getting squashed by long text */
    margin-top: 2px;
    /* NEW: Aligns icon perfectly with the first line of text */
    font-weight: bold;
    display: flex;
    justify-content: center;
}


@media (max-width: 768px) {
    .sp-grid {
        grid-template-columns: 1fr !important;
    }
}