:root {
    --primary-color: #00BFFF; /* Electric Blue for trust and highlights */
    --secondary-color: #FF4500; /* Vibrant Orange-Red for urgency */
    --action-gradient: linear-gradient(45deg, #FF4500, #FF8C00); /* Orange-Red to Dark Orange Gradient */
    --dark-color: #0F1014; /* Deeper dark for more contrast */
    --dark-color-alt: #1A1C22; /* Lighter dark for sections */
    --gray-color: #A0AEC0;
    --light-gray-color: #f3f4f6;
    --white-color: #FFFFFF;
    --font-family: 'Changa', sans-serif;
    --success-color: #00FF7F; /* Brighter, more electric green for value */
    --gold-color: #FFD700; /* Brighter Gold */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--white-color);
    background-color: var(--dark-color);
    direction: rtl;
    text-align: right;
    background-image: url(background.png);
    background-attachment: fixed;
    background-size: cover;
}

body.sub-page {
    background-image: none;
    background-color: var(--dark-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Hero */
.hero {
    background: linear-gradient(rgba(15, 16, 20, 0.95), rgba(15, 16, 20, 0.8));
    color: var(--white-color);
    padding: 20px 0 80px;
    text-align: center;
    border-bottom: 2px solid var(--dark-color-alt);
    position: relative;
    overflow: hidden;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.logo {
    width: 250px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
}

.hero-content .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--gray-color);
}

.counter {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 1px solid rgba(0, 191, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.1);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-btn {
    margin-top: 0;
    padding: 15px 35px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn i {
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateY(3px);
}

/* Sub-page Header */
.sub-header {
    background-color: var(--dark-color-alt);
    padding: 20px 0;
    border-bottom: 1px solid #333;
    text-align: center;
}

.sub-header .logo {
    width: 200px;
}

/* Sections */
section {
    padding: 80px 0;
    background-color: rgba(31, 34, 40, 0.9);
    backdrop-filter: blur(5px);
}

section:nth-of-type(even) {
    background-color: rgba(15, 16, 20, 0.9);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

/* Features */
.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 20px;
    border-radius: 8px;
}

.feature-item:hover {
    transform: translateY(-5px);
    background-color: var(--dark-color);
}

.feature-item i {
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--gray-color);
}

/* Add styles for new payment method icon in features */
.feature-item i[data-feather="dollar-sign"] {
    stroke-width: 2;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: linear-gradient(145deg, var(--dark-color-alt), var(--dark-color));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    border: 1px solid #333;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 191, 255, 0.2);
}

.product-card.best-value {
    border-color: var(--gold-color);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.best-value-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: var(--gold-color);
    color: var(--dark-color);
    padding: 5px 30px;
    font-weight: bold;
    transform: rotate(45deg);
    font-size: 0.9rem;
    z-index: 2;
}

.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-bottom: 1px solid #333;
}

.product-card-body {
    padding: 25px;
}

.product-title-bar {
    background: linear-gradient(145deg, var(--dark-color-alt), var(--dark-color));
    color: var(--white-color);
    padding: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.product-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white-color);
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
}

.product-price .current-price {
    color: var(--success-color);
    text-shadow: 0 0 8px rgba(0, 255, 127, 0.3);
}

.product-price .old-price {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--gray-color);
    text-decoration: line-through;
}

.product-price span {
    font-size: 1.2rem;
    font-weight: normal;
}

.product-stock {
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-buttons .btn {
    font-size: 1rem;
    padding: 12px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.product-buttons .btn i {
    width: 18px;
    height: 18px;
}

.btn {
    display: block;
    background: var(--action-gradient);
    color: var(--white-color);
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.step {
    position: relative;
    padding: 40px 20px 20px;
    background: linear-gradient(145deg, var(--dark-color), #2a2d34);
    border-radius: 8px;
    border: 1px solid #333;
}

.step-number {
    position: absolute;
    top: -25px;
    right: 50%;
    transform: translateX(50%);
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    border: 4px solid var(--dark-color-alt);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.step i {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--gray-color);
}

/* Testimonials */
.testimonials h2 {
    color: var(--white-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: linear-gradient(145deg, var(--dark-color-alt), var(--dark-color));
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
    color: var(--gold-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: bold;
    color: var(--white-color);
}

/* FAQ */
.faq-item {
    background-color: var(--dark-color-alt);
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #333;
}

.faq-item ul {
    list-style-position: inside;
    padding-right: 20px;
    margin-top: 10px;
}

.faq-item li {
    margin-bottom: 5px;
}

.faq-item summary {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--white-color);
    transition: background-color 0.2s ease;
}

.faq-item summary:hover {
    background-color: rgba(255,255,255,0.05);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--gray-color);
    border-top: 1px solid #333;
    padding-top: 20px;
}

.faq-item details[open] summary i {
    transform: rotate(180deg);
}

.faq-item summary i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

/* Text Sections (Privacy/Disclaimer) */
.text-section {
    padding: 80px 0;
    background-color: rgba(31, 34, 40, 0.9);
}

.text-section .container {
    max-width: 800px; /* More readable line length for text */
    text-align: right;
}

.text-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.text-section p, .text-section li {
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.8;
}

.text-section ul {
    list-style-position: inside;
    padding-right: 20px;
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
    background: var(--primary-color);
    border: none;
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
}

.back-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--gray-color);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--gray-color);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

footer p:first-child {
    margin-bottom: 10px;
    font-weight: bold;
}

footer p:last-of-type {
    margin-bottom: 0;
}

/* Exit Popup */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.exit-popup-content {
    background: var(--dark-color-alt);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.2);
}

.exit-popup-overlay.visible .exit-popup-content {
    transform: translateY(0) scale(1);
}

.exit-popup-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.exit-popup-content p:first-of-type {
    font-size: 4rem;
    margin-bottom: 15px;
    line-height: 1;
}

.promo-code {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.exit-popup-content #popup-cta {
    margin-top: 20px;
    background: linear-gradient(45deg, var(--primary-color), #58baff);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
}

.exit-popup-content #popup-cta:hover {
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

.close-popup {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--dark-color);
    color: var(--white-color);
    border: 1px solid #444;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.close-popup:hover {
    background-color: var(--secondary-color);
    transform: rotate(90deg);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content .subtitle {
        font-size: 1.1rem;
    }
    h2 {
        font-size: 2rem;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}