/* --- LAYOUT GRID --- */
.sifency-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    width: 100%;
}
.sifency-price-wrap {
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 1;
    transform: translateY(0);
}

.sifency-price-wrap.sifency-switching {
    opacity: 0;
    transform: translateY(5px);
}

.sifency-toggle-text {
    opacity: 0.5;
    transition: 0.3s;
}
.sifency-toggle-text.active {
    opacity: 1;
}
/* --- THE SWITCHER --- */
.sifency-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    font-family: sans-serif;
    font-weight: 600;
}

.sifency-toggle-checkbox {
    display: none;
}

.sifency-toggle-label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    background-color: #e4e4e4;
    border-radius: 32px;
    cursor: pointer;
    margin: 0 15px;
    transition: background-color 0.3s ease;
}

.sifency-toggle-label::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    top: 4px;
    left: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sifency-toggle-checkbox:checked + .sifency-toggle-label {
    background-color: var(--sifency-addons-themecolor);
}

.sifency-toggle-checkbox:checked + .sifency-toggle-label::after {
    transform: translateX(28px);
}

.sifency-toggle-text {
    font-size: 16px;
    color: #555;
    transition: opacity 0.3s;
}

.sifency-toggle-checkbox:not(:checked) ~ .text-yearly { opacity: 0.5; }
.sifency-toggle-checkbox:checked ~ .text-monthly { opacity: 0.5; }

.sifency-toggle-badge {
    background: #ff6b6b;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

/* --- THE CARD --- */
.sifency-pricing-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sifency-pricing-card.is-featured {
    border-color: var(--sifency-addons-themecolor);
    box-shadow: 0 10px 30px rgba(84, 160, 255, 0.15);
    z-index: 1;
}

.sifency-pricing-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Header */
.sifency-pricing-title {
    margin: 0 0 10px;
    font-size: 22px;
}
.sifency-pricing-subtitle {
    color: #888;
    margin: 0;
    font-size: 14px;
}

/* Price */
.sifency-price-wrap {
    margin: 25px 0;
    display: flex;
    align-items: baseline;
    transition: opacity 0.2s, transform 0.2s;
}
.sifency-price-wrap.sifency-switching {
    opacity: 0;
    transform: translateY(5px);
}
.sifency-price-currency { font-size: 20px; font-weight: 600; margin-right: 3px; }
.sifency-price-amount { font-size: 45px; font-weight: 800; line-height: 1; }
.sifency-price-period { color: #999; font-size: 14px; margin-left: 5px; }

/* Features */
.sifency-pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.sifency-pricing-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 15px;
}
.sifency-pricing-features li i {
    width: 25px;
    font-size: 14px;
}
.sifency-pricing-features li.included i { color: var(--sifency-addons-themecolor); }
.sifency-pricing-features li.excluded { opacity: 0.5; text-decoration: line-through; }
.sifency-pricing-features li.excluded i { color: #aaa; }

/* Button */
.sifency-pricing-footer { margin-top: auto; }
.sifency-pricing-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.sifency-pricing-btn:hover {
    background: var(--sifency-addons-themecolor);
    color: #fff;
}
.sifency-price-wrap {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}
.sifency-price-wrap.sifency-switching {
    opacity: 0;
    transform: translateY(10px);
}
.sifency-toggle-text {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.sifency-toggle-text.active {
    opacity: 1;
    font-weight: bold;
}
