/* ===================================
   ATS Pal - Main Stylesheet (Complete & Final)
   Version: 3.5 - Sidebar Layout Fix
   =================================== */

/* --- 1. Global Settings & Variables --- */
:root {
    --color-primary: #1A3E6F;
    /* Dark Blue */
    --color-primary-rgb: 26, 62, 111;
    /* Dark Blue as RGB */
    --color-secondary: #E2B659;
    /* Gold/Yellow */
    --color-success: #28a745;
    /* Green for CTAs */
    --color-fail: #dc3545;
    /* Green for CTAs */
    --color-text: #333333;
    /* Dark Gray for text */
    --color-text-light: #555555;
    /* Lighter Gray */
    --color-background: #FFFFFF;
    --color-background-light: #F9FAFB;
    /* A slightly softer gray */
    --color-background-accent: #EDF1F7;
    /* Light Blue-Gray accent */
    --color-border: #EAEAEA;
    --font-family-base: 'Inter', Helvetica, Arial, sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* --- 2. Base & Typography --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
}

/* Hides all direct children of the body EXCEPT the loading overlay */
body.auth-loading>*:not(#loading-overlay) {
    visibility: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 50px;
}

.section-title-light {
    color: var(--color-background);
    margin-bottom: 20px;
}


/* --- 3. Reusable Components (Buttons, Badges) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #14325a;
    /* Darker blue */
    border-color: #14325a;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: #d3a442;
    border-color: #c89a3b;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.featured-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--color-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}


/* --- 4. Header & Navigation --- */
.header {
    background-color: var(--color-background);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo::after {
    content: 'ATS Pal';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0 auto;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-text-light);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 210px;
    /* Reserve space to prevent layout shift */
    justify-content: flex-end;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-email {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    /* Prevent long emails from breaking layout */
}

/* Hide auth container initially to prevent FOUC */
#primary-action-container {
    display: flex;
    /* Use flex to align items inside */
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#primary-action-container.loaded {
    opacity: 1;
}

.mobile-nav-toggle {
    display: none;
}


/* --- 5. General Section Styling --- */
section {
    padding: 40px 0;
    padding-bottom: 60px;

}

.page-hero-section {
    padding-top: 20px;
    padding-bottom: 10px;
}

.main-content-section {
    padding-top: 10px;
    padding-bottom: 20px;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}


/* --- 6. Homepage Specific Sections --- */
.hero-section {
    background-color: var(--color-background-accent);
    padding: 100px 0;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-trust-text {
    margin-top: 20px;
    color: var(--color-text-light);
    font-style: italic;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    border: 3px solid var(--color-secondary);
}

.step-title {
    margin-bottom: 10px;
}

.services-highlight-section {
    background-color: var(--color-background-light);
}

.service-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-card {
    background-color: var(--color-background);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--color-secondary);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.service-card.featured {
    border-left-color: var(--color-primary);
    transform: scale(1.05);
}

.service-card-title {
    margin-bottom: 15px;
}

.learn-more-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    background-color: var(--color-background-accent);
    border-left: 5px solid var(--color-primary);
    border-radius: var(--border-radius);
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primary);
    font-style: normal;
}

.final-cta-section {
    background-color: var(--color-primary);
    color: #fff;
}

.final-cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}


