
.header .animate__animated:not(.animate__pulse) {
    opacity: 0;
}


    
    .plan-features .feature-highlight {
    display: flex;
    align-items: flex-start;
    background-color: #fffbeb; /* A very light yellow background */
    border-radius: 8px;
    padding: 12px;
    margin: 5px -12px; /* Use negative margin to make it slightly wider */
    border-left: 4px solid #FFD700; /* Gold accent line */
    font-size: 0.9rem;
}

.plan-features .feature-highlight i {
    font-size: 1.2rem;
    margin-right: 12px; /* In RTL, this is margin-left */
    margin-left: 12px; /* Fallback for LTR, just in case */
    margin-top: 4px;
    color: #ffc107;
}

.plan-features .feature-highlight strong {
    display: block;
    color: #5b4a0e;
    margin-bottom: 4px;
}

.plan-features .feature-highlight small {
    display: block;
    line-height: 1.5;
    color: #6c757d;
}



.plan-price .old-price {
    font-size: 1.5rem; /* Smaller than the new price */
    color: #6c757d;    /* Muted grey color */
    margin-left: 0.75rem; /* Adds space between the old and new price in RTL */
    font-weight: 400;  /* Normal weight, not bold */
}

.whatsapp-demo-container {
    background-color: #f0f2f5;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    max-width: 450px;
    margin: auto;
    border: 1px solid #dee2e6;
}

