/* --- CSS Reset & Base Styles --- */
        :root {
            /* Updated Color Palette */
            --primary-color: #0A68FF; /* Vibrant Blue */
            --primary-dark: #0052CC;
            --primary-darker: #003E99;
            --secondary-color: #8B5CF6; /* Soft Purple */
            --secondary-dark: #7C3AED;

            --dark-color: #111827; /* Darker Gray */
            --medium-dark-color: #374151; /* Medium Gray */
            --text-color: #4B5563; /* Standard Text Gray */
            --text-light: #6B7280; /* Lighter Text Gray */
            --light-color: #F9FAFB; /* Very Light Gray Background */
            --border-color: #E5E7EB; /* Subtle Border */
            --white-color: #FFFFFF;
            --black-color: #000000;

            --header-height: 70px;
            --font-family: 'Inter', sans-serif;
            --border-radius-sm: 4px;
            --border-radius-md: 8px;
            --border-radius-lg: 12px;

             /* Shadows */
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
            --shadow-primary-btn: 0 4px 14px 0 rgba(10, 104, 255, 0.39);
        }

        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: var(--font-family);
            color: var(--text-color);
            line-height: 1.6;
            background-color: var(--white-color);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden; /* Prevent horizontal scroll */
        }

        a {
            text-decoration: none;
            color: var(--primary-color);
            transition: color 0.2s ease;
        }

        a:hover {
            color: var(--primary-dark);
        }

        ul {
            list-style: none;
        }

        h1, h2, h3, h4, h5, h6 {
            color: var(--dark-color);
            margin-bottom: 1rem;
            line-height: 1.3;
            font-weight: 600;
        }

        h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; }
        h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
        h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; }

        p {
            margin-bottom: 1rem;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: var(--border-radius-md);
        }

        .container {
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 20px;
        }

        section {
            padding: 80px 0;
            overflow: hidden;
        }

        .section-bg {
            background-color: var(--light-color);
            border-top: 1px solid var(--border-color);
             border-bottom: 1px solid var(--border-color);
        }

        .text-center {
            text-align: center;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-header h2 {
            margin-bottom: 1rem;
        }

        .section-header p {
            color: var(--text-light);
            max-width: 650px;
            margin: 0 auto;
            font-size: 1.1rem;
        }

        /* --- Enhanced Button Styles --- */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 12px 28px;
            border: 1px solid transparent;
            border-radius: var(--border-radius-md);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease-out;
            text-align: center;
            white-space: nowrap;
        }

        .btn:focus-visible {
            outline: 3px solid var(--primary-color);
            outline-offset: 2px;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: var(--white-color);
            box-shadow: var(--shadow-primary-btn);
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            color: var(--white-color);
            transform: translateY(-2px);
            box-shadow: 0 7px 18px 0 rgba(10, 104, 255, 0.45);
        }

        .btn-primary:active {
            background-color: var(--primary-darker);
            transform: translateY(0);
             box-shadow: var(--shadow-primary-btn);
        }
        .btn-primary:focus-visible {
             outline-color: var(--primary-dark);
        }


        .btn-secondary {
            background-color: var(--secondary-color);
            color: var(--white-color);
            box-shadow: var(--shadow-md);
        }

        .btn-secondary:hover {
            background-color: var(--secondary-dark);
            color: var(--white-color);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
         .btn-secondary:focus-visible {
             outline-color: var(--secondary-dark);
         }

        .btn-outline {
            background-color: var(--white-color);
            color: var(--primary-color);
            border-color: rgb(81, 81, 255);
             box-shadow: var(--shadow-sm);
        }

        .btn-outline:hover {
            background-color: var(--light-color);
            border-color: var(--primary-dark);
            color: var(--primary-dark);
             transform: translateY(-2px);
             box-shadow: var(--shadow-md);
        }
         .btn-outline:focus-visible {
             border-color: var(--primary-color);
             outline: none;
             box-shadow: 0 0 0 3px rgba(10, 104, 255, 0.3);
         }

         .btn-lg { /* Larger button variant if needed */
            padding: 14px 32px;
            font-size: 1.1rem;
         }


        /* --- Header --- */
        .header {
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px); /* Safari support */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--header-height);
            z-index: 1000;
            box-shadow: var(--shadow-sm);
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        .header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--dark-color);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .logo i {
             color: var(--primary-color);
        }
        .logo:hover {
             color: var(--dark-color);
        }

        /* Desktop Navigation */
        .main-nav {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .main-nav a {
            color: var(--medium-dark-color);
            font-weight: 500;
            padding: 8px 15px;
            border-radius: var(--border-radius-sm);
            transition: color 0.2s ease, background-color 0.2s ease;
            position: relative;
        }

        .main-nav a:not(.btn):hover {
             color: var(--primary-color);
             background-color: rgba(10, 104, 255, 0.05);
        }
         .main-nav a:not(.btn).active {
             color: var(--primary-color);
             font-weight: 600;
             background-color: rgba(10, 104, 255, 0.1);
         }

         /* Nav Button Styling (Desktop) */
         .main-nav .btn {
            margin-left: 15px;
            padding: 10px 22px; /* Slightly smaller padding for header button */
            /* Use btn-outline class in HTML for style */
         }

         /* Mobile Nav Toggle Button */
         .mobile-nav-toggle {
            display: none; /* Hidden on desktop */
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--dark-color);
            padding: 10px;
            z-index: 1100;
            background: none;
            border: none;
            line-height: 1; /* Ensure icon aligns properly */
         }
         .mobile-nav-toggle:focus-visible {
             outline: 2px solid var(--primary-color);
             outline-offset: 2px;
             border-radius: var(--border-radius-sm);
         }


        /* --- Hero Section --- */
        .hero {
            padding-top: calc(var(--header-height) + 80px);
            padding-bottom: 80px;
            background: linear-gradient(to bottom, var(--white-color) 0%, #EFF6FF 100%);
            display: flex;
            align-items: center;
            position: relative;
        }

        .hero .container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            align-items: center;
            gap: 60px;
        }

        .hero-content h1 {
            margin-bottom: 1.5rem;
        }
        .hero-content .sub-headline {
            font-size: 1.2rem;
            color: var(--text-light);
            margin-bottom: 2rem;
            max-width: 550px;
            line-height: 1.7;
        }

        .hero-content .cta-buttons {
             display: flex;
             flex-wrap: wrap;
             gap: 1rem;
             margin-top: 2.5rem; /* More space above buttons */
        }

        .hero-image {
            position: relative;
        }
        .hero-image img {
            box-shadow: var(--shadow-xl);
            border-radius: var(--border-radius-lg);
        }


        /* --- Features Section --- */
        .features .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .feature-item {
            background: var(--white-color);
            padding: 35px 30px;
            border-radius: var(--border-radius-lg);
            border: 1px solid var(--border-color);
            text-align: left;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
             box-shadow: var(--shadow-md);
        }

        .feature-item:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg);
        }

        .feature-item .icon {
            font-size: 1.8rem;
            color: var(--white-color);
            margin-bottom: 1.5rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            width: 60px;
            height: 60px;
            border-radius: var(--border-radius-md);
             box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .feature-item h3 {
            font-size: 1.3rem;
            margin-bottom: 0.75rem;
        }

        .feature-item p {
            color: var(--text-light);
            font-size: 0.95rem;
             margin-bottom: 0;
        }


        /* --- How It Work Section --- */
         .how-it-work .steps-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-top: 60px;
            position: relative;
            counter-reset: step-counter;
        }

         .step {
            text-align: center;
            position: relative;
            padding-top: 60px; /* More space for the number */
        }

        .step::before {
            counter-increment: step-counter;
            content: counter(step-counter);
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white-color);
            background-color: var(--secondary-color);
            width: 45px; /* Slightly larger */
            height: 45px;
            line-height: 45px;
            border-radius: 50%;
            z-index: 1;
            box-shadow: var(--shadow-md);
        }

        /* Optional: Line connecting steps (desktop only) */
        .step:not(:last-child)::after {
             content: '';
             position: absolute;
             top: 22.5px; /* Vertically center with the number */
             left: calc(50% + 35px); /* Start after number + gap */
             width: calc(100% - 70px); /* Span between numbers */
             height: 2px;
             background-color: var(--border-color);
             z-index: 0;
        }

        .step h3 {
            font-size: 1.25rem;
            margin-top: 1rem;
            margin-bottom: 0.5rem;
        }

        .step p {
            font-size: 0.95rem;
            color: var(--text-light);
            margin-bottom: 0;
        }


        /* --- Testimonials Section --- */
        .testimonials {
            background-color: var(--dark-color);
            color: var(--light-color);
        }

        .testimonials .section-header h2 {
            color: var(--white-color);
        }
        .testimonials .section-header p {
            color: #D1D5DB;
        }

        .testimonial-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .testimonial-card {
            background: var(--medium-dark-color);
            padding: 35px 30px; /* Consistent padding */
            border-radius: var(--border-radius-lg);
            border: 1px solid #4B5563;
        }

        .testimonial-card blockquote {
            font-style: normal;
            font-size: 1.05rem;
            line-height: 1.7;
            margin-bottom: 1.5rem;
            position: relative;
            padding-left: 40px; /* More space for quote icon */
            color: var(--light-color);
        }

        .testimonial-card blockquote::before {
            content: '\f10d';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 0;
            font-size: 1.6rem; /* Slightly larger */
            color: var(--secondary-color);
            opacity: 0.9;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .testimonial-author img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid var(--secondary-color);
        }

        .testimonial-author .author-info h4 {
            margin-bottom: 0.1rem;
            font-size: 1rem;
            color: var(--white-color);
            font-weight: 600;
        }

        .testimonial-author .author-info span {
            font-size: 0.9rem;
            color: #9CA3AF;
            display: block;
        }


        /* --- Pricing Section --- */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 50px;
            align-items: stretch; /* Make cards same height */
        }

        .pricing-plan {
            background: var(--white-color);
            padding: 40px;
            border-radius: var(--border-radius-lg);
            border: 1px solid var(--border-color);
            text-align: center;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
             box-shadow: var(--shadow-md);
        }

         .pricing-plan:hover {
            box-shadow: var(--shadow-xl);
            transform: translateY(-5px); /* Use translate instead of scale */
         }

        .pricing-plan.popular {
            border-color: var(--primary-color);
            border-width: 2px;
            position: relative;
            transform: scale(1.03); /* Keep scale for popular base */
            box-shadow: var(--shadow-lg); /* Slightly less intense shadow */
            z-index: 10;
        }
         .pricing-plan.popular:hover {
             transform: scale(1.03) translateY(-5px); /* Combine effects */
             box-shadow: var(--shadow-xl);
         }

        .pricing-plan.popular::before {
            content: 'Most Popular';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            color: var(--white-color);
            font-size: 0.8rem;
            padding: 6px 15px;
            border-radius: 15px;
            font-weight: 600;
            box-shadow: var(--shadow-sm);
            white-space: nowrap;
        }


        .pricing-plan h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--dark-color);
        }

        .pricing-plan .price {
            font-size: 2.8rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        .pricing-plan .price span {
            font-size: 1rem;
            font-weight: 500;
            color: var(--text-light);
            margin-left: 4px;
        }

        .pricing-plan .plan-description {
            color: var(--text-light);
            font-size: 0.95rem;
            margin-bottom: 2rem;
            min-height: 40px; /* Ensure consistent space */
        }

        .pricing-plan ul {
            text-align: left;
            margin-bottom: 2.5rem;
            flex-grow: 1; /* Pushes button down */
            padding-left: 0;
        }

        .pricing-plan ul li {
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-size: 0.95rem;
            color: var(--text-color); /* Feature text color */
        }

        .pricing-plan ul li i { /* Common icon styles */
            font-size: 1.1rem;
            width: 1.2em; /* Ensure icons align */
            text-align: center;
        }

        .pricing-plan ul li i.fa-check {
            color: var(--secondary-color);
        }
        .pricing-plan ul li i.fa-times {
            color: #EF4444;
        }

        .pricing-plan .btn {
            width: 100%;
            margin-top: auto; /* Stick to bottom */
        }


        /* --- CTA Section --- */
        .cta {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: var(--white-color);
            padding: 80px 0;
            text-align: center;
        }

        .cta h2 {
            color: var(--white-color);
            font-size: clamp(1.8rem, 4vw, 2.5rem);
            margin-bottom: 1rem;
        }

        .cta p {
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            font-size: 1.1rem;
        }

        .cta .btn {
             background-color: var(--white-color);
             color: var(--primary-color);
             padding: 14px 32px;
             font-size: 1.1rem;
             box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        }
         .cta .btn:hover {
             background-color: var(--light-color);
             color: var(--primary-dark);
             transform: translateY(-3px);
             box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
         }
         .cta .btn:focus-visible {
             outline-color: var(--white-color);
         }


        /* --- Footer --- */
        .footer {
            background-color: var(--dark-color);
            color: #9CA3AF;
            padding: 70px 0 30px 0; /* Slightly more top padding */
            font-size: 0.95rem;
        }

        .footer .container-grid {
             display: grid;
             grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
             gap: 40px 30px; /* Row and column gap */
             margin-bottom: 50px;
        }

        .footer-col .logo {
             color: var(--white-color);
             margin-bottom: 1.5rem;
             font-size: 1.6rem; /* Slightly smaller footer logo */
             display: inline-flex; /* Prevent taking full width */
        }
         .footer-col p {
             color: #D1D5DB;
              margin-bottom: 1.5rem;
              line-height: 1.7;
         }

        .footer-col h4 {
            color: var(--white-color);
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-col ul li {
            margin-bottom: 0.8rem;
        }

        .footer-col ul li a {
            color: #D1D5DB;
            transition: color 0.2s ease, padding-left 0.2s ease;
        }

        .footer-col ul li a:hover {
            color: var(--white-color);
            padding-left: 5px;
        }

         .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: var(--white-color);
            margin-right: 10px;
            transition: background-color 0.2s ease, transform 0.2s ease;
            font-size: 1.1rem;
            line-height: 1; /* Ensure vertical centering */
         }
         .social-links a:last-child {
            margin-right: 0;
         }
         .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
         }
         .social-links a:focus-visible {
             outline: 2px solid var(--primary-color);
             outline-offset: 2px;
         }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            margin-top: 40px; /* More space before bottom line */
            border-top: 1px solid var(--medium-dark-color);
            color: #9CA3AF;
        }


        /* --- Mobile Navigation Styles --- */
        @media (max-width: 992px) {
            .main-nav {
                /* Styles when mobile nav is closed (initial state) */
                display: none; /* Changed from flex */
                position: absolute;
                top: var(--header-height);
                left: 0;
                width: 100%;
                background-color: var(--white-color);
                box-shadow: var(--shadow-lg);
                padding: 20px 0;
                border-top: 1px solid var(--border-color);
                opacity: 0;
                visibility: hidden;
                transform: translateY(-10px);
                transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
                z-index: 999;
            }

            .main-nav.is-active { /* Styles when mobile nav is open */
                display: flex; /* Changed to flex */
                flex-direction: column;
                align-items: center; /* Center items vertically */
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }

            .main-nav a {
                padding: 12px 20px;
                 width: 100%;
                 text-align: center;
                 border-radius: 0;
            }
             .main-nav a:not(.btn):hover,
             .main-nav a:not(.btn).active {
                 background-color: rgba(10, 104, 255, 0.1);
                 color: var(--primary-color);
             }

            /* Mobile Nav Button Styling */
            .main-nav .btn {
                margin: 15px 0 0 0; /* Remove auto margins, rely on flex alignment */
                width: 80%;
                max-width: 300px; /* Max width for button */
                padding: 10px 22px; /* Adjusted padding to match desktop header button */
            }

            .mobile-nav-toggle {
                display: block;
            }
        }


        /* --- Responsive Design Adjustments --- */

        @media (max-width: 992px) {
             /* General adjustments for medium screens */
             .hero .container {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 40px;
             }
             .hero-content .sub-headline {
                 margin-left: auto;
                 margin-right: auto;
             }
             .hero-content .cta-buttons {
                 justify-content: center;
             }
             .hero-image {
                 order: -1; /* Image first on medium screens */
                 max-width: 500px;
                 margin: 0 auto 30px auto; /* Adjust margin */
             }

             .how-it-work .steps-container {
                 gap: 50px;
             }
             /* Hide horizontal connector line on medium screens and below */
             .step:not(:last-child)::after {
                 display: none;
             }
        }

        @media (max-width: 768px) {
            :root {
                --header-height: 65px;
            }
             html { font-size: 15px; }

            section { padding: 60px 0; }
            .section-header { margin-bottom: 40px; }
            .section-header p { font-size: 1rem; }


            .pricing-plan.popular {
                transform: scale(1); /* Disable base scale on mobile */
            }
            .pricing-plan:hover,
            .pricing-plan.popular:hover {
                transform: translateY(-5px); /* Consistent hover lift */
            }
            .pricing-plan.popular:hover {
                 transform: translateY(-5px); /* Override combined scale/translate */
            }


            .footer .container-grid {
                 grid-template-columns: 1fr;
                 text-align: center;
                 gap: 35px; /* Slightly increased gap when stacked */
             }
             .footer-col .logo,
             .footer-col p,
             .social-links {
                 margin-left: auto;
                 margin-right: auto;
                 text-align: center; /* Ensure centering */
             }
             .footer-col h4 {
                 padding-bottom: 0.2rem; /* Reduce padding under title */
             }
             .footer-col ul { text-align: center; }

        }

         @media (max-width: 576px) {
             h1 { font-size: 2rem; }
             h2 { font-size: 1.8rem; }
             h3 { font-size: 1.2rem; }

             .btn { padding: 10px 22px; font-size: 0.95rem; }
             .btn-lg { padding: 12px 28px; font-size: 1rem; } /* Adjust lg button for mobile */

             .hero-content .cta-buttons .btn {
                 width: 100%;
                 max-width: 300px;
                 justify-content: center; /* Center icon/text within button */
             }

             .feature-item { padding: 30px 20px; }
             .testimonial-card { padding: 30px 20px; }
             .pricing-plan { padding: 30px 25px; }
             .cta { padding: 60px 0; }
             .cta p { font-size: 1rem; }

             .footer-bottom { font-size: 0.9rem; padding: 25px 10px; margin-top: 20px;}
         }

        /* --- Modal Styles --- */
        .modal-overlay {
            display: none; /* Hidden by default */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
            z-index: 1040;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal {
            display: none; /* Hidden by default */
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9); /* Start slightly smaller */
            background-color: var(--white-color); /* Use light background */
            color: var(--text-color); /* Use standard text color */
            padding: 30px 40px;
            border-radius: var(--border-radius-lg); /* Use theme border radius */
            box-shadow: var(--shadow-lg); /* Use theme shadow */
            z-index: 1050;
            max-width: 500px;
            width: 90%;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
            text-align: center;
        }

        .modal-visible .modal-overlay {
            display: block;
            opacity: 1;
        }

        .modal-visible .modal {
            display: block;
            opacity: 1;
            transform: translate(-50%, -50%) scale(1); /* Scale to full size */
        }

        .modal-header {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color); /* Use theme border color */
        }

        .modal-close-btn {
            background: none;
            border: none;
            font-size: 1.8rem; /* Slightly smaller close button */
            font-weight: bold;
            color: var(--text-light); /* Lighter text color for close */
            cursor: pointer;
            line-height: 1;
            padding: 0 5px;
            transition: color 0.2s ease;
        }

        .modal-close-btn:hover {
            color: var(--dark-color); /* Darker color on hover */
        }

        .modal-body p {
            margin-bottom: 1rem;
            font-size: 1.1rem;
            color: var(--text-color); /* Standard text color */
        }

        .modal-body a {
            color: var(--primary-color); /* Use primary color for link */
            font-weight: bold;
            text-decoration: underline;
        }

        .modal-body a:hover {
            color: var(--primary-dark); /* Darker primary on hover */
        }