/* ============================================
   MEGO IPTV - Modern IPTV Landing Page CSS
   Arabic RTL Responsive Design
   ============================================ */

/* ============================================
   Fonts: Cairo (variable, 400-800) self-hosted — no Google Fonts round-trips before first paint.
   font-display: optional + <link rel=preload>: Cairo is used when it is ready for first paint
   (the normal case) and never swapped in mid-read — a late swap re-wrapped headings and
   shifted /how-to-subscribe by CLS 0.30. Cached after the first page either way.
   ============================================ */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url('/fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url('/fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* SVG sprite icons (see Helpers/Icon.cs) — sized by font-size like the old icon font */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #c8102e;
    --primary-dark: #9c1c29;
    --primary-light: #e35a6b;
    --secondary-color: #7a1220;
    --accent-color: #f59e0b;
    --success-color: #22c55e;
    --dark-color: #1c0a0e;
    --dark-light: #2d1217;
    --gray-color: #64748b;
    --light-color: #f8fafc;
    --white-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #c8102e 0%, #9c1c29 50%, #5c0a17 100%);
    --gradient-dark: linear-gradient(135deg, #1c0a0e 0%, #2d1217 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Utility Classes
   ============================================ */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(200, 16, 46, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(200, 16, 46, 0.4);
    }
    to {
        box-shadow: 0 0 30px rgba(200, 16, 46, 0.7);
    }
}

/* ============================================
   Button Styles
   ============================================ */
.btn {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 12px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-dark);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white-color);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ============================================
   Navigation
   ============================================ */
#mainNav {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

#mainNav.scrolled {
    background: rgba(28, 10, 14, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

#mainNav .navbar-brand {
    font-size: 1.5rem;
    color: var(--white-color);
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 8px;
    transition: var(--transition);
}

#mainNav .nav-link:hover {
    color: var(--white-color);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-dark);
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(200, 16, 46,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 16, 46, 0.2);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(200, 16, 46, 0.3);
}