.whatsapp-header {
    background-color: #005E54;
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.whatsapp-header i {
    font-size: 1.5rem;
}
.whatsapp-header .header-info .name {
    font-size: 1.1rem;
    font-weight: 500;
}
.whatsapp-header .header-info .status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.whatsapp-chat-log {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d8e8e3' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-color: #E5DDD5;
}

.wa-message-container {
    display: flex;
    width: 100%;
    margin-bottom: 5px;
    animation: bubble-pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bubble-pop-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wa-message-container.out { justify-content: flex-end; }
.wa-message-container.in { justify-content: flex-start; }

.wa-bubble {
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    font-size: 0.95rem;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.wa-bubble.wa-bubble-out {
    background-color: #DCF8C6;
    color: #303030;
    border-top-right-radius: 0;
}
.wa-bubble.wa-bubble-in {
    background-color: #FFFFFF;
    color: #303030;
    border-top-left-radius: 0;
}

.wa-bubble::after {
    content: '';
    position: absolute;
    top: 0;
    border: 10px solid transparent;
}
.wa-bubble.wa-bubble-out::after {
    right: -10px;
    border-top-color: #DCF8C6;
    border-left-width: 0;
}
.wa-bubble.wa-bubble-in::after {
    left: -10px;
    border-top-color: #FFFFFF;
    border-right-width: 0;
}

/* +++ NEW AND IMPROVED AUDIO BUBBLE STYLES +++ */
.wa-bubble.has-audio-player {
    width: 300px; /* Give audio bubbles a consistent width */
    max-width: 80%;
    padding: 8px; /* Adjust padding for the player */
}
.wa-audio-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wa-audio-container .play-icon {
    font-size: 1.8rem;
    color: #008069; /* WhatsApp green icon */
    flex-shrink: 0;
}
.wa-audio-container audio {
    flex-grow: 1;
    width: 100%;
    height: 35px;
}
/* Style the default audio player to look cleaner */
.wa-audio-container audio::-webkit-media-controls-panel {
  background-color: transparent;
  box-shadow: none;
}
/* Typing indicator ... */
.bot-typing-indicator span {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background-color: #8696a0; margin: 0 2px;
    animation: typing-bounce 1.2s infinite ease-in-out;
}
.bot-typing-indicator span:nth-child(2) { animation-delay: -1.0s; }
.bot-typing-indicator span:nth-child(3) { animation-delay: -0.8s; }
@keyframes typing-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } }

/* Input area styles (no changes needed here) */
.whatsapp-input-area { padding: 8px 12px; background-color: #f0f2f5; display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }
#whatsappInput { flex-grow: 1; border-radius: 20px; resize: none; padding: 10px 15px; border: none; max-height: 100px; background-color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
#whatsappInput:focus { outline: none; }
.wa-action-btn { width: 44px; height: 44px; border-radius: 50%; border: none; font-size: 1.2rem; display: grid; place-items: center; transition: all 0.2s ease; cursor: pointer; flex-shrink: 0; }
.wa-action-btn#whatsappSendBtn { background-color: #008069; color: white; }
.wa-action-btn#whatsappClearBtn { background-color: transparent; color: #54656f; }
.wa-action-btn:disabled { background-color: #8696a0 !important; cursor: not-allowed; transform: none; }

    .history-meta .history-music,
    .history-meta .history-play {
        background-color: transparent;
        border: none;
        color: #6c757d; /* Muted gray color */
        padding: 5px 8px;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        line-height: 1;
        transition: all 0.2s ease-in-out;
    }

    /* The hover effect you wanted! */
    .history-meta .history-music:hover,
    .history-meta .history-play:hover {
        color: #0d6efd; /* Bootstrap primary blue on hover */
        background-color: rgba(13, 110, 253, 0.1);
        transform: scale(1.1);
    }
    
    /* Style for the "Success" state */
    .history-meta .history-music.is-success i {
        color: #198754; /* Bootstrap success green */
    }
    .history-meta .history-music.is-success:hover i {
        color: #157347; /* Darker green on hover */
    }



.btn-subscribe-locked {
    background: linear-gradient(145deg, #ffc107, #ff9800); /* Gold/Orange gradient */
    color: #332400; /* Dark text for contrast */
    border: 1px solid #ffc107;
    font-weight: bold;
    width: 100%;
    margin-top: 8px; /* Same margin as the 'try-sample-btn' */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-subscribe-locked:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: #000;
}


.voice-card-presenter {
    color: #5a646e; /* Muted text color for the name */
    font-weight: 500;
}
.voice-card-presenter i {
    color: #adb5bd; /* A slightly lighter color for the icon */
    font-size: 1.1em; /* Makes the icon a little bigger than the text */
}



.training-notice {
    background-color: #e9f5ff; /* A light, non-intrusive blue */
    border: 1px solid #b8dfff;
    color: #005a9e; /* A darker blue for text */
    padding: 8px 12px;
    border-radius: 0.375rem; /* Standard Bootstrap radius */
    font-size: 0.85rem; /* Small text */
    text-align: center;
    font-weight: 500;
    margin-top: 8px; /* Match the button's margin */
    width: 100%;
}

.training-notice i {
    opacity: 0.8;
}

.feature-card-highlight {
    background: linear-gradient(145deg, #e9f5ff, #fff);
    border: 2px solid #0d6efd;
    transform: scale(1.03);
}


.btn-upgrade {
    background: linear-gradient(145deg, #0d6efd, #0a58ca); /* Blue gradient */
    color: white;
}

.btn-upgrade:hover {
    background: linear-gradient(145deg, #0b5ed7, #0a50be);
}

#clonedGenerateBtn {
    position: relative; /* This is crucial for positioning the counter inside */
    padding-top: 22px;  /* Make space for the counter above the button text */
    line-height: 1;     /* Adjust line height for better text alignment */
}

.mobile-convert-counter {
    position: absolute;
    top: 5px; /* Position it near the top of the button */
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85); /* A slightly transparent white for good contrast */
    pointer-events: none; /* Ensures the counter doesn't block clicks on the button */
    opacity: 0.9;
}




.voice-partner-card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 2px dashed #0d6efd;
    transition: all 0.3s ease-in-out;
}
.voice-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15) !important;
    border-style: solid;
}
.partner-card-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    position: relative;
}
.partner-card-icon .fa-microphone-alt {
    position: relative;
    z-index: 2;
}
.partner-card-icon .fa-dollar-sign {
    position: absolute;
    top: -10px;
    right: 40%;
    font-size: 1.5rem;
    color: #198754;
    opacity: 0.8;
    transform: rotate(-15deg);
    z-index: 1;
}
.voice-partner-card .btn {
    transition: background-color 0.2s ease;
}


 :root {
        --price-bg: #fff;
        --price-bg-alt: #f8f9fa;
        --price-border: #e9ecef;
        --price-text-light: #6c757d;
        --price-text-dark: #212529;
        --price-primary: #0d6efd;
        --price-hero-glow: rgba(255, 193, 7, 0.3);
        --price-hero-main: #ffc107;
        --price-hero-grad: linear-gradient(145deg, #ffda73, #ffb300);
        --price-hero-text: #3d2c00;
        --price-success: #198754;
    }

    #pricing-v3-container {
        font-family: 'Tajawal', sans-serif;
        background-color: var(--price-bg-alt);
        margin: -1rem -2.5rem; /* Stretch to fill modal padding */
        padding: 2.5rem 1.5rem;
    }

    .plan {
        background: var(--price-bg);
        border: 1px solid var(--price-border);
        border-radius: 1rem;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        height: 100%;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-align: center;
    }

    .plan:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
    }

    /* --- THE HERO PLAN --- */
    .plan--hero {
        border: 2px solid var(--price-hero-main);
        transform: scale(1.05);
        z-index: 2;
        position: relative;
    }
    .plan--hero .plan__badge {
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--price-hero-grad);
        color: var(--price-hero-text);
        font-weight: 700;
        padding: 0.5rem 1.5rem;
        border-radius: 50px;
        font-size: 0.9rem;
        box-shadow: 0 4px 10px var(--price-hero-glow);
    }
    
    /* --- HEADER --- */
    .plan__header {
        margin-bottom: 1.5rem;
    }
    .plan__title {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--price-text-dark);
        margin-bottom: 0.5rem;
    }
    .plan__desc {
        font-size: 0.9rem;
        color: var(--price-text-light);
        min-height: 40px; /* Ensures alignment */
    }
    .plan__price {
        font-size: 3.5rem;
        font-weight: 800;
        line-height: 1;
        color: var(--price-primary);
        margin: 1.5rem 0 0.5rem;
    }
    .plan--hero .plan__price {
        color: var(--price-hero-main);
    }
    .plan__price .old-price {
        display: block;
        font-size: 1.25rem;
        color: var(--price-text-light);
        font-weight: 400;
        text-decoration: line-through;
    }
    .plan__billing {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--price-text-light);
    }

    /* --- TIMER --- */
    .plan__timer {
        background-color: #fff9e6;
        border-radius: 0.5rem;
        padding: 0.5rem;
        margin-top: 1.5rem;
    }
    .plan__timer-text { font-size: 0.8rem; color: #856404; font-weight: 500; }
    .plan__timer-countdown { font-size: 1rem; font-weight: 700; color: #dc3545; letter-spacing: 1px; }

    /* --- FEATURES --- */
    .plan__features {
        list-style: none;
        padding: 0;
        margin: 1.5rem 0;
        flex-grow: 1;
        text-align: right;
    }
    .plan__feature {
        display: flex;
        align-items: center;
        padding: 0.75rem 0;
        font-size: 1rem;
    }
    .plan__feature-icon {
        font-size: 1.2rem;
        margin-left: 0.75rem; /* RTL margin */
        width: 24px;
        text-align: center;
    }
    .plan__feature-icon--yes { color: var(--price-success); }
    .plan__feature-icon--no { color: #ced4da; }
    .plan--hero .plan__feature-text strong {
        color: #b36e00;
    }
    .info-tooltip {
        margin-right: 0.5rem;
        color: var(--price-text-light);
        cursor: help;
    }
    
    /* --- FOOTER & CTA --- */
    .plan__footer {
        margin-top: auto;
    }
    .plan__cta {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 1.1rem;
        font-weight: 700;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
    }
    .plan--hero .plan__cta {
        background: var(--price-hero-grad);
        border: none;
        color: var(--price-hero-text);
        box-shadow: 0 4px 15px var(--price-hero-glow);
    }
    .plan--hero .plan__cta:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px var(--price-hero-glow);
    }

    /* --- ENTERPRISE SECTION --- */
    .enterprise-banner {
        border-radius: 1rem;
        padding: 2rem;
        background-color: var(--price-text-dark);
        color: var(--price-bg-alt);
    }
    .enterprise-banner__title {
        font-weight: 800;
    }
    .enterprise-banner__text {
        color: #adb5bd;
    }
    
    @media (max-width: 991px) {
        .plan--hero { transform: scale(1.02); margin: 1.5rem 0; }
        #pricing-v3-container { padding: 1.5rem 0.5rem; }
    }
    
    
    .subscriber-hint {
    color: #0d6efd; /* Bootstrap Primary Blue */
    cursor: help;
    font-size: 0.9em;
}

.director-mode-wrapper {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0 0 0.375rem 0.375rem; /* Match textarea bottom */
    margin-top: -1px; /* Overlap with textarea border */
    padding: 0.75rem;
    display: none; /* Hidden by default */
}

/* For the animation */
.director-mode-wrapper.active {
    display: block;
    animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.director-controls-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.director-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.director-tag-btn {
    background-color: #fff;
    border: 1px solid #ced4da;
    color: #495057;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px; /* Pill shape */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.director-tag-btn:hover, .director-tag-btn:focus {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.director-tag-btn i {
    margin-left: 0.3rem; /* RTL margin */
    opacity: 0.7;
}

.custom-tag-group {
    display: flex;
    flex-grow: 1;
    min-width: 200px; /* Ensure it doesn't get too squished */
}

.custom-tag-group input {
    border-radius: 0 50px 50px 0 !important; /* RTL */
    font-size: 0.8rem;
}

.custom-tag-group .btn {
    border-radius: 50px 0 0 50px !important; /* RTL */
}

/* Add a toggle switch in the textarea footer */
.director-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #0d6efd;
    cursor: pointer;
}
.director-mode-toggle .form-check-input {
    cursor: pointer;
}


.text-action-btn#directorModeToggleBtn.active {
    background-color: var(--bs-primary-bg-subtle, #cfe2ff);
    color: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary-border-subtle, #9ec5fe);
    box-shadow: 0 0 8px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.5);
}


.director-mode-wrapper {
    position: relative;
    padding-top: 2rem; /* Add some top padding to make space for the close button */
}

/* This is the new, modern, and responsive close button style */
.director-panel-close-btn {
    position: absolute;
    top: 0.5rem;   /* 8px from the top */
    left: 0.5rem;  /* 8px from the left (since it's RTL) */
    
    /* Styling for a clean, circular button */
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #6c757d; /* Muted grey color for the icon */
    font-size: 1rem;
    
    /* Centering the icon inside the circle */
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* A nice hover effect */
.director-panel-close-btn:hover {
    background-color: #f8f9fa; /* A very light grey background */
    color: #dc3545; /* Red "close" color */
    transform: rotate(90deg); /* Optional: Cool rotating effect */
}


.other-ai-tools-section {
    background-color: #f8f9fa; /* Light grey background to separate it */
}

.tool-card {
    display: block;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: #212529;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    position: relative; /* Needed for the badge */
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    border-color: #0d6efd; /* Highlight with primary color on hover */
}

.tool-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #0d6efd;
    background: linear-gradient(145deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0));
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-icon {
    transform: scale(1.1) rotate(-10deg);
}

.tool-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tool-card-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
}

