/* ===== RESET & BASE ===== */
.wpps-packages-container *,
.wpps-checkout-container *,
.wpps-thankyou-container * {
    box-sizing: border-box;
}



/* ===== PACKAGES PAGE ===== */
.wpps-packages-container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 40px 20px; */
}

.wpps-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
}

/* .wpps-card-inner .wpps-package-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}  */



.wpps-packages-header {
    text-align: center;
    margin-bottom: 50px;
}

.wpps-packages-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.wpps-packages-header p {
    font-size: 18px;
    color: #666;
}

.wpps-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .wpps-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .wpps-packages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Package Card */
.wpps-package-card {
    background: #141f38;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    padding: 35px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.wpps-package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.wpps-package-card.wpps-featured {
    border-color: var(--card-color);
    /* transform: scale(1.05); */
}

.wpps-package-card.wpps-featured:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Badge */
.wpps-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    color: white;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

/* Package Header */
.wpps-package-header {
    text-align: left;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.wpps-package-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.wpps-package-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1;
}

.wpps-package-desc {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1;
}

.wpps-package-price {
    display: flex;
    align-items: baseline;
    justify-content: start;
    gap: 2px;
}

.wpps-currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--card-color);
}

.wpps-amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--card-color);
    line-height: 1;
}

.wpps-period {
    font-size: 14px;
    color: #fff;
    margin-left: 5px;
}

/* Features */
.wpps-package-features {
    flex: 1;
    margin-bottom: 25px;
}

.wpps-package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpps-package-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.wpps-check {
    color: var(--card-color);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Buy Button */
.wpps-package-footer {
    margin-top: auto;
}

.wpps-buy-btn {
    display: block;
    text-align: center;
    color: white !important;
    text-decoration: none !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.wpps-buy-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: white !important;
}

/* ===== CHECKOUT PAGE ===== */
.wpps-checkout-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0px;
}

.wpps-checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .wpps-checkout-grid {
        grid-template-columns: 1fr;
    }
}

.wpps-checkout-form-section h2,
.wpps-order-summary h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 25px;
}

/* Form Styles */
.wpps-form-row {
    display: flex;
    gap: 15px;
}

.wpps-two-col .wpps-form-group {
    flex: 1;
}

.wpps-three-col .wpps-form-group {
    flex: 1;
}

@media (max-width: 480px) {
    .wpps-form-row {
        flex-direction: column;
        gap: 0;
    }
}

.wpps-form-group {
    margin-bottom: 18px;
}

.wpps-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.wpps-form-group label .required {
    color: #e74c3c;
}

.wpps-form-group input,
.wpps-form-group textarea,
.wpps-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafafa;
}

select#wpps_country {
    height: 50px;
}

.wpps-form-group input:focus,
.wpps-form-group textarea:focus,
.wpps-form-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    background: #fff;
}

/* Order Summary */
.wpps-order-summary {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    /* position: sticky;
    top: 30px; */
}

.wpps-checkout-form-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    /* position: sticky;
    top: 30px; */
}

.wpps-summary-package {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 12px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .wpps-checkout-container {
        padding: 20px 0;
    }
}

.wpps-summary-icon {
    font-size: 40px;
}

.wpps-summary-details h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}

.wpps-summary-details p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.wpps-summary-features {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.wpps-summary-feature {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
}

.wpps-check-sm {
    color: #27ae60;
    font-weight: 700;
    margin-right: 8px;
}

.wpps-summary-pricing {
    margin-bottom: 20px;
}

.wpps-summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.wpps-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0;
    border-top: 2px solid #eee;
    margin-top: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
}

/* Payment Section */
.wpps-payment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.wpps-payment-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

#wpps-paypal-button-container {
    min-height: 55px;
}

#wpps-payment-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
}

#wpps-payment-message.error {
    background: #fff5f5;
    color: #e74c3c;
    border: 1px solid #fecaca;
}

#wpps-payment-message.success {
    background: #f0fdf4;
    color: #27ae60;
    border: 1px solid #86efac;
}

.wpps-secure-badge {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

/* Loading */
#wpps-loading {
    text-align: center;
    padding: 30px;
    margin-top: 15px;
}

