/* --- Universal Styles & New Light Theme Background --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    /* Subtle, slow-moving light gradient for a dynamic but clean background */
    background: linear-gradient(-45deg, #e0e7ff, #c7d2fe, #f0f9ff, #e0f2fe);
    background-size: 400% 400%;
    animation: lightGradientBG 25s ease infinite;
    color: #334155;
    /* Dark gray for text, better than pure black */
    overflow-x: hidden;
}

@keyframes lightGradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Login/Signup Glass Card (Light Version) --- */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    /* More opaque for readability on light BG */
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(163, 177, 198, 0.37);
    /* Softer shadow */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 2.5rem 3rem;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Premium Form Styling (Light Version) --- */
.form-control {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    background: #fff;
    color: #334155;
    border-color: #6366f1;
    /* Indigo accent color on focus */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-custom {
    /* The "small gradient animated" look */
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    background-size: 200% auto;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.4s ease;
}

.btn-custom:hover {
    background-position: right center;
    /* Animate the gradient on hover */
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.auth-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #312e81;
}

/* --- Dashboard & Sidebar Styles (Light Version) --- */
.page-wrapper {
    display: flex;
}

#sidebar {
    width: 250px;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    transition: margin-left 0.3s ease-in-out;
    flex-shrink: 0;
}

#sidebar .sidebar-header {
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
}

#sidebar .sidebar-header h3 {
    color: #4338ca;
    /* Dark Indigo */
    font-weight: 600;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul p {
    color: #475569;
    padding: 10px;
    text-align: center;
    font-weight: 500;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 1.05em;
    display: block;
    color: #475569;
    /* Slate gray */
    transition: all 0.3s;
    text-decoration: none;
    border-radius: 0 50px 50px 0;
    margin-right: 10px;
    font-weight: 500;
}

#sidebar ul li a:hover {
    color: #4f46e5;
    background: rgba(238, 242, 255, 0.8);
    /* Very light indigo */
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
}


#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
}

/* --- Navbar (Light Version) --- */
.navbar {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.nav-link {
    color: #334155 !important;
}

/* --- Stat Cards (Light Version) --- */
.stat-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px 0 rgba(163, 177, 198, 0.37);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    /* Gradient text for modern look */
    background: -webkit-linear-gradient(45deg, #4f46e5, #a855f7);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card p {
    color: #64748b;
    font-weight: 500;
}

/* --- Responsive Behavior --- */
@media (max-width: 991.98px) {
    #sidebar {
        margin-left: -250px;
        /* Hidden by default */
        position: fixed;
        top: 0;
        left: auto;
        z-index: 999;
    }

    #sidebar.active {
        margin-left: 0;
        /* Slides in when active */
    }

    .overlay {
        display: block;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        pointer-events: none;
        /* Inactive by default */
    }

    .overlay.active {
        opacity: 1;
        pointer-events: auto;
        /* Clickable when active */
    }

    #sidebarCollapse {
        display: block;
    }
}

@media (min-width: 992px) {
    #sidebarCollapse {
        display: none;
    }

    .overlay {
        display: none !important;
    }
}



/* Password Validation Criteria Styling */
#password-criteria {
    font-size: 0.9em;
}

.criteria {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* Invalid state (default) */
.criteria.invalid {
    color: #64748b;
    /* Slate gray */
}

.criteria.invalid i {
    color: #ef4444;
    /* Red */
}

/* Valid state */
.criteria.valid {
    color: #1e293b;
    /* Darker text */
    font-weight: 500;
}

.criteria.valid i {
    color: #22c55e;
    /* Green */
}

/* Style for disabled button */
.btn-custom:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/**
 * =================================================================
 * V. MOBILE RESPONSIVENESS & PADDING ADJUSTMENTS
 *
 * This media query targets devices with a screen width of 767.98px or less.
 * It reduces padding and adjusts containers to better fit mobile screens,
 * preventing horizontal overflow and making the UI more compact.
 * =================================================================
 */
@media (max-width: 767.98px) {

    /* 1. Reduce main content padding */
    #content {
        padding: 10px;
        /* Reduced from 20px */
    }

    /* 2. Reduce padding on dashboard cards and table containers */
    .stat-card {
        padding: 15px;
        /* Reduced from 25px */
    }

    /* 3. Reduce padding on the login/signup "glass cards" */
    .auth-container .glass-card {
        padding: 2rem 1.5rem;
        /* Reduced from 2.5rem 3rem */
        margin: 0 10px;
        /* Add a small margin to prevent touching screen edges */
    }

    /* 4. Reduce padding inside modals to give more space to the content */
    .modal-body {
        padding: 1rem;
    }

    .modal {
        /* Ensure the modal backdrop is a flex container */
        /* display: flex !important; */

        /* Horizontally center the .modal-dialog within the flex container */
        justify-content: center;

        /* Vertically center the .modal-dialog within the flex container */
        align-items: center;
    }

    /* 5. Ensure responsive tables don't have unnecessary margins */
    .table-responsive {
        margin-left: -15px;
        /* Counteract the parent's padding */
        margin-right: -15px;
        /* Counteract the parent's padding */
    }

    .table-responsive .table {
        margin-bottom: 0;
    }

    /* 6. Make headings slightly smaller on mobile */
    h1 {
        font-size: 1.75rem;
    }
}

/**
 * =================================================================
 * VI. GLOBAL TABLE & CONTAINER FITTING
 *
 * This ensures that when a table is too wide, only the table itself
 * gets a horizontal scrollbar, not the entire page.
 * The .table-responsive class is from Bootstrap.
 * =================================================================
 */
.stat-card {
    /* This is crucial. It ensures that the rounded corners of the card
       contain the table, even when the table is scrolling horizontally. */
    overflow: hidden;
}

.table-responsive {
    /* Bootstrap provides this, but it's the key to making tables fit.
       It makes the table scrollable on the X-axis if it's too wide. */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}





/* =================================================================
 * VII. AI TOOLBOX CARDS ON DASHBOARD
 * (Replaces all previous modal and promotional card styles)
 * ================================================================= */

/* Styles for the tool cards, now directly on the dashboard */
.tool-card {
    padding: 20px;
    height: 100%;
    min-height: 280px;
    border-radius: 20px;
    color: #fff;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Animation: Start hidden, then fade in */
    opacity: 0;
    animation: modalCardFadeIn 0.5s ease-out forwards;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tool-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.tool-icon {
    font-size: 1.8rem;
    color: #fff;
}

.tool-card h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.tool-card p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Gradient Themes for each Tool */
.tool-card-video {
    background: linear-gradient(160deg, #a855f7, #d946ef);
}

.tool-card-voice {
    background: linear-gradient(160deg, #22d3ee, #0ea5e9);
}

.tool-card-wa {
    background: linear-gradient(160deg, #4ade80, #22c55e);
}

.tool-card-google {
    background: linear-gradient(160deg, #60a5fa, #3b82f6);
}

/* REVISED: Staggered animation, now targeting the .ai-tools-grid class */
.ai-tools-grid>div:nth-child(1) .tool-card {
    animation-delay: 0.1s;
}

.ai-tools-grid>div:nth-child(2) .tool-card {
    animation-delay: 0.2s;
}

.ai-tools-grid>div:nth-child(3) .tool-card {
    animation-delay: 0.3s;
}

.ai-tools-grid>div:nth-child(4) .tool-card {
    animation-delay: 0.4s;
}

/* Keyframes for the fade-in animation (no change needed here) */
@keyframes modalCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* =================================================================
 * IX. AD CREDIT "WALLET" CARD STYLING
 * ================================================================= */

.wallet-card {
    /* Overriding default stat-card styles */
    background: linear-gradient(135deg, #1e293b, #0f172a);
    /* Dark Slate/Navy Gradient */
    color: #e2e8f0;
    /* Soft white text */
    position: relative;
    overflow: hidden;
    /* Important for the pattern pseudo-element */
    display: flex;
    flex-direction: column;
    /* Arrange content vertically */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wallet-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* A subtle, diagonal line pattern to give texture */
.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M 0 5 L 5 0 M 10 20 L 20 10" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

/* Ensure all content appears above the pattern */
.wallet-header,
.wallet-balance,
.wallet-footer {
    position: relative;
    z-index: 2;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.wallet-header p {
    margin: 0;
    font-weight: 500;
}

.wallet-header i {
    font-size: 1.5rem;
    color: #94a3b8;
    /* Slate gray for the chip icon */
}

.wallet-balance {
    text-align: center;
    margin: auto 0;
    /* This pushes it to the vertical center */
}

.wallet-balance h3 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    background: -webkit-linear-gradient(45deg, #e2e8f0, #ffffff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-footer {
    margin-top: auto;
    /* Pushes the footer to the bottom */
}

.btn-wallet {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-wallet:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}



/* =================================================================
 * X. AI VIDEO EDITOR UI STYLES
 * ================================================================= */

.video-preview-wrapper {
    background-color: #e2e8f0;
    /* Light grey background */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    /* Ensures a good size for the preview area */
    height: 100%;
}

.video-preview-wrapper i {
    font-size: 4rem;
    color: #cbd5e1;
    /* Lighter grey for the play icon */
}

.timeline-placeholder {
    background-color: #f1f5f9;
    /* Even lighter grey */
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: #64748b;
    /* Slate grey text */
    font-weight: 500;
}

/* 
 * Style for the Bootstrap Accordion to match the theme.
 * We use !important to safely override Bootstrap's default styles.
 */
.accordion-item {
    background-color: transparent !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    margin-bottom: 10px;
}

.accordion-button {
    background-color: #f8fafc !important;
    /* A very light grey for the button */
    color: #334155 !important;
    font-weight: 500;
    border-radius: 10px !important;
}

/* This was the incomplete line. It adds the soft blue glow on focus. */
.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    border-color: #e2e8f0 !important;
}

/* When an accordion is open, ensure the button keeps its rounded corners */
.accordion-button:not(.collapsed) {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Remove Bootstrap's default filter on the arrow icon */
.accordion-button::after {
    filter: none !important;
}



/* =================================================================
 * XI. AI VIDEO EDITOR - STEP 1 & MODAL STYLES
 * ================================================================= */

/* Area on main page to show selected video thumbnails */
.selected-videos-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-height: 70px;
}

.selected-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Video Selection Modal Card Styles */
.video-template-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.video-template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    width: 100%;
    height: 150px;
    /* Consistent height for all thumbnails */
    object-fit: cover;
}

.video-title {
    padding: 10px;
    font-size: 0.9em;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Overlay and Checkmark for selection */
.selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(79, 70, 229, 0.7);
    /* Theme color overlay */
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-checkmark {
    font-size: 3rem;
    color: #fff;
}

/* The 'selected' state */
.video-template-card.selected .selection-overlay {
    opacity: 1;
}

.video-template-card.selected {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.generic-video-thumb {
    width: 120px;
    height: 80px;
    background-color: #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94a3b8;
}

/* =================================================================
 * XVI. USER PROFILE PAGE STYLES
 * ================================================================= */

.profile-picture-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    /* Center the container */
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Make it circular */
    object-fit: cover;
    /* Prevents image stretching */
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.upload-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: #4f46e5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.upload-overlay:hover {
    transform: scale(1.1);
}



/* =================================================================
 * XVII. CLINIC PROFILE - IMAGE GALLERY
 * ================================================================= */

.image-placeholder-wrapper {
    position: relative;
    width: 100%;
    background-color: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}

.image-placeholder-wrapper.cover {
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.image-placeholder-wrapper.small {
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
}

.image-placeholder-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crucial for preventing distortion */
}



/* =================================================================
 * XVIII. PUBLIC CLINIC PROFILE STYLES
 * ================================================================= */

/* Apply the main gradient background to the public page body */
.public-profile-body {
    background: linear-gradient(-45deg, #e0e7ff, #c7d2fe, #f0f9ff, #e0f2fe);
    background-size: 400% 400%;
    animation: lightGradientBG 25s ease infinite;
}

.public-navbar {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.public-profile-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.clinic-hero-section {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cover-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.clinic-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.clinic-speciality {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 99px;
    font-weight: 500;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background-color: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* =================================================================
 * XIX. CAMPAIGN BUILDER - STEP 2 STYLES
 * ================================================================= */

/* Filter checkbox styling */
.form-check-label {
    cursor: pointer;
}

/* Tag Cloud for filtering */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-filter-pill {
    background-color: #eef2ff;
    color: #4338ca;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-filter-pill:hover {
    background-color: #c7d2fe;
}

.tag-filter-pill.active {
    background-color: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}




/* --- NEW: Vertical 9:16 Card Styles --- */
.inspiration-card-vertical {
    background-color: #fff;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
    position: relative;
    /* For the selection outline */
}

/* The main video container with a 9:16 aspect ratio */
.video-container-vertical {
    position: relative;
    width: 100%;
    padding-top: 177.77%;
    /* 16 / 9 * 100 = 177.77% */
    background-color: #f1f5f9;
    cursor: pointer;
}

.video-container-vertical .video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container-vertical .vjs-poster {
    background-size: cover;
}

/* Custom Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    /* Allows clicks to go through to the video */
}

.inspiration-card-vertical:hover .play-button-overlay {
    opacity: 1;
    /* Show on hover */
}

.play-button-overlay i {
    font-size: 2.5rem;
    color: #fff;
    background-color: rgba(79, 70, 229, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Selection Checkmark Overlay */
.selection-checkmark-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
    color: #fff;
    background-color: #4f46e5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    /* Hidden by default */
    transition: transform 0.2s ease-out;
    z-index: 10;
}

/* Selection State Styling */
.inspiration-card-vertical.selected {
    box-shadow: 0 0 0 3px #4f46e5;
    /* Main selection indicator */
}

.inspiration-card-vertical.selected .selection-checkmark-overlay {
    transform: scale(1);
    /* Show the checkmark when selected */
}

.inspiration-card-vertical.selected .select-video-btn {
    background-color: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* Card Body (Title and Button) */
.video-card-body-vertical {
    padding: 15px;
    text-align: center;
}

.video-title-vertical {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Disabled button state */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}


/* =================================================================
 * XIX. REDESIGNED LOGIN PAGE STYLES
 * ================================================================= */

/* Ensure the auth container takes the full page height */
.auth-container.full-page {
    min-height: 100vh;
    padding: 1rem;
}

/* The left-side information panel */
.info-panel {
    position: relative;
    /* For positioning the animated shapes */
    color: #1e293b;
    padding-right: 3rem;
    /* Space between panel and form */
    overflow: hidden;
    /* Contains the shapes' glow */
}

.info-title {
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
}

.info-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.info-features {
    list-style: none;
    padding-left: 0;
}

.info-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.info-features i {
    font-size: 1.5rem;
    color: #4f46e5;
    margin-top: 5px;
}

.info-features strong {
    display: block;
    font-weight: 600;
}

.info-features span {
    color: #64748b;
    font-size: 0.9em;
}

/* Animated Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(168, 85, 247, 0.2));
    filter: blur(20px);
    z-index: -1;
    animation: floatAnimation 15s infinite alternate ease-in-out;
}

.shape1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 15%;
    animation-duration: 12s;
}

.shape2 {
    width: 300px;
    height: 300px;
    bottom: 5%;
    right: 10%;
    animation-duration: 18s;
    animation-delay: -5s;
    /* Start at a different point in the animation */
}

.shape3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 40%;
    animation-duration: 15s;
    border-radius: 30%;
}

/* Keyframes for the floating animation */
@keyframes floatAnimation {
    from {
        transform: translateY(0px) rotate(0deg);
    }

    to {
        transform: translateY(-40px) rotate(45deg);
    }
}

/* Forgot Password Link */
.forgot-password-link {
    font-size: 0.85em;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* On mobile, the info panel is hidden by default with d-none d-md-block */
/* You could add a media query to show it below the form if you wanted */
@media (max-width: 767.98px) {
    .info-panel {
        display: none;
        /* Explicitly hide for clarity */
    }
}


/* =================================================================
 * XX. CKEDITOR STYLING
 * ================================================================= */

/* Overrides for CKEditor to match the light theme */
.ck-editor__editable_inline {
    border: 1px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    min-height: 250px;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.ck.ck-toolbar {
    border: 1px solid #e2e8f0 !important;
    background-color: #fff !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

/* Focus state to match the rest of the form */
.ck.ck-editor__editable.ck-focused {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}



/* =================================================================
 * XXI. CAMPAIGN BUILDER - STEP 4 FINALIZE PAGE
 * ================================================================= */

.review-section {
    margin-bottom: 1.5rem;
}

.review-section h6 {
    font-weight: 600;
    color: #4f46e5;
    border-bottom: 1px solid #eef2ff;
    padding-bottom: 8px;
    margin-bottom: 1rem;
}

.script-preview {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.script-preview p {
    margin-bottom: 0.5rem;
}

.submission-panel {
    background-color: #eef2ff;
    /* Light indigo background */
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.cost-box,
.balance-box {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #c7d2fe;
}

.cost-box {
    border-top: 1px solid #c7d2fe;
}

.cost-value,
.balance-value {
    font-weight: 600;
}

/* =================================================================
 * XXII. ENHANCED MOBILE RESPONSIVENESS
 * Added: 2026-01-26
 * Comprehensive mobile-first optimizations for all screen sizes
 * ================================================================= */

/* --- EXTRA SMALL DEVICES (phones, 320px - 575px) --- */
@media (max-width: 575.98px) {

    /* Body & Typography */
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    /* Auth/Login Card */
    .auth-container .glass-card {
        padding: 1.5rem 1rem;
        margin: 0 5px;
        border-radius: 15px;
    }

    /* Touch-friendly buttons (min 44px height) */
    .btn,
    .btn-custom,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    /* Touch-friendly form inputs */
    .form-control,
    .form-select {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    /* Dashboard Cards */
    .stat-card {
        padding: 12px;
        margin-bottom: 10px;
    }

    .stat-card h3 {
        font-size: 1.8rem;
    }

    /* Tool Cards (AI Toolbox) */
    .tool-card {
        min-height: 200px;
        padding: 15px;
    }

    .tool-icon-wrapper {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }

    .tool-icon {
        font-size: 1.4rem;
    }

    .tool-card h5 {
        font-size: 1rem;
    }

    .tool-card p {
        font-size: 0.8rem;
    }

    /* Wallet Card */
    .wallet-balance h3 {
        font-size: 2rem;
    }

    /* Tables - Force horizontal scroll */
    .table {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 8px 6px;
        white-space: nowrap;
    }

    /* Navbar adjustments */
    .navbar {
        padding: 8px 12px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Profile Picture */
    .profile-picture-container {
        width: 100px;
        height: 100px;
    }

    /* Modals */
    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 15px;
    }

    /* Filter chips (for select_creators) */
    .filter-chip {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin: 0 3px 6px 0;
    }
}

/* --- SMALL DEVICES (landscape phones, 576px - 767px) --- */
@media (min-width: 576px) and (max-width: 767.98px) {

    .auth-container .glass-card {
        padding: 2rem 1.5rem;
        max-width: 450px;
    }

    .stat-card {
        padding: 18px;
    }

    .tool-card {
        min-height: 230px;
    }
}

/* --- MEDIUM DEVICES (tablets, 768px - 991px) --- */
@media (min-width: 768px) and (max-width: 991.98px) {

    #content {
        padding: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    /* 2-column grid for tool cards on tablets */
    .ai-tools-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* --- SIDEBAR MOBILE TOGGLE BUTTON --- */
#sidebarCollapse {
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 991.98px) {
    #sidebarCollapse {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile sidebar overlay */
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        margin-left: 0 !important;
    }

    #sidebar.active {
        transform: translateX(0);
    }

    /* Dark overlay when sidebar is open */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* --- SELECT CREATORS PAGE MOBILE STYLES --- */
@media (max-width: 767.98px) {

    /* Filters sidebar becomes horizontal on mobile */
    .filters-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: auto;
        max-height: 50vh;
        width: 100%;
        border-right: none;
        border-top: 1px solid #e2e8f0;
        border-radius: 20px 20px 0 0;
        z-index: 1000;
        transform: translateY(calc(100% - 60px));
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .filters-sidebar.expanded {
        transform: translateY(0);
    }

    /* Pull handle for mobile filter drawer */
    .filters-sidebar::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 2px;
        margin: 10px auto 15px;
    }

    .gallery-content {
        padding-bottom: 80px;
        /* Space for the filter drawer handle */
    }

    /* Avatar grid: 2 columns on mobile */
    .avatars-grid-container .row>div {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Avatar cards */
    .avatar-card {
        border-radius: 10px;
    }

    .premium-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    /* Top bar */
    .top-bar {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-tabs-custom {
        order: 2;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs-custom .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .aspect-ratio-toggle {
        display: none;
        /* Hide on mobile */
    }
}

/* --- ONBOARDING PAGE MOBILE STYLES --- */
@media (max-width: 767.98px) {

    .onboarding-container {
        padding: 15px;
    }

    .onboarding-step {
        padding: 20px 15px;
    }

    /* Progress steps - horizontal scroll */
    .progress-steps {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .progress-step {
        flex-shrink: 0;
        min-width: 80px;
    }
}

/* --- VIDEO CAMPAIGN PAGE MOBILE --- */
@media (max-width: 767.98px) {

    .video-preview-wrapper {
        min-height: 200px;
    }

    .timeline-placeholder {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* --- PROFILE PAGE MOBILE --- */
@media (max-width: 575.98px) {

    /* Tabs stack vertically on very small screens */
    .profile-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .profile-section {
        padding: 15px;
    }
}

/* --- PRINT STYLES --- */
@media print {

    #sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }

    #content {
        width: 100%;
        padding: 0;
    }

    .stat-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


/* =================================================================
 * VIDEO CAMPAIGN WIZARD - ENHANCED UI STYLES
 * Modern, bold, card-like interactive UI with mobile responsiveness
 * ================================================================= */

/* Wizard Container - Larger and more prominent */
.wizard-container {
    max-width: 900px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* Enhanced Progress Bar */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 0 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wizard-progress::-webkit-scrollbar {
    display: none;
}

.progress-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #e2e8f0, #f1f5f9);
    z-index: 0;
    transform: translateY(-50%);
    border-radius: 3px;
}

.progress-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, #4f46e5, #818cf8, #a855f7);
    z-index: 0;
    transform: translateY(-50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4);
}

/* Step Dots - Larger and more interactive */
.step-dot {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    z-index: 1;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-dot:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.step-dot.active {
    border-color: #4f46e5;
    color: #4f46e5;
    background: linear-gradient(145deg, #fff, #f5f3ff);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.15), 0 4px 15px rgba(79, 70, 229, 0.25);
    transform: scale(1.15);
}

.step-dot.completed {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.step-dot.active .step-label {
    color: #4f46e5;
}

.step-dot.completed .step-label {
    color: #4f46e5;
}

/* Main Step Cards - Bold and Prominent */
.step-content .card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 2rem !important;
    transition: all 0.3s ease;
}

.step-content .card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
}

.step-content h4 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content .text-muted {
    font-size: 1rem;
    color: #64748b !important;
}

/* Enhanced Form Controls */
.step-content .form-control,
.step-content .form-select {
    border-radius: 14px;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    border: 2px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.step-content .form-control:focus,
.step-content .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    background: #fff;
}

.step-content .form-control-lg,
.step-content .form-select-lg {
    padding: 1.1rem 1.4rem;
    font-size: 1.1rem;
}

.step-content .form-label {
    font-weight: 700;
    color: #334155;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Objective & Platform Tiles - Bigger and More Interactive */
.objective-tile,
.platform-tile {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    border-radius: 18px !important;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9) !important;
    padding: 1.5rem !important;
}

.objective-tile:hover,
.platform-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #fff, #f8fafc) !important;
}

.objective-input:checked+.objective-tile,
.platform-input:checked+.platform-tile {
    border-color: #4f46e5;
    background: linear-gradient(145deg, #f5f3ff, #ede9fe) !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), 0 8px 25px rgba(79, 70, 229, 0.2);
}

.objective-tile .rounded-circle,
.platform-tile .rounded-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff, #f8fafc) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.objective-tile i,
.platform-tile i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.objective-input:checked+.objective-tile i,
.platform-input:checked+.platform-tile i {
    color: #4f46e5 !important;
    transform: scale(1.1);
}

.objective-tile h6,
.platform-tile small {
    font-weight: 700;
    font-size: 1rem;
}

/* Navigation Buttons - Bigger and Bolder */
.step-content+.mt-4 .btn-lg,
.btn.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.step-content+.mt-4 .btn-primary,
.btn.btn-primary.btn-lg {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.step-content+.mt-4 .btn-primary:hover,
.btn.btn-primary.btn-lg:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.step-content+.mt-4 .btn-success,
.btn.btn-success.btn-lg {
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.step-content+.mt-4 .btn-success:hover,
.btn.btn-success.btn-lg:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Inspiration Cards - Enhanced */
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.inspiration-card {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.inspiration-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.inspiration-card.selected {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2), 0 12px 35px rgba(79, 70, 229, 0.25);
}

.inspiration-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.inspiration-meta {
    padding: 12px;
    background: linear-gradient(145deg, #f8fafc, #fff);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.inspiration-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Script Editor - Enhanced */
.script-tabs .nav-link {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
}

.script-tabs .nav-link.active {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
    border-bottom: 3px solid #4f46e5;
}

#scriptText {
    font-size: 1.05rem;
    line-height: 1.8;
    min-height: 200px;
}

/* Duration Buttons - Enhanced */
.btn-group .btn-outline-primary {
    border-width: 2px;
    padding: 1rem 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-group .btn-check:checked+.btn-outline-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: #4f46e5;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Voice Cards - Enhanced */
.voice-card {
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
}

.voice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.voice-card.border-primary {
    border-color: #4f46e5 !important;
    background: linear-gradient(145deg, #f5f3ff, #ede9fe) !important;
}

.voice-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    font-size: 1.25rem;
}

/* Review Summary - Enhanced Cards */
#reviewSummary {
    border-radius: 20px;
    padding: 2rem !important;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9) !important;
}

#reviewSummary .col-md-6,
#reviewSummary .col-12 {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

#reviewSummary strong {
    color: #4f46e5;
    font-weight: 700;
}

.edit-btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
}

/* Confirmation/Wait Screen Styles */
.confirmation-screen {
    text-align: center;
    padding: 3rem 2rem;
}

.confirmation-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseSuccess 2s infinite;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
}

.confirmation-icon i {
    font-size: 3.5rem;
    color: #fff;
}

.confirmation-icon.processing {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    animation: pulseProcessing 1.5s infinite;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.4);
}

@keyframes pulseSuccess {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(16, 185, 129, 0.5);
    }
}

@keyframes pulseProcessing {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.confirmation-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.confirmation-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* What Happens Next - Info Cards */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.next-step-card {
    background: linear-gradient(145deg, #fff, #f8fafc);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    border: 2px solid rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.next-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.next-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #a855f7);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

.next-step-card h6 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.next-step-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Summary Cards for Confirmation */
.summary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.summary-card {
    background: linear-gradient(145deg, #fff, #f8fafc);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.summary-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.summary-card-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.summary-card-icon i {
    color: #4f46e5;
    font-size: 1.25rem;
}

.summary-card-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.summary-card-value {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

/* Estimated Time Badge */
.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
}

.time-badge i {
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 767.98px) {
    .wizard-container {
        max-width: 100%;
        padding: 0 0.75rem;
    }

    .wizard-progress {
        margin-bottom: 3.5rem;
        padding: 0 5px;
        gap: 8px;
    }

    .step-dot {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.65rem;
        margin-top: 8px;
    }

    .step-content .card {
        padding: 1.25rem !important;
        border-radius: 18px;
    }

    .step-content h4 {
        font-size: 1.35rem;
    }

    .objective-tile,
    .platform-tile {
        padding: 1rem !important;
    }

    .objective-tile .rounded-circle {
        width: 50px;
        height: 50px;
    }

    .inspiration-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .inspiration-card img {
        height: 100px;
    }

    .step-content+.mt-4 .btn-lg,
    .btn.btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .step-content+.mt-4 {
        flex-direction: column-reverse;
    }

    .next-steps-grid {
        grid-template-columns: 1fr;
    }

    .summary-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .confirmation-icon {
        width: 100px;
        height: 100px;
    }

    .confirmation-icon i {
        font-size: 2.5rem;
    }

    .confirmation-title {
        font-size: 1.5rem;
    }

    .confirmation-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .summary-cards-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 10px !important;
        margin-bottom: 0.5rem;
    }
}

/* Animation for step content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading spinner for processing */
.processing-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(79, 70, 229, 0.2);
    border-radius: 50%;
    border-top-color: #4f46e5;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}