/* IPTV Sales Booster client styles */
button.spe-info-btn {
    appearance: none;
    box-sizing: border-box;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    margin: 0;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #0797ca !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 17px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    text-transform: none !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(7, 89, 120, .2);
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
    vertical-align: middle;
}

button.spe-info-btn:hover,
button.spe-info-btn:focus {
    background: #0783b0 !important;
    color: #fff !important;
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 2px 6px rgba(7, 89, 120, .28), 0 0 0 3px rgba(7, 151, 202, .16);
}

button.spe-info-btn span {
    color: #fff !important;
    pointer-events: none;
}

button.spe-info-btn.spe-info-btn-header {
    position: static !important;
    float: none !important;
    z-index: 2;
    margin: 0 0 0 12px !important;
    transform: none;
    vertical-align: middle;
}

button.spe-info-btn.spe-info-btn-header:hover,
button.spe-info-btn.spe-info-btn-header:focus {
    transform: scale(1.06);
}

.spe-popup-container {
    --spe-bg: #fdfdfd;
    --spe-text-main: #333;
    --spe-text-muted: #475569;
    --spe-text-light: #64748b;
    --spe-border: #e2e8f0;
    --spe-border-strong: #cbd5e1;
    --spe-card-bg: #fff;
    --spe-card-border: #eee;
    --spe-header-bg: #fff;
    --spe-hover-bg: #f8fafc;
    --spe-success-bg: #ecfdf5;
    --spe-success-border: #10b981;
    --spe-success-text: #065f46;
    
    position: fixed;
    top: 0;
    right: -550px;
    width: 500px;
    height: 100vh;
    background: var(--spe-bg);
    color: var(--spe-text-muted);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.spe-popup-container.spe-dark {
    --spe-bg: #0f172a;
    --spe-text-main: #f8fafc;
    --spe-text-muted: #cbd5e1;
    --spe-text-light: #94a3b8;
    --spe-border: #1e293b;
    --spe-border-strong: #334155;
    --spe-card-bg: #1e293b;
    --spe-card-border: #334155;
    --spe-header-bg: #0f172a;
    --spe-hover-bg: #334155;
    --spe-success-bg: rgba(16, 185, 129, 0.15);
    --spe-success-border: rgba(16, 185, 129, 0.4);
    --spe-success-text: #34d399;
}

.spe-popup-container.spe-open {
    right: 0;
}

.spe-popup-header {
    padding: 20px;
    background: var(--spe-header-bg);
    border-bottom: 1px solid var(--spe-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    z-index: 2;
}

.spe-popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--spe-text-main);
}

.spe-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--spe-text-light);
}

.spe-popup-body {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    position: relative;
}

#spe-product-details {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#spe-details-content {
    flex: 1;
    padding-bottom: 20px;
}

.spe-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spe-client-alert {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.45;
}

.spe-product-card-wrapper {
    background: var(--spe-card-bg);
    border: 1px solid var(--spe-card-border);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
    position: relative;
}

.spe-product-card-wrapper:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.spe-product-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--spe-card-bg);
    border-bottom: 1px solid var(--spe-border);
}

.spe-product-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    border: 1px solid #f0f0f0;
}

.spe-no-image {
    width: 120px;
    height: 120px;
    background: var(--spe-border);
    border-radius: 8px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--spe-text-light);
    font-size: 32px;
    border: 1px solid var(--spe-border-strong);
}

