 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #8b5cf6;
            --accent: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --light: #f8fafc;
            --dark: #1e293b;
            --gray: #64748b;
            --gray-light: #e2e8f0;
            --card-bg: #ffffff;
            --premium-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
            --success-gradient: linear-gradient(135deg, #10b981, #059669);
            --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
            --radius: 16px;
            --radius-sm: 10px;
            --transition: all 0.3s ease;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
            color: var(--dark);
            min-height: 100vh;
            padding: 20px;
            line-height: 1.6;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Header Styles */
        header {
            text-align: center;
            margin-bottom: 40px;
            padding-top: 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .logo-icon {
            background: var(--premium-gradient);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
            box-shadow: var(--shadow);
        }

        .logo-text {
            font-family: 'Poppins', sans-serif;
            font-size: 36px;
            font-weight: 800;
            background: var(--premium-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.5px;
        }

        .tagline {
            color: var(--gray);
            font-size: 18px;
            max-width: 700px;
            margin: 0 auto 20px;
            font-weight: 500;
        }

        .premium-badge {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: #78350f;
            padding: 10px 25px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 16px;
            box-shadow: 0 6px 15px rgba(245, 158, 11, 0.25);
        }

        /* Main Layout */
        .main-content {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 40px;
            margin-bottom: 50px;
        }

        @media (max-width: 1100px) {
            .main-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }
        }

        /* Card Styles */
        .card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 35px;
            box-shadow: var(--shadow-lg);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
        }

        .card-title {
            font-family: 'Poppins', sans-serif;
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 25px;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .card-title i {
            color: var(--primary);
        }

        /* Input Section */
        .input-section {
            display: flex;
            flex-direction: column;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--dark);
            font-size: 16px;
        }

        .input-field {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid var(--gray-light);
            border-radius: var(--radius-sm);
            font-size: 16px;
            font-family: 'Inter', sans-serif;
            transition: var(--transition);
            background: #f8fafc;
        }

        .input-field:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
            background: white;
        }

        textarea.input-field {
            min-height: 150px;
            resize: vertical;
        }

        /* Toggle Styles */
        .toggle-container {
            display: flex;
            background: var(--gray-light);
            border-radius: var(--radius-sm);
            padding: 6px;
            margin-bottom: 20px;
            width: fit-content;
        }

        .toggle-btn {
            border: none;
            background: transparent;
            padding: 10px 24px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            transition: var(--transition);
            color: var(--gray);
        }

        .toggle-btn.active {
            background: white;
            color: var(--primary);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
        }

        /* Style Options */
        .style-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 25px;
        }

        @media (max-width: 768px) {
            .style-options {
                grid-template-columns: 1fr;
            }
        }

        .style-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px;
            border: 2px solid var(--gray-light);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: var(--transition);
        }

        .style-option:hover {
            border-color: var(--primary);
        }

        .style-option.active {
            border-color: var(--primary);
            background: rgba(99, 102, 241, 0.05);
        }

        .style-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: white;
        }

        .style-icon.creative { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
        .style-icon.professional { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
        .style-icon.persuasive { background: linear-gradient(135deg, #10b981, #059669); }
        .style-icon.casual { background: linear-gradient(135deg, #f59e0b, #d97706); }
        .style-icon.formal { background: linear-gradient(135deg, #6366f1, #4f46e5); }
        .style-icon.friendly { background: linear-gradient(135deg, #ec4899, #db2777); }

        .style-name {
            font-weight: 600;
            font-size: 16px;
        }

        /* Slider Styles */
        .slider-container {
            margin-bottom: 25px;
        }

        .slider-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .slider-value {
            font-weight: 700;
            color: var(--primary);
        }

        .slider {
            width: 100%;
            height: 10px;
            border-radius: 5px;
            background: var(--gray-light);
            outline: none;
            -webkit-appearance: none;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            border: 3px solid white;
        }

        /* Button Styles */
        .btn-generate {
            width: 100%;
            padding: 18px;
            background: var(--premium-gradient);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: auto;
        }

        .btn-generate:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
        }

        .btn-generate:active {
            transform: translateY(-1px);
        }

        /* Result Section */
        .result-section {
            display: flex;
            flex-direction: column;
        }

        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .result-actions {
            display: flex;
            gap: 12px;
        }

        .action-btn {
            padding: 10px 20px;
            border-radius: var(--radius-sm);
            border: none;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--gray-light);
            color: var(--dark);
        }

        .action-btn:hover {
            transform: translateY(-2px);
        }

        .action-btn.copy {
            background: var(--success-gradient);
            color: white;
        }

        .action-btn.clear {
            background: #f1f5f9;
            color: var(--gray);
        }

        .action-btn.save {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
        }

        .result-container {
            flex-grow: 1;
            position: relative;
            border: 2px solid var(--gray-light);
            border-radius: var(--radius-sm);
            background: #f8fafc;
            overflow: hidden;
        }

        .result-textarea {
            width: 100%;
            height: 100%;
            min-height: 400px;
            padding: 25px;
            border: none;
            font-size: 16px;
            font-family: 'Inter', sans-serif;
            line-height: 1.7;
            resize: none;
            background: transparent;
            color: var(--dark);
        }

        .result-textarea:focus {
            outline: none;
        }

        .placeholder {
            position: absolute;
            top: 25px;
            left: 25px;
            color: var(--gray);
            font-style: italic;
            pointer-events: none;
        }

        .word-count {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.9);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            color: var(--gray);
        }

        /* AI Insights Panel */
        .ai-insights {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 35px;
            box-shadow: var(--shadow-lg);
            margin-bottom: 50px;
        }

        .ai-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .ai-icon {
            background: var(--premium-gradient);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 22px;
        }

        .insights-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .insight-card {
            background: #f8fafc;
            border-radius: var(--radius-sm);
            padding: 25px;
            border-left: 4px solid var(--primary);
        }

        .insight-title {
            font-weight: 700;
            font-size: 18px;
            margin-bottom: 10px;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .insight-title i {
            color: var(--primary);
        }

        /* Premium Features */
        .premium-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 60px;
        }

        .feature-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 30px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            border-top: 4px solid var(--primary);
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
        }

        .feature-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin: 0 auto 20px;
            background: var(--premium-gradient);
            color: white;
        }

        .feature-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--dark);
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 30px 0;
            border-top: 1px solid var(--gray-light);
            color: var(--gray);
            font-size: 15px;
        }

        footer p {
            margin-bottom: 10px;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .footer-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
        }

        .footer-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        /* Loading Animation */
        .loading {
            display: none;
            text-align: center;
            padding: 20px;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid var(--gray-light);
            border-top: 5px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            body {
                padding: 15px;
            }
            
            .card {
                padding: 25px 20px;
            }
            
            .logo-text {
                font-size: 28px;
            }
            
            .premium-badge {
                font-size: 14px;
                padding: 8px 18px;
            }
            
            .result-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .result-actions {
                width: 100%;
                justify-content: space-between;
            }
            
            .action-btn {
                flex: 1;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .logo {
                flex-direction: column;
                gap: 10px;
            }
            
            .logo-text {
                font-size: 24px;
            }
            
            .tagline {
                font-size: 16px;
            }
            
            .card-title {
                font-size: 22px;
            }
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--success-gradient);
            color: white;
            padding: 15px 25px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            box-shadow: var(--shadow-lg);
            z-index: 1000;
            transform: translateY(100px);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }