        :root {
            --primary: #274c77;
            --secondary: #6096ba;
            --accent: #f1c40f;
            --light: #f8f9fa;
            --dark: #2c3e50;
            --success: #27ae60;
            --danger: #e74c3c;
            --warning: #f39c12;
            --info: #2980b9;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            --border-radius: 12px;
            --contract-bg: #fffdf7;
            --contract-border: #e0d6b8;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
        }

        body {
            background: url('/theme/image/background.svg') no-repeat center center fixed;
            background-color: #f0f3fb;
            background-size: cover;
            color: var(--dark);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            padding-top: 70px;
        }

        .container {
            max-width: 1300px;
            margin: 0 auto;
            padding: 20px;
        }

        .header-cont {
            background: linear-gradient(135deg, var(--primary), #34495e);
            color: white;
            padding: 2.5rem 0;
            text-align: center;
            border-radius: var(--border-radius);
            margin-bottom: 2.5rem;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
            border-bottom: 4px solid var(--accent);
        }

        .header-cont::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg, var(--accent), #f39c12, var(--accent));
        }

        .gold-text {
            background: linear-gradient(to right, #CFB53B, #F5E7A1, #CFB53B);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            font-weight: 800;
            letter-spacing: 1px;
            font-size: 2.8rem;
        }

        h1 {
            font-size: 2.8rem;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 1.5rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .ad-container {
            border-radius: var(--border-radius);
            margin: 20px auto;
            text-align: center;
            box-shadow: var(--shadow);
            border: 1px dashed #eee;
            align-items: center;
            justify-content: center;
        }

        .app-container {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            margin-bottom: 30px;
        }

        .form-section {
            flex: 1;
            min-width: 320px;
            background: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--shadow);
            position: relative;
            border: 1px solid #e0e0e0;
        }

        .preview-section {
            flex: 1;
            min-width: 320px;
            background: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            border: 1px solid #e0e0e0;
        }

        .section-title {
            font-size: 1.4rem;
            margin-bottom: 1.5rem;
            color: var(--primary);
            border-bottom: 2px solid var(--accent);
            padding-bottom: 0.7rem;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
        }
        
        .section-title h2 {
            text-align: left;
        }

        .section-title i {
            color: var(--accent);
            font-size: 1.3rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        label {
            display: block;
            margin-bottom: 0.6rem;
            font-weight: 600;
            color: var(--primary);
            font-size: 0.95rem;
        }

        input, select, textarea {
            width: 100%;
            padding: 0.9rem 1rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            transition: var(--transition);
            background: #f9f9f9;
        }

        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
            background: white;
        }

        .form-row {
            display: flex;
            gap: 20px;
        }

        .form-row .form-group {
            flex: 1;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 0.9rem 1.8rem;
            background: var(--secondary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: var(--transition);
            text-align: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .btn:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-accent {
            background: var(--accent);
            color: var(--dark);
        }

        .btn-accent:hover {
            background: #f39c12;
        }

        .btn-success {
            background: var(--success);
        }

        .btn-success:hover {
            background: #219955;
        }

        .btn-danger {
            background: var(--danger);
        }

        .btn-danger:hover {
            background: #c0392b;
        }

        .btn-group {
            display: flex;
            gap: 12px;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }

        .contract-preview {
            flex: 1;
            border: 1px solid var(--contract-border);
            border-radius: var(--border-radius);
            padding: 0;
            overflow: hidden;
            background: var(--contract-bg);
            margin-bottom: 1.5rem;
            position: relative;
            min-height: 600px;
            box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
        }

        .contract-content {
            height: 100%;
            padding: 2rem;
            position: relative;
            overflow-y: auto;
            font-size: 0.95rem;
        }

        .contract-header {
            text-align: center;
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 2px solid var(--contract-border);
            position: relative;
        }

        .contract-header::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 25%;
            right: 25%;
            height: 3px;
            background: var(--accent);
        }

        .contract-title {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
            color: var(--primary);
            font-weight: 700;
        }

        .contract-type {
            font-size: 1rem;
            color: #7f8c8d;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 500;
        }

        .contract-body {
            line-height: 1.7;
        }

        .contract-section {
            margin-bottom: 1.8rem;
            position: relative;
            padding-left: 20px;
        }

        .contract-section::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(to bottom, var(--accent), var(--secondary));
            border-radius: 2px;
        }

        .section-heading {
            font-size: 1.2rem;
            color: var(--primary);
            margin-bottom: 0.8rem;
            border-bottom: 1px solid #eee;
            padding-bottom: 0.5rem;
            font-weight: 600;
        }

        .signature-area {
            margin-top: 3rem;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
        }

        .signature-box {
            flex: 1;
            min-width: 200px;
            margin-top: 1.5rem;
        }

        .signature-line {
            border-top: 1px solid #333;
            margin-top: 60px;
            text-align: center;
            padding-top: 8px;
            position: relative;
        }

        .signature-pad {
            border: 1px dashed #ccc;
            border-radius: 8px;
            height: 120px;
            margin-top: 10px;
            background: white;
            cursor: crosshair;
            position: relative;
            overflow: hidden;
            touch-action: none;
        }

        .signature-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .signature-clear {
            background: #f1f1f1;
            border: none;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
        }

        .signature-toggle {
            display: flex;
            align-items: center;
            margin-top: 15px;
        }

        .loading-bar {
            height: 5px;
            background: var(--light);
            border-radius: 3px;
            overflow: hidden;
            margin: 1.5rem 0;
            display: none;
            position: relative;
        }

        .loading-progress {
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, var(--accent), var(--secondary));
            transition: width 0.5s ease;
            border-radius: 3px;
        }

        .loading-progress::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, 
                            transparent, 
                            rgba(255, 255, 255, 0.5), 
                            transparent);
            animation: shimmer 1.5s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .template-selector {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 2rem;
        }

        .template-card {
            background: white;
            border-radius: 10px;
            padding: 1.5rem 1rem;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid transparent;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }

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

        .template-card.active {
            border-color: var(--accent);
            background: #f9f9f9;
        }

        .template-card.active::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 30px 30px 0;
            border-color: transparent var(--accent) transparent transparent;
        }

        .template-card.active::after {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            top: 3px;
            right: 3px;
            color: white;
            font-size: 0.8rem;
        }

        .template-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--secondary);
            background: rgba(52, 152, 219, 0.1);
            width: 70px;
            height: 70px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .template-name {
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--primary);
        }

        .template-desc {
            font-size: 0.85rem;
            color: #7f8c8d;
            line-height: 1.5;
        }

        .clause-library {
            margin-top: 2rem;
            border-top: 1px solid #eee;
            padding-top: 1.5rem;
        }

        .clause-item {
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
            border-left: 4px solid transparent;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
        }

        .clause-item:hover {
            background: #f1f5f9;
            border-left-color: var(--secondary);
            transform: translateX(5px);
        }

        .clause-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .clause-title i {
            color: var(--secondary);
            font-size: 0.9rem;
        }

        .clause-text {
            font-size: 0.9rem;
            color: #555;
            line-height: 1.6;
        }

        .export-options {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 1.5rem;
        }

        .export-btn {
            flex: 1;
            min-width: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 0.9rem;
            background: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 600;
            color: var(--dark);
        }

        .export-btn:hover {
            background: #e9ecef;
            border-color: #adb5bd;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .export-btn i {
            font-size: 1.3rem;
        }

        .toast {
            position: fixed;
            bottom: 25px;
            right: 25px;
            background: var(--primary);
            color: white;
            padding: 1.2rem 1.8rem;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 12px;
            max-width: 400px;
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        .toast i {
            font-size: 1.5rem;
        }

        .toast.success i {
            color: var(--success);
        }

        .toast.error i {
            color: var(--danger);
        }

        .toast.warning i {
            color: var(--warning);
        }

        /* Watermark effect for preview */
        .watermark {
            position: absolute;
            opacity: 0.03;
            font-size: 18rem;
            font-weight: bold;
            color: var(--secondary);
            z-index: 0;
            transform: rotate(-30deg);
            pointer-events: none;
            white-space: nowrap;
            top: 20%;
            left: 0;
            right: 0;
            text-align: center;
            user-select: none;
            font-family: 'Times New Roman', serif;
        }

        /* Animation for generating effect */
        @keyframes pulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }

        .generating-text {
            animation: pulse 1.5s infinite;
            color: var(--secondary);
            font-style: italic;
            text-align: center;
            margin-top: 40%;
            font-size: 1.2rem;
        }

        /* Tooltip styles */
        .tooltip {
            position: relative;
            display: inline-block;
            cursor: help;
            margin-left: 5px;
        }

        .tooltip i {
            color: var(--secondary);
            font-size: 0.9rem;
        }

        .tooltip-text {
            visibility: hidden;
            width: 250px;
            background-color: var(--dark);
            color: #fff;
            text-align: left;
            border-radius: 8px;
            padding: 0.8rem 1rem;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.9rem;
            font-weight: normal;
            line-height: 1.5;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: var(--dark) transparent transparent transparent;
        }

        .tooltip:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

        /* Advanced toggle switch */
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
            margin-left: 10px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 26px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--success);
        }

        input:checked + .slider:before {
            transform: translateX(24px);
        }

        /* Checkbox styling */
        .checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 1rem;
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            position: relative;
            padding-left: 35px;
            cursor: pointer;
            user-select: none;
        }

        .checkbox-container input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
        }

        .checkmark {
            position: absolute;
            top: 0;
            left: 0;
            height: 22px;
            width: 22px;
            background-color: #f1f1f1;
            border-radius: 5px;
            transition: var(--transition);
            border: 1px solid #ddd;
        }

        .checkbox-container:hover input ~ .checkmark {
            background-color: #e1e1e1;
        }

        .checkbox-container input:checked ~ .checkmark {
            background-color: var(--success);
            border-color: var(--success);
        }

        .checkmark:after {
            content: "";
            position: absolute;
            display: none;
        }

        .checkbox-container input:checked ~ .checkmark:after {
            display: block;
        }

        .checkbox-container .checkmark:after {
            left: 7px;
            top: 3px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 3px 3px 0;
            transform: rotate(45deg);
        }

        /* Signature canvas */
        .signature-canvas {
            border: 1px dashed #ccc;
            border-radius: 8px;
            width: 100%;
            height: 120px;
            background: white;
            cursor: crosshair;
            touch-action: none;
        }

        /* Responsive adjustments */
        @media (max-width: 1024px) {
            .template-selector {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }
            
            .contract-content {
                font-size: 0.9rem;
            }
            
            .contract-title {
                font-size: 1.6rem;
            }
            
            .section-heading {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 768px) {
            .app-container {
                flex-direction: column;
            }
            
            .form-row {
                flex-direction: column;
                gap: 0;
            }
            
            .signature-area {
                flex-direction: column;
                gap: 2rem;
            }
            
            .signature-line {
                width: 100%;
            }

            .gold-text {
                font-size: 2.2rem;
            }

            h1 {
                font-size: 2rem;
            }

            .export-btn {
                min-width: 100%;
            }
            
            .contract-content {
                padding: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 15px;
            }

            .header-cont {
                padding: 1.5rem 0;
            }

            .gold-text {
                font-size: 1.8rem;
            }

            h1 {
                font-size: 1.6rem;
            }

            .subtitle {
                font-size: 1rem;
            }

            .form-section, .preview-section {
                padding: 1.5rem;
            }

            .template-selector {
                grid-template-columns: 1fr;
            }

            .watermark {
                font-size: 12rem;
            }

            .toast {
                max-width: 90%;
                left: 5%;
                right: 5%;
                transform: translateY(100px) translateX(0);
            }

            .toast.show {
                transform: translateY(0) translateX(0);
            }
            
            .contract-content {
                font-size: 0.85rem;
                padding: 1rem;
            }
        }

        /* Contract decorative elements */
        .contract-corner {
            position: absolute;
            width: 50px;
            height: 50px;
            border: 2px solid var(--contract-border);
        }

        .corner-tl {
            top: 0;
            left: 0;
            border-right: none;
            border-bottom: none;
            border-radius: 12px 0 0 0;
        }

        .corner-tr {
            top: 0;
            right: 0;
            border-left: none;
            border-bottom: none;
            border-radius: 0 12px 0 0;
        }

        .corner-bl {
            bottom: 0;
            left: 0;
            border-right: none;
            border-top: none;
            border-radius: 0 0 0 12px;
        }

        .corner-br {
            bottom: 0;
            right: 0;
            border-left: none;
            border-top: none;
            border-radius: 0 0 12px 0;
        }

        /* Floating action button 
         {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: var(--secondary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            z-index: 100;
            transition: var(--transition);
        }

        .fab:hover {
            transform: translateY(-5px) scale(1.05);
            background: #2980b9;
        }*/

        /* Print styles */
        @media print {
            body * {
                visibility: hidden;
            }
            .contract-preview, .contract-preview * {
                visibility: visible;
            }
            .contract-preview {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: auto;
                border: none;
                box-shadow: none;
                background: white;
            }
            .watermark {
                opacity: 0.1;
            }
            .no-print {
                display: none !important;
            }
        }
        
        /* Ad modal styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            background: white;
            border-radius: var(--border-radius);
            width: auto;
            height: auto;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        
        .modal-title {
            font-size: 1.2rem;
            margin-bottom: 1.1rem;
            color: var(--primary);
        }
        
        .modal-ad-container {
            margin: 2rem 0;
            
            min-height: 400px;
            align-items: center;
            justify-content: center;
        }
        
        .modal-timer {
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
            color: var(--secondary);
        }
        
        .modal-continue {
            background: var(--success);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            opacity: 0.5;
            pointer-events: none;
        }
        
        .modal-continue.active {
            opacity: 1;
            pointer-events: all;
        }
        
        .modal-continue:hover {
            background: #219955;
            transform: translateY(-2px);
        }
 
/* Base Styles */
.cg-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

.cg-main-heading {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
}

.cg-section-heading {
    font-size: 2rem;
    color: #2c3e50;
    margin: 3rem 0 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.cg-section-heading:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f1c40f, #f39c12);
    border-radius: 2px;
}

.cg-section-subheading {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Intro Section */
.cg-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.cg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 3rem 0;
}

.cg-stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.cg-stat-card:hover {
    transform: translateY(-5px);
}

.cg-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.cg-stat-label {
    font-size: 1rem;
    color: #7f8c8d;
}

/* Features Section */
.cg-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.cg-feature-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.cg-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.cg-feature-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.cg-feature-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cg-feature-desc {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Redesigned Templates Section (Mobile-First) */
.cg-responsive-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 2rem 0;
}

.cg-table-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cg-table-card:hover {
    transform: translateY(-3px);
}

.cg-table-card-header {
    background: #2c3e50;
    color: white;
    padding: 1.2rem 1.5rem;
    position: relative;
}

.cg-table-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.cg-table-badge {
    position: absolute;
    top: 10px;
    right: 20px;
    background: #f1c40f;
    color: #2c3e50;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.cg-table-card-body {
    padding: 1.5rem;
}

.cg-table-row {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f1f1;
}

.cg-table-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cg-row-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 120px;
    margin-right: 15px;
}