.wpps-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: wpps-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes wpps-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== THANK YOU PAGE ===== */
.wpps-thankyou-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wpps-thankyou-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Checkmark Animation */
.wpps-success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.wpps-checkmark-svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #27ae60;
    stroke-miterlimit: 10;
    animation: wpps-fill 0.4s ease-in-out 0.4s forwards, wpps-scale 0.3s ease-in-out 0.9s both;
}

.wpps-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #27ae60;
    fill: none;
    animation: wpps-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.wpps-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    animation: wpps-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes wpps-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes wpps-scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes wpps-fill {
    100% {
        box-shadow: inset 0px 0px 0px 40px rgba(39, 174, 96, 0.05);
    }
}

.wpps-thankyou-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.wpps-thankyou-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 35px;
}

/* Order Details */
.wpps-order-details-card {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.wpps-order-details-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.wpps-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 480px) {
    .wpps-detail-grid {
        grid-template-columns: 1fr;
    }
}

.wpps-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wpps-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpps-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.wpps-detail-value code {
    background: #e8e8e8;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 13px;
}

.wpps-detail-value.wpps-price {
    font-size: 22px;
    color: #27ae60;
    font-weight: 800;
}

/* Status Badge */
.wpps-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.wpps-status-completed {
    background: #d4edda;
    color: #155724;
}

.wpps-status-pending {
    background: #fff3cd;
    color: #856404;
}

.wpps-status-failed {
    background: #f8d7da;
    color: #721c24;
}

.wpps-thankyou-message {
    margin: 25px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.wpps-thankyou-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.wpps-btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #3b82f6;
    color: white !important;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wpps-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    color: white !important;
}

.wpps-btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: #f0f0f0;
    color: #333 !important;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wpps-btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    color: #333 !important;
}

/* Error Display */
.wpps-error {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #fff5f5;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #fecaca;
}

.wpps-error h3 {
    color: #e74c3c;
    font-size: 22px;
    margin-bottom: 10px;
}

.wpps-error a {
    color: #3b82f6;
}

.wpps-field-error {
    border-color: #e74c3c !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12) !important;
    animation: wpps-shake 0.35s ease;
}

@keyframes wpps-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

#wpps-paypal-wrapper {
    position: relative;
}

#wpps-paypal-overlay {
    display: block;
    border-radius: 8px;
}

#wpps-paypal-button-container {
    transition: opacity 0.25s ease, filter 0.25s ease;
}


.wpps-payment-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.wpps-tab {
    flex: 1;
    padding: 14px 10px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.wpps-tab:first-child {
    border-right: 2px solid #e0e0e0;
}

.wpps-tab.active {
    background: #fff;
    color: #1a1a2e;
    box-shadow: inset 0 -3px 0 #3b82f6;
}

.wpps-tab:hover:not(.active) {
    background: #eef;
}

.wpps-tab-icon {
    font-size: 18px;
    line-height: 1;
}

.wpps-tab-content {
    display: none;
}

.wpps-tab-content.active {
    display: block;
    animation: wpps-fadeIn 0.25s ease;
}

@keyframes wpps-fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.wpps-card-form {
    padding: 5px 0;
}

.wpps-card-brands {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.wpps-brand-icon {
    height: 30px;
    width: auto;
    opacity: 0.3;
    transition: all 0.3s ease;
    border-radius: 4px;
}

input#wpps_card_name {
    height: 50px;
    background: transparent;
    border: 0.0625rem solid #909697;
    border-radius: 5px;
    color: #333333;
}

.wpps-hosted-field {
    height: 66px;
    padding: 0;
    /* border: 2px solid #e0e0e0; */
    border-radius: 10px;
    /* background: #fafafa; */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.wpps-hosted-field:hover {
    border-color: #c0c0c0;
}

.wpps-hosted-field:focus-within,
.wpps-hosted-field.wpps-hosted-field-focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: #fff;
}

.wpps-hosted-field-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
    background: #fff8f8 !important;
}

/* Field error messages */
.wpps-field-error-msg {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    min-height: 16px;
    font-weight: 500;
}