/* Recent Activity Notification Toast */
.spe-sales-toast {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 320px;
    background: var(--spe-card-bg);
    border: 1px solid var(--spe-success-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    z-index: 100;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 1.5s ease, visibility 1.5s;
}
.spe-sales-toast.spe-show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.spe-sales-toast.spe-sales-toast-global {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(340px, calc(100vw - 32px));
    background: #fff;
    border-color: #d8e3ea;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .22);
    z-index: 99999;
}
.spe-sales-toast.spe-sales-toast-global .spe-sales-toast-icon {
    background: #dcfce7;
    color: #166534;
}
.spe-sales-toast.spe-sales-toast-global .spe-sales-toast-content {
    color: #475569;
}
.spe-sales-toast.spe-sales-toast-global .spe-sales-toast-content strong {
    color: #111827;
}
.spe-sales-toast.spe-sales-toast-global .spe-sales-toast-time {
    color: #64748b;
}
.spe-sales-toast-icon {
    width: 40px;
    height: 40px;
    background: var(--spe-success-bg);
    color: var(--spe-success-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.spe-sales-toast-content {
    font-size: 13px;
    color: var(--spe-text-muted);
    line-height: 1.4;
}
.spe-sales-toast-content strong {
    color: var(--spe-text-main);
}
.spe-sales-toast-stars {
    color: #f59e0b;
    font-size: 11px;
    line-height: 1;
    margin: 3px 0;
}
.spe-sales-toast-time {
    color: var(--spe-text-light);
}
.spe-sales-toast-review {
    margin-top: 4px;
    color: var(--spe-text-light);
    font-size: 12px;
    font-style: italic;
}

.spe-apps-section {
    margin-top: 20px;
}

.spe-apps-title {
    margin-bottom: 10px;
    color: var(--spe-text-main);
    font-size: 15px;
    font-weight: 700;
}

.spe-apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.spe-app-download {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    min-height: 54px;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    color: var(--spe-text-muted);
    background: var(--spe-card-bg);
    border: 1px solid var(--spe-border);
    border-radius: 6px;
    text-decoration: none !important;
}

.spe-app-download:hover,
.spe-app-download:focus {
    color: var(--spe-text-main);
    border-color: #38bdf8;
    outline: 0;
}

.spe-app-download > i:first-child {
    color: #38bdf8;
    font-size: 20px;
    text-align: center;
}

.spe-app-download span {
    min-width: 0;
}

.spe-app-download strong,
.spe-app-download small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spe-app-download strong {
    color: var(--spe-text-main);
    font-size: 13px;
}

.spe-app-download small {
    margin-top: 2px;
    color: var(--spe-text-light);
    font-size: 11px;
}

.spe-app-download-icon {
    color: var(--spe-text-light);
    font-size: 12px;
}

.spe-product-info {
    flex: 1;
}

.spe-product-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff4757;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
    z-index: 10;
}

/* Marquee Styles */
.spe-marquee-container {
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    padding: 8px 0;
    white-space: nowrap;
    border-top: 1px solid #f0f0f0;
}

.spe-marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: spe-marquee 15s linear infinite;
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.spe-marquee-container:hover .spe-marquee-content {
    animation-play-state: paused;
}

@keyframes spe-marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Details view styles */
.spe-btn-back {
    background: none;
    border: none;
    color: #007bff;
    font-size: 14px;
    padding: 0 0 15px 0;
    cursor: pointer;
    font-weight: 500;
}

.spe-btn-back:hover {
    text-decoration: underline;
}

.spe-details-gallery {
    margin-bottom: 20px;
}

.spe-details-main-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid var(--spe-border-strong);
}

.spe-details-price {
    font-size: 24px;
    color: #007bff;
    font-weight: 700;
    margin: 15px 0;
}

.spe-billing-cycle {
    font-size: 0.55em;
    color: var(--spe-text-muted);
    font-weight: 500;
    margin-left: 2px;
}

.spe-detail.spe-popup-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--spe-primary);
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.spe-details-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--spe-text-muted);
    margin-bottom: 30px;
}

.spe-sticky-footer {
    position: sticky;
    bottom: -20px;
    margin: 0 -20px -20px -20px;
    background: var(--spe-header-bg);
    padding: 14px 20px;
    border-top: 1px solid var(--spe-border);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 10;
}

.spe-popup-container .spe-sticky-footer button {
    box-sizing: border-box;
    min-width: 0;
    min-height: 46px;
    margin: 0 !important;
    padding: 10px 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 6px;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2 !important;
    text-align: center;
    white-space: normal;
    word-break: normal;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: none;
    text-decoration: none;
}

.spe-popup-container .spe-sticky-footer button i {
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 1;
}

.spe-btn-order {
    flex: 1 1 0;
    background: #28a745;
    color: #fff;
}

.spe-btn-order:hover {
    background: #218838;
    transform: translateY(-2px);
}

.spe-btn-trial {
    flex: 1 1 0;
    background: #ff4757;
    color: #fff;
}

.spe-btn-trial:hover {
    background: #ff6b81;
    transform: translateY(-2px);
}

.spe-btn-contact {
    flex: 1 1 0;
    color: #fff;
}

.spe-btn-contact:hover {
    transform: translateY(-2px);
}

.spe-btn-whatsapp {
    background: #25d366;
}

.spe-btn-whatsapp:hover {
    background: #1ebe5d;
}

.spe-btn-telegram {
    background: #229ed9;
}

.spe-btn-telegram:hover {
    background: #168ac0;
}

.spe-sticky-footer.spe-actions-3 button,
.spe-sticky-footer.spe-actions-4 button {
    flex-basis: calc(50% - 5px);
}

