        :root {
            --brand: #2563eb; --brand-dark: #1e40af; --bg: #f8fafc;
            --surface: #ffffff; --text-main: #0f172a; --text-light: #64748b;
            --border: #e2e8f0; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        /* RESET & BASE */
        * { box-sizing: border-box; }
        body { margin: 0; padding: 0; background: var(--bg); font-family: 'Inter', sans-serif; color: var(--text-main); line-height: 1.6; }
        h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
        a { color: var(--brand); text-decoration: none; }
        
/* --- HEADER (HERO) --- */
header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white; 
    padding: 60px 20px 80px 20px; 
    text-align: center;
}

.hero-wrap { 
    max-width: 900px; 
    margin: 0 auto; 
}

.badge { 
    background: rgba(37, 99, 235, 0.2); 
    color: #60a5fa; 
    border: 1px solid rgba(96, 165, 250, 0.3); 
    padding: 4px 12px; 
    border-radius: 99px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    display: inline-block; 
    margin-bottom: 15px; 
}

h1 { 
    font-size: clamp(2rem, 5vw, 3rem); 
    margin-bottom: 15px; 
}

/* Blue Underline */
.u-line {
    position: relative;
    display: inline-block;
}

.u-line::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 4px;
    background-color: #2563eb;
    border-radius: 2px;
}

.hero-sub { 
    color: #cbd5e1; 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin: 0 auto 20px auto; 
}

/* Original Styles */
.badge { background: rgba(37, 99, 235, 0.2); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.3); padding: 4px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 15px; }
.hero-sub { color: #cbd5e1; font-size: 1.1rem; max-width: 600px; margin: 0 auto 20px auto; }
        
        /* --- WORKSTATION (THE TOOL) --- */
        .app-shell {
            max-width: 1000px; margin: -60px auto 60px auto; background: var(--surface);
            border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
            overflow: hidden; border: 1px solid var(--border); position: relative; z-index: 10;
            display: flex; flex-direction: column; height: 80vh; min-height: 600px;
        }

        /* Toolbar */
        .toolbar {
            padding: 10px 15px; background: #fff; border-bottom: 1px solid var(--border);
            display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex-shrink: 0;
        }
        .tool-group { display: flex; align-items: center; gap: 6px; padding-right: 12px; border-right: 1px solid #f1f5f9; }
        .tool-group:last-child { border: none; margin-left: auto; padding-right: 0; }
        
        /* Icons */
        .icon-btn {
            width: 36px; height: 36px; border: 1px solid var(--border); background: white; border-radius: 6px;
            display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s;
        }
        .icon-btn:hover { background: #f8fafc; border-color: var(--brand); }
        .icon-btn svg { width: 18px; height: 18px; stroke: #475569; stroke-width: 2; fill: none; }
        .active-tool { background: var(--brand); border-color: var(--brand); }
        .active-tool svg { stroke: white; }

        .btn-primary { background: var(--brand); color: white; padding: 0 16px; height: 36px; border-radius: 6px; font-weight: 600; border: none; cursor: pointer; font-size: 0.9rem; }
        .btn-primary:hover { background: var(--brand-dark); }
        
        .stat-display { font-size: 0.75rem; font-weight: 700; color: var(--text-light); background: #f1f5f9; padding: 4px 10px; border-radius: 4px; }

        /* Editor */
        .editor-area { flex-grow: 1; position: relative; overflow-y: auto; background: white; cursor: text; }
        #urduEditor {
            width: 100%; min-height: 100%; border: none; outline: none; padding: 40px;
            font-family: 'Noto Nastaliq Urdu', serif; font-size: 40px; line-height: 2.2;
            direction: rtl; text-align: right; resize: none; color: #1e293b;
        }

        /* Virtual Keyboard */
        .keyboard-wrapper { background: #e2e8f0; padding: 10px; border-top: 1px solid var(--border); flex-shrink: 0; user-select: none; }
        .kb-row { display: flex; justify-content: center; gap: 4px; margin-bottom: 4px; direction: ltr; }
        .key {
            background: white; height: 46px; border-radius: 5px; flex: 1; min-width: 32px;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            box-shadow: 0 2px 0 #94a3b8; cursor: pointer; position: relative; transition: transform 0.05s;
        }
        .key:active, .key.pressed { transform: translateY(2px); box-shadow: none; background: #f1f5f9; }
        .key .eng { font-size: 9px; color: #94a3b8; position: absolute; top: 2px; left: 4px; font-weight: 700; text-transform: uppercase; }
        .key .urdu { font-size: 20px; color: #0f172a; margin-top: 6px; font-family: 'Noto Nastaliq Urdu'; }
        .key.special { background: #cbd5e1; flex-grow: 1.5; }
        .key.space { flex-grow: 8; }

        /* --- SEO SECTIONS --- */
        .content-section { max-width: 900px; margin: 0 auto 60px auto; padding: 0 20px; }
        .section-header { text-align: center; margin-bottom: 40px; }
        .section-header h2 { font-size: 1.8rem; margin-bottom: 10px; }
        
        .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
        .feature-card { background: white; padding: 25px; border-radius: 12px; border: 1px solid var(--border); }
        .feature-icon { width: 40px; height: 40px; background: #eff6ff; color: var(--brand); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
        
        .guide-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
        .guide-table th { background: #f8fafc; text-align: left; padding: 12px 20px; font-size: 0.9rem; color: var(--text-main); border-bottom: 1px solid var(--border); }
        .guide-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); color: var(--text-light); }
        .urdu-char { font-family: 'Noto Nastaliq Urdu'; font-size: 1.4rem; color: var(--brand); }

        /* FAQ */
        .faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
        .faq-item h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-main); }
        .faq-item p { margin: 0; color: var(--text-light); font-size: 0.95rem; }

        /* FOOTER */
        footer { background: #0f172a; color: #94a3b8; padding: 60px 20px; text-align: center; margin-top: auto; }
        .footer-nav { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; font-size: 0.9rem; }
        .footer-nav a:hover { color: white; }
        .copyright { font-size: 0.85rem; opacity: 0.8; }

        @media (max-width: 768px) {
            h1 { font-size: 1.8rem; }
            .app-shell { height: 85vh; margin-top: -30px; border-radius: 0; }
            .toolbar { overflow-x: auto; }
            .key .eng { display: none; } /* Cleaner look on mobile */
            #urduEditor { font-size: 28px; padding: 20px; }
        }