/* --- 7. Pricing & Services Page --- */
.pricing-section {
    background-color: var(--color-background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-plan {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.pricing-plan.featured {
    transform: scale(1.05);
    border: 2px solid var(--color-primary);
    position: relative;
    z-index: 10;
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: #fff;
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-header {
    min-height: 80px;
}

.plan-name {
    font-size: 1.75rem;
    color: var(--color-primary);
}

.plan-audience {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.price-currency {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.plan-credits {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 30px;
}

.plan-sub-credits {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.check-mark {
    color: var(--color-success);
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.2rem;
}

.faq-section {
    background-color: var(--color-background-accent);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item {
    background-color: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-secondary);
}

.faq-question {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--color-text-light);
}


/* --- 8. About & Contact Page Specifics --- */
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.mission-vision-section {
    background-color: var(--color-background-accent);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--color-primary);
    box-shadow: var(--box-shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-family: var(--font-family-base);
    font-size: 1rem;
}

.contact-info-container {
    background-color: var(--color-background-accent);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-info-item {
    margin-bottom: 30px;
}

.contact-info-item h3 {
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--color-text-light);
    line-height: 1.5;
}


/* Animated Processing Button */
@keyframes processing-dot {

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

    40% {
        transform: scale(1.0);
    }
}

.processing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: currentColor;
    border-radius: 50%;
    animation: processing-dot 1.4s infinite ease-in-out both;
}

.processing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.processing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

/* --- 9. Footer --- */
.footer {
    background-color: #11284a;
    color: #ccc;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-col-title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
}

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

.footer-copyright {
    border-top: 1px solid #4A6A9F;
    padding-top: 20px;
    font-size: 0.9rem;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    color: #ccc;
    /* Fallback color */
}

.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-secondary);
}

/* Adjust for responsive footer */
@media (max-width: 992px) {
    .social-icons {
        justify-content: center;
    }
}


/* --- 10. Responsive Design --- */
@media (max-width: 992px) {
    .nav-links {
        margin: 0;
    }

    /* Removed flex-wrap: wrap from main-nav to prevent wrapping on tablets */
    h1,
    .page-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .steps-container,
    .service-cards-container,
    .pricing-grid,
    .mission-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-card.featured,
    .pricing-plan.featured {
        transform: scale(1);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .plan-header,
    .plan-features {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-wrap: nowrap;
    }

    .nav-actions {
        min-width: 0;
        /* Let it shrink */
        gap: 8px;
        /* Reduce gap */
        margin-right: 10px;
    }

    #primary-action-container {
        gap: 8px;
        /* Match parent gap */
    }

    .nav-logo {
        flex-shrink: 0;
        /* Prevent logo from shrinking */
        margin-right: auto;
        /* Push other items to the right */
    }

    .nav-links {
        display: none;
    }

    .main-nav.nav-open .nav-links {
        display: flex;
        position: absolute;
        top: 70px;
        /* Position below header */
        right: 0;
        background: #fff;
        width: 100%;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .main-nav.nav-open .nav-links li {
        width: 100%;
        text-align: center;
    }

    .main-nav.nav-open .nav-links a {
        padding: 15px 0;
        display: block;
        width: 100%;
    }

    .main-nav.nav-open .nav-links .nav-separator {
        height: 1px;
        background-color: var(--color-border);
        margin: 10px 0;
        list-style: none;
    }

    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 24px;
        position: relative;
        z-index: 1001;
    }

    .mobile-nav-toggle span,
    .mobile-nav-toggle::before,
    .mobile-nav-toggle::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--color-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-nav-toggle::before {
        top: 0;
    }

    .mobile-nav-toggle span {
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-nav-toggle::after {
        bottom: 0;
    }

    .main-nav.nav-open .mobile-nav-toggle::before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .main-nav.nav-open .mobile-nav-toggle::after {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .main-nav.nav-open .mobile-nav-toggle span {
        opacity: 0;
    }

    h1,
    .page-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- 11. Testimonial Slider (v5 - Sliding Animation) --- */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    /* This is crucial for the sliding effect */
}

.testimonial-slides {
    display: flex;
    /* This allows slides to sit side-by-side */
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimonial-slide {
    width: 100%;
    /* Each slide takes up the full width of the container */
    flex-shrink: 0;
    /* Prevents slides from shrinking */
    box-sizing: border-box;
    padding: 40px 20px;
    /* Adjusted padding */
    background-color: var(--color-background-accent);
    border-left: 5px solid var(--color-primary);
    border-radius: var(--border-radius);
    text-align: center;
    /* display: none; and display: block are removed to allow the transform to work */
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primary);
    font-style: normal;
}

.testimonial-dots {
    text-align: center;
    margin-top: 25px;
    /* Space between slider and dots */
}

.testimonial-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.testimonial-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* --- 12. Profile/Registration Page Tabs & Forms --- */
.profile-container {
    background-color: var(--color-background);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 10px auto;
    position: relative;
    /* Added for loader overlay positioning */
    min-height: 50vh;
    /* Ensures container has enough height for the loader */
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-border);
}

.tab-link {
    background-color: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-grow: 1;
    text-align: center;
}

.tab-link:hover {
    color: var(--color-primary);
}

.tab-link.active {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

.tab-content {
    display: none;
    padding-top: 20px;
}

.tab-content.active {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-family: var(--font-family-base);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-background-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 62, 111, 0.2);
    /* var(--color-primary) with opacity */
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .error-message {
    color: #dc3545;
    /* Red for errors */
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
    /* Hidden by default */
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #dc3545;
}

.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.required-indicator {
    color: red;
    margin-left: 2px;
    font-weight: bold;
}

.form-field-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Responsive adjustments for forms */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-link {
        border-bottom: 1px solid var(--color-border);
    }

    .tab-link.active {
        border-bottom: 3px solid var(--color-primary);
    }

    /* --- Oracle Added Styles --- */
    .char-counter {
        text-align: right;
        font-size: 0.9rem;
        color: var(--color-text-light);
        margin-top: 5px;
    }

    .char-counter.limit-error {
        color: #dc3545;
    }

    .char-counter.limit-success {
        color: #28a745;
    }
}

/* --- 13. Dashboard Layout (v21.0 - Grid & Hover) --- */

/* By default, the sidebar is not displayed */
#left-sidebar {
    display: none;
}

/* These styles ONLY apply on desktop when the user is logged in */
@media (min-width: 769px) {
    :root {
        --sidebar-collapsed-width: 80px;
        --sidebar-expanded-width: 260px;
        --sidebar-transition-speed: 0.2s;
    }

    /* --- Sidebar Styling (Fixed Position) --- */
    body.dashboard-view #left-sidebar {
        display: flex;
        flex-direction: column;
        background-color: #111827;
        color: #d1d5db;
        overflow-x: hidden;
        white-space: nowrap;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: var(--sidebar-collapsed-width);
        transition: width var(--sidebar-transition-speed) ease-in-out;
        z-index: 2000;
    }

    body.dashboard-view.sidebar-expanded #left-sidebar {
        width: var(--sidebar-expanded-width);
    }

    /* --- Main Content Area Styling --- */
    body.dashboard-view main {
        margin-left: var(--sidebar-collapsed-width);
        transition: margin-left var(--sidebar-transition-speed) ease-in-out;
        padding: 20px 40px;
    }

    body.dashboard-view.sidebar-expanded main {
        margin-left: var(--sidebar-expanded-width);
    }

    /* Hide the original top-bar navigation for logged-in desktop users */
    body.dashboard-view .main-nav #public-nav-links,
    body.dashboard-view .main-nav #user-nav-links {
        display: none !important;
    }

    /* --- Styles for Sidebar Logo --- */
    .sidebar-header {
        padding: 0;
        display: flex;
        align-items: center;
    }

    .sidebar-logo-link {
        display: flex;
        align-items: center;
        gap: 20px;
        text-decoration: none;
        padding: 15px 25px;
        width: 100%;
        border-bottom: 1px solid #374151;
    }

    .sidebar-logo-img {
        height: 30px;
        width: 30px;
        flex-shrink: 0;
    }

    .sidebar-logo-text {
        font-size: 1.2rem;
        font-weight: bold;
        color: #fff;
        opacity: 0;
        transition: opacity var(--sidebar-transition-speed) ease-in-out;
    }

    body.sidebar-expanded .sidebar-logo-text {
        opacity: 1;
    }

    .sidebar-nav {
        list-style: none;
        padding: 0;
        margin: 20px 0;
        flex-grow: 1;
    }

    .sidebar-nav a {
        display: flex;
        align-items: center;
        padding: 15px 25px;
        color: #d1d5db;
        text-decoration: none;
        gap: 20px;
    }

    .sidebar-nav a:hover {
        background-color: #1f2937;
    }

    .sidebar-nav a.active {
        background-color: #374151;
        color: #fff;
    }

    .sidebar-nav a svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .sidebar-nav a span {
        opacity: 0;
        transition: opacity var(--sidebar-transition-speed) ease-in-out;
    }

    body.sidebar-expanded .sidebar-nav a span {
        opacity: 1;
    }

    .sidebar-nav .nav-separator {
        height: 1px;
        background-color: #374151;
        margin: 10px 25px;
        list-style: none;
        margin-top: auto;
    }

    #logout-sidebar-item {
        /* No styles needed here anymore */
    }

    /* Focused view - hide header/footer */
    body.dashboard-view .header,
    body.dashboard-view .footer {
        display: none;
    }
}

/* Utility class to hide menus. !important ensures it overrides other display rules. */
.nav-hidden {
    display: none !important;
}

/* ================================================
   LOADING OVERLAY (Restored)
   ================================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Allow clicks through when invisible */
}

.loading-overlay.visible {
    opacity: 1;
    pointer-events: auto;
    /* Block clicks when visible */
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===============================================
   Oracle Added: Focused Dashboard View
   =============================================== */
/* Hides the standard header and footer when the dashboard sidebar is active on desktop */
@media (min-width: 769px) {

    body.dashboard-view .header,
    body.dashboard-view .footer {
        display: none;
    }

    /* Adjust the grid to remove the header and footer rows */
    body.dashboard-view {
        grid-template-rows: 1fr;
        /* Main Content only */
        grid-template-areas:
            "sidebar main";
        min-height: 100vh;
    }
}

/* --- Info Icon & Modal Styles --- */
.info-icon {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    color: #007fff;
    transition: color 0.2s ease-in-out;
    vertical-align: middle;
}

.info-icon:hover {
    color: var(--color-primary);
}

/* ORACLE ADDED: Style for the new window link icon */
.new-window-link {
    display: inline-block;
    margin-left: 8px;
    color: #868e96;
    /* Same as info-icon */
    vertical-align: middle;
    transition: color 0.2s ease-in-out;
}

.new-window-link:hover {
    color: var(--color-primary);
}

/* END ORACLE ADDED */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.modal-open {
    overflow: hidden;
    /* Prevent background scrolling */
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

body.modal-open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #000;
}

.modal-close-for-text-btn {
    border: none;
}

.modal-close-for-text-btn:hover {
    border: none;
}

.modal-body .tooltip-mode-section {
    /* Re-using old classes for content */
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-body .tooltip-mode-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.modal-body h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.modal-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.modal-body .tooltip-subsection {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    padding: 15px;
    background-color: var(--color-background-light);
    border-radius: 5px;
}

.modal-body .tooltip-subsection h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 4px 0;
}

.modal-body .tooltip-section-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.modal-body .tooltip-section-icon.consideration {
    color: #fd7e14;
}

.modal-body .tooltip-section-icon.best-for {
    color: #20c997;
}

.modal-body .tooltip-section-icon.one-line-help {
    color: #0d6efd;
}

/* --- Modal Tab Styles (NEW) --- */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 20px;
}

.modal-tab-link {
    background-color: transparent;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-grow: 1;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.modal-tab-link:hover {
    color: var(--color-primary);
}

.modal-tab-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.modal-tab-content {
    display: none;
    padding-top: 10px;
}

.modal-tab-content.active {
    display: block;
}

/* --- Oracle Added: Global Mobile Modal Adjustments --- */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px 15px;
        /* Reduce padding for more content space */
        max-height: 95vh;
        /* Allow a bit more vertical space */
    }

    .modal-header {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
        /* Make header text slightly smaller */
    }

    .modal-body p {
        font-size: 0.95rem;
        /* Make body text slightly smaller */
    }

    .modal-examples {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===============================================
   Oracle Added: Styles for Product Page Tabs & Table
   =============================================== */

/* --- Tab Navigation Styles --- */
.service-mode-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    overflow: hidden;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background-color: #e9ecef;
}

.tab-button {
    padding: 15px 30px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.tab-button.active {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.tab-button:focus {
    outline: none;
}

/* Overriding existing .tab-content to add animation */
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Enhanced Comparison Table Styles --- */
.comparison-section {
    padding: 80px 0;
    background-color: var(--color-background-light);
    display: none;
    /* Hide by default */
    animation: fadeIn 0.5s;
}

.comparison-section.active {
    display: block;
    /* Show when active */
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th,
.table-container td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.table-container td:first-child,
.table-container th:first-child {
    text-align: left;
    font-weight: 600;
}

.table-container thead th {
    background-color: var(--color-background-accent);
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--color-border);
}

.table-container tbody tr:last-child td {
    border-bottom: 0;
}

.table-section-header th {
    background-color: var(--color-background-accent);
    color: var(--color-primary);
    font-size: 1.2rem;
    text-align: left !important;
    padding: 12px 20px;
    border-top: 2px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
}

.feature-icon {
    color: var(--color-success);
    font-size: 1.5rem;
    font-weight: bold;
}

.feature-fail-icon {
    color: var(--color-fail);
    font-size: 1.5rem;
    font-weight: bold;
}

.feature-value {
    font-weight: 500;
    color: var(--color-text);
    font-size: 1rem;
}

.feature-value .primary-offer {
    display: block;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1em;
}

.feature-value .secondary-offer {
    display: block;
    font-size: 0.9em;
    color: var(--color-text-light);
    margin-top: 4px;
}

.feature-value .value-comparison {
    display: block;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--color-success);
    margin-top: 6px;
}

/* --- Responsive for New Components --- */
@media (max-width: 768px) {
    .service-mode-selector {
        flex-direction: column;
        border-radius: 12px;
    }

    .tab-button {
        border-radius: 0;
    }
}

/* ===============================================
   Oracle Added: Styles for Purchase Confirmation Modal
   =============================================== */

.modal-body .summary-list {
    list-style: none;
    padding: 15px;
    background-color: var(--color-background-light);
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 1px solid var(--color-border);
}

.modal-body .summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.modal-body .summary-list li:last-child {
    border-bottom: none;
}

.modal-body .summary-list li strong {
    color: var(--color-primary);
}

.promo-section {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    /* Allows wrapping on small screens if needed */
}

.promo-section label {
    font-weight: 600;
    flex-shrink: 0;
    /* Prevents the label from shrinking */
}

.promo-input-group {
    display: flex;
    gap: 10px;
    flex-grow: 1;
}

.promo-input-group input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 1rem;
}

.promo-input-group .btn-small {
    flex-shrink: 0;
}

.promo-section .error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 8px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* ===============================================
   Oracle Added: Styles for Services Page
   =============================================== */

/* --- Intro Section --- */
.intro-section {
    padding-top: 20px;
    padding-bottom: 60px;
    background-color: var(--color-background-light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.intro-card {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.intro-card.free-trial-card {
    border-left: 5px solid var(--color-secondary);
}

.intro-card.support-card {
    border-left: 5px solid var(--color-primary);
}

.intro-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.intro-card p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.intro-card .btn {
    margin-top: auto;
}

/* --- Commitment Banner --- */
.commitment-banner-section {
    background-color: var(--color-primary);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.commitment-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.commitment-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: .95;
    line-height: 1.7;
}

/* --- Responsive for Intro Grid --- */
@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   14. Profile Tab Loader
   =============================================== */
.tab-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.tab-loader-overlay.visible {
    visibility: visible;
    opacity: 1;
}

/* Oracle Added: Center the Lottie animation within the loading overlay */
.loading-overlay lottie-player {
    width: 250px;
    height: 250px;
}


/* --- 15. Sidebar User Info --- */
.sidebar-user-info {
    padding: 15px 25px;
}

.sidebar-user-info__details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    overflow: hidden;
}

.sidebar-user-info__name {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info__email {
    font-size: 0.8rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- 16. Sidebar User Photo --- */
.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-user-info__photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #374151;
    /* Placeholder background */
}


/* --- 17. Unwritten Rules Section --- */
.unwritten-rules-section {
    background-color: var(--color-background-accent);
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.rule-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--color-secondary);
    box-shadow: var(--box-shadow);
}

.rule-title {
    margin-bottom: 30px;
    text-align: center;
}

.rule-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-description {
    color: var(--color-text-light);
}

.rules-summary {
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 18. Mobile Menu User Info --- */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    /*border-bottom: 1px solid var(--color-border);*/
}

.mobile-user-info__photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #e9ecef;
    /* Placeholder */
    margin-right: 10px;
}

.mobile-user-info__name {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* ======================================================
   19. NEW INDEX PAGE STYLES (SCOPED & CONSOLIDATED)
   These styles ONLY apply to <body class="homepage-new">
   ====================================================== */

.homepage-new {
    --primary-color: #d4af37;
    --dark-blue: #0d1b2a;
    --medium-blue: #1b263b;
    --medium-blue-light: #2a3b50;
    --text-color: #e0e1dd;
    --background-color: #F0F4F8;
    --white-color: #fff;
    --dark-text: #212529;
    --success-green: #27ae60;
    --danger-red: #c0392b;
}

/* --- Global Overrides for New Homepage ONLY --- */
.homepage-new {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--dark-text);
    line-height: 1.7;
    margin: 0;
}

/* --- Scoped Container & Typography --- */
.homepage-new main .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.homepage-new main section {
    padding: 70px 0;
    text-align: center;
}

.homepage-new main h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    color: var(--text-color);
}