.cg-row-value {
    color: #555;
    flex: 1;
}

/* Comparison Section */
.cg-comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 2rem 0;
}

.cg-comparison-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cg-comp-header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.cg-comp-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.cg-comp-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1c40f;
}

.cg-comp-features {
    padding: 1.5rem;
    flex: 1;
}

.cg-comp-features li {
    margin-bottom: 0.8rem;
    list-style: none;
    display: flex;
    align-items: flex-start;
}

.cg-comp-features i {
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.fa-check-circle {
    color: #27ae60;
}

.fa-times-circle {
    color: #e74c3c;
}

.cg-comp-cta {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.cg-btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.cg-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* How It Works Section */
.cg-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.cg-step-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    border-top: 4px solid #3498db;
    display: flex;
    flex-direction: column;
}

.cg-step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.cg-step-content {
    flex: 1;
}

.cg-step-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.cg-step-desc {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.cg-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.cg-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.cg-faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: #f8f9fa;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.cg-faq-question:hover {
    background: #e9ecef;
}

.cg-faq-question i {
    transition: transform 0.3s ease;
}

.cg-faq-question.active i {
    transform: rotate(180deg);
}

.cg-faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.cg-faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

.cg-faq-answer p {
    margin-bottom: 1rem;
    color: #555;
}

.cg-faq-answer p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cg-cta-section {
    text-align: center;
    margin: 5rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
}

.cg-cta-section:before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cg-cta-section:after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.cg-cta-content {
    position: relative;
    z-index: 1;
}

.cg-cta-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cg-cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cg-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cg-cta-button-primary {
    background: #f1c40f;
    color: #2c3e50;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cg-cta-button-primary:hover {
    background: #f39c12;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cg-cta-button-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cg-cta-button-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cg-main-heading {
        font-size: 2rem;
    }
    
    .cg-section-heading {
        font-size: 1.7rem;
    }
    
    .cg-row-label {
        min-width: 100px;
    }
    
    .cg-cta-buttons {
        flex-direction: column;
    }
    
    .cg-cta-button-primary, .cg-cta-button-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cg-main-heading {
        font-size: 1.8rem;
    }
    
    .cg-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cg-features-grid {
        grid-template-columns: 1fr;
    }
    
    .cg-steps-container {
        grid-template-columns: 1fr;
    }
    
    .cg-table-card-header h3 {
        font-size: 1.1rem;
    }
    
    .cg-table-row {
        flex-direction: column;
    }
    
    .cg-row-label {
        margin-bottom: 5px;
    }
}
        


     .export-options {
             display: flex;
                 flex-wrap: wrap;
                     gap: 10px;
                         margin-top: 20px;
                         }

                         .export-btn-container {
                             position: relative;
                             }

                             .export-loading {
                                 position: absolute;
                                     bottom: -5px;
                                         left: 0;
                                             right: 0;
                                                 height: 3px;
                                                     background: #f1f1f1;
                                                         border-radius: 2px;
                                                             overflow: hidden;
                                                             }

                                                             .export-loading .loading-progress {
                                                                 height: 100%;
                                                                     width: 0;
                                                                         background: var(--primary);
                                                                             transition: width 0.3s ease;
                                                                             }

                                                                             .loading-bar {
                                                                                 height: 4px;
                                                                                     background: #f1f1f1;
                                                                                         border-radius: 2px;
                                                                                             overflow: hidden;
                                                                                                 margin-bottom: 15px;
                                                                                                 }

                                                                                                 .loading-bar .loading-progress {
                                                                                                     height: 100%;
                                                                                                         width: 0;
                                                                                                             background: var(--primary);
                                                                                                                 transition: width 0.3s ease;
                                                                                                                 }
     }   