.hero-badge .icon {
    color: var(--accent-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-feature .icon {
    color: var(--success-color);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image {
    position: relative;
    height: 500px;
}

.tv-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(200, 16, 46, 0.3);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white-color);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-card .icon {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.card-1 {
    top: 4%;
    right: -6%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: -6%;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 4%;
    right: -6%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: 60px 0;
    background: var(--white-color);
    margin-top: -1px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.stat-icon .icon {
    font-size: 1.5rem;
    color: var(--white-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray-color);
    font-weight: 500;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: 100px 0;
    background: var(--white-color);
}

.feature-card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon .icon {
    font-size: 2rem;
    color: var(--white-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* ============================================
   Channels Section
   ============================================ */
.channels-section {
    padding: 100px 0;
    background: var(--light-color);
}

.channel-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid transparent;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.channel-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.channel-icon .icon {
    font-size: 1.8rem;
    color: var(--white-color);
}

.channel-icon.sports {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.channel-icon.movies {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.channel-icon.kids {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.channel-icon.news {
    background: linear-gradient(135deg, #c8102e, #9c1c29);
}

.channel-icon.turkish {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.channel-icon.arabic {
    background: linear-gradient(135deg, #9c1c29, #7a1220);
}

.channel-icon.documentary {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.channel-icon.music {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.channel-card h3,
.channel-card h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.channel-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-section {
    padding: 100px 0;
    background: var(--white-color);
}

/* Authorized Dealer Badge */
.authorized-dealer-badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(200, 16, 46, 0.1));
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 1rem;
}

.authorized-dealer-badge .icon {
    font-size: 1.2rem;
}

/* Payment Methods Section */
.payment-methods-section {
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 60px;
}

.payment-methods-section h2,
.payment-methods-section h4 {
    color: var(--dark-color);
    font-weight: 700;
}

.payment-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white-color);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    transition: var(--transition);
    min-width: 280px;
}

.payment-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.payment-badge.jordan {
    border-color: var(--success-color);
}

.payment-badge.jordan .icon {
    font-size: 2rem;
    color: var(--success-color);
}

.payment-badge.international {
    border-color: #0070ba;
}

.payment-badge.international .icon {
    font-size: 2rem;
    color: #0070ba;
}

.payment-badge strong {
    display: block;
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.payment-badge small {
    display: block;
    color: var(--gray-color);
    font-size: 0.85rem;
}

.payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--gray-color);
    opacity: 0.7;
}

.payment-icons .icon {
    transition: var(--transition);
}

.payment-icons .icon:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* Footer Authorized Badge */
.authorized-badge .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    font-weight: 600;
}

.pricing-card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.pricing-duration {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-color);
    margin-bottom: 15px;
    display: block;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.pricing-price .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--gray-color);
}

.save-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--dark-color);
    border-bottom: 1px solid #f1f5f9;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li .icon {
    color: var(--success-color);
    font-size: 1.1rem;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works-section {
    padding: 100px 0;
    background: var(--gradient-dark);
}

.how-it-works-section .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
}

.how-it-works-section .section-title {
    color: var(--white-color);
}

.how-it-works-section .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white-color);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(200, 16, 46, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.step-icon .icon {
    font-size: 2rem;
    color: var(--primary-light);
}

.step-card h3,
.step-card h4 {
    color: var(--white-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 100px 0;
    background: var(--light-color);
}

.accordion-item {
    background: var(--white-color);
    border: none;
    border-radius: var(--border-radius) !important;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    padding: 20px 25px;
    background: var(--white-color);
}

.accordion-button:not(.collapsed) {
    background: var(--white-color);
    color: var(--primary-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-size: 1.25rem;
    margin-right: auto;
    margin-left: 0;
}

.accordion-body {
    padding: 0 25px 25px;
    color: var(--gray-color);
    line-height: 1.8;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: var(--white-color);
}

.contact-card {
    display: block;
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.contact-card.whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.05);
}

.contact-card.phone:hover {
    border-color: var(--primary-color);
    background: rgba(200, 16, 46, 0.05);
}

.contact-card.telegram:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.05);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.contact-card.whatsapp .contact-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-card.phone .contact-icon {
    background: var(--gradient-primary);
}

.contact-card.telegram .contact-icon {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.contact-icon .icon {
    font-size: 2rem;
    color: var(--white-color);
}

.contact-card h3,
.contact-card h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white-color);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-section .btn-light {
    background: var(--white-color);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 16px 40px;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Footer Section
   ============================================ */
.footer-section {
    background: var(--dark-color);
    padding: 80px 0 30px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--white-color);
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section h5 {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact .icon {
    color: var(--primary-light);
    width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 30px;
}

.copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
}

.footer-link:hover {
    color: var(--primary-light);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    #mainNav .navbar-collapse {
        background: rgba(28, 10, 14, 0.98);
        padding: 20px;
        border-radius: 16px;
        margin-top: 15px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .pricing-price .amount {
        font-size: 3rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-feature {
        justify-content: center;
    }
    
    .feature-card,
    .channel-card,
    .step-card {
        padding: 25px 20px;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
}

/* ============================================
   Animation Keyframes
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Focus states for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero-section,
    .cta-section,
    .contact-section {
        background: none !important;
    }
    
    .btn,
    .navbar,
    .social-links {
        display: none !important;
    }
}
/* ============================================
   Inner pages: header band, breadcrumb, long-form text
   ============================================ */
.page-hero {
    background: var(--gradient-dark);
    color: var(--white-color);
    padding: 130px 0 56px;
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 720px;
    margin-bottom: 0;
}

.page-hero .text-center .page-lead {
    margin-inline: auto;
}

.page-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.page-breadcrumb a {
    color: var(--primary-light);
}

.page-breadcrumb .breadcrumb-item.active,
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.seo-intro {
    font-size: 1.05rem;
    color: var(--dark-light);
}

.seo-intro a,
.pricing-section p a,
.faq-section p a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.seo-intro ul,
.seo-intro ol {
    padding-inline-start: 1.25rem;
    margin-bottom: 1rem;
}

.seo-intro li {
    margin-bottom: 0.5rem;
}

#mainNav .nav-link.active {
    color: var(--white-color);
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   Floating WhatsApp button (every page, bottom corner)
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040; /* above the fixed navbar (1030) */
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    min-width: 60px;
    padding: 0 18px;
    border-radius: 30px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    animation: whatsapp-pulse 2.4s ease-out infinite;
}

.whatsapp-float .icon {
    font-size: 2rem;
    line-height: 1;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    color: #fff;
    background: #1ebe5b;
    transform: translateY(-3px);
}

.whatsapp-float:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@keyframes whatsapp-pulse {
    0%   { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Phones: icon-only circle, slightly smaller and closer to the edge. */
@media (max-width: 575.98px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
        min-width: 0;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-float-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
}

/* Bootstrap's accordion/link blues fall short of 4.5:1 on the light backgrounds used here. */
:root {
    --bs-accordion-active-color: var(--primary-dark);
    --bs-link-color: var(--primary-dark);
    --bs-link-color-rgb: 156, 28, 41;
}
.accordion {
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.25);
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239c1c29' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

/* Outline buttons on the dark gradient sections need the light red, not the dark one. */
.how-it-works-section .btn-outline-primary {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.how-it-works-section .btn-outline-primary:hover {
    color: var(--white-color);
}

/* One-line plan summary on pricing cards: "6 أشهر + شهر مجاني — 15 دينارًا — حتى جهازين" */
.plan-summary {
    color: var(--dark-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Devices page: concrete device names inside each category card */
.device-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}

.device-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 0;
    font-weight: 600;
    color: var(--dark-color);
}

.device-list .icon {
    color: var(--success-color);
    font-size: 0.85rem;
}

/* About page facts list */
.about-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 24px;
    background: var(--light-color);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin-bottom: 2rem;
}

.about-facts dt {
    font-weight: 700;
    color: var(--dark-color);
}

.about-facts dd {
    margin: 0;
}

/* Mobile: keep the floating WhatsApp button from covering the last footer line */
@media (max-width: 575.98px) {
    .footer-section {
        padding-bottom: 88px;
    }

    .about-facts {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .about-facts dd {
        margin-bottom: 10px;
    }
}

/* On the dark wine backgrounds the brand gradient is too dark to read; use a brighter red. */
.hero-section .gradient-text,
.page-hero .gradient-text,
.cta-section .gradient-text {
    background: linear-gradient(135deg, #ff6b78 0%, #f0283c 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Buttons inside text blocks keep button styling, not the underlined link style. */
.seo-intro a.btn {
    text-decoration: none;
}