.homepage-new main h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
}

.homepage-new main p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 20px;
}

.homepage-new main .section-subtitle {
    opacity: 0.8;
    max-width: 800px;
}

/* 
 *  ORACLE FIX: The key change is here. 
 *  By adding 'main', this rule now ONLY targets .btn-primary buttons 
 *  that are inside the <main> content of the new homepage.
 *  It will NOT affect the login button in the <header>.
*/
.homepage-new main .btn-primary {
    background-color: var(--primary-color) !important;
    color: var(--dark-blue) !important;
}

.homepage-new main .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* --- Section-Specific Backgrounds (Alternating Pattern) --- */
.homepage-new .hero-section,
.homepage-new .guarantee-section {
    background-color: var(--dark-blue);
    color: var(--text-color);
}

/* Light Sections (White) */
.homepage-new .how-it-works-section,
.homepage-new .roadmap-section,
.homepage-new .visual-proof-section {
    background-color: var(--white-color);
}

/* Dark Sections (Light Gray) */
.homepage-new .rules-section,
.homepage-new .human-element-section {
    background-color: var(--background-color);
}

.homepage-new .final-cta-section {
    background-color: var(--primary-color);
}

/* All component styles are implicitly scoped because they are only used in the main content */
.homepage-new .analysis-widget {
    background-color: var(--medium-blue-light);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    max-width: 800px;
    margin: 40px auto 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.homepage-new .drop-zone {
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 50px;
    margin-bottom: 25px;
    /* ORACLE: Reverted to original margin for the container */
    background-color: var(--dark-blue);
    cursor: pointer;
    /* Indicate it's clickable */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* ORACLE: Added visual feedback for drag-over event */
.homepage-new .drop-zone.drag-over {
    background-color: var(--medium-blue);
    border-color: var(--white-color);
}

/* ORACLE: Applied user-requested margin to the text element INSIDE the drop-zone */
.homepage-new .drop-zone p {
    margin: 10px auto;
    /* 10px top/bottom, centered horizontally */
}

.homepage-new .drop-zone .mobile-text {
    display: none;
}

/* ORACLE: New component for social proof section */
.homepage-new .social-proof {
    margin-top: 50px;
    /* This margin now correctly separates the whole block from the analysis widget */
}

.homepage-new .social-proof__text {
    margin-bottom: 15px;
    /* Reduced margin to bring text closer to logos */
    font-size: 0.9rem;
    opacity: 0.7;
}

.homepage-new .social-proof__logo-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.homepage-new .social-proof__logo-bar img {
    height: 60px;
}

/* ... (rest of the component styles for steps, rules, roadmap, etc. remain the same) ... */

.homepage-new .steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.homepage-new .step .step-icon {
    width: 50px;
    height: 50px;
    background-color: var(--dark-blue);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 800;
}

.homepage-new .step h3 {
    font-size: 1.3rem;
}

.homepage-new .step p {
    font-size: 1rem;
}

.homepage-new .rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.homepage-new .rule-card {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.homepage-new .rule-card h3 {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.homepage-new .rule-stat {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.homepage-new .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
}

.homepage-new .stat-description {
    margin: 0;
}

.homepage-new .before-after-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.homepage-new .resume-box {
    width: 45%;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage-new .resume-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.homepage-new .score-display {
    font-weight: bold;
    margin-bottom: 15px;
}

.homepage-new .score-before {
    color: var(--danger-red);
}

.homepage-new .score-after {
    color: var(--success-green);
}

.homepage-new .resume-placeholder {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.homepage-new .resume-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-new .roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.homepage-new .roadmap-step {
    background-color: var(--white-color);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.homepage-new .roadmap-step .step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-new .roadmap-step .step-icon img {
    width: 40px;
    height: 40px;
}

.homepage-new .human-element-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
    align-items: center;
    text-align: left;
}

.homepage-new .element-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.homepage-new .guarantee-box {
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--medium-blue);
}

.homepage-new .guarantee-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.homepage-new .guarantee-box h2 {
    color: white;
}

.homepage-new .guarantee-box strong {
    color: var(--primary-color);
    font-weight: 800;
}

.homepage-new .btn-cta-final {
    background-color: var(--dark-blue);
    color: white;
}

.homepage-new .final-cta-section p {
    color: var(--dark-text);
}

.homepage-new .final-cta-section h2 {
    color: var(--dark-blue);
}

/* --- Responsive Styles for New Homepage --- */
@media (max-width: 768px) {
    .homepage-new main h1 {
        font-size: 2.5rem;
    }

    .homepage-new main h2 {
        font-size: 2.1rem;
    }

    .homepage-new main section {
        padding: 60px 0;
    }

    .homepage-new .analysis-widget {
        padding: 30px 20px;
    }

    .homepage-new .drop-zone {
        padding: 40px 20px;
        font-size: 1rem;
    }

    .homepage-new .drop-zone .desktop-text {
        display: none;
    }

    .homepage-new .drop-zone .mobile-text {
        display: inline;
    }

    .homepage-new .steps-container,
    .homepage-new .rules-grid,
    .homepage-new .roadmap-grid,
    .homepage-new .human-element-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .homepage-new .before-after-container {
        flex-direction: column;
        gap: 40px;
    }

    .homepage-new .resume-box {
        width: 100%;
        margin: 0;
    }
}

/* ORACLE: Style for analysis widget title from new-index.html */
.analysis-widget__title {
    font-size: 1.5rem;
    /* Standard h3 size */
    font-weight: 600;
    /* Common weight for subtitles */
    margin-bottom: 20px;
    /* Spacing from the element below */
    color: #e0e1dd;
    /* Inherited color from .hero-section in new-index.html */
    line-height: 1.4;
}

/* --- Product Confirmation Modal (Main Branch Restoration) --- */
.confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Slightly darker */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    /* Modern touch from main */
}

.confirmation-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.confirmation-modal {
    background-color: #fff;
    width: 90%;
    max-width: 480px;
    /* Refined width */
    border-radius: 16px;
    /* Smoother radius */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    /* Subtle scale effect */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
}