.wpps-card-submit-btn {
    width: 100%;
    padding: 16px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.wpps-card-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.wpps-card-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wpps-card-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.wpps-btn-text {
    display: inline;
}

.wpps-btn-spinner {
    display: none;
    align-items: center;
    gap: 8px;
}

.wpps-mini-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wpps-spin 0.7s linear infinite;
}

/* Not eligible fallback */
.wpps-card-not-eligible {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9ff;
    border-radius: 10px;
    color: #666;
}

.wpps-card-not-eligible p {
    margin: 8px 0;
}

.wpps-field-error {
    border-color: #e74c3c !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12) !important;
    animation: wpps-shake 0.35s ease;
}

@keyframes wpps-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* PayPal overlay */
#wpps-paypal-wrapper {
    position: relative;
}

#wpps-paypal-button-container {
    transition: opacity 0.25s ease, filter 0.25s ease;
}


@media (max-width: 480px) {
    .wpps-payment-tabs {
        flex-direction: column;
    }

    .wpps-tab:first-child {
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
    }

    .wpps-card-brands {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════
   CATEGORY TABS
═══════════════════════════════════════════ */
.wpps-category-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    background: #f0f0f8;
    border-radius: 50px;
    padding: 5px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.wpps-cat-tab {
    flex: 1;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wpps-cat-tab.active {
    background: #ffffff;
    color: #1a1a2e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.wpps-cat-tab:hover:not(.active) {
    color: #333;
}

.wpps-cat-icon {
    font-size: 18px;
}

/* ═══════════════════════════════════════════
   BILLING TOGGLE
═══════════════════════════════════════════ */
.wpps-billing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}

.wpps-billing-label {
    font-size: 15px;
    font-weight: 600;
    color: #aaa;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpps-billing-label.active-label {
    color: #fff;
}

/* Toggle switch */
.wpps-toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.wpps-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wpps-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 28px;
    transition: 0.3s ease;
}

.wpps-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.wpps-toggle-switch input:checked+.wpps-toggle-slider {
    background: #3b82f6;
}

.wpps-toggle-switch input:checked+.wpps-toggle-slider::before {
    transform: translateX(24px);
}

/* Save badge */
.wpps-save-badge {
    display: inline-block;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════
   PRICE PERIOD WRAP
═══════════════════════════════════════════ */
.wpps-period-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 4px;
}

.wpps-yearly-note {
    font-size: 11px;
    color: #fff;
    margin-top: 2px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   FLIP ANIMATION
═══════════════════════════════════════════ */
.wpps-package-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.wpps-flip-out {
    transform: rotateY(90deg) scale(0.95) !important;
    opacity: 0 !important;
}

.wpps-flip-in {
    animation: wpps-flip-in-anim 0.35s ease forwards;
}

@keyframes wpps-flip-in-anim {
    from {
        transform: rotateY(-90deg) scale(0.95);
        opacity: 0;
    }

    to {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

/* Featured card scale fix during flip */
.wpps-package-card.wpps-featured.wpps-flip-in {
    animation: wpps-flip-in-featured 0.35s ease forwards;
}

@keyframes wpps-flip-in-featured {
    from {
        transform: rotateY(-90deg) scale(0.95);
        opacity: 0;
    }

    to {
        transform: rotateY(0deg) scale(1.05);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════
   CHECKOUT SUMMARY META BADGES
═══════════════════════════════════════════ */
.wpps-summary-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.wpps-meta-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    background: #f0f0f8;
    color: #555;
}

.wpps-savings-line span {
    font-size: 14px;
}

/* Currency note on package cards */
.wpps-currency-note {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════ */
.wpps-auth-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 20px;
}

.wpps-auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wpps-auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
}

.wpps-auth-tab {
    flex: 1;
    padding: 18px;
    border: none;
    background: #f8f9fa;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpps-auth-tab.active {
    background: #fff;
    color: #1a1a2e;
    box-shadow: inset 0 -3px 0 #3b82f6;
}

.wpps-auth-content {
    display: none;
    padding: 35px;
}

.wpps-auth-content.active {
    display: block;
    animation: wpps-fadeIn 0.25s ease;
}

.wpps-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.wpps-auth-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.wpps-auth-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.wpps-auth-header p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Input with icon */
.wpps-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wpps-input-wrap .wpps-input-icon {
    position: absolute;
    left: 14px;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.wpps-input-wrap input {
    padding-left: 42px !important;
}

.wpps-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

.wpps-toggle-pass:hover {
    background: transparent !important;
}

/* Auth options row */
.wpps-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px !important;
}

.wpps-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.wpps-forgot-link {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

.wpps-forgot-link:hover {
    text-decoration: underline;
}

/* Auth button */
.wpps-auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.wpps-auth-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    color: #fff;
}

.wpps-auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Auth message */
.wpps-auth-message {
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    margin: 12px 0;
    font-weight: 500;
}

.wpps-auth-message.error {
    background: #fff5f5;
    color: #e74c3c;
    border: 1px solid #fecaca;
}

.wpps-auth-message.success {
    background: #f0fdf4;
    color: #27ae60;
    border: 1px solid #86efac;
}

/* Switch tab link */
.wpps-auth-switch {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: 20px;
}

.wpps-auth-switch a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

/* Password strength */
.wpps-password-strength {
    margin-top: 8px;
}

.wpps-strength-bar {
    height: 4px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.wpps-strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}

/* ═══════════════════════════════════════════
   MY ACCOUNT PAGE
═══════════════════════════════════════════ */
.wpps-account-container {
    max-width: 1000px;
    margin: 0 auto;
    /* padding: 30px 20px; */
}

/* Account header */
.wpps-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.wpps-avatar {
    border-radius: 50%;
    border: 3px solid #3b82f6;
}

.wpps-account-info {
    /* flex: 1; */
}

.wpps-account-info h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.wpps-account-info p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.wpps-account-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wpps-btn-outline {
    padding: 10px 20px;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wpps-btn-support {
    border: 2px solid green;
    color: green;
}

.wpps-btn-my-packages {
    border: 2px solid #f39c12;
    color: #f39c12;
}

.wpps-btn-my-packages.active {
    border: 2px solid #f39c12;
    color: #f39c12;
}

.wpps-btn-outline:hover {
    background: #3b82f6;
    color: #fff;
}

.wpps-btn-support:hover {
    background: green !important;
    color: #fff;
}

.wpps-btn-my-packages:hover {
    background: #f39c12;
    color: #fff;
}

.wpps-btn-logout {
    padding: 10px 20px;
    border: 2px solid #e74c3c;
    text-decoration: none !important;
    color: #e74c3c;
    background: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpps-btn-logout:hover {
    background: #e74c3c;
    color: #fff;
    border: 2px solid #e74c3c;
}

/* Stats row */
.wpps-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.wpps-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.wpps-stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.wpps-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    margin-bottom: 5px;
}

.wpps-stat-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* Orders section */
.wpps-orders-section {
    background: #fff;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.wpps-orders-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
}

/* No orders */
.wpps-no-orders {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.wpps-no-orders-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.wpps-no-orders h4 {
    font-size: 18px;
    color: #555;
    margin: 0 0 8px;
}

/* Order cards */
.wpps-orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wpps-order-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 14px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.wpps-order-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.wpps-order-card.status-active {
    border-color: #86efac;
    background: #f0fdf4;
}

.wpps-order-card.status-expired {
    border-color: #e0e0e0;
    background: #fafafa;
    opacity: 0.85;
}

.wpps-order-card-left {
    flex-shrink: 0;
}

.wpps-order-pkg-icon {
    font-size: 36px;
    width: 56px;
    height: 56px;
    background: #f0f0f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpps-order-card-body {
    flex: 1;
}

.wpps-order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.wpps-order-pkg-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.wpps-order-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.wpps-order-meta-pill,
.wpps-badge-subscription {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    border: 1px solid #e5e7eb;
    background: #f6f7f9;
    color: #475467;
}

.wpps-badge-subscription {
    background: linear-gradient(135deg, #edf4ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.wpps-order-meta i,
.wpps-badge-subscription i {
    font-size: 10px;
    opacity: 0.9;
}

.wpps-order-card-price strong {
    font-size: 18px;
    color: #1a1a2e;
}

.wpps-order-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wpps-order-card-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888;
}

.wpps-order-card-details code {
    background: #eee;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Status badges */
.wpps-order-status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.wpps-order-status-badge.status-active {
    background: #d4edda;
    color: #155724;
}

.wpps-order-status-badge.status-expired {
    background: #e9ecef;
    color: #666;
}

.wpps-order-status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.wpps-order-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.wpps-order-status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 600px) {
    .wpps-account-header {
        flex-direction: column;
        text-align: center;
    }

    .wpps-account-actions {
        justify-content: center;
    }

    .wpps-stats-row {
        grid-template-columns: 1fr;
    }

    .wpps-order-card {
        flex-direction: column;
    }

    .wpps-order-card-details {
        flex-direction: column;
        gap: 4px;
    }
}

.entry-header.ast-no-thumbnail {
    display: none;
}

.logo_section_n {
    text-align: center;
    display: flex;
    justify-content: center;
}

.logo_section_n img {
    width: 130px;
    height: auto;
    object-fit: contain;
}

/* ═══════════════════════════════════════════
   CANCEL BUTTON
═══════════════════════════════════════════ */
.wpps-order-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.wpps-cancel-btn {
    padding: 6px 16px;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    background: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpps-cancel-btn:hover {
    background: #e74c3c;
    color: #fff;
    border: 2px solid #e74c3c;
}

/* Cancelled order card */
.wpps-order-card.status-cancelled {
    border-color: #fecaca;
    background: #fff5f5;
    opacity: 0.8;
}

.wpps-order-status-badge.status-cancelled {
    background: #fecaca;
    color: #991b1b;
}

.wpps-cancelled-date {
    color: #e74c3c !important;
    font-weight: 600;
}

.wpps-cancel-reason {
    color: #999 !important;
    font-style: italic;
}

/* ═══════════════════════════════════════════
   MODAL
═══════════════════════════════════════════ */
.wpps-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: wpps-fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.wpps-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 35px;
    position: relative;
    animation: wpps-modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@keyframes wpps-modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wpps-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.wpps-modal-close:hover {
    color: #333;
}

.wpps-modal-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 10px;
}

.wpps-modal-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.wpps-modal-subtitle {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin: 0 0 25px;
}

.wpps-modal-subtitle strong {
    color: #333;
}

.wpps-modal-question {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
}

/* ── Radio Options ── */
.wpps-reason-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.wpps-reason-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #555;
}

.wpps-reason-option:hover {
    border-color: #d0d0d0;
    background: #fafafa;
}

.wpps-reason-option input[type="radio"] {
    display: none;
}

.wpps-reason-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.wpps-reason-option input[type="radio"]:checked~.wpps-reason-radio {
    border-color: #e74c3c;
}

.wpps-reason-option input[type="radio"]:checked~.wpps-reason-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
}

.wpps-reason-option input[type="radio"]:checked~span:last-child {
    color: #1a1a2e;
    font-weight: 600;
}

.wpps-reason-option:has(input:checked) {
    border-color: #fecaca;
    background: #fff5f5;
}

/* ── Modal Actions ── */
.wpps-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.wpps-modal-btn-secondary {
    flex: 1;
    padding: 14px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #555;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpps-modal-btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f0f5ff;
}

.wpps-modal-btn-danger {
    flex: 1;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wpps-modal-btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.35);
}

.wpps-modal-btn-danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wpps-modal-btn-spinner {
    display: none;
    align-items: center;
    gap: 6px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE MODAL
═══════════════════════════════════════════ */
@media (max-width: 500px) {
    .wpps-modal {
        padding: 25px;
    }

    .wpps-modal-actions {
        flex-direction: column;
    }

    .wpps-reason-option {
        padding: 10px 14px;
        font-size: 13px;
    }
}


/* ═══════════════════════════════════════════
   SUBSCRIPTION INFO BOX
═══════════════════════════════════════════ */
.wpps-subscription-info {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #f0f5ff;
    border: 2px solid #c5d5f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 15px;
}

.wpps-sub-info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.wpps-sub-info-text strong {
    display: block;
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.wpps-sub-info-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