.tool-card-badge {
    position: absolute;
    top: 15px;
    left: 15px; /* Positioned for RTL layout */
    background-color: #ffc107; /* Gold color for the badge */
    color: #3d2c00;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(-15deg);
}


.tool-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#voiceStyleModal .alert-info .alert-heading,
#voiceStyleModal .alert-info p,
#voiceStyleModal .alert-info a {
    color: #055160 !important; /* A dark, readable cyan color */
}


.badge-dropdown-wrapper {
    position: relative;
    display: inline-block; /* Or 'block' depending on your layout */
}

/* Custom styling for the dropdown menu itself */
.badge-dropdown-wrapper .dropdown-menu {
    --bs-dropdown-min-width: 220px;
    --bs-dropdown-padding-y: 0.5rem;
    --bs-dropdown-border-radius: 0.5rem;
    --bs-dropdown-link-hover-bg: #f8f9fa;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    margin-top: 0.5rem !important; /* Adds a small space below the badge */
}

/* Styling for the items inside the menu */
.badge-dropdown-wrapper .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    color: #495057;
}

.badge-dropdown-wrapper .dropdown-item i {
    width: 20px; /* Ensures icons are aligned */
    text-align: center;
    opacity: 0.7;
}

/* Specific styling for the cancel button */
.badge-dropdown-wrapper .dropdown-item.cancel-link {
    color: #dc3545; /* Bootstrap's danger red color */
}

.badge-dropdown-wrapper .dropdown-item.cancel-link:hover {
    background-color: #f8d7da; /* A light red on hover */
    color: #58151c;
}