@media (min-width: 720px) {
    .spe-sticky-footer.spe-actions-4 button {
        flex-basis: calc(25% - 8px);
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 13px !important;
    }
}

.spe-logos-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fbfcfe;
    border-top: 1px solid #e2e8f0;
    padding: 10px 0;
    margin-top: auto;
    border-radius: 0 0 12px 12px;
}

.spe-logos-marquee-inner {
    display: flex;
    width: max-content;
    animation: speScrollLogos var(--spe-artwork-scroll-speed, 20s) linear infinite;
}

.spe-logos-marquee-inner img {
    height: 125px;
    margin: 0 5px;
    border-radius: 6px;
    filter: grayscale(20%);
    opacity: 0.9;
    transition: all 0.3s ease;
    object-fit: cover;
}

.spe-logos-marquee-inner img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes speScrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Accordion */
.spe-accordion-btn:hover { background: var(--spe-hover-bg) !important; }
.spe-accordion-btn .fa-chevron-down { transition: transform 0.3s ease; }
.spe-accordion-btn.active .fa-chevron-down { transform: rotate(180deg); }
.spe-show { max-height: 500px !important; }

/* Pulse Dot */
.spe-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: spePulse 2s infinite;
}
@keyframes spePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Reviews Slider */
.spe-reviews-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}
.spe-reviews-track {
    display: flex;
    width: max-content;
    animation: speScrollReviews var(--spe-review-scroll-speed, 30s) linear infinite;
}
.spe-reviews-track:hover {
    animation-play-state: paused;
}
.spe-review-slide {
    width: 300px;
    background: var(--spe-card-bg);
    border: 1px solid var(--spe-card-border);
    border-radius: 12px;
    padding: 15px;
    margin: 0 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
@keyframes speScrollReviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Language Selector */
.spe-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.spe-lang-selector {
    padding: 5px 10px;
    border: 1px solid var(--spe-border-strong);
    border-radius: 6px;
    background-color: var(--spe-card-bg);
    font-size: 14px;
    color: var(--spe-text-muted);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.spe-lang-selector:hover {
    border-color: var(--spe-text-light);
    background-color: var(--spe-hover-bg);
}

.spe-translating-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #0ea5e9;
    backdrop-filter: blur(2px);
}

.spe-theme-toggle {
    background: none;
    border: none;
    color: var(--spe-text-light);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
    outline: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.spe-theme-toggle:hover {
    color: var(--spe-text-main);
}

@media (max-width: 420px) {
    .spe-apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .spe-popup-container {
        right: -100vw;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        box-shadow: none;
    }

    .spe-popup-container.spe-open {
        right: 0;
    }

    .spe-popup-header {
        padding: 14px 16px;
    }

    .spe-popup-title {
        font-size: 16px;
        line-height: 1.25;
    }

    .spe-header-actions {
        gap: 10px;
    }

    .spe-close-btn {
        font-size: 26px;
    }

    .spe-popup-body {
        padding: 16px;
    }

    #spe-details-content {
        padding-bottom: 12px;
    }

    #spe-details-content h2 {
        font-size: 22px !important;
        line-height: 1.25 !important;
    }

    .spe-details-description {
        font-size: 14px !important;
        margin-bottom: 18px !important;
    }

    .spe-details-price {
        font-size: 26px !important;
        margin-bottom: 18px !important;
    }

    .spe-package-card {
        padding: 16px !important;
        border-radius: 8px !important;
    }

    .spe-package-metrics {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 16px !important;
        padding-bottom: 16px !important;
    }

    .spe-package-metric {
        display: grid;
        grid-template-columns: 34px 1fr;
        column-gap: 10px;
        align-items: center;
        text-align: left;
    }

    .spe-package-metric i {
        margin-bottom: 0 !important;
        text-align: center;
    }

    .spe-supported-devices {
        font-size: 14px;
    }

    .spe-sticky-footer {
        bottom: -16px;
        margin: 0 -16px -16px -16px;
        padding: 12px 16px;
        gap: 8px;
    }

    .spe-popup-container .spe-sticky-footer button {
        min-height: 42px;
        padding: 9px 10px !important;
        font-size: 13px !important;
    }

    .spe-logos-marquee-inner img {
        height: 80px;
    }

    .spe-review-slide {
        width: 250px;
        margin: 0 6px;
    }
}

@media (max-width: 360px) {
    .spe-popup-container .spe-sticky-footer button {
        flex-basis: 100% !important;
    }